Skip to content

Make spectest fuzzing more deterministic#2106

Merged
fitzgen merged 1 commit into
bytecodealliance:mainfrom
alexcrichton:better-fuzzing
Aug 6, 2020
Merged

Make spectest fuzzing more deterministic#2106
fitzgen merged 1 commit into
bytecodealliance:mainfrom
alexcrichton:better-fuzzing

Conversation

@alexcrichton
Copy link
Copy Markdown
Member

Currently spectest fuzzing indexes into a compile-time-created array of
strings which is the list of input files, but the order of this array is
dependent on the filesystem that we're reading from. This means that
inputs from oss-fuzz may not be easily reproducible locally because
files could be read in different orders, so indexes could be distinct.

This commit instead reads the directory paths, then sorts them, then
includes them for testing. That way fuzz inputs at a specific commit
should be consistent.

Currently spectest fuzzing indexes into a compile-time-created array of
strings which is the list of input files, but the order of this array is
dependent on the filesystem that we're reading from. This means that
inputs from oss-fuzz may not be easily reproducible locally because
files could be read in different orders, so indexes could be distinct.

This commit instead reads the directory paths, then sorts them, then
includes them for testing. That way fuzz inputs at a specific commit
should be consistent.
@github-actions github-actions Bot added the fuzzing Issues related to our fuzzing infrastructure label Aug 6, 2020
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Aug 6, 2020

Subscribe to Label Action

cc @fitzgen

Details This issue or pull request has been labeled: "fuzzing"

Thus the following users have been cc'd because of the following labels:

  • fitzgen: fuzzing

To subscribe or unsubscribe from this label, edit the .github/subscribe-to-label.json configuration file.

Learn more.

Copy link
Copy Markdown
Member

@fitzgen fitzgen left a comment

Choose a reason for hiding this comment

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

good catch!

@fitzgen fitzgen merged commit 25808cd into bytecodealliance:main Aug 6, 2020
@alexcrichton alexcrichton deleted the better-fuzzing branch March 29, 2021 15:23
alexcrichton added a commit to alexcrichton/wasmtime that referenced this pull request Mar 29, 2021
Turns out bytecodealliance#2106 missed the actual sorting operation. Silly me!
abrown pushed a commit that referenced this pull request Mar 29, 2021
Turns out #2106 missed the actual sorting operation. Silly me!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fuzzing Issues related to our fuzzing infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants