[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make fuzzing less verbose to avoid exceeding Travis log limit #2126

Merged
merged 1 commit into from
Nov 29, 2018

Conversation

var-const
Copy link
Contributor

Fuzzing triggers many assertion failures, which generates enormous log output. AFAIK, there is no way to make NSAssertionHandler not write to log, and the assertions themselves are valid. Thus, implement a workaround: only output the last part of the logs in Travis, in order to avoid exceeding the log size limit (4 Mb).

@@ -110,7 +114,8 @@ for i in "${!all_fuzzing_targets[@]}"; do
echo "Error: Fuzz testing for target ${fuzzing_target} failed."
script_return=${EXIT_FAILURE}
echo "Fuzzing logs:"
echo "${fuzzing_results}"
echo "${fuzzing_results}" | tail -n${LINES_TO_OUTPUT}
echo "End fuzzing logs"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This helps distinguish where the logs from the next test run start.

@@ -110,7 +114,8 @@ for i in "${!all_fuzzing_targets[@]}"; do
echo "Error: Fuzz testing for target ${fuzzing_target} failed."
script_return=${EXIT_FAILURE}
echo "Fuzzing logs:"
echo "${fuzzing_results}"
echo "${fuzzing_results}" | tail -n${LINES_TO_OUTPUT}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Somewhat related question: The output here is generated by the run_xcode_fuzzing function, which calls xcodebuild. Clearly, it generates stdout, which we assign to this variable. Does it also generate stderr? If so, we might still end up with an overly long log.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if it generates stderr -- at the very least, I could see a significant reduction in log length when running locally. I'd prefer to submit as is and do a followup.

@rsgowman rsgowman assigned var-const and unassigned rsgowman Nov 28, 2018
@var-const var-const merged commit 93ad9fc into master Nov 29, 2018
bstpierr added a commit that referenced this pull request Dec 6, 2018
* master: (26 commits)
  Functions Interop (#2113)
  Add a travis cron job for CocoaPod symbol collision testing (#2154)
  Save schema version on downgrade, add test to verify (#2153)
  Silence Storage Unit Test `nil` warning. (#2150)
  Update versions for Release 5.14.0 (#2145)
  gRPC: fix cases where gRPC call could be finished twice (#2146)
  Fix Swizzler test warnings (#2144)
  Update Auth CHANGELOG.md (#2128)
  Make fuzz tests optional until they pass (#2143)
  Add support of Game Center sign in (#2127)
  Add test for deprecated FDLURLComponents init API. (#2133)
  fix a typo in integration test (#2131)
  Make fuzzing less verbose to avoid exceeding Travis log limit (#2126)
  Move to `domainURIPrefix` for FIRDynamicLinkComponents (#2119)
  Carthage instructions for new gRPCCertificates.bundle location (#2132)
  Fix pod lib lint GoogleUtilities.podspec --use-libraries regression (#2130)
  Avoid using default FIROptions directly. (#2124)
  Changelog entry for LRU GC (#2122)
  Revert "Add Firebase Source to Header Search Path" (#2123)
  Custom fdl domain (#2121)
  ...
@firebase firebase locked and limited conversation to collaborators Oct 24, 2019
@paulb777 paulb777 deleted the varconst/less-verbose-fuzzing branch July 8, 2020 23:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants