-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
cifuzz: get_replace_repo_and_build_command can overwrite artifacts copied from Dockerfile #6755
Comments
This is the DuckDB PR: duckdb/duckdb#2501 |
This is a known issue. I can try to look into this next week. |
The OSV integration copies out the repository from the image instead of checking out its own (which would include any extra non-tracked files that are copied into it). Perhaps we can just do the same thing here? |
Any updates on this one? |
Starting on this now. |
I'm starting to implement this. But i think it suffers from a flaw. The alternative would be making users clone their repo with github's clone action which is annoying because:
|
Do this instead of cloning repo anew. Fixes: #6755
I don't think we handle submodules today (I thought we did). We could in theory always call checkout with |
* [cifuzz] Copy repo from image before checking out. Do this instead of cloning repo anew. Fixes: #6755 * fix tests * Add test code for cifuzz-example * fix
* [cifuzz] Copy repo from image before checking out. Do this instead of cloning repo anew. Fixes: google#6755 * fix tests * Add test code for cifuzz-example * fix
Integrating CIFuzz into DuckDB led to an issue where a fuzzer located in OSS-Fuzz gets copied into
$SRC/duckdb/fuzznamer.cpp
but is then deleted. I believe it's related torm -rf {rm_path}
hereoss-fuzz/infra/cifuzz/continuous_integration.py
Line 156 in a75844d
The logs are as follows:
As such, later the build process would fail as the fuzzer is no longer there.
Am not sure if this is by design or not, but putting up the issue as I can imagine a fair number of projects may use the Dockerfile to put stuff into their repository folders.
The text was updated successfully, but these errors were encountered: