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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EETnctrbZKxxZ9Guy4vdgr
This commit is contained in:
Claude
2026-07-01 18:42:39 +00:00
parent 1b59e4d86b
commit b07beb3273
2 changed files with 1 additions and 6 deletions

View File

@@ -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

View File

@@ -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