Skip to content

move FuzzCompute to its own file (#582) - #582

Closed
ESoapW wants to merge 1 commit into
facebook:mainfrom
ESoapW:export-D120340800
Closed

ESoapW wants to merge 1 commit into
facebook:mainfrom
ESoapW:export-D120340800

Conversation

@ESoapW

@ESoapW ESoapW commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Summary:

OSS-Fuzz compiles the file holding a fuzz target as a non-test file, so it cannot
see declarations in other _test.go files. FuzzCompute shared leaphash_test.go with
three tests that use testDoc from testdata_test.go, so the CIFuzz build fails:

leaphash/leaphash_test.go_fuzz.go:13:30: undefined: testDoc

Move FuzzCompute to its own file. The converted file then references only Compute,
and leaphash_test.go is free to grow without breaking the fuzz build.

oss-fuzz's build.sh currently seds out one such test to work around this, which only
holds until the next one is added.

Differential Revision: D120340800

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 16, 2026
@meta-codesync

meta-codesync Bot commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

@ESoapW has exported this pull request. If you are a Meta employee, you can view the originating Diff in D120340800.

Summary:

OSS-Fuzz compiles the file holding a fuzz target as a non-test file, so it cannot
see declarations in other _test.go files. FuzzCompute shared leaphash_test.go with
three tests that use testDoc from testdata_test.go, so the CIFuzz build fails:

  leaphash/leaphash_test.go_fuzz.go:13:30: undefined: testDoc

Move FuzzCompute to its own file. The converted file then references only Compute,
and leaphash_test.go is free to grow without breaking the fuzz build.

oss-fuzz's build.sh currently seds out one such test to work around this, which only
holds until the next one is added.

Differential Revision: D120340800
@meta-codesync meta-codesync Bot changed the title move FuzzCompute to its own file move FuzzCompute to its own file (#582) Sep 16, 2026
@meta-codesync meta-codesync Bot closed this in 7150732 Sep 16, 2026
@meta-codesync meta-codesync Bot added the Merged label Sep 16, 2026
@meta-codesync

meta-codesync Bot commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

This pull request has been merged in 7150732.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant