Skip to content

auto-update: Fix auto-update loop with non-nightly channels (#43595) (cherry-pick to preview)#43597

Merged
zed-zippy[bot] merged 1 commit intov0.215.xfrom
cherry-pick-v0.215.x-c3666276
Nov 26, 2025
Merged

auto-update: Fix auto-update loop with non-nightly channels (#43595) (cherry-pick to preview)#43597
zed-zippy[bot] merged 1 commit intov0.215.xfrom
cherry-pick-v0.215.x-c3666276

Conversation

@zed-zippy
Copy link
Contributor

@zed-zippy zed-zippy bot commented Nov 26, 2025

Cherry-pick of #43595 to preview


There are 3 factors:

  1. The Preview channel endpoint does not propagate versions with build
    identifier (which we oh-so-conveniently store in pre-release field of
    semver).
  2. Preview build, once fetched, sees it's version with build
    identifier (as that's baked into the binary).
  3. Auto update logic treats versions with pre-release version as less
    than versions without pre-release version.

This in turn makes any Preview client see itself as versioned like
0.214.4-123-asdf1234455311, whereas the latest version on the endpoint
is 0.214.4. Thus, the endpoint version is always more recent than the
client version, causing an update loop.

The fix is to ignore build identifier when comparing versions of
non-nightly channels. This should still let us introduce changes to
auto-update behavior in minor releases in the future.

Closes #43584

Release Notes:

  • (Preview only): Fixed an update loop with latest Preview update.

There are 3 factors:
1. The Preview channel endpoint does not propagate versions with build
identifier (which we oh-so-conveniently store in pre-release field of
semver).
2. Preview build, once fetched, sees it's version *with* build
identifier (as that's baked into the binary).
3. Auto update logic treats versions with pre-release version as less
than versions without pre-release version.

This in turn makes any Preview client see itself as versioned like
0.214.4-123-asdf1234455311, whereas the latest version on the endpoint
is 0.214.4. Thus, the endpoint version is always more recent than the
client version, causing an update loop.

The fix is to ignore build identifier when comparing versions of
non-nightly channels. This should still let us introduce changes to
auto-update behavior in minor releases in the future.

Closes #43584

Release Notes:

- (Preview only): Fixed an update loop with latest Preview update.
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Nov 26, 2025
@zed-zippy zed-zippy bot merged commit b81880b into v0.215.x Nov 26, 2025
23 checks passed
@zed-zippy zed-zippy bot deleted the cherry-pick-v0.215.x-c3666276 branch November 26, 2025 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant