Repository navigation
ci: a release bump skips Test's workspace run; fix heap watchdog flake - #437
Merged
Merged
Conversation
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]>
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
affected_tests.pytreated the rootCargo.tomlversion bump as a workspace change, so Test (linux) rancargo test --workspaceat 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] versionchanged. Any other root edit (or--pathswith no base) still runs the workspace.heap::tests::watchdog_keeps_checking_until_abortedused real 5 ms / 30 ms sleeps. Under load both fired in one tick, the task was aborted before its firstcheck, and the whycodes-server 100% floor failed at 1518/1519 (push run of perf(tools): drop the column padding from read line numbers #424). Nowstart_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~1on the v0.6.36 bump → "no rust tests selected"cargo llvm-cov -p whycodes-server→ 1519/1519 lines-p whycodes-server, panic / swallowed-error / secrets budgets🤖 Generated with Claude Code