Repository navigation
ci: remove duplicate checks and build mecated once - #2468
Merged
Merged
Conversation
task test:race already tests every module with GOWORK=off -mod=readonly, so the microvm-standalone and provider-standalone jobs repeated it. engine-standalone was the only non-race run of the engine allocation guards, which skip under -race; Build now runs that pass instead. Drafts ran the suite without -race but restored the race cache, which a non-race build cannot reuse, so every draft compiled from scratch and finished slower than a warm race run. Drafts now run -race as well. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The SDK, Slack bot, and Studio jobs each ran the full `task build`, compiling every binary and nested module, to get bin/mecated, the only binary their suites spawn. Ten Linux jobs repeated that build. A new mecated job builds it once with `task build:mecated` and uploads it. The consumer jobs download it, and MECATL_PREBUILT_MECATED=1 makes build:mecated use it as is. The suite tasks now build only mecated, which also speeds them up locally. Five consumers no longer need Go at all and drop their Go setup and cache restore. sdk-integration keeps Go for contract generation and its fixture daemon. The macOS jobs still build their own binary. 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
Removes CI jobs that repeat checks the Test job already runs, stops draft PRs from compiling the whole test suite from scratch, and builds
mecatedonce instead of in ten jobs.microvm-standaloneandprovider-standalone.task test:racealready tests every module inGO_MODULESwithGOWORK=off -mod=readonly, includingenvironment/microvm,integration/microvm, and all four provider modules (provider-standalonecovered only two). Every microVM path is also Go-relevant, so the Test job runs whenevermicrovm-standalonewould have. Neither module has race-gated tests. The provider job's git-token warm-up dates from when the repository was private and is no longer needed.engine-standaloneinto Build. It was not fully redundant. Under-race,TestCheckToolArgsDoesNotAllocateandTestDecodeToolArgsAllocatesLikeUnmarshalskip themselves (engine/governanceraceEnabled), so this job was the only place they ran on ready PRs and onmain. Build now runstask test:module MODULE=engine(non-race,GOWORK=off) over its existing non-race cache. That is about 16 seconds warm locally, and saves a runner plus a cache family.-raceon drafts too. Drafts restored the race cache, but a non-race build cannot reuse race-compiled objects, so draft runs compiled everything cold. The last four drafts took 9.8 to 13.3 minutes, while warm race runs take about 8. With the engine allocation guards now in Build, drafts lose no coverage and gain race detection.mecatedonce. Ten Linux jobs (SDK e2e, Deno ×2, browser ×3, Slack bot, Studio, Studio browser ×2) each compiled the daemon. Most ran the fulltask build, compiling all 7 binaries and every nested module, when their suites spawn onlybin/mecated. Recent runs spent 2–3 minutes per job on this. A newmecatedjob builds it once with a newtask build:mecatedand uploads it as an artifact. Consumers download it, andMECATL_PREBUILT_MECATED=1makesbuild:mecateduse it as is. Five consumers drop Go setup and the ~1.1 GBgo-sdkcache restore.sdk-integrationkeeps Go fortask generateand its fixture daemon. The macOS jobs still build natively. The suite tasks now callbuild:mecatedinstead ofbuild, which also makes them faster locally.relevant-changes-workflow_test.sh,microvm-ci-release_test.sh,module-metadata_test.py) to pin the new wiring. The microVM test now asserts that the Taskfile runs both microVM modules withGOWORK=off. A new assertion requires themecatedjob's gate to cover every consumer's gate, so no consumer skips for lack of a binary.Not changed, on purpose
test:module-metadataruns stay. Build's run, aftertask tidy, proves tidy is a no-op. Test's run proves the suite left module files unchanged.api-compatstays as a named signal, as its comment documents.task test:*-standaloneTaskfile tasks stay for local use. Only the CI jobs are removed.Required checks
mainhas no required status checks (its rulesets enforce PR review only), so the removed job names block nothing.Test plan
bash .github/scripts/relevant-changes-workflow_test.sh,relevant-changes_test.sh,macos-relevant-workflow_test.shpython3 .github/scripts/module-metadata_test.pyactionlintonci.ymlmicrovm-ci-release_test.shpasses its new assertions. It then fails on a darwin-only release-defaults check, which fails the same way on unmodifiedHEAD; CI runs it on Linux.task test:module MODULE=engine; both allocation tests run and pass, not skipgo run ./cmd/mecademoshows tool call, permission ask and approval, and resulttask build:mecatedbuilds whenbin/mecatedis absent and skips whenMECATL_PREBUILT_MECATED=1and the binary existsmecatedjob's gate failsrelevant-changes-workflow_test.shtask docstask lint: clean except one gosec G703 finding inenvironment/microvm/launch_ownership_darwin.go. That file is darwin-only and untouched by this PR, and CI lints on Linux, where the module reports 0 issues. The modulestask lintskipped after that failure were linted directly and are clean.task test:raceon macOS: not green, and none of the failures come from this PR, which changes no Go files. 183 packages passed and 27 distinct tests failed across 10 packages. Every one was rerun on the base commitd50481afb:/var→/private/varsymlink, git worktree layout, unix socket paths under/dev/fd, and process handling. Packages:cmd/mecated,cmd/mecatui,internal/app,internal/adapter/forker,internal/adapter/server,internal/executionexecutor,deploy/mecatl-execution-kind.internal/adapter/microvmmanagerTestDefaultOperationsStartScrubsDaemonEnvironmentAndDetachesFromRequestandenvironment/microvmTestRepositoryGuestAuthenticationRejectsCompetingConnectorBeforeDisclosure. Each passes 3 of 3 alone on this branch and passes on base.Test (race)run is the authoritative check.🤖 Generated with Claude Code