From 3e2ea7e6f55ae3fe83e0f7ce91d1671ec199a558 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Mon, 23 Nov 2026 12:02:38 -0600 Subject: [PATCH] PYTHON-6290 Fix atheris environment in fuzz corpus capture replay --- .evergreen/scripts/capture-fuzz-corpus.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.evergreen/scripts/capture-fuzz-corpus.sh b/.evergreen/scripts/capture-fuzz-corpus.sh index 438c7f6754..1b3512e4b0 100755 --- a/.evergreen/scripts/capture-fuzz-corpus.sh +++ b/.evergreen/scripts/capture-fuzz-corpus.sh @@ -15,12 +15,11 @@ if [ -z "$(ls -A fuzz-scratch/capture 2>/dev/null || true)" ]; then exit 0 fi -# A unit found by a later target never ran through the earlier ones, so -# replay every unit through all targets before publishing. +# The replay runs the atheris targets, so it must request the fuzz group. replay=(fuzz-scratch/capture/*) for target in fuzz_decode fuzz_decode_all fuzz_is_valid; do echo "Replaying captured units against ${target}..." - if ! uv run --no-sync python "fuzz/${target}.py" "${replay[@]}" \ + if ! uv run --group fuzz python "fuzz/${target}.py" "${replay[@]}" \ -artifact_prefix="$PWD/fuzz-scratch/" -atheris_runs="${#replay[@]}" then echo "Captured unit fails ${target}; no corpus PR." >&2