Skip to content

Summarize affected checks and retain per-command logs - #1529

Merged
JacobStephens2 merged 4 commits into
mainfrom
issue-1521
Oct 28, 2026
Merged

JacobStephens2 merged 4 commits into
mainfrom
issue-1521

Conversation

@JacobStephens2

@JacobStephens2 JacobStephens2 commented Oct 28, 2026 •

Copy link
Copy Markdown
Owner

Summary

scripts/affected-tests <base>
  select the existing checks
  save each check's full stdout/stderr in .affected-tests/
  print its log path, result and elapsed time
  on failure, print test names and Rust panic messages

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

  • Before: python3 -m unittest scripts.test_affected_tests.AffectedTests.test_passing_commands_print_summaries_and_keep_distinct_ignored_logs failed 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.
  • Review regression: the Spec reviewer's exact command failed all three assertions for nextest SIGABRT and unittest FAIL:/ERROR:. Both focused regressions are retained and pass after the parser fix.
  • Rust validation: the full Linux Rust suite passed in CI on earlier commit 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.
  • Local affected checks: NEXTEST_TEST_THREADS=3 scripts/affected-tests origin/main passed on unchanged head 47416f00: 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 --check passes. Test selection is unchanged.

CI notes

  • The Linux test failure is an existing race: Stop can interrupt repository preparation after an attempt directory is created, violating the test's assumption at tests/experiments.rs:1398; the exact assertion reproduced 3/3 on clean main (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 .config is 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, and scripts/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

@JacobStephens2
JacobStephens2 merged commit fbaba20 into main Oct 28, 2026
18 checks passed
@JacobStephens2
JacobStephens2 deleted the issue-1521 branch October 28, 2026 16:51
@JacobStephens2 JacobStephens2 mentioned this pull request Oct 28, 2026
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.

affected-tests prints a summary and keeps each check's full output in a log

1 participant