Repository navigation
fix(version): show the base version and keep the build identity - #1292
Merged
Merged
Conversation
A stable release is the last release candidate's image promoted byte for byte, so the 1.6.1 image runs with DD_VERSION=1.6.1-rc.15 and reported that as its version everywhere a user reads it. Add deriveVersionIdentity(), which splits the configured version into the base version (prerelease suffix removed) and the full build identity. Values that aren't a semver with a prerelease suffix, such as local or ci, pass through unchanged for both. - GET /api/v1/app keeps version as the base version and adds build - the agent dd:ack event and GET /api/v1/agents carry both - the startup log and banner read "version 1.6.1 (build 1.6.1-rc.15)" - Home Assistant sw_version and the OpenAPI document version use the base version - the debug dump adds drydockBuild next to drydockVersion The stored app version, the store migration comparison and the Portwing welcome frame keep the full build identity. Refs: #1284
The About dialog, Config > General and the agent detail panel now show the build only when it differs from the version, so a stable release reads v1.6.1 with build 1.6.1-rc.15 next to it instead of showing the release candidate as the version. An older server or agent that reports no build shows what it did before. Adds the three new strings to all 17 locales, as the key parity gate requires. Refs: #1284
Document the build field on the app and agent API pages, add a FAQ entry, and say in the DD_VERSION reference how a prerelease value is shown. The examples that showed a release candidate as the version now show the base version with the candidate as the build, and the release docs identity test expects that shape, including at the GA cut. The DD_VERSION row no longer says the value is used by self-update checks. Nothing in the self-update path reads it. Adds the changelog entry and asks for the build in the bug report form. Refs: #1284
…dvisories Both advisories list the latest release as affected, so there is no version to move to. Both packages are dev-only (nodemon and artillery) and never ship in the image. Recheck by 2026-11-02.
An empty version string used to overwrite the stored one through a branch no test reached. Fall back to the stored version for any ack without a usable version or build.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 25 minutes. View limit detailsLimit details: You’ve used all 2 included reviews currently available. Review configuration: ⚙️ Run configuration
⛔ Files ignored due to path filters (1)
📒 Files selected for processing (90)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
CodeQL js/clear-text-logging flags values that come from process.env when they reach a log line, and the version comes from DD_VERSION. It isn't a secret, but the alert is high severity, so the startup line goes back to `drydock is starting`. The banner (TTY only), GET /api/v1/app and the debug dump still carry both the version and the build. Refs: #1284
scttbnsn
marked this pull request as ready for review
October 3, 2026 13:00
scttbnsn
requested review from
ALARGECOMPANY and
biggest-littlest
as code owners
October 3, 2026 13:00
…line The dir scan's ignore entry for this placeholder pins a line number, and the base branch's ignore file is the one CI uses, so any edit above it re-flags 'Bearer YOUR_TOKEN'. An inline allow keeps it stable.
This branch was successfully deployed
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.
Held for the next 1.7 release candidate. Don't merge on its own. A stable release is the promoted rc image, so this only reaches 1.7.0 users if it's in the candidate that gets promoted. If a bug fix needs an rc.18 during the rc.17 soak, this rides along. If rc.17 soaks clean, it goes out in 1.7.1 and 1.8 instead.
The problem: v1.6.1 is the rc.15 image byte for byte, so it reports
1.6.1-rc.15in the UI, the API and Home Assistant. Users on a stable release see a release-candidate version (raised in issue 1284).What changes:
GET /api/v1/appkeepsversionbut it's now the base version (1.6.1), and a newbuildfield carries the full identity (1.6.1-rc.15). Same for the agent ack,GET /api/v1/agents, the debug dump (drydockBuild), the startup banner, the OpenAPI info, and Home Assistant'ssw_version. Thedrydock is startinglog line carries no version, because CodeQL flags any environment-derived value in a log line.1.6.1with its build beside it.X.Y.0runs on that release's stable image rather than one release later. Thefromside stays prerelease-aware, so stores written by an rc of the threshold release still get it once. Both existing gated migrations are idempotent..qlty/qlty.tomltriage for the unfixedbracesandhttp-cache-semanticsadvisories, same as chore(security): triage the unfixed braces and http-cache-semantics advisories #1291, so this branch can pass the gate.Not changed: self-update and agent compatibility never read the version string. Drydock's own row in the Containers view still shows the image label, which is the rc, since the image itself can't be changed under byte-for-byte promotion.
Checked locally: full pre-push gate on this head, 100% app and UI coverage, both typechecks, i18n parity across 17 locales. One independent review pass came back ship, and its findings are folded in. Not checked visually in a browser. The new strings in the 16 non-English locales are machine-written.
For whoever preps the next release:
scripts/release-docs-identity.test.mjsnow expects the API doc examples to showversionas the base andbuildas the candidate. At the 1.7.0 GA metadata step, leave thebuildexamples on the rc. The test says so if they're replaced.Refs issue 1284.