feat: support multiple job IDs in roborev wait#377
Merged
wesm merged 4 commits intoroborev-dev:mainfrom Feb 26, 2026
Merged
Conversation
roborev: Combined Review (
|
Allow `roborev wait 251 252 253` to wait for multiple jobs concurrently. All jobs are polled in parallel and exit code is 1 if any job fails. Works with both `--job` flag and auto-detection of numeric job IDs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add explicit cobra.ArbitraryArgs to document intent - Hoist repoRoot and ensureDaemon() before resolution loop - Poll goroutines in quiet mode to avoid interleaved output Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
waitMultiple had three bugs: 1. Only ErrJobNotFound was reported to the user; FAIL verdicts, failed/canceled jobs, and fetch errors were silently swallowed (exit 1 with no message). Now all failures print a per-job line. 2. git.ResolveSHA was called twice for the same arg — once to check validity, then again to get the value. Collapsed to a single call. 3. ensureDaemon() was called before local validation (parsing job IDs, resolving git refs), unlike the single-arg path. Restructured into three phases: local validation, ensureDaemon, daemon-backed lookups. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add table-driven tests for the default branch in waitMultiple's per-job error reporting: failed jobs, canceled jobs, and review fetch errors (done status with missing review). These paths were untested despite being central to the fix in the previous commit. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
roborev: Combined Review (
|
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
roborev waitto accept multiple job IDs/refs, waiting for all concurrentlyroborev wait --job 251 252 253orroborev wait 251 252 253now worksTest plan
TestWaitMultipleJobIDs— all jobs pass, expect exit 0TestWaitMultipleJobIDsOneFails— one fails, expect exit 1TestWaitMultipleJobIDsValidation—--shaincompatible with multiple args🤖 Generated with Claude Code