Repository navigation
ci(desktop): speed up release-intent tests and run them in their own job - #2570
Merged
Merged
Conversation
Windows Python 3.12 CI spent most of the 45-minute engine-test budget in tests/test_release_intent.py recopying lockfiles and starting a fresh git repo for every test. Build that starter repository once per session and copy it into each test. Run the file in its own job with the same OS/Python matrix so a slow runner cannot starve the rest of the engine suite. No tests are removed, skipped, or weakened, and the job timeout is unchanged.
Member
Author
Independent adversarial review: APPROVEFrom: Gemini VERDICT: APPROVE Independent cross-vendor adversarial review of
|
Member
Author
|
Re-reviewed at head APPROVE (Gemini) at head |
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.
Why
On Packages 45089464389,
windows-latestPython 3.12 hit the 45-minute desktop engine-test timeout. The logs were not a hang:test_release_intent.pyspent ~40 minutes recopyinguv.lock/package-lock.json/Cargo.lockand runninggit initplus a dozen config/commit processes for every test (~1.9× slower on py3.12 than py3.11). The 300sSIGALRMdeadline is a no-op on Windows.This change does not delete or skip tests, weaken assertions, or raise the 45-minute timeout.
What
git init, hermetic config, initial commit) once per session and copy it into each test'stmp_path.tests/test_release_intent.pyin its owndesktop-test.ymljob with the same OS/Python matrix as the engine tests, and--ignoreit in the engine-test job, so a slow Windows runner cannot starve the rest of the suite.Test plan
desktop test / Release intent tests (ubuntu-latest, py3.12)andPython engine tests (ubuntu-latest, py3.12)both pass.test_release_intent.py.