Skip to content

ci(acceptance): Start devservices before the node toolchain - #131841

Merged
joshuarli merged 1 commit into
masterfrom
ci/acceptance-setup-faster
Nov 19, 2026
Merged

joshuarli merged 1 commit into
masterfrom
ci/acceptance-setup-faster

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Waiting for devservices is the critical path of each acceptance shard's setup: webpack finishes first and then waits for it. devservices started inside the background "Setup sentry env" step. That step can only start after setup-node-toolchain (see #127566), so devservices started about 15s into the job.

devservices up needs only uv and the checkout. This PR:

  • starts it with devservices-bg.py start right after the checkout, about 7s into the job
  • makes devservices-bg.py start do nothing when an earlier step already started it, so setup-sentry just waits for it
  • sets the mode once, as DEVSERVICES_MODE

Impact: setup (job start to the pytest step) drops from about 99s to 93s at p50, and the max from 113s to 100s. The image pulls now overlap the node toolchain, which makes the toolchain about 8s slower, so the net gain is about 6s per shard.

Left out:

  • Caching the per-worker ClickHouse bootstrap. It ends only about 8s after devservices is healthy, so a cache would not save more than restoring it costs.
  • Tuning pytest startup (about 30s). It isn't instrumented closely enough to tell which part to cut.

Refs DI-2885

via @joshuarli, michael.

--

View Session [Sentry]

Pulling and starting devservices is the critical path of each shard's setup. It started only after setup-node-toolchain and the first steps of setup-sentry, about 12s into the job. It needs only uv and the checkout, so start it right after the checkout. devservices-bg.py start now does nothing when an earlier step already started it, so setup-sentry just waits for it.

Refs DI-2885

Co-Authored-By: Joshua Li <[email protected]>
@linear-code

linear-code Bot commented Nov 19, 2026

Copy link
Copy Markdown

DI-2885

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 19, 2026
@joshuarli
joshuarli marked this pull request as ready for review November 19, 2026 18:31
@joshuarli
joshuarli requested a review from a team as a code owner November 19, 2026 18:31
@sentry-junior
sentry-junior Bot requested a review from joshuarli November 19, 2026 18:31
@joshuarli
joshuarli merged commit a6a57b5 into master Nov 19, 2026
77 checks passed
@joshuarli
joshuarli deleted the ci/acceptance-setup-faster branch November 19, 2026 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant