Skip to content

Gracefully handle non-LTS releases#4034

Merged
swcurran merged 1 commit intoopenwallet-foundation:mainfrom
esune:chore/fix-lts-recreate-workflow
Jan 27, 2026
Merged

Gracefully handle non-LTS releases#4034
swcurran merged 1 commit intoopenwallet-foundation:mainfrom
esune:chore/fix-lts-recreate-workflow

Conversation

@esune
Copy link
Member

@esune esune commented Jan 27, 2026

Resolves #4029

The issue was that the step determining whether the current branch is an LTS was hard-exiting instead of letting the next step set the skip flag and skip the rest of the steps correctly.

Signed-off-by: Emiliano Suñé <emiliano.sune@gmail.com>
@esune esune requested a review from swcurran January 27, 2026 18:18
@sonarqubecloud
Copy link

if ! echo "$RELEASE_TAG" | grep -Eq '^[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z.-]+)?(\+[0-9A-Za-z.-]+)?$'; then
echo "Error: Release tag '$RELEASE_TAG' does not match semantic versioning format (X.Y.Z[-prerelease][+build])"
exit 1
echo "Warning: Release tag '$RELEASE_TAG' does not match semantic versioning format - skipping"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this work if the RC is an LTS release -- e.g. 1.3.4rc0?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this will work fine (skip LTS release creation) for rc releases due to semver validation failing. I think this is desirable since we do not want an LTS tag to point to a rc, but rather point to the final release for that version.

When running the workflow manually (i.e.: need to manually re-create a release image) it could attempt to create the release if semver checks passed, but that would require using the hyphen we are not using (had to ask for the help of AI to parse all the regexp scenarios again, but I am fairly confident the output is correct).

Trigger RC Format Result
workflow_run 1.3.4rc0 ✅ Skipped gracefully (RC check)
workflow_dispatch 1.3.4rc0 ❌ Fails at semver validation
workflow_dispatch 1.3.4-rc0 ⚠️ Would pass semver, attempt LTS creation

I can add extra checks and handling for the workflow_dispatch scenarios if deemed necessary/desirable.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right -- no such tag for any RC. Thanks!

@swcurran swcurran merged commit 0016219 into openwallet-foundation:main Jan 27, 2026
12 checks passed
@esune esune deleted the chore/fix-lts-recreate-workflow branch January 28, 2026 16:12
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.

Fix logic in tag-recreate-lts.yml for situation where tag is an RC

2 participants