Repository navigation
ci: share one compile across microVM release stamp builds - #2433
Merged
Merged
Conversation
rdimitrov
force-pushed
the
claude/faster-microvm-release-test
branch
from
October 20, 2026 11:07
48d5f3a to
654a29d
Compare
The host-stamp contract built mecated five times and mecatui once with -trimpath, then ran go test on cmd/mecatui without it. The mismatched flags forced a second cold compile, and full-DWARF links made each -X relink slow. Use the release job's CGO_ENABLED=0, -trimpath, and -s -w for every build and the go test, so they share one compile and each variant only relinks. Locally on a cold cache this cuts the section from 117 s to 61 s. Co-Authored-By: Claude Opus 5.5 <[email protected]>
rdimitrov
force-pushed
the
claude/faster-microvm-release-test
branch
from
October 20, 2026 11:42
654a29d to
6f536c6
Compare
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
microvm-ci-release_test.shis the CI critical path after #2430: ~470 s of the 504 s "Test GitHub Actions scripts" job.Cause: the host-stamp contract builds
./cmd/mecatedfour times and./cmd/mecatuionce with-trimpath, then runsgo test ./cmd/mecatuiwithout-trimpath. Different flags mean different build-cache keys, so the test recompiled everything a second time. On top of that, each-Xvariant relinks a large binary with full DWARF.Change: every build and the
go testnow use the release job's flags (CGO_ENABLED=0,-trimpath,-ldflags="-s -w …", seerelease.yml"publish-mecatui-host"). They share one compile; later variants only relink, and stripped links are ~4x faster. This also makes the stamped binaries closer to what the release actually ships.No assertion changes: same binaries, same linker symbols, same checks.
Local cold-cache timing of this section (18 cores):
go test ./cmd/mecatuiRunning the links in parallel gave no further gain locally, so the script stays sequential.
Stacked on #2430 (base
claude/festive-mclean-7dc29f); retarget tomainonce that merges.Test plan
sh -non the script; shellcheck output unchanged from basetask lint: only a pre-existing darwin-only gosec hit inenvironment/microvm/launch_ownership_darwin.go(untouched; CI lints on Linux)🤖 Generated with Claude Code