feat(update): expose release check target options#96
Conversation
Zero automated PR reviewVerdict: No blockers found Blockers
Validation
ScopeHead: This deterministic review checks validation status and basic diff hygiene. A human reviewer still owns product judgment and design quality. |
|
Too much diff to scan? Review this PR in Change Stack to start with the highest-impact changes. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
WalkthroughThe PR extends ChangesUpdate Check Flags
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes Possibly related PRs
Suggested reviewers
🚥 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)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@internal/cli/update.go`:
- Around line 109-116: The parseUpdateTimeout function currently allows zero or
negative durations because time.ParseDuration accepts them; after parsing the
trimmed value in parseUpdateTimeout, validate that timeout > 0 and if not return
an execUsageError with a clear message like "update timeout must be a positive
duration" (include the original value in the message). Update parseUpdateTimeout
to perform this check and return the execUsageError when timeout <= 0 so callers
get immediate, actionable feedback.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: b388128b-eb89-4823-b350-1c1e89b6f0a8
📒 Files selected for processing (5)
README.mddocs/UPDATE.mdinternal/cli/app_test.gointernal/cli/update.gointernal/update/update_test.go
Review: PR #96 — feat(update): expose release check target options (anandh8x / Anandan)URL: #96 Ownership Fit (WORK_SPLIT_PRD v3)Strong match for Anandan's platform product owner lane:
This PR adds Clean boundary with runtime (Gnanam's areas): Fits "every PR must expose user-runnable behavior" (enhanced Summary of Change
Validation per PR:
CodeRabbit: APPROVED. Code Quality & TestsPositive:
Minor observations (not blocking):
Tests from PR validation pass locally. Full Alignment with PRD / WORK_SPLIT / DoD
RecommendationApprove. This is exactly the kind of platform/release verification work Anandan is supposed to own. Small, targeted, well-tested enhancement to Minor future polish (not for this PR):
Great incremental improvement to release trust tooling. (Previous Anandan platform reviews followed the same positive pattern: lane fit, boundary notes, tests/DoD check, approve rec.) Review generated per user's request for PR 96. |
gnanam1990
left a comment
There was a problem hiding this comment.
Formal approval following detailed review.
This is clean, targeted platform/release verification work for Anandan's lane per WORK_SPLIT_PRD v3:
- Adds --repo/--endpoint/--timeout to zero update --check.
- Passes through to update checker with good tests for passthrough, invalid values, precedence, help.
- Updates docs with clear flag/env/default guidance.
- Fits 'update verification' and 'release metadata validation' exactly.
- Delivers user-runnable behavior + tests + smoke verification.
- No runtime contract impact (Gnanam areas untouched).
CodeRabbit approved; tests pass locally; validation steps succeed.
LGTM. Approving.
See detailed comment for full ownership fit, code notes, and minor suggestions: #96 (comment)...
Summary
Validation
Coordination
This PR is in the update/release verification lane and does not touch the runtime permission decision work in #95.
Summary by CodeRabbit
New Features
--repo,--endpoint, and--timeoutflags to the update check command for greater flexibility in specifying release sources and behavior.Documentation
Tests