Speed up native CI and the release build - #407
Merged
Merged
Conversation
added 2 commits
October 3, 2026 12:39
The companion is a pure function of packages/mcode-harness, its build script and the platform; rebuilding it took about 50 seconds per Unix native job.
The Codex image used debian with Debian's nodejs and npm, a 44 second package layer that the combined Runtime image discards. It now uses the same node base and package layer as the Claude and MiniMax images, so one build reuses that layer. The recovery artifact is uploaded only when publication fails or a manual build does not publish.
added 2 commits
October 3, 2026 13:03
The E2B helper manifest no longer records the source revision, so the helper is a pure function of its inputs and is cached by their hash. Composite actions own the companion and E2B cache keys, and a build-only cache-warm workflow saves them and the pnpm store on main, the only ref whose caches every pull request and release tag can restore.
Listing tracked lockfiles keeps the warm in step with new packages and avoids naming the example application.
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
.github/actions/mcode-companion).source_revision, soscripts/build-e2b-provider.shcaches each build under~/.oac/cache/e2b-provider/<input hash>(miss 33s, hit 0.1s locally, byte-identical output)..github/actions/e2b-providerrestores it in API acceptance and release.cache-warmworkflow (main pushes and manual): builds the companion on Linux and macOS, the E2B helper and every pnpm lockfile's store, and runs no tests. GitHub only lets PRs and tags restore caches saved on their own ref or on main, andchecknever runs on main, so these caches were previously never shared.Test plan
python3 scripts/ci_plan_test.py,make check-ci, actionlintpnpm fetchfor all six lockfiles in node 22 / pnpm 10.30.3