Skip to content

Conversation

@robert-cronin
Copy link
Contributor

Signed-off-by: robert-cronin <robert.owen.cronin@gmail.com>
Copilot AI review requested due to automatic review settings October 30, 2025 08:52
@robert-cronin robert-cronin added the bug Something isn't working label Oct 30, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the version validation logic in the release workflow by extracting it from an inline script into a dedicated, testable bash script with comprehensive test coverage. The changes improve maintainability and add proper handling for SemVer pre-release semantics.

  • Extracted version validation logic into a standalone, reusable script (validate_version.sh)
  • Added special handling for SemVer pre-release vs. final release edge cases that sort -V doesn't handle correctly
  • Created comprehensive test suite (test_validation.sh) with 15 test cases covering various version comparison scenarios

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
.github/workflows/scripts/release/validate_version.sh New standalone script implementing version validation logic with SemVer pre-release support
.github/workflows/scripts/release/test_validation.sh New test harness with 15 test cases validating version comparison edge cases
.github/workflows/release.yml Refactored to extract tag variables and invoke the new validation script via environment variables

@codecov
Copy link

codecov bot commented Oct 30, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 39.31%. Comparing base (0c86ad6) to head (7e26ea0).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1364   +/-   ##
=======================================
  Coverage   39.31%   39.31%           
=======================================
  Files          42       42           
  Lines        5927     5927           
=======================================
  Hits         2330     2330           
  Misses       3396     3396           
  Partials      201      201           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@ashnamehrotra ashnamehrotra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@robert-cronin robert-cronin merged commit 5d2dcb4 into project-copacetic:main Nov 3, 2025
154 of 162 checks passed
@github-project-automation github-project-automation bot moved this from 🆕 New to ✅ Done in Copacetic Workboard Nov 3, 2025
robert-cronin added a commit that referenced this pull request Nov 3, 2025
Signed-off-by: robert-cronin <robert.owen.cronin@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[BUG] version validation logic bug

2 participants