Skip to content

ci: discard result files a workspace checkout carries before every shard runs - #225

Merged
Jammy2211 merged 2 commits into
mainfrom
claude/heart-release-tonight-pepkn7
Sep 11, 2026
Merged

Jammy2211 merged 2 commits into
mainfrom
claude/heart-release-tonight-pepkn7

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

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 stale jax_likelihood failures, /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 — before Mark scripts start, since the PR gate uploads test-results/ and every smoke_timings.json into the timings artifact, where the same leak would ride.

It removes *__script.json, *__script.md, smoke_timings.json and report.json under test-results/, plus any smoke_timings.json elsewhere in the checkout (.git pruned), keeps cache_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's if matching 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 honours WORKSPACE_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

Jammy2211 and others added 2 commits September 11, 2026 03:14
…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
@Jammy2211
Jammy2211 merged commit 412daaa into main Sep 11, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the claude/heart-release-tonight-pepkn7 branch September 11, 2026 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant