Skip to content

Add CI workflow for fuzzing smoke tests#443

Merged
pdeljanov merged 4 commits intopdeljanov:dev-0.6from
baylesj:fuzz-ci
Feb 13, 2026
Merged

Add CI workflow for fuzzing smoke tests#443
pdeljanov merged 4 commits intopdeljanov:dev-0.6from
baylesj:fuzz-ci

Conversation

@baylesj
Copy link
Copy Markdown
Contributor

@baylesj baylesj commented Feb 10, 2026

This patch adds a new step to the check job that ensures that the fuzzing manifest builds correctly.

This is necessary because the run: cargo check --all --all-features --exclude symphonia-play step does not build the fuzzer. As far as I can tell this is due to the fuzz directory defining its own [workspace] in fuzz/Cargo.toml. This effectively detaches it from the main project workspace, so running cargo check --all from the project root skips it.

Improvement on #149

This workflow installs cargo-fuzz and runs the 'run_all.sh' script for
10 seconds per target. This ensures that the fuzz targets continue to
compile and run without immediate errors on every PR.

Improvement on pdeljanov#149
@pdeljanov
Copy link
Copy Markdown
Owner

A bit on the fence about this one since it would introduce non-determinism into the workflows. I think cargo fuzz build would be sufficient to check if the fuzz tests still are still building.

@baylesj
Copy link
Copy Markdown
Contributor Author

baylesj commented Feb 12, 2026

That's valid -- it would absolutely add a certain amount of non-determinism. I can add a fuzzing build target instead that just runs cargo fuzz build to make sure fuzzing is not completely broken, and then rely on OSS-Fuzz for actually executing fuzzing.

@baylesj
Copy link
Copy Markdown
Contributor Author

baylesj commented Feb 12, 2026

Can't seem to update the bug title for some reason, but I think this CL should be ready for another look.

@pdeljanov pdeljanov merged commit 67ec5f3 into pdeljanov:dev-0.6 Feb 13, 2026
11 checks passed
@pdeljanov
Copy link
Copy Markdown
Owner

This makes sense to me. Perhaps once significant time has been spent fuzzing Symphonia we could add the smoke tests.

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