Skip to content

[WIP] Refactor release workflow for modular deployment environments#46

Closed
Copilot wants to merge 2 commits intodd/update-release-artifact-upload/3from
copilot/sub-pr-45
Closed

[WIP] Refactor release workflow for modular deployment environments#46
Copilot wants to merge 2 commits intodd/update-release-artifact-upload/3from
copilot/sub-pr-45

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 11, 2026

Fix .codeql-version comparison to use base version

This PR addresses the issue identified in PR #45 review comments where update-release-version.sh --check fails when validating prerelease versions.

Problem

After recent changes, .codeql-version stores only the base version (e.g., 2.24.1) while other version-bearing files contain the full version with prerelease suffix (e.g., 2.24.1-prerelease). This caused --check 2.24.1-prerelease to fail because it compared .codeql-version against the full expected version.

Solution

Modified the check_versions() function to compare .codeql-version against the base version of the expected value, while other files are compared against the full expected version.

Testing

  • Tested with prerelease version: ./server/scripts/update-release-version.sh --check 2.24.1-prerelease ✅ passes
  • Backward compatible: Regular versions still work correctly
  • All 22 version-bearing files validated correctly

Changes

  • Modified server/scripts/update-release-version.sh - Updated check_versions() function
  • Added logic to extract and use base version for .codeql-version comparison
  • Updated error messages to show the correct expected version for each file

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

- Modified check_versions() to compare .codeql-version against base version
- Other files are compared against full version (including prerelease suffix)
- This fixes the issue where --check fails with prerelease versions

Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com>
Copilot AI requested a review from data-douser February 11, 2026 04:05
Copilot stopped work on behalf of data-douser due to an error February 11, 2026 04:05
@data-douser data-douser deleted the copilot/sub-pr-45 branch April 7, 2026 21:33
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.

2 participants