Skip to content

fix: apply --pr validation and passthrough for --cpu install path#370

Merged
bigcat88 merged 1 commit intomainfrom
fix-cpu-pr-validation
Mar 12, 2026
Merged

fix: apply --pr validation and passthrough for --cpu install path#370
bigcat88 merged 1 commit intomainfrom
fix-cpu-pr-validation

Conversation

@bigcat88
Copy link
Copy Markdown
Contributor

The --pr/--version/--commit conflict check was placed after the if cpu: early return, so comfy install --cpu --pr 123 silently ignored the PR reference. The CPU path also never passed pr= to install_inner.execute.

Moved the validation before the early return and added pr=pr to the CPU install path.

Spotted in #365 (comment)

@dosubot dosubot bot added bug Something isn't working size:M This PR changes 30-99 lines, ignoring generated files. labels Mar 12, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

@@            Coverage Diff             @@
##             main     #370      +/-   ##
==========================================
+ Coverage   53.14%   53.31%   +0.16%     
==========================================
  Files          32       32              
  Lines        3588     3588              
==========================================
+ Hits         1907     1913       +6     
+ Misses       1681     1675       -6     
Files with missing lines Coverage Δ
comfy_cli/cmdline.py 52.22% <100.00%> (+2.42%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

The --pr/--version/--commit conflict check was placed after the
`if cpu:` early return, so --cpu --pr silently ignored the PR.
Also the CPU path never passed pr= to install_inner.execute.

Move validation above the early return and pass pr=pr in the CPU path.
@bigcat88 bigcat88 force-pushed the fix-cpu-pr-validation branch from b94f0ae to 7e6bf6a Compare March 12, 2026 09:11
@bigcat88 bigcat88 merged commit 0abb3b9 into main Mar 12, 2026
14 checks passed
@bigcat88 bigcat88 deleted the fix-cpu-pr-validation branch March 12, 2026 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant