Skip to content
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

[elfutils] point CIFuzz to evverx/elfutils #6967

Closed
wants to merge 1 commit into from

Conversation

evverx
Copy link
Contributor

@evverx evverx commented Dec 4, 2021

I created https://github.com/evverx/elfutils where I test elfutils
with gcc/clang, asan/ubsan, LGTM and Coverity. It would be great
if it was possible to test patches with CIFuzz there as well. Judging by
https://github.com/evverx/elfutils/actions/runs/1527662451, it just
falls back to the official repository (which is hosted at https://sourceware.org/git/?p=elfutils.git;a=summary
and where GitHub branches CIFuzz tries to checkout don't exist)

Stderr of command "git fetch origin refs/pull/2/merge" is: fatal: couldn't find remote ref refs/pull/2/merge
Can not check out requested state refs/pull/2/merge. Using current repo state

It would be even better if instead of hardcoding "evverx/elfutils"
I could pass ${{ github.repository }} or something like that.

More generally, this PR is an attempt to get around #3731

I created https://github.com/evverx/elfutils where I test elfutils
with gcc/clang, asan/ubsan, LGTM and Coverity. It would be great
if it was possible to test patches with CIFuzz there as well. Judging by
https://github.com/evverx/elfutils/actions/runs/1527662451, it just
falls back to the official repository (which is hosted at https://sourceware.org/git/?p=elfutils.git;a=summary
and where GitHub branches CIFuzz tries to checkout don't exist)
```
Stderr of command "git fetch origin refs/pull/2/merge" is: fatal: couldn't find remote ref refs/pull/2/merge
Can not check out requested state refs/pull/2/merge. Using current repo state
```

It would be even better if instead of hardcoding "evverx/elfutils"
I could pass `${{ github.repository }}` or something like that.

More generally, this PR is an attempt to get around google#3731
@@ -17,6 +17,11 @@
FROM gcr.io/oss-fuzz-base/base-builder
RUN apt-get update && \
apt-get install -y pkg-config make autoconf autopoint zlib1g-dev flex bison gawk
RUN git clone --depth 1 git://sourceware.org/git/elfutils.git
RUN bash -x -c "\
if [[ '$CIFUZZ' == True ]]; then \
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW I'm not sure why the skia project started to use true (instead of True) in https://github.com/google/oss-fuzz/pull/4588/files. As far as I can see the variable is always set to True on CIFuzz

@evverx
Copy link
Contributor Author

evverx commented Dec 4, 2021

The CI seems to have failed due to #6957. Looks like the base builder image hasn't been rebuilt yet

@evverx evverx marked this pull request as draft December 6, 2021 19:51
@evverx
Copy link
Contributor Author

evverx commented Dec 6, 2021

Closing in favor of evverx/elfutils#35

@evverx evverx closed this Dec 6, 2021
@evverx evverx deleted the elfutils-cifuzz branch December 6, 2021 22:14
@oliverchang oliverchang added the cflite ClusterFuzzLite label Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cflite ClusterFuzzLite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants