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

[infra] Enable bad_build_checks without test_all step that runs all the fuzzers. #814

Merged
merged 5 commits into from
Sep 6, 2017

Conversation

Dor1s
Copy link
Contributor

@Dor1s Dor1s commented Sep 6, 2017

As an alternative to a separate script, I can add an argument to test_all script. Something like --bad-build-checks-only.

Copy link
Collaborator

@oliverchang oliverchang left a comment

Choose a reason for hiding this comment

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

Thanks! Looks good in general, just one comment for consideration.

@@ -41,7 +41,7 @@ for FUZZER_BINARY in $(find $OUT/ -executable -type f); do
export AFL_NO_UI=1
timeout --preserve-status -s INT 20s run_fuzzer $FUZZER
fi
bad_build_check $FUZZER_BINARY

Copy link
Collaborator

Choose a reason for hiding this comment

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

to prevent all this code duplication, could we just wrap lines 36-43 with another if? we can set an env var (e.g. SKIP_TEST_TARGET_RUN) that controls this in the container builder step.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Using env var to control that SGTM! Will upload an update, thanks!

@Dor1s
Copy link
Contributor Author

Dor1s commented Sep 6, 2017

Done!

Copy link
Collaborator

@oliverchang oliverchang left a comment

Choose a reason for hiding this comment

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

LGTM!

@Dor1s Dor1s merged commit 942b5fb into master Sep 6, 2017
@Dor1s
Copy link
Contributor Author

Dor1s commented Sep 6, 2017

Kicked off build of base-images, let's see how many projects would fail this time :)

@Dor1s Dor1s mentioned this pull request Sep 6, 2017
@Dor1s Dor1s deleted the bad_build branch September 8, 2017 22:09
tmatth pushed a commit to tmatth/oss-fuzz that referenced this pull request Oct 22, 2018
…he fuzzers. (google#814)

* [infra] Enable bad_build_checks without test_all step that runs all the fuzzers.

* [infra] Add COPY step for test_all_for_bad_build script.

* [infra] Use SKIP_TEST_TARGET_RUN=1 to avoid running all fuzz targets during test_all.

* [infra] Invern the condition in test_all script.

* [infra] Finally fix the condition in test_all.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants