Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/fuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,42 @@ env:
CARGO_NET_GIT_FETCH_WITH_CLI: true

jobs:
# cargo-fuzz has no --locked, and a build without it re-resolves a stale
# Cargo.lock in memory, so the harnesses would build against whatever
# versions are newest that day while the job stays green. This job checks
# each fuzz crate's committed lockfile instead. It runs on the schedule too,
# so a lockfile that goes stale on the default branch still fails a run.
fuzz-lockfiles:
name: fuzz lockfiles are current
runs-on: blacksmith-4vcpu-ubuntu-2404
timeout-minutes: 10
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false

- uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v4
with:
version: 2026.4.0
install: true
working_directory: .
cache: true
# Must name runs-on's image; see scripts/__tests__/workflow-mise-cache-image.test.mjs
cache_key_prefix: mise-v1-ubuntu-2404

- name: Resolve every fuzz crate against its committed lockfile
run: |
status=0
for manifest in packages/*/fuzz/Cargo.toml; do
if cargo metadata --locked --format-version 1 --manifest-path "$manifest" > /dev/null; then
echo "ok: ${manifest%/Cargo.toml}/Cargo.lock"
else
echo "::error file=${manifest%/Cargo.toml}/Cargo.lock::stale; run cargo metadata --manifest-path $manifest and commit the lockfile"
status=1
fi
done
exit "$status"

fuzz-regression:
name: fuzz regression (${{ matrix.slug }})
# Not on the nightly schedule, which is the campaign's. A manual dispatch
Expand Down
229 changes: 207 additions & 22 deletions packages/stack-auth/fuzz/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading