Skip to content

fix(fuzz): the cran archive helpers take a fataler, not testing.TB - #542

Merged
M0Rf30 merged 1 commit into
openartifact:mainfrom
orcamedia:fix/fuzz-build-cran-testing-tb
Dec 1, 2026
Merged

M0Rf30 merged 1 commit into
openartifact:mainfrom
orcamedia:fix/fuzz-build-cran-testing-tb

Conversation

@orcamedia

Copy link
Copy Markdown
Contributor

The nightly ClusterFuzzLite batch has failed at "Build fuzzers" since #533 (#514): FuzzReadDescription passes its *testing.F to tarGz and zipOf, which took a testing.TB, and the OSS-Fuzz Go build substitutes a testing.F without ArtifactDir (*testing.F does not implement testing.TB (missing method ArtifactDir) in the run log). The helpers only call Helper and Fatal, so they now take the fataler interface the terraform tests use for the same reason. A scan of every fuzz target finds no other testing.TB helper called with f. go test -race and a short local fuzz run of FuzzReadDescription pass.

🤖 Generated with Claude Code

The nightly ClusterFuzzLite batch has failed to build since openartifact#533 (issue openartifact#514):
FuzzReadDescription passes its *testing.F to tarGz and zipOf, which took a
testing.TB, and the OSS-Fuzz Go build substitutes a testing.F that lacks
ArtifactDir. The helpers only call Helper and Fatal, so they take the small
fataler interface the terraform tests already use for the same reason. A scan
of every fuzz target finds no other testing.TB helper called with f.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@M0Rf30
M0Rf30 merged commit 4b209d1 into openartifact:main Dec 1, 2026
23 checks passed
M0Rf30 pushed a commit that referenced this pull request Dec 3, 2026
)

The nightly ClusterFuzzLite batch still failed after #542, now with
"could not find the function: func FuzzPeekOperation" (#514): build.sh
deletes the files of an external test package before it builds, because the
OSS-Fuzz Go build compiles test files as ordinary sources, and #533 declared
FuzzPeekOperation in pkg/gitlfs/gitlfs_test.go and six targets in
pkg/swift/fuzz_test.go as package gitlfs_test and swift_test. Seven of the 228
targets vanished and the first missing one aborted the batch.

FuzzPeekOperation moves to pkg/gitlfs/fuzz_test.go and pkg/swift/fuzz_test.go
becomes package swift (swifttest imports nothing of swift, and its TB is the
small interface). tests/fuzz_targets_test.go fails on a fuzz target in an
external test package, so make test catches this before the nightly run does;
it reports all seven on main's tree.

Co-authored-by: Areef <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
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