Repository navigation
ci: discard result files a workspace checkout carries before every shard runs - #225
Merged
Merged
Conversation
…ard runs
A workspace repo that tracks its own test-results/ (autolens_workspace_test#311
did, by accident) handed every shard a report about some other run: the runner
wrote beside it, the upload shipped the directory whole, and the analyze stage
folded the stale failures into the release report. Nightly Release Integrate
runs 34323573912 and 34449490363 stopped at Stage 3 on exactly that while every
script that ran passed.
One step, in both shard jobs of workspace-validation.yml and before the runner
in smoke-tests.yml: remove *__script.json / *__script.md / smoke_timings.json /
report.json under test-results/ and any smoke_timings.json in the checkout,
keep cache_state.json, and emit one ::warning:: per discarded file so a leaking
repo is visible in the run log. The shell carries no ${{ }} so the wiring
tests execute it verbatim against planted files.
Refs PyAutoMind draft/bug/pyautoheart/release_integrate_must_not_ingest_result_files.md
The tenant firewall (repos_sync.py --check, run after Heart Tests) flags a workspace repo's name as an instance fact when it appears in organ code outside a declared config surface. The discard-guard comment named the repo that leaked its result files; the workflow files may carry that name, the test module may not. Reword the comment; no test body changes. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LyFqaS5R1VUprCcDQ2ForA
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A workspace repo that tracks its own
test-results/hands every shard a report about some other run. autolens_workspace_test#311 did exactly that by accident: it committed a local smoke run's*__script.json/.md/smoke_timings.json(three stalejax_likelihoodfailures,/home/<user>paths). The shard's runner wrote beside it, the upload step shipped the directory whole, and the analyze stage folded the stale failures into the release report. Nightly Release Integrate runs 34323573912 (2026-09-09) and 34449490363 (2026-09-10) stopped at Stage 3 on that while every script that actually ran passed. awt#313 removed the files; this is the durable guard so a leaked file can never fail a release again.What changes
One step, Discard result files the workspace checkout carries, placed between the workspace checkout and the runner:
workspace-validation.yml— in both shard jobs (run_scripts, unconditional;run_notebooks, gated like its checkout).smoke-tests.yml— beforeMark scripts start, since the PR gate uploadstest-results/and everysmoke_timings.jsoninto the timings artifact, where the same leak would ride.It removes
*__script.json,*__script.md,smoke_timings.jsonandreport.jsonundertest-results/, plus anysmoke_timings.jsonelsewhere in the checkout (.gitpruned), keepscache_state.json(this run's sidecar, not a result), and prints one::warning::per discarded file so a leaking repo is visible in the run log rather than silently laundered. The shell carries no${{ }}so the tests can execute it verbatim.Tests
Four tests in
tests/test_workflow_wiring.py: the step sits after checkout and before the runner in both shard jobs (with the notebooks leg'sifmatching its checkout); the PR gate carries byte-identical step text; the shell run against a planted stale tree removes the four result files, keeps the sidecar, a tracked script and anything under.git, and emits exactly one warning per file; and it is a quiet no-op on a clean checkout, on no checkout, and honoursWORKSPACE_DIR.Full suite: 971 passed.
Refs
PyAutoMind/draft/bug/pyautoheart/release_integrate_must_not_ingest_result_files.md(option 1 of the three it offers; the analyze-side path filter and a workspace-repo lint remain open).🤖 Generated with Claude Code
https://claude.ai/code/session_013cRGya8T4efAq7Qa47Livp
Generated by Claude Code