Skip to content

test: accept pre-release versions in the showcase version guard#383

Merged
DemchaAV merged 2 commits into
2.0-devfrom
fix/version-guard-prerelease
Jul 12, 2026
Merged

test: accept pre-release versions in the showcase version guard#383
DemchaAV merged 2 commits into
2.0-devfrom
fix/version-guard-prerelease

Conversation

@DemchaAV

Copy link
Copy Markdown
Owner

Why

Cutting v2.0.0-rc.1 fails the verify gate: VersionConsistencyGuardTest.showcaseSiteVersionMatchesTheProjectVersion matched the web/index.html hero badge with v([0-9][0-9.]*), which stops at the first non-digit and so rejects a pre-release suffix. Every rc / beta / alpha cut would trip it — and since release.yml re-runs clean verify on the tag, the tagged workflow would fail too. A plain vX.Y.Z cut is unaffected.

What

Match the badge version up to its delimiter — v([0-9][^\s&]*)\s*·\s*MIT — the same tolerant shape the JSON-LD softwareVersion and the Maven/Gradle install-snippet patterns in this class already use. The other five version-scanning regexes already accept a suffix; this aligns the sixth.

Tests

VersionConsistencyGuardTest stays green (10/10) on the current tree. The pattern now captures 2.0.0-rc.1, 2.0.0, and 1.9.1 from a v… · MIT badge.

DemchaAV and others added 2 commits July 12, 2026 16:37
…guard

showcaseSiteVersionMatchesTheProjectVersion matched the web/index.html
hero badge with v([0-9][0-9.]*), which rejects a pre-release version
like 2.0.0-rc.1 and fails the verify gate on any rc / beta / alpha cut.
Match up to the delimiter (the space before ·), the way the
sibling JSON-LD and install-snippet patterns already do.
@DemchaAV DemchaAV merged commit b3f465f into 2.0-dev Jul 12, 2026
12 checks passed
@DemchaAV DemchaAV deleted the fix/version-guard-prerelease branch July 12, 2026 15:48
@DemchaAV DemchaAV mentioned this pull request Jul 13, 2026
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