Skip to content

Take the version base from a release tag only - #1757

Merged
mastacontrola merged 1 commit into
dev-branchfrom
fix/version-ignores-archive-tags-1.5
Sep 10, 2026
Merged

Take the version base from a release tag only#1757
mastacontrola merged 1 commit into
dev-branchfrom
fix/version-ignores-archive-tags-1.5

Conversation

@mastacontrola

Copy link
Copy Markdown
Member

Problem

fog-workflows' daily sweep has failed on dev-branch every day since 2026-09-06, in "Apply version fix":

sed: -e expression #1, char 60: unknown option to `s'

So badges/dev-branch.json has not updated since 2026-09-02. stable-releases.yml reads its release tag from that file.

Cause

fog-version.sh takes the newest tag of any name as the base version. The tag archive/feature-fog2-gui was pushed on 2026-09-06 and is now the newest tag. The dev arm computes archive/feature-fog2-gui.2479, and the slash breaks the sed in apply-fog-version.sh. The stable arm uses the same lookup.

Fix

git rev-list --tags and git describe --tags now match '[0-9]*' only. A release tag is the version string itself, so it starts with a digit.

Verification

  • Against the real repo: fog-version.sh dev-branch head gives archive/feature-fog2-gui.2479 before and 1.5.10.2479 after. master..origin/dev-branch --count is 2479.
  • tests/fog-version-release-tag.test.sh builds a fixture repo with a release tag and a newer annotated archive tag. It passes with the fix. With the old script it fails with dev-branch computed 'archive/feature-x.2', expected '1.5.10.2', and the same for stable.

Port of the working-1.6 PR.

🤖 Generated with Claude Code

https://claude.ai/code/session_01RANCjBL6XSavKYf58MZKZj

fog-version.sh took the newest tag of any name as the base version. The
tag archive/feature-fog2-gui, pushed on 2026-09-06, is now the newest
tag, so the dev arm computes archive/feature-fog2-gui.2479. The slash
breaks the sed in apply-fog-version.sh, and fog-workflows' daily sweep
has failed on dev-branch every day since. The stable arm has the same
defect.

Both the tag lookup and git describe now match release tags only
('[0-9]*'). tests/fog-version-release-tag.test.sh builds a fixture repo
with a release tag and a newer archive tag, and fails on the old script
with 'archive/feature-x.2'.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RANCjBL6XSavKYf58MZKZj
@mastacontrola
mastacontrola merged commit 5ef6ee1 into dev-branch Sep 10, 2026
8 checks passed
@mastacontrola
mastacontrola deleted the fix/version-ignores-archive-tags-1.5 branch September 10, 2026 18:02
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