perf(ci): cut E2E smoke wall-clock from ~8min to ~3min - #347
Closed
Million-mo wants to merge 1 commit into
Closed
Conversation
The single L4a e2e-smoke job collected 172 tests and ran them serially, taking 7m44s. Split it by server into three parallel jobs (acp / opencode / misc), each with its own subprocess-server cache instance, so wall-clock is now ~the slowest bucket instead of the serial sum. Also cap the known-hanging test_post_init at a 10s timeout so its xfail no longer burns the full 60s job-level timeout on every PR. Add a concurrency cancel-in-progress so a new push to a PR cancels the superseded in-flight run instead of occupying further runner queues.
Collaborator
Author
|
Closing fork-based PR; pushing to origin instead so OpenCode code review runs on the trunk branch. |
This was referenced Aug 22, 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.
Summary
The single L4a
e2e-smokejob ran 172 tests serially and took 7m44s on PR #346(see run 30810232095).
This PR cuts that to ~3min wall-clock with zero coverage loss.
Changes
Split
e2e-smokeinto 3 parallel jobs —e2e-acp,e2e-opencode,e2e-miscsubprocess_servercache instance.-n autois not viable; splittingby protocol gives parallel runners without touching xdist/cache semantics.
max(acp, opencode, misc)≈ ~3min vs the 7m44s serial sum.Cap known-hanging
test_post_initat 10s (tests/e2e/test_opencode_misc.py)xfailed /known_bug, but it burned the full 60s job-level--timeoutonevery PR just to reach the xfail.
@pytest.mark.timeout(10)saves 50s/PR.Add
concurrency: cancel-in-progressthat was delaying newly-queued e2e jobs.
Expected impact
test_post_initSlow L4 tests remain covered by the existing
e2e-nightly.yml. Run history:no coverage or test-selection semantics changed — only job partitioning and
the known-bug timeout, plus
reportaggregation kept in sync.Verification
yaml.safe_loadvalid; needs-graph has no dangling refsruff check+ruff format --checkpass on the modified test filepytest --collect-only -m e2e tests/e2e/test_opencode_misc.pycollectstest_post_init