Skip to content

fix: a pre-release or test build is offered the final release of its own version - #88

Merged
Rovey merged 1 commit into
mainfrom
fix/prerelease-offered-final
Nov 14, 2026
Merged

Rovey merged 1 commit into
mainfrom
fix/prerelease-offered-final

Conversation

@Rovey

@Rovey Rovey commented Nov 14, 2026

Copy link
Copy Markdown
Owner

A build with a pre-release suffix (0.4.10-rc2, or the hardware-check test build 0.4.10-check112) was never offered the final release of its own number.

Why

version_number packs only the three numbers, so 0.4.10-check112 and 0.4.10 are the same number. This is on purpose: the 0.4.8 release must not count as a downgrade of 0.4.8-rc1. The update check then offered only a higher number (check_for_update, src/app/common_boot.cpp). As a result, someone who runs a test build of 0.4.10 would stay on it when 0.4.10 is released. The rc builds of 0.4.8 had the same gap.

The change

  • release_is_newer(release, running) in core/update decides what is offered:
    • a higher version;
    • or the same number, when the running build carries a pre-release suffix and the release does not.
  • check_for_update uses it.
  • Released builds have no suffix, so nothing changes for them.
  • version_number, the downgrade guard of the logon copy and the version check of a downloaded zip are unchanged.

Not changed

A test build still installs itself as the logon copy when a run saves a result there and apply-at-logon is on (update_logon_copy, since 0.3.1). That is intended, and documented on the PR #87 branch. Once this is merged, such a build is offered the final release when it comes out.

Tests

  • cmake --workflow --preset ci (Release, /W4 /WX): no warnings.
  • core_tests: 11746 assertions, all passed. app_tests: 297, all passed.
  • New test case: a higher release, the final of the rc and test build that runs, not the same final, not an rc over another rc, never a lower one, and nothing that is not a version.

Not to be merged before the owner's review.

🤖 Generated with Claude Code

…own version

version_number orders 0.4.10-rc1 and 0.4.10 the same, and the update check
offered only a higher number, so a build like 0.4.10-check112 was never
offered 0.4.10. release_is_newer offers the same number when the running
build carries a pre-release suffix. Released builds have none: nothing
changes for them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Rovey
Rovey merged commit 97d9bf2 into main Nov 14, 2026
2 checks passed
@Rovey
Rovey deleted the fix/prerelease-offered-final branch November 14, 2026 22:53
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.

1 participant