fix(qa): stagger isolated worker startup#99294
Merged
Merged
Conversation
This was referenced Jul 3, 2026
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 3, 2026
sheyanmin
pushed a commit
to sheyanmin/openclaw
that referenced
this pull request
Jul 8, 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.
What Problem This Solves
The
smoke-ciQA profile starts isolated flow workers only 500 ms apart. At concurrency 8, this clusters gateway startup and the delayed provider-auth worker prewarms, starving foreground gateway and channel work on the 4-vCPU CI runner.The resulting failures present as unrelated timeouts, including
skills.status,sessions.create, and native Telegram command processing. The gateway processes remain alive and are terminated only after the QA harness times out.Why This Change Was Made
Restore the isolated-flow startup stagger to 1.5 seconds, matching the normal QA suite worker stagger. This spreads the initial eight gateway starts over 10.5 seconds instead of 3.5 seconds, reducing the startup/prewarm thundering herd without reducing scenario concurrency.
The 500 ms isolated override was introduced in
438f208a76while optimizing unified QA suite runtime. Recent failures showed provider-auth prewarms taking 9–10.7 seconds with maximum event-loop stalls of 1.6–2.3 seconds.User Impact
No product runtime behavior changes. QA smoke runs retain concurrency 8 and should avoid transient gateway/channel timeouts. The maximum scheduling delay for the initial eight-worker batch increases by approximately seven seconds and may be offset by reduced startup contention.
Evidence
sessions.createand native-command timeouts under the same 500 ms startup pattern.pnpm test extensions/qa-lab/src/suite-planning.test.ts extensions/qa-lab/src/suite-launch.runtime.test.ts— 43 tests passed.pnpm check— passed, including typecheck, lint, policy guards, and import-cycle checks.