Skip to content

chore: skip pre-releases when selecting Coder versions for integration tests#497

Closed
matifali wants to merge 1 commit intofix/go-version-checkfrom
fix/coderversion-skip-prereleases
Closed

chore: skip pre-releases when selecting Coder versions for integration tests#497
matifali wants to merge 1 commit intofix/go-version-checkfrom
fix/coderversion-skip-prereleases

Conversation

@matifali
Copy link
Member

@matifali matifali commented Mar 25, 2026

Stack: main#496#497
Merge this PR into #496 first, then merge #496 into main.


Summary

The coderversion script was picking up release candidates (e.g. v2.32.0-rc.0) from the GitHub releases API, then formatting the version without the pre-release suffix (v2.32.0). Integration tests then tried to pull ghcr.io/coder/coder:v2.32.0 which doesn't exist yet, failing with manifest unknown.

Fix: filter out releases where prerelease: true in the API response.

Test plan

  • go run ./scripts/coderversion returns only stable versions (currently v2.31.5 / v2.30.4 / v2.29.8)
  • CI integration tests pass without manifest unknown errors

@matifali matifali force-pushed the fix/coderversion-skip-prereleases branch 2 times, most recently from b55e47c to ab96eec Compare March 25, 2026 08:40
…tests

The coderversion script was including release candidates when scanning
GitHub releases, then stripping the pre-release suffix to form the
version string (e.g. v2.32.0-rc.0 → v2.32.0). This caused integration
tests to pull a Docker image that doesn't exist yet, failing with
"manifest unknown".
@matifali matifali force-pushed the fix/coderversion-skip-prereleases branch from ab96eec to c13233f Compare March 25, 2026 08:40
@matifali matifali changed the base branch from main to fix/go-version-check March 25, 2026 08:40
@matifali matifali changed the title fix: skip pre-releases when selecting Coder versions for integration tests chore: skip pre-releases when selecting Coder versions for integration tests Mar 25, 2026
@matifali matifali requested a review from johnstcn March 25, 2026 08:41
@johnstcn
Copy link
Member

See #498 instead

@matifali
Copy link
Member Author

closing in favour of #498

@matifali matifali closed this Mar 25, 2026
@github-actions github-actions bot locked and limited conversation to collaborators Mar 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants