Skip to content

fix(release): derive the LuaRocks spelling in the release verifier - #459

Merged
paudley merged 1 commit into
mainfrom
fix/verify-release-luarocks-version
Sep 4, 2026
Merged

fix(release): derive the LuaRocks spelling in the release verifier#459
paudley merged 1 commit into
mainfrom
fix/verify-release-luarocks-version

Conversation

@paudley

@paudley paudley commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

The wrapper verification reported the LuaRocks rock as missing:

WARN[pending]: LuaRocks gmeow-gts: package version: 1.0.0-rc.1-1 not present

It was published — as 1.0.0rc1-1. A rockspec version is parsed as [%w.]+-[%d]+, so the part before the revision admits only alphanumerics and dots; a semver pre-release cannot be spelled there. That's the same constraint that made scripts/check-versions.sh derive the LuaRocks spelling when the candidate was cut. The verifier still assumed <version>-1, so it looked for a version that by construction can never exist and reported a correctly published artifact as absent.

Now it derives the spelling, so the guard and the verifier agree by construction rather than by someone remembering to pass --luarocks-version. A final release has no pre-release part and is unchanged.

Also adds a missing import re — the module had no regex import, so the new helper would have raised NameError the first time it ran. The --self-test does not reach this path and passed regardless, which is precisely why it needed checking by hand.

Verified

PASS[published]: LuaRocks gmeow-gts: package version: 1.0.0rc1-1
PASS[published]: LuaRocks gmeow-gts: published artifact types: rockspec, src
PASS[published]: LuaRocks gmeow-gts: download gmeow-gts-1.0.0rc1-1.rockspec

The wrapper verification reported the LuaRocks rock as missing:

  WARN[pending]: LuaRocks gmeow-gts: package version: 1.0.0-rc.1-1 not present

It was published, as 1.0.0rc1-1. A rockspec version is parsed as
`[%w.]+-[%d]+`, so the part before the revision admits only alphanumerics and
dots and a semver pre-release cannot be spelled there -- the same constraint
that made scripts/check-versions.sh derive the LuaRocks spelling when the
candidate was cut. The verifier still assumed `<version>-1`, so it looked for a
version that by construction can never exist and reported a correctly published
artifact as absent.

Derives the spelling instead, so the two agree by construction rather than by
someone remembering to pass --luarocks-version. A final release has no
pre-release part and is unchanged.

Also adds the missing `import re`: the module had no regex import, so the new
helper would have raised NameError the first time it ran. The self-test does not
reach this path, which is exactly why that needed checking by hand rather than
trusting a green self-test.

Verified: LuaRocks now reports PASS[published] for 1.0.0rc1-1 with its rockspec
download and artifact types.
@paudley
paudley requested a review from ErinAudley as a code owner September 4, 2026 22:03
@coderabbitai

coderabbitai Bot commented Sep 4, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 34 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 99 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Team

Run ID: df0d9b1a-77e6-4e0b-9580-a4cd889384b3

📥 Commits

Reviewing files that changed from the base of the PR and between 81cdd55 and 19df5a0.

📒 Files selected for processing (1)
  • scripts/verify_release.py

Comment @coderabbitai help to get the list of available commands.

@paudley
paudley merged commit 4a61ee1 into main Sep 4, 2026
31 checks passed
@paudley
paudley deleted the fix/verify-release-luarocks-version branch September 4, 2026 22:14
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