fix: Setup now requires the CLI needed for reliable compile waits - #1246
Conversation
Fail the active pull request build when Go CLI changes omit MINIMUM_REQUIRED_CLI_VERSION, while keeping the existing reminder comment flow for pull_request_target. Raise the package minimum CLI requirement to cli-v3.0.0-beta.20 because compile recovery now depends on the accepted compile result polling behavior from that CLI release.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughThis PR adds a fail-on-warning mode for CLI minimum-version checks, bumps the minimum CLI version to 3.0.0-beta.20, updates tests, refactors the Go automation to support check-mode exit behavior, and wires a PR-only workflow step plus a wrapper script to run the check in CI. ChangesCLI Minimum Version Fail-on-Warning Mode
Sequence Diagram(s)sequenceDiagram
participant GitHubActions
participant WrapperScript as check-cli-minimum-version-warning.sh
participant CommentCLI as comment-cli-minimum-version-warning.sh
participant Automation as minimum_version_warning.go
participant GitHubAPI
GitHubActions->>WrapperScript: run (PR_NUMBER, REPOSITORY, BASE_REF)
WrapperScript->>CommentCLI: invoke with repo root (CLI_MINIMUM_VERSION_FAIL_ON_WARNING=true)
CommentCLI->>Automation: RunMinimumVersionWarning(diff, baseRef, headRef)
Automation->>Automation: compute changedFiles, requiresComment (regex + git show)
Automation-->>GitHubActions: write warning to stderr & exit 1 (when fail-on-warning and requiresComment)
Automation->>GitHubAPI: (skipped when fail-on-warning)
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Compare the required CLI version value across the pull request diff instead of treating any CliConstants.cs edit as sufficient. This keeps the CI check from passing when Go CLI behavior changes and the minimum-version file is touched without actually bumping MINIMUM_REQUIRED_CLI_VERSION.
Summary
User Impact
Changes
Verification