bazel-contrib / rules_fuzzing

Bazel Starlark extensions for defining fuzz tests in Bazel projects
Apache License 2.0
87 stars 20 forks source link

Use Bazel's default `PATH` when running Python actions #217

Closed fmeum closed 1 year ago

fmeum commented 1 year ago

Without use_default_shell_env, PATH was not set for Python actions, which resulted in python (or python3) not being found.

fmeum commented 1 year ago

@stefanbucur The fix consists of two parts: the first commit of this PR and https://github.com/google/oss-fuzz/pull/9024, which I mocked with the temporary second commit.

fmeum commented 1 year ago

The second commit was no longer necessary, but I saw CI runs fail for a different reason now (ubuntu-latest switching to 22.04), so I pushed another commit to pin to the old version explicitly.

fmeum commented 1 year ago

The Java run fails due to upstream changes in OSS-Fuzz. I will try to fix that separately, but it would be easier if we could get this PR merged first despite that failure.

fmeum commented 1 year ago

@stefanbucur The upstream change has been reverted, so this is all green now.