Repository navigation
feat(edge): say which build of the edge answered, and carry the edge in the attested deploy bundle - #294
Merged
Conversation
…in the attested deploy bundle The first part of #195's stage E3 (deploying the edge, ADR-0111). - Every answer of the edge, its own and a forwarded one, carries x-thrust-edge-version: its version's tag (the release's commit), else its id, by thrust's x-thrust-version rule. A WebSocket upgrade passes as it came, and an upstream cannot set the header. The template declares [version_metadata], and check-edge-config.sh requires exactly one. - build-bundle builds the edge with worker-build and puts it in deploy-bundle.tar.gz under edge/build/. release.yml therefore builds and attests it with the release, and a release candidate's bundle proves it builds. - The deploy dry run renders the edge's template with made-up values and runs wrangler deploy --dry-run on it, against that build. Refs: #195 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Merged
aRustyDev
added a commit
that referenced
this pull request
Nov 18, 2026
…o main) Refs: #195 Co-Authored-By: Claude Opus 5.5 <[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.
The first part of deploying the edge Worker (#195 stage E3, ADR-0111): the edge says which build of it answered, and the
release's attested bundle carries it. Nothing deploys the edge yet.
What changes
The edge's version on every answer.
x-thrust-edge-version, its own and the ones it forwards fromproduction or a target. The value is its version's tag (the release's commit), else the version id, by thrust's
x-thrust-versionrule.forward::edge_version_labelandforward::stamp_edge_version, tested natively; theruntime reads the version metadata and applies it.
x-thrust-versionstays production's or the target's.
The template declares
[version_metadata], andscripts/check-edge-config.shnow requires exactly one, with two newself-test fixtures (none, two).
The bundle carries the edge.
build-bundlebuildscrates/edgewithworker-build --releaseand puts it underedge/build/.release.ymlbuilds and attests the edge with each release, under the same attestation as thrust, and a releasecandidate's bundle proves the edge builds.
The deploy dry run renders the edge's template with made-up values and lets
wrangler deploy --dry-runcheck it againstthat build.
Docs:
cicd.md's bundle rows;Tests
cargo nextest run -p thrust-edge: 228 passed, including the new tests:prop_the_edge_version_is_the_edges_own: an upstream's header in any case is dropped, the others stay in order, and theedge's label comes once, last;
prop_the_label_is_the_tag_else_the_id;cargo clippy -p thrust-edgeis clean for wasm32 and natively.check-edge-config.shpasses on the template. Its self-test refuses a template without[version_metadata]and onewith two.
The dry run, locally, with wrangler 4.151.2 on the bundle's build:
env.CF_VERSION_METADATAamong the bindings;mainthat is not there fails.Also passing: every
depsstep (actionlint run locally, since its step needs$RUNNER_TEMP) and all 46ci-scriptscommands.
Not verified
The edge build in CI. This pull request's
releasedry run builds the bundle, and itsdeploydry run renders theedge's config, so CI shows both.
The header on a live edge: no edge is deployed.
Refs #195
🤖 Generated with Claude Code