Skip to content

ci: a release bump skips Test's workspace run; fix heap watchdog flake - #437

Merged
mrnasil merged 1 commit into
mainfrom
ci/release-bump-and-heap-flake
Nov 9, 2026
Merged

mrnasil merged 1 commit into
mainfrom
ci/release-bump-and-heap-flake

Conversation

@mrnasil

@mrnasil mrnasil commented Nov 9, 2026

Copy link
Copy Markdown
Member

Summary

  • Release PRs: affected_tests.py treated the root Cargo.toml version bump as a workspace change, so Test (linux) ran cargo test --workspace at one rustc: 26–32 min on v0.6.34 / v0.6.36 while Coverage ran the same tests in ~6 min. The selector now diffs the root manifest against the base and selects nothing when only [workspace.package] version changed. Any other root edit (or --paths with no base) still runs the workspace.
  • Flake: heap::tests::watchdog_keeps_checking_until_aborted used real 5 ms / 30 ms sleeps. Under load both fired in one tick, the task was aborted before its first check, and the whycodes-server 100% floor failed at 1518/1519 (push run of perf(tools): drop the column padding from read line numbers #424). Now start_paused = true, so the order is deterministic.

Test plan

  • python scripts/test_affected_tests.py — 17 OK (new case for the version-only bump)
  • python scripts/affected_tests.py --base 191c4c4d~1 on the v0.6.36 bump → "no rust tests selected"
  • cargo llvm-cov -p whycodes-server → 1519/1519 lines
  • fmt, clippy -p whycodes-server, panic / swallowed-error / secrets budgets

🤖 Generated with Claude Code

Release PRs only bump [workspace.package] version, which made
affected_tests.py select `cargo test --workspace`. At CARGO_BUILD_JOBS=1
that took 26-32 minutes (v0.6.34, v0.6.36) while Coverage ran the same
tests in ~6. The selector now compares the root manifest against the base
and skips it when only the workspace version changed; any other root edit
still runs the workspace.

watchdog_keeps_checking_until_aborted used real 5ms/30ms sleeps. On a
loaded runner both expired in one tick, the task was aborted before its
first check, and whycodes-server's 100% floor failed at 1518/1519
(#424 push). A paused clock makes the order deterministic.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@mrnasil
mrnasil merged commit 0dd56cd into main Nov 9, 2026
7 checks passed
@mrnasil
mrnasil deleted the ci/release-bump-and-heap-flake branch November 9, 2026 10:50
@mrnasil mrnasil mentioned this pull request Nov 9, 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.

1 participant