Repository navigation
Isolate snapshot tests from the job environment - #163
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
Snapshot tests inherit the caller's
GITHUB_ENVandUNENCRYPTED_SNAPSHOT_WARNED. The plaintext roundtrip test can therefore mark the real job as warned, while an inherited marker makes warning tests fail.Clear both values in the subprocess fixture unless a test explicitly supplies them. Extend the existing paired-save test to cover either archive first, separate environment files for successive steps, and a fresh job reusing the runner's files. Assertions check actual archive operations and warning counts.
Validation: 15 snapshot tests pass on Bun 1.4.5. Before/after probes confirm the caller's environment file now stays untouched and a pre-existing warning marker no longer breaks the tests.
git diff --checkpasses.Follow-up to #162, incorporating the remaining isolation and coverage from #161.