Skip to content

chore(ci): strip leading v from VERSION before comparing#5326

Merged
avallete merged 1 commit into
developfrom
claude/fix-setup-cli-tests-2XbrV
May 20, 2026
Merged

chore(ci): strip leading v from VERSION before comparing#5326
avallete merged 1 commit into
developfrom
claude/fix-setup-cli-tests-2XbrV

Conversation

@avallete
Copy link
Copy Markdown
Member

The smoke test workflow compares the output of supabase --version against the VERSION environment variable. However, supabase --version outputs the version without a leading v, while release tags and setup-cli inputs include it. This causes version mismatches during testing.

Changes:

  • Strip the leading v from VERSION before comparison in both smoke test jobs
  • Add clarifying comments explaining why the stripping is necessary

The fix uses bash parameter expansion (${VERSION#v}) to remove the leading v if present, ensuring the comparison is between two consistently formatted version strings.

https://claude.ai/code/session_01S5jBFMNp5mHAWhS9inCagB

`supabase --version` prints `2.100.2-beta.5` while release tags and the
`version` input passed to setup-cli include the leading `v`. Normalize
by stripping the `v` prefix before comparing so the smoke test stops
reporting a spurious version mismatch.
@avallete avallete requested a review from a team as a code owner May 20, 2026 16:02
@avallete avallete enabled auto-merge (squash) May 20, 2026 16:03
@avallete avallete changed the title fix(cli): strip leading v from VERSION before comparing chore(ci): strip leading v from VERSION before comparing May 20, 2026
@avallete avallete merged commit bc0600d into develop May 20, 2026
12 checks passed
@avallete avallete deleted the claude/fix-setup-cli-tests-2XbrV branch May 20, 2026 16:07
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.

3 participants