-
Notifications
You must be signed in to change notification settings - Fork 20
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
Refactor the inline Python commands into a Python binary. #180
base: master
Are you sure you want to change the base?
Conversation
3b8fcbe
to
1650ff4
Compare
Don't worry about the Jazzer launcher script. I am |
This is needed when `python3` does not exist in the runtime environment.
…y_binary to OSS-fuzz seems not working.
1650ff4
to
788de08
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for simplifying the launcher scripts, and sorry for the delay.
I am wondering if there is a clean way to eliminate the (new) duplication in the launcher scripts, too, since I expect every launcher script would need to add this data dependency.
Could we somehow make this tool available as a data dependency on the action that invokes the launcher? This way, we could augment the script calling the launcher to extend the $PATH
with the location of the tool, so the script can directly use $(realpath ${FUZZER_BINARY})
.
I've just realize we might have another alternative: Guarantee that There is one more place which is currently Bash, but I'm wondering if that rule is actually still needed since we have the more general launcher rule: https://github.com/bazelbuild/rules_fuzzing/blob/4bafba51ffd9d418d236adb61de36fda1a90e764/fuzzing/private/regression.bzl#L25 |
I tried to put the tool dependency inside the launcher rule, but I didn't like it since it makes the testing hard (matching the runfiles in If canonical path is not required, we can rewrite the bash script, e.g. append |
This is needed when
python3
does not exist in the runtime environment.