Skip to content

fix(ci): sync-upstream prefers stable releases over prereleases#6

Merged
JOY (JOY) merged 2 commits into
mainfrom
fix/sync-prefer-stable
May 23, 2026
Merged

fix(ci): sync-upstream prefers stable releases over prereleases#6
JOY (JOY) merged 2 commits into
mainfrom
fix/sync-prefer-stable

Conversation

@JOY
Copy link
Copy Markdown

Problem

git tag -l 'v*.*.*' --sort=-v:refname | head -1 ranks v2.8.0-alpha.2 above v2.8.0 (git version-sort treats the prerelease suffix as higher without versionsort.suffix). Once an alpha was synced, the scheduled job kept selecting it and never advanced to the stable release - the frontend was stuck on an alpha while v2.8.0 stable existed.

Fix

Prefer newest stable (no - suffix); fall back to newest non-alpha prerelease (beta/rc) only if no stable exists; never auto-sync -alpha.

Verified locally

  • OLD logic picks v2.8.0-alpha.2 ; NEW logic picks v2.8.0.
  • YAML validated.

(DOS frontend has been manually tagged onto v2.8.0 stable already; this prevents regression.)

The tag selection used 'git tag --sort=-v:refname | head -1', which ranks
v2.8.0-alpha.2 ABOVE v2.8.0 (git version-sort treats the prerelease suffix
as higher without versionsort.suffix config). This pinned the frontend to an
alpha forever once that alpha was synced.

Now prefer the newest STABLE release (no -alpha/-beta/-rc suffix), falling
back to the newest non-alpha prerelease only when no stable exists. Never
auto-sync -alpha.
@gemini-code-assist
Copy link
Copy Markdown

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@JOY JOY (JOY) merged commit 389aa2a into main May 23, 2026
12 checks passed
@JOY JOY (JOY) deleted the fix/sync-prefer-stable branch May 23, 2026 17:20
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