-
Notifications
You must be signed in to change notification settings - Fork 2.5k
fix(helper): Remove PyYAML dependency to resolve CI failures #14145
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
fix(helper): Remove PyYAML dependency to resolve CI failures #14145
Conversation
…builds" …" This reverts commit 89a3a64.
|
/gcbrun trial_build.py zlib bad_example --fuzzing-engines libfuzzer --sanitizers address |
Removes the PyYAML dependency from infra/helper.py to fix a ModuleNotFoundError in the indexer build tests, which run in a minimal environment. The language and base_os_version properties in the Project class were refactored to manually parse project.yaml using regex, restoring CI compatibility without losing functionality.
3534042 to
e1504a1
Compare
|
/gcbrun trial_build.py zlib bad_example --fuzzing-engines libfuzzer --sanitizers address |
|
Thanks! Note that helper.py is intended to be dependency-less, because it should be runnable by anybody just by checking out the OSS-Fuzz repo. |
It seems that, at some point (*), `infra/helper.py reproduce` stopped outputting the Docker logs, even when the reproducer triggers an assertion. (*) Probably because of some of the changes in google#14145
| ] + fuzzer_args | ||
|
|
||
| return run_function(run_args, architecture=architecture) | ||
| return run_function(run_args, err_result) |
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.
I think this was an erroneous change as docker_run doesn't allow customizing the error result. Actually, this is passing err_result for docker_run's print_output parameter.
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.
See #14299 for a fix
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.
It seems that, at some point (*), `infra/helper.py reproduce` stopped outputting the Docker logs, even when the reproducer triggers an assertion. (*) Probably because of some of the changes in #14145 Co-authored-by: DavidKorczynski <[email protected]>
This PR resolves a
ModuleNotFoundErrorin therun indexer testsCI job by removing the externalPyYAMLdependency frominfra/helper.py.The original feature was reverted because
helper.pywas used in a minimal CI environment that does not include third-party libraries, causing the build to fail.This fix refactors the
Projectclass to manually parseproject.yamlfor thelanguageandbase_os_versionproperties using basic string operations. This approach preserves the required functionality while eliminating the dependency, ensuring compatibility with all CI environments.The fix was verified by successfully running the
index_build_testin an environment wherePyYAMLwas uninstalled.