Skip to content

fix(version): show the base version and keep the build identity - #1292

Merged
scttbnsn merged 12 commits into
dev/v1.7from
fix/v1.7-display-base-version
Oct 3, 2026
Merged

scttbnsn merged 12 commits into
dev/v1.7from
fix/v1.7-display-base-version

Conversation

@scttbnsn

@scttbnsn scttbnsn commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

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.15 in 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/app keeps version but it's now the base version (1.6.1), and a new build field 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's sw_version. The drydock is starting log line carries no version, because CodeQL flags any environment-derived value in a log line.
  • The controller normalises what an older agent reports, so a 1.6.1 agent shows as 1.6.1 with its build beside it.
  • The UI shows the base version, plus a Build line in About, Config and Agents only when the two differ. The About dialog renders the build in its own left-to-right element, so Arabic doesn't split it.
  • Store migrations gated on a release now compare the base version of the target, so a migration gated on X.Y.0 runs on that release's stable image rather than one release later. The from side stays prerelease-aware, so stores written by an rc of the threshold release still get it once. Both existing gated migrations are idempotent.
  • The .qlty/qlty.toml triage for the unfixed braces and http-cache-semantics advisories, 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.mjs now expects the API doc examples to show version as the base and build as the candidate. At the 1.7.0 GA metadata step, leave the build examples on the rc. The test says so if they're replaced.

Refs issue 1284.

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.
@vercel

vercel Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
drydock-website Ready Ready Preview Oct 3, 2026 1:14pm UTC
drydockdemo-website Ready Ready Preview Oct 3, 2026 1:14pm UTC

@coderabbitai

coderabbitai Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository: CodesWhat/drydock/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 30e58ed3-7691-4a38-99f5-e2345c18095e
📥 Commits

Reviewing files that changed from the base of the PR and between a79adaa and bfd33d3.

⛔ Files ignored due to path filters (1)
  • CHANGELOG.md is excluded by !CHANGELOG.md
📒 Files selected for processing (90)
  • .github/ISSUE_TEMPLATE/bug_report.yml
  • .qlty/qlty.toml
  • app/agent/AgentClient.test.ts
  • app/agent/AgentClient.ts
  • app/agent/api/event.test.ts
  • app/agent/api/event.ts
  • app/api/agent.test.ts
  • app/api/agent.ts
  • app/api/app.test.ts
  • app/api/app.ts
  • app/api/openapi.test.ts
  • app/api/openapi/index.ts
  • app/api/openapi/schemas.ts
  • app/api/portwing-ws.test.ts
  • app/api/portwing-ws.ts
  • app/banner/index.test.ts
  • app/banner/index.ts
  • app/configuration/version-identity.test.ts
  • app/configuration/version-identity.ts
  • app/debug/dump.test.ts
  • app/debug/dump.ts
  • app/store/migrate.test.ts
  • app/store/migrate.ts
  • app/triggers/providers/mqtt/Hass.test.ts
  • app/triggers/providers/mqtt/Hass.ts
  • content/docs/current/api/agent.mdx
  • content/docs/current/api/app.mdx
  • content/docs/current/configuration/server/index.mdx
  • content/docs/current/faq/index.mdx
  • scripts/release-docs-identity.test.mjs
  • ui/src/layouts/AppLayout.vue
  • ui/src/locales/ar/agentsView.json
  • ui/src/locales/ar/appShell.json
  • ui/src/locales/ar/configView.json
  • ui/src/locales/de/agentsView.json
  • ui/src/locales/de/appShell.json
  • ui/src/locales/de/configView.json
  • ui/src/locales/en/agentsView.json
  • ui/src/locales/en/appShell.json
  • ui/src/locales/en/configView.json
  • ui/src/locales/es/agentsView.json
  • ui/src/locales/es/appShell.json
  • ui/src/locales/es/configView.json
  • ui/src/locales/fr/agentsView.json
  • ui/src/locales/fr/appShell.json
  • ui/src/locales/fr/configView.json
  • ui/src/locales/it/agentsView.json
  • ui/src/locales/it/appShell.json
  • ui/src/locales/it/configView.json
  • ui/src/locales/ja/agentsView.json
  • ui/src/locales/ja/appShell.json
  • ui/src/locales/ja/configView.json
  • ui/src/locales/ko/agentsView.json
  • ui/src/locales/ko/appShell.json
  • ui/src/locales/ko/configView.json
  • ui/src/locales/nl/agentsView.json
  • ui/src/locales/nl/appShell.json
  • ui/src/locales/nl/configView.json
  • ui/src/locales/pl/agentsView.json
  • ui/src/locales/pl/appShell.json
  • ui/src/locales/pl/configView.json
  • ui/src/locales/pt-BR/agentsView.json
  • ui/src/locales/pt-BR/appShell.json
  • ui/src/locales/pt-BR/configView.json
  • ui/src/locales/ru/agentsView.json
  • ui/src/locales/ru/appShell.json
  • ui/src/locales/ru/configView.json
  • ui/src/locales/tr/agentsView.json
  • ui/src/locales/tr/appShell.json
  • ui/src/locales/tr/configView.json
  • ui/src/locales/uk/agentsView.json
  • ui/src/locales/uk/appShell.json
  • ui/src/locales/uk/configView.json
  • ui/src/locales/vi/agentsView.json
  • ui/src/locales/vi/appShell.json
  • ui/src/locales/vi/configView.json
  • ui/src/locales/zh-CN/agentsView.json
  • ui/src/locales/zh-CN/appShell.json
  • ui/src/locales/zh-CN/configView.json
  • ui/src/locales/zh-TW/agentsView.json
  • ui/src/locales/zh-TW/appShell.json
  • ui/src/locales/zh-TW/configView.json
  • ui/src/types/api.d.ts
  • ui/src/utils/build-identity.ts
  • ui/src/views/AgentsView.vue
  • ui/src/views/ConfigView.vue
  • ui/tests/layouts/AppLayout.spec.ts
  • ui/tests/utils/build-identity.spec.ts
  • ui/tests/views/AgentsView.spec.ts
  • ui/tests/views/ConfigView.spec.ts
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Comment thread app/index.ts Fixed
@codecov

codecov Bot commented Oct 3, 2026

Copy link
Copy Markdown

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
…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

2 active deployments
Preview – drydockdemo-website — bfd33d3a Deployed Oct 3, 2026 by vercel[bot]
Preview – drydock-website — bfd33d3a Deployed Oct 3, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants