Skip to content

fix(fuzz): the gitlfs and swift fuzz targets are in their packages - #551

Merged
M0Rf30 merged 1 commit into
openartifact:mainfrom
orcamedia:fix/fuzz-gitlfs-internal-package
Dec 3, 2026
Merged

M0Rf30 merged 1 commit into
openartifact:mainfrom
orcamedia:fix/fuzz-gitlfs-internal-package

Conversation

@orcamedia

Copy link
Copy Markdown
Contributor

The nightly batch still failed after #542 (#514), now with could not find the function: func FuzzPeekOperation: build.sh deletes external test package files before building, and #533 declared FuzzPeekOperation (pkg/gitlfs/gitlfs_test.go) and six targets (pkg/swift/fuzz_test.go) in package gitlfs_test / swift_test, so 7 of 228 targets vanished and the first aborted the batch.

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

Checks: a copy of the tree with build.sh's deletions applied compiles all 46 fuzz packages and keeps all 228 targets; go test -race for both packages; short fuzz runs of the moved targets; golangci-lint v2.15.0 0 issues.

🤖 Generated with Claude Code

The nightly ClusterFuzzLite batch still failed after openartifact#542, now with
"could not find the function: func FuzzPeekOperation" (openartifact#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 openartifact#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: Claude Opus 5.5 <[email protected]>
@M0Rf30
M0Rf30 merged commit 4038036 into openartifact:main Dec 3, 2026
23 checks passed
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