[pr-tests][startup] Keep warm fixture progress on its own line in serial tests #463

Manually merged
TrustNo1 merged 1 commit from superhero-520/Darner:fix-serial-warm-stderr-fixture into main 2026-12-05 04:51:42 +00:00
Contributor

Contributor role (optional)

superhero-520

What it changes

On Windows with RUST_TEST_THREADS=1, libtest can print its test name and the fixture's first at 42 record on the same line. The warm worker reader then misses the progress record and the test reports the wrong exit classification. This change starts the first progress record on a fresh line in the test fixture. The production worker and classifier are unchanged.

How it was tested

The isolated classification test failed 3/3 times on clean Windows d91d8e4d with RUST_TEST_THREADS=1. The child printed test warm::tests::warm_stderr_fixture ... at 42 as a single line, and the classifier returned Again instead of Blame(0). The same test passed with two threads.

On 3665e3b5313a41c0569e4109d84281268484dc52, classification, draining a large stderr stream, and watchdog cancellation all passed with one and two threads (six runs). Captured child stdout shows at 42 on its own line in the active, success and flood cases under both settings.

RUST_TEST_THREADS=1 cargo test -p darner --bin darner --locked passed all 192 active tests. The interactive preload window demo was ignored. Both default and all-features workspace Clippy checks passed with --all-targets --locked -- -D warnings. cargo xtask policy passed for 564 files. The full workspace test suite was not run on this commit.

Checklist

  • One test-only change based on main. Gameplay is outside the changed path.
  • The diff contains text source only and follows the asset policy.
  • Depends on: none.

Checked for overlap

  • Checked open and closed issues and PRs. Open PRs #165, #234, #270, #365, #450 and #458 also touch apps/darner/src/warm.rs. None changes this fixture's output. Merged #125 introduced the stderr capture test.

AI-assisted contribution.

## Contributor role (optional) superhero-520 ## What it changes On Windows with `RUST_TEST_THREADS=1`, libtest can print its test name and the fixture's first `at 42` record on the same line. The warm worker reader then misses the progress record and the test reports the wrong exit classification. This change starts the first progress record on a fresh line in the test fixture. The production worker and classifier are unchanged. ## How it was tested The isolated classification test failed 3/3 times on clean Windows `d91d8e4d` with `RUST_TEST_THREADS=1`. The child printed `test warm::tests::warm_stderr_fixture ... at 42` as a single line, and the classifier returned `Again` instead of `Blame(0)`. The same test passed with two threads. On `3665e3b5313a41c0569e4109d84281268484dc52`, classification, draining a large stderr stream, and watchdog cancellation all passed with one and two threads (six runs). Captured child stdout shows `at 42` on its own line in the active, success and flood cases under both settings. `RUST_TEST_THREADS=1 cargo test -p darner --bin darner --locked` passed all 192 active tests. The interactive preload window demo was ignored. Both default and all-features workspace Clippy checks passed with `--all-targets --locked -- -D warnings`. `cargo xtask policy` passed for 564 files. The full workspace test suite was not run on this commit. ## Checklist - [x] One test-only change based on `main`. Gameplay is outside the changed path. - [x] The diff contains text source only and follows the asset policy. - [x] Depends on: none. ## Checked for overlap - [x] Checked open and closed issues and PRs. Open PRs #165, #234, #270, #365, #450 and #458 also touch `apps/darner/src/warm.rs`. None changes this fixture's output. Merged #125 introduced the stderr capture test. AI-assisted contribution.
superhero-520 changed title from WIP: [pr-tests][startup] Keep warm fixture progress on its own line in serial tests to [pr-tests][startup] Keep warm fixture progress on its own line in serial tests 2026-12-05 00:35:40 +00:00
TrustNo1 manually merged commit c60ec0f546 into main 2026-12-05 04:51:42 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
TrustNo1/Darner!463
No description provided.