UN-3479 [FIX] release workflow: install --all-extras to match PR gate#18
Merged
Conversation
test.yml installs --dev --all-extras (PR #16) so tests/clone/test_cli.py can import click; main.yml was still on bare --dev, so the release run failed at pytest collection while PR CI passed. Now both workflows use identical install + lint + test commands. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
| Filename | Overview |
|---|---|
| .github/workflows/main.yml | Adds --all-extras to uv sync --dev so the release workflow installs the same dependency set as the PR gate (test.yml), fixing a ModuleNotFoundError for click during pytest collection. |
Sequence Diagram
sequenceDiagram
participant Dev as Developer
participant PR as PR Gate (test.yml)
participant Release as Release Workflow (main.yml)
participant uv as uv sync
participant pytest as pytest
Dev->>PR: Open pull request
PR->>uv: uv sync --dev --all-extras
uv-->>PR: Installs click, rich (clone extra)
PR->>pytest: uv run pytest tests/ -v
pytest-->>PR: ✅ All tests pass (click available)
Dev->>Release: Dispatch workflow_dispatch
Note over Release: Before fix: uv sync --dev
Release->>uv: uv sync --dev (OLD)
uv-->>Release: Missing click, rich
Release->>pytest: uv run pytest tests/
pytest-->>Release: ❌ ModuleNotFoundError: click
Note over Release: After fix: uv sync --dev --all-extras
Release->>uv: uv sync --dev --all-extras (NEW)
uv-->>Release: Installs click, rich (clone extra)
Release->>pytest: uv run pytest tests/
pytest-->>Release: ✅ All tests pass
Reviews (1): Last reviewed commit: "fix(ci): sync release-workflow install w..." | Re-trigger Greptile
jaseemjaskp
approved these changes
May 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-up to #17. The release-workflow dispatch on
main(run 26506941508) failed at pytest collection:Root cause:
main.ymlinstallsuv sync --devbuttest.yml(PR gate, after #16) installsuv sync --dev --all-extras. Thecloneextra carriesclick+rich, needed fortests/clone/test_cli.py. So PR CI passed while the release dispatch failed — same code, different env.Fix: align
main.yml's install step withtest.yml. Both now runuv sync --dev --all-extras.Test plan
lint-and-test (3.11)andlint-and-test (3.12)continue greenmain.ymldispatch withminorbump → expect cleanv1.3.0release end-to-end (lint + test + build + publish + commit/tag/release all succeed)🤖 Generated with Claude Code