Repository navigation
ci: separate Python test budgets and deduplicate runs (CHE-2461) [squash] - #244
Merged
Merged
Conversation
This was referenced Nov 2, 2026
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.
Status
Draft mitigation for the
Python 3.12push-run timeout. Full CI recovery is not established.x99-claude-opus returned an independent code-only PASS on head
85a63a553b815825146ed07030a95f36f39a8959.CI run
40862414724, attempt 1, failed. The deterministic suite exhausted its own 60-minute job budget at 26% progress.Do not mark ready until CI is green and x99-claude-opus returns an exact-head PASS.
Conditions
Builds and tests stay on X99. Fork guards and the browser-specific runner label stay unchanged.
Both full test passes, the 60% coverage floor, and the B2 ADB/tunnel gate remain required.
No skipped suite, runner reconfiguration, merge, or deployment is included. The follow-up commit
d8c4a4d6raises thepython-teststimeout to 90 minutes per matrix leg (see the last section).Change
main. Keep pull-request and manual runs. Previously every PR update scheduled duplicate workflows with distinct branch/PR concurrency groups.85a63a55, 90 minutes atd8c4a4d6). Run one matrix leg at a time, with fail-fast disabled, to avoid adding runner contention.Python 3.12as an aggregate gate. The gate fails for failure, cancellation, skipped results, or missing results.Evidence
The previous job combined two full-suite passes within one 60-minute timeout on 3-CPU X99 containers.
85a63a55: deterministic cancelled after 60m41s, at 26% progress. Reverse passed. Frontendtest:shell-cleanupfailed. The aggregatePython 3.12gate failed.These logs establish shared-budget exhaustion and duplicate work. They do not prove the cause of every per-test slowdown.
The attempt-4 slowdown and retention timing failure remain validation risks; this PR does not claim they are independently repaired.
The retention module passed locally: 43 tests in 20.69s on Python 3.13.
Failed-candidate follow-up
The candidate removes duplicate events and the shared budget, but the individual deterministic timeout remains unresolved.
The completed-job log endpoints for frontend and reverse returned HTTP 404. The full-run archive also omitted both jobs.
The original frontend assertion output is not available. The frontend-only debug retry passed in attempt 2 on the unchanged head.
The cancelled deterministic result and failed aggregate gate remain. The overall attempt-2 workflow conclusion is cancelled.
The frontend retry does not repair the deterministic timeout or make this PR ready.
Targeted Python 3.12 flow tests passed on the root filesystem, SSD2 and an isolated 3-CPU/8-GB runner-image container.
These probes used the CI dependency files, with Python 3.12.3 rather than CI's Python 3.12.16.
The probes did not reproduce the CI slowdown and do not establish its remaining root cause.
Whole-suite collection with one selected flow test passed in 159.90s; the selected test took 0.10s.
That follow-up added no source change. The later commit
d8c4a4d6raises the timeout to 90 minutes. No runner mutation is made. The earlier PASS covers85a63a55only;d8c4a4d6has no PASS yet.Observed test-first receipt
Parent:
aedadace39389fdfd11176b43eb16c8ef5266e5c.New regression tests were added and run before the workflow implementation changed.
PYTHONDONTWRITEBYTECODE=1 /home/congvc/services/artemis-qa/.venv/bin/python -B -m pytest --noconftest tests/unit/test_workflow_runner_policy.py -q -k 'does_not_duplicate or independent_budgets or required_python_check' -o cache_dir=../evidence/pytest-cacheObserved red on Python 3.13:
The same command after implementation:
Additional observed checks:
git diff --checkpassed.Closes CHE-2461
Follow-up commit d8c4a4d (30 Oct 2026)
CI attempt 1 on 85a63a5: deterministic leg hit its own 60 min cap at 26%. Diagnosis in CHE-2461: suite grew from about 21 to 42 min on 28 to 29 Oct, plus runner contention up to 2.6x. Fix:
python-teststimeout-minutes60 to 90 (applies per matrix leg).uv run pytest tests/unit/test_workflow_runner_policy.pygives2 failed, 10 passed(assert 60 == 90).12 passed..github/tests/test_runner_routing.pyOK. Ruff format and check pass.