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

Fix go coverage builds #6369

Merged
merged 2 commits into from
Sep 1, 2021
Merged

Fix go coverage builds #6369

merged 2 commits into from
Sep 1, 2021

Conversation

inferno-chromium
Copy link
Collaborator

No description provided.

@inferno-chromium inferno-chromium changed the title Fix go coverage builds. 71e0fe2 Fix go coverage builds Sep 1, 2021
@inferno-chromium inferno-chromium enabled auto-merge (squash) September 1, 2021 15:03
@inferno-chromium
Copy link
Collaborator Author

@catenacyber fyi

@@ -24,3 +24,6 @@ ENV GOPATH /root/go
ENV PATH $PATH:/root/.go/bin:$GOPATH/bin

RUN install_go.sh

COPY ossfuzz_coverage_runner.go $GOPATH
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this needs to be after install_go.sh, otherwise install_go fails.

Copy link
Contributor

Choose a reason for hiding this comment

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

Wait. Where is this file located. Is it located in base-builder-go or base-builder-new?

Copy link
Contributor

@jonathanmetzman jonathanmetzman left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -24,3 +24,6 @@ ENV GOPATH /root/go
ENV PATH $PATH:/root/.go/bin:$GOPATH/bin

RUN install_go.sh

COPY ossfuzz_coverage_runner.go $GOPATH
Copy link
Contributor

Choose a reason for hiding this comment

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

Wait. Where is this file located. Is it located in base-builder-go or base-builder-new?

@inferno-chromium
Copy link
Collaborator Author

that file is in infra/base-images/base-builder-go/ossfuzz_coverage_runner.go

@inferno-chromium
Copy link
Collaborator Author

TBR to unblock broken go coverage builds.

@inferno-chromium inferno-chromium merged commit df8c808 into master Sep 1, 2021
jonathanmetzman pushed a commit that referenced this pull request Sep 18, 2024
…rotoreflect/desc/protoparse (#12504)

I've recently merged a long-lived "v2" branch to main in the
`github.com/jhump/protoreflect` repo. The v2 of that repo does _not_
include a protoparse package, since that has been effectively replaced
by `github.com/bufbuild/protocompile`. (Since v1.15 of protoreflect, the
protoparse package is just API veneer on top of protocompile.)

After I did that merge of v2 to main, the fuzzer for the project began
to fail since the packages are no longer present:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=71629
So this updates the fuzzer configuration to directly test the underlying
protocompile module.

There was also a fuzz tester for the
`github.com/jhump/protoreflect/dynamic` package, but it was not actually
enabled. (It was disabled in #6369 but neither the PR description nor
comment threads describe why this test was problematic 🤷.) Anyhow, that
package has also been removed for v2, effectively replaced by
`google.golang.org/protobuf/types/dynamicpb`. So this PR deletes it
completely from the oss-fuzz repo.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants