From b07beb32737e1a2c9d2c95dcba182d2a6b63a10f Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 1 Jul 2026 18:42:39 +0000 Subject: [PATCH] antithesis: don't bake targeted_coverage.json into non-targeted runs The nightly scheduled Antithesis run passes no diff_base, so the "Ensure targeted-coverage placeholder" step wrote an empty testing/stress/targeted_coverage.json that Dockerfile.antithesis then baked into /opt/antithesis/ of the workload image. That file did not exist in workload images before the targeted-fuzzing change (merged as 9806a0f), and its appearance lines up exactly with Antithesis losing its finding-tracking history: the first scheduled run on 9806a0f reports "0 tracked", resets the entire property space ("Changed" == "All"), and resurfaces previously-resolved findings as new. Only diff-targeted runs need the file, so stop materializing it (and baking it in) on non-targeted runs, restoring the pre-regression image layout: - Drop the placeholder-creation step; the "Generate diff for targeted testing" step already writes the file only when diff_base is set. - COPY it via a bracket-glob (targeted_coverage.jso[n]) so the build is a no-op when the file is absent. docker-entrypoint.sh already guards on the file existing, so runtime behavior is unchanged. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01EETnctrbZKxxZ9Guy4vdgr --- .github/workflows/antithesis.yml | 5 ----- Dockerfile.antithesis | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/antithesis.yml b/.github/workflows/antithesis.yml index 53f73ab26..1fbf3465f 100644 --- a/.github/workflows/antithesis.yml +++ b/.github/workflows/antithesis.yml @@ -62,11 +62,6 @@ jobs: python3 scripts/antithesis/diff_to_targeted_coverage.py \ testing/stress/git.diff -o testing/stress/targeted_coverage.json - - name: Ensure targeted-coverage placeholder - run: | - [ -f testing/stress/targeted_coverage.json ] \ - || : > testing/stress/targeted_coverage.json - - name: Publish workload run: bash ./scripts/antithesis/publish-workload.sh diff --git a/Dockerfile.antithesis b/Dockerfile.antithesis index 30f0e1825..74ed37078 100644 --- a/Dockerfile.antithesis +++ b/Dockerfile.antithesis @@ -88,7 +88,7 @@ RUN chmod 777 -R /opt/antithesis/test/v1 RUN mkdir /opt/antithesis/catalog RUN ln -s /opt/antithesis/test/v1/bank-test/*.py /opt/antithesis/catalog -COPY testing/stress/targeted_coverage.json /opt/antithesis/targeted_coverage.json +COPY testing/stress/targeted_coverage.jso[n] /opt/antithesis/ ENV RUST_BACKTRACE=1