Repository navigation
feat(deploy): the consumer deploys the core CI built instead of compiling it (card 50ca737e) - #4702
Merged
Merged
Conversation
…builds on root Cargo changes (card 50ca737e) Slice 2 of 30a8b3ac, part 1: the verdicts, in continuum-cli-lifecycle so they run everywhere (the same split as deploy_provenance). - platform_key / release_tag / manifest_url: where this node's build lives (canary-<sha12>/continuum-core-<platform>.json). - manifest_verdict: accept only THE build for this tip on this node, with the same full sha, platform and feature set (another GPU flavor's build is another program), a real sha256 and all four sibling bins. - touches_build_inputs + BUILD_INPUTS: a tip that changes no build input is not a deploy, which saves CI's build and every node's rebuild (found on the first publish: docs-only tips have no artifact, and nodes recompiled for them). - when_artifact_missing: wait while CI can still deliver (180 min budget against measured 58/73 min cold builds), then compile; a platform with no CI leg compiles at once. Fix in core-binaries.yml: push.paths lacked the ROOT Cargo.toml, Cargo.lock and rust-toolchain.toml, so a dependency bump built no artifact. A test now pins the workflow's paths to BUILD_INPUTS (mutation-checked: dropping Cargo.lock fails it). Tests: 4 pass on macOS (cargo test -p continuum-cli-lifecycle --lib). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…ling it (card 50ca737e) Slice 2 of 30a8b3ac, part 2: the IO, in the deploy consumer. - ci_core_for: on a platform CI builds (macOS arm64 and x86_64 today), fetch canary-<sha12>/continuum-core-<platform>.json; on 404, WAIT in this detached consumer (60 s tokio interval) while CI is inside its budget, because the actuator only re-launches a stranded request after 1.5x the last deploy time; then compile and say why. Other platforms compile at once. - fetch_ci_core: manifest_verdict against this node's select_core_features output (the one mapping CI builds with), then stream the archive to ~/.continuum/cache/artifacts/<sha12> while hashing; refuse a sha256 mismatch or a non-plain archive name; extract with tar. - install_ci_companions: what the warm build did besides the core. The CLI on PATH follows the core (install_cli::copy_with_retry), and the stamp-gated install-llama-server.sh rebuilds the engine only when the fork moved. - reboot gets prebuilt + stage_prebuilt: launchd execs only its slot (PreparedCoreService::prepare refuses any other path), so the downloaded core is staged after the stop, exactly like a warm build's artifact, and verified by the existing #194 sha check. - The cache is registered: TrackedDir `core-artifacts`, with an eviction decision (bounded by its writer to the newest three; re-downloadable). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
Contributor
Author
|
Local verification on the IntelMac (Darwin x86_64), head 4dc76f4:
|
…kout through the CI wait (Fable's #4702 review) The CI wait can run for hours, and only reboot wrote the claim, after it, so nothing marked the deploy in flight: the actuator's stranded re-launch (1.5x the last deploy time; minutes on the M5) would start a second consumer that checked the tree out under the first and rebooted alongside it. - Take DeployClaimGuard at the top of the attempt, before fetch/checkout; reboot re-takes the same claim for this pid and releases it at handoff. - Each wait tick renews the claim with working=true: waiting on CI is progress, so the claim never reads Stalled for a healthy wait. Verified: cargo check --bin continuum (IntelMac features) clean; a deliberate type error injected at the new line is caught (the check sees this code). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
joelteply
added a commit
that referenced
this pull request
Oct 4, 2026
…verdict (#4706) * fix(deploy): core-binaries is an artifact publisher, never the tip's verdict Since #4691 every canary push runs core-binaries.yml (44-73 min per macOS leg, cancel-in- progress on the branch), and the tracker counted its check-runs in the tip's verdict. On 2026-10-04 the M5 sat at ChecksPending from 01:36Z to 04:00Z across five merges and deployed nothing: no tip was green before the next merge cancelled its run. The same verdict holds every node that reads it. core-binaries.yml joins NON_DEPLOY_WORKFLOW_PATHS beside promote-main: it publishes the tip's prebuilt core and judges no code; the deploy consumer waits for that artifact on its own budget (#4702). A tip whose own suites are green is deployable the moment they are. Test pins: in-flight = green, cancelled = green, core-binaries as the only suite = unknown. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(promote-main): core-binaries is excluded from the promote verdict too (Cormac on #4706) promote-main.yml carries its own copy of the verdict rule and treats cancelled as a hard fail; a core-binaries run superseded by the next push would have blocked the daily canary -> main promotion the same way it held the deploy tracker. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --------- Co-authored-by: Claude Fable 5.1 <[email protected]>
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.
Slice 2 of 30a8b3ac, part 2: the IO, in the deploy consumer.
canary-/continuum-core-.json; on 404, WAIT in this
detached consumer (60 s tokio interval) while CI is inside its budget,
because the actuator only re-launches a stranded request after 1.5x the last
deploy time; then compile and say why. Other platforms compile at once.
output (the one mapping CI builds with), then stream the archive to
~/.continuum/cache/artifacts/ while hashing; refuse a sha256
mismatch or a non-plain archive name; extract with tar.
PATH follows the core (install_cli::copy_with_retry), and the stamp-gated
install-llama-server.sh rebuilds the engine only when the fork moved.
(PreparedCoreService::prepare refuses any other path), so the downloaded
core is staged after the stop, exactly like a warm build's artifact, and
verified by the existing Implement GAN-style Adversarial Training Loop #194 sha check.
core-artifacts, with an evictiondecision (bounded by its writer to the newest three; re-downloadable).
Co-Authored-By: Claude Opus 5.5 (1M context) [email protected]
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE