Repository navigation
ci: run analysis and Studio work in parallel jobs - #2430
Merged
Merged
Conversation
Analysis and Mecatl Studio were the two longest CI jobs because each ran independent work back to back. Split them so the pieces run side by side: - Analysis keeps the root golangci-lint and workflow checks. The nested-module lint passes move to "Analysis (module lint)", and the action-script tests move to "Test GitHub Actions scripts". microvm-ci-release_test.sh takes ~220s of that step: it builds mecated and mecatui several times with -trimpath and release linker stamps. - Studio keeps install, checks, Vitest, and the integration test. The Playwright journeys run in their own job, one runner per project (desktop and mobile), and the image build, validation, and scan run in "Mecatl Studio image". `task studio:browser` now forwards CLI args to Playwright. - Lint now needs and checks every analysis job. A new "Mecatl Studio (gate)" checks every Studio job the same way, so a job skipped by mistake cannot pass silently. The workflow contract test pins both. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 20, 2026
The separate studio-image job repeated setup-node, setup-go, and the mecated build that the Studio integration task already does. Merged, the Studio job still finishes under Test (race), so wall-clock is unchanged and CI uses one runner fewer. Studio's gate now checks studio and studio-browser. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Merged
2 tasks
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
Cuts CI wall-clock from 14.4 min to 8.7 min by running independent work in parallel jobs instead of in sequence inside the two longest jobs.
chromium-desktop,chromium-mobile). The suite runs on a single worker, so sharding by project halves its time.mecatedbuild for no wall-clock gain.task studio:browsernow forwards CLI args to Playwright.Lintnow needs every analysis job and checks each result exactly:skippedfor docs-only and non-Go changes,successotherwise. A new Mecatl Studio (gate) does the same for the two Studio jobs. Studio had no aggregator before.relevant-changes-workflow_test.shpins both gates and the new jobs'if:conditions; I checked by mutation that dropping a job from either gate fails the test.Which action-script test was slow
microvm-ci-release_test.shaccounts for almost all of the old step's time. The other three scripts take about 2 s combined. It needs Go: it buildsmecatedfive times andmecatuionce with-trimpathand release linker stamps, and runs onego test.-trimpathchanges Go's build-cache keys, so the first build recompiles the whole dependency graph.Inside Analysis it took ~220 s, because the root lint had already warmed the build cache. In its own job it takes ~470 s and is now the critical path (504 s). It still finishes inside the 8-9 min target. Making that test cheaper is the next lever; see follow-ups.
Timings
Both runs were dispatched at the same time with
workflow_dispatch, which runs every job.Note: on recent PR runs
Test (race)sometimes takes 19-23 min (for example runs 39345392075 and 39311925011). When that happens it, not Analysis, is the critical path, and this PR does not change it.After folding the image job back into Studio, a PR run on 204e04d (run) passed with a 1034 s wall clock, because
Test (race)took 1022 s there. Without that outlier, the longest jobs were Test GitHub Actions scripts (599 s) and Mecatl Studio (561 s; integration test 256 s, image build and scan 143 s).Wire API compatibility
Not applicable: CI configuration only.
Test plan
relevant-changes-workflow_test.sh,docs-only-workflow_test.sh,macos-relevant-workflow_test.sh, classifier tests,check-action-templates.shGOOS=linux task lint. On macOS, plaintask lintfails on a gosec G703 finding inenvironment/microvm/launch_ownership_darwin.go:754. That finding already exists onmain, and CI never compiles the darwin file.Lint,Mecatl Studio (gate), andUser docs (gate)Follow-ups
microvm-ci-release_test.sh: share one-trimpathcompile across its builds, or warm the cache first.mainrequire no status checks. If any of the job names above are meant to be required, point the requirement atLintandMecatl Studio (gate).🤖 Generated with Claude Code