Refactor the inline Python commands into a Python binary.#180
Refactor the inline Python commands into a Python binary.#180xinhaoyuan wants to merge 2 commits intomainfrom
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
stefanbucur
left a comment
There was a problem hiding this comment.
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
python3does not exist in the runtime environment.