Repository navigation
Name runtime builds with build metadata - #255
Merged
Merged
Conversation
tnkuehne
force-pushed
the
feat/runtime-build-metadata
branch
from
November 20, 2026 21:33
d4f2ae6 to
51c7ab0
Compare
Runtime versions are immutable, so an installation that deploys several builds of one product version needed a product version bump for each one. WIDEFLEET_RUNTIME_BUILD now appends build metadata, for example 0.7.20+5f67a8c3d2e1, and the runtime contract accepts it. Without the variable the build keeps the plain product version, as published releases and the CLI's release downloads expect.
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
widefleet-docs | d4f2ae6 | Nov 20 2026, 09:30 PM |
The upload fixture read the runtime version with [0-9.]+, so a runtime built with WIDEFLEET_RUNTIME_BUILD failed with "Runtime module has no version". It now accepts build metadata, and a test updates to and rolls back to a metadata-bearing runtime.
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.
Runtime versions are immutable (
Runtime versions are immutable; publish a new version). An installation that deploys several builds of one product version therefore needs a new product version for each build, even when the public source is unchanged and only its runtime extension differs.This PR:
WIDEFLEET_RUNTIME_BUILD:packages/app-runtime/build.tsappends the value as build metadata, for example0.7.20+5f67a8c3d2e1, to bothrelease.jsonand the version the runtime reports. The contract validates the result.runtimeRelease.versionaccepts optional+buildmetadata, at most 64 characters. Pre-release suffixes stay rejected.runtime update, which downloadsv<version>releases, and the agent's version checks.Checked consumers of the runtime version:
reportingVersionalready allows+build.runtime_release.versionistext.createdAt, not by semver.Tested locally:
0.7.20.5f67a8c3d2e1it produces0.7.20+5f67a8c3d2e1inrelease.jsonandloader.js.pnpm checkand the runtime release tests pass.

Confidence Score: 5/5
The PR appears safe to merge, with the previous test failure addressed.Summary
Runtime builds can use
WIDEFLEET_RUNTIME_BUILDto add build metadata without changing the product version.Reviews (3) · Last reviewed commit: "Accept build metadata in the Cloudflare ..." · Reviewed by Greptile