mirror of
https://github.com/allankoechke/turso.git
synced 2026-11-30 11:12:58 +00:00
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 as9806a0f), and its appearance lines up exactly with Antithesis losing its finding-tracking history: the first scheduled run on9806a0freports "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:
5
.github/workflows/antithesis.yml
vendored
5
.github/workflows/antithesis.yml
vendored
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user