Repository navigation
Summarize affected checks and retain per-command logs - #1529
Merged
Merged
Conversation
Merged
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
Closes #1521
Test seams
scripts/affected-tests <base>CLI: terminal output, exit status, and the log files it advertises, with real Git and stand-in external check runners.Evidence
python3 -m unittest scripts.test_affected_tests.AffectedTests.test_passing_commands_print_summaries_and_keep_distinct_ignored_logsfailed because raw check output reached the terminal. Rust and browser failure regressions also failed before extraction was implemented.After:
python3 -m unittest discover -s scripts -p 'test_*.py'passes all 25 tests: compact summaries, full retained stdout/stderr, distinct ignored logs, Rust panics, TAP/spec browser failures, startup errors and forced color.SIGABRTand unittestFAIL:/ERROR:. Both focused regressions are retained and pass after the parser fix.b5551e3be871043b74983d15e5fdec8ce87e2ac4; its nextest step took 15m 49s. That earlier head's other CI checks passed, including Python tooling, formatting, clippy, site/Console browser tests, the macOS gate and release builds.NEXTEST_TEST_THREADS=3 scripts/affected-tests origin/mainpassed on unchanged head47416f00: 3,342 Rust tests passed, 74 skipped, in 2,178.45s including an 18.07s build. Full output is retained at.affected-tests/cargo-nextest-run-i_yht3ql.log. Three workers follow the repository's documented guidance for deadline-sensitive tests on busy hosts.python3 -m unittest discover -s scripts -p 'test_*.py'also passed all 25 tests.git diff --checkpasses. Test selection is unchanged.CI notes
testfailure is an existing race: Stop can interrupt repository preparation after an attempt directory is created, violating the test's assumption attests/experiments.rs:1398; the exact assertion reproduced 3/3 on cleanmain(b0ffffe2) with a temporary PATH-only Git wrapper delaying Candidate repository initialization by 2s (20/20 undelayed runs passed).git diff origin/main HEAD -- src tests Cargo.toml Cargo.lock .github .configis empty, and CI invokes nextest directly; no unrelated code or tests were changed.Review coverage
Independent Standards and Spec reviews against
main, followed by inspection of the parser fix. Standards: 0 findings. Spec: 1 finding, fixed and verified. Both axes read every changed file:.gitignore,docs/testing.md,scripts/affected-tests, andscripts/test_affected_tests.py. No generated exclusions or unread changed files.Unaddressed findings
Standards
None.
Spec
None; the failure-prefix finding was reproduced, fixed and covered by retained tests.
Security
None.
Security review outcome
No unaddressed introduced findings.
Merge Danger
Door: two-way
Blast Radius: tooling
Changes the local validation command's presentation and log storage.
Built with codex codex-cli 0.164.0 · gpt-6.1-sol · xhigh