Skip to content

Conversation

@deanq
Copy link
Contributor

@deanq deanq commented Nov 21, 2025

Changes:

  • Update grep pattern from runpod~= to runpod>=
  • Replace major.minor range logic with semantic version comparison
  • Add validation for current_version extraction
  • Update sed replacement to maintain >= operator
  • Workflow now triggers on any version increase (patch, minor, major)

Previously, the workflow only updated for major.minor changes due to ~= (compatible release) constraint. Now with >=, all new releases are honored.

Changes:
- Update grep pattern from runpod~= to runpod>=
- Replace major.minor range logic with semantic version comparison
- Add validation for current_version extraction
- Update sed replacement to maintain >= operator
- Workflow now triggers on any version increase (patch, minor, major)

Previously, the workflow only updated for major.minor changes due to ~=
(compatible release) constraint. Now with >=, all new releases are honored.
@deanq deanq requested a review from Copilot November 21, 2025 05:57
Copy link

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 CI workflow to support semantic version comparison for runpod dependencies using the >= operator instead of ~=, enabling updates for all version types (major, minor, and patch) rather than just major.minor changes.

Key changes:

  • Switch from compatible release constraint (~=) to minimum version constraint (>=)
  • Replace string-based major.minor comparison with semantic version comparison using sort -V
  • Add validation for current version extraction from requirements.txt

Reviewed Changes

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

File Description
builder/requirements.txt Update runpod version constraint from ~=1.7.7 to >=1.8.0
.github/workflows/CI-runpod_dep.yml Refactor version comparison logic to use semantic versioning and add current version validation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Address Copilot review feedback:
- Fix grep pattern to support >= operator using [>~=]+ instead of [~=]{1,2}
- Restore PyPI fetch for new_version variable that was accidentally removed
- Add validation for new_version extraction
- Restore sed command to update requirements.txt with >= operator
- Restore PR creation step to automate version update PRs
- Improve comment clarity for semantic version comparison

The workflow now correctly fetches, compares, and updates runpod versions
using >= constraint for all semantic version types (major, minor, patch).
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