You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
impl(fleet): derived versioning for individually deployed apps (follow-on to #5790 rulings) #8566
Implementation follow-on for the design issue #5790 (versioning for a monorepo whose apps deploy individually). The design and policy questions are settled: triage findings are recorded on #5790 (2026-11-05, task 10193) and Drew ruled on 2026-11-06, with a refinement the same day. This issue is the build step the triage held back until those rulings landed.
Ruled policy (from #5790, Drew 2026-11-06, as refined):
Tag prefix: the short app name for ALL apps, one naming policy. App names used in tags and deploys must be unique across apps; if a short name would collide, fix the app name, not the policy.
Builds deployed from main without a tagged release are prereleases (alpha/beta-style prerelease versioning); deploying one does not make it a release. Releases are tag builds only.
First tags: each app starts at 0.1.0. Stay in 0.x: minor for feature releases, patch for fixes, no major-version increments until a separate 1.0 decision.
Repo tags: cut repo/v.. at every release point (not every commit, not every deploy). A repo prerelease tag on deploys from main is also fine; it does not make the deploy a release.
Current state (triage evidence, 2026-11-05, main 04f7869): fleet packages/workspaces still carry hard-coded 0.1.0 versions and binaries embed only FLEET_SOURCE_REV, so no derivation exists yet.
What landed: derived per-app versioning for pkgs/fleet per the design: versioning for a monorepo whose apps deploy individually — derived versions, per-app tags + repo date tag, survey of schemes (WS-H) #5790 rulings — pure derivation module (derived_version.rs, shared with build.rs by path): nearest fleet/vX.Y.Z tag exactly → X.Y.Z; N commits after on main → X.Y.(Z+1)-dev.N+g<hash>; feature branch dot-joins its slug into the one SemVer build-metadata section; no tag → 0.1.0-dev fallback family. build.rs bakes it via git describe on the fleet/v* match (with a validated-tag scan behind describe, and git refs registered as rerun inputs); $FLEET_DERIVED_VERSION is the packaged-build channel (nix: new derivedVersion package argument, else a rev-derived 0.1.0-dev+g<rev7>). All version surfaces (fleet version, capabilities JSON, root and queue --version) report Derived version: beside the source rev. README documents the tag/release procedure.
Activity
developing-today commentedon Nov 11, 2026
CODE-2556
dezren39 commentedon Nov 11, 2026
🤖 Agent note · picked up
Merge pull request #8630 from developing-today/queue/14886-8566-deriv…
dezren39 commentedon Nov 11, 2026
🤖 Agent note · done — fixed_merged (task 14886, lane code-d)
derived_version.rs, shared with build.rs by path): nearestfleet/vX.Y.Ztag exactly →X.Y.Z; N commits after on main →X.Y.(Z+1)-dev.N+g<hash>; feature branch dot-joins its slug into the one SemVer build-metadata section; no tag →0.1.0-devfallback family. build.rs bakes it via git describe on thefleet/v*match (with a validated-tag scan behind describe, and git refs registered as rerun inputs);$FLEET_DERIVED_VERSIONis the packaged-build channel (nix: newderivedVersionpackage argument, else a rev-derived0.1.0-dev+g<rev7>). All version surfaces (fleet version,capabilitiesJSON, root and queue--version) reportDerived version:beside the source rev. README documents the tag/release procedure.cargo test -p fleet --locked29+1+7 passed (derivation unit tests' oracle is the design: versioning for a monorepo whose apps deploy individually — derived versions, per-app tags + repo date tag, survey of schemes (WS-H) #5790 §1 policy). Live tag scenario verified in the worktree: malformedfleet/v01.2.3at HEAD over validfleet/v0.1.0at HEAD~1 →0.1.1-dev.1+...; tag at HEAD → clean0.1.0on a source-unmodified rebuild; empty commit → distance/hash refresh; tags removed → fallback restored.+, nix wiring, malformed-tag hiding, tag rerun invalidation), round 2: 1 P2 (branch-ref watch), all fixed and dispositioned on-thread; round 3 clean (no findings).+, which is not parseable SemVer — the implementation dot-joins the metadata identifiers instead (noted in the module docs + README); the policy semantics are unchanged.Derived version:/build.derived_version.