Repository navigation
test(eval): stage the eval fixtures once per file, not six times - #4759
Conversation
The Windows unit job timed out on test_restaging_replaces_built_repositories: one staging takes about 28 s there now that it builds the tier repositories, and that test staged twice, landing on the 60 s per-test limit. The read-only checks share one staging and a single re-staging test covers both read-only files and built repositories.
|
Verdict: Approve This stops the Windows unit job from timing out in the eval-staging tests. The file used to build the eval fixtures six times; now it builds them once and shares the result, and one test builds them a second time to check that re-staging replaces the old copy. The tests check the same things as before, and the re-staging check is now a little stronger. It is safe to merge as-is. One minor point: running the re-staging test on its own on Windows would still be close to the 60-second limit. See the details below. Real-world evidenceN/A: this PR only changes tests. No evidence bundle was produced, so the verdict rests on static review. The open Test plan item (Windows unit job green with no timeout in this file) is the real proof, so check it before merging. 🔍 Technical detailsIssues found 🟢 Run on its own, the re-staging test still pays for two stagings ( Notes
Strengths
|
The required Windows unit job times out on
test_restaging_replaces_built_repositories, which turns it red on PRs that have nothing to do with it (#4460's run is the first; any PR updated onto main since #4472 can hit it). Staging the eval fixtures takes about 28 seconds on the Windows runner now that it builds the tier repositories, and that test staged twice, landing on the 60-second per-test limit; its neighbour passed at 55 seconds.The file staged the whole environment six times. It now stages once for the read-only checks and once more for a single re-staging test that covers both read-only files and built repositories, so no test comes near the limit and the file is about two minutes faster on Windows.
Test plan
pytest tests/unit/eval/test_stage_eval_env.pypasses (7 tests; the POSIX-only fake-ghtest still runs)Unit Tests (Windows, py3.12)passes on this PR without a timeout in this file