Repository navigation
Clarify integer-minute timeout flags in CLI help - #79596
Conversation
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
|
✅ Ponytail Reviewer completed successfully! Ponytail ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
|
✅ PR Specification Reviewer completed successfully! Caution agentic threat detected DetailsPotential security threats were detected in the agent output. Detected threat types: prompt injection. Review the workflow run logs for details. PR Specification ReviewerOutcome: The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ PR Code Quality Reviewer completed the code quality review. PR Code Quality ReviewerOutcome: The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality SentinelOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
There was a problem hiding this comment.
Reviewed the changed help text and timeout-flag tests. No actionable correctness, performance, security, or maintainability issues found in the diff.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~2 AIC · ⌖ ~1 AIC · ⊞ 1.6K
Comment /review to run again
Comment MemoryPeek at saved memory (spec-review-history)History |
Comment MemoryPeek at saved memory (review-history)History |
There was a problem hiding this comment.
🟢 Approval recommended
The review identified no actionable issues in the timeout wording changes or their associated coverage.
No open issues 🎉
What changed in this PR
Clarifies that the --timeout flags for logs, forecast, and trial accept integer minutes, reducing ambiguity with commands that accept Go duration values.
Changes:
- Updated timeout help text with explicit integer-minute wording and plain-number examples.
- Added regression coverage for timeout help text and integer flag types across all three commands.
- No actionable issues found.
| File | Description |
|---|---|
| pkg/cli/trial_command.go | Clarifies that the trial timeout is specified in integer minutes. |
| pkg/cli/logs_command.go | Clarifies that the logs timeout is specified in integer minutes. |
| pkg/cli/forecast_test.go | Verifies timeout help text and integer flag types across the affected commands. |
| pkg/cli/forecast_command.go | Clarifies that the forecast timeout is specified in integer minutes. |
Review effort: Lite (adaptive)
There was a problem hiding this comment.
Skills-Based Review 🧠
Applied /tdd (test structure) and /grill-with-docs (help-text consistency). No blocking issues.
📋 Key Themes & Highlights
Key Themes
- Help text consistency:
logs,forecast, andtrialnow all say "integer minutes" and give a plain-number example. This matches the parsing (GetInt/Int) and the table indocs/src/content/docs/setup/cli.md. - Test coverage: the parameterized test checks the usage string and the flag type for all three commands.
Positive Highlights
- ✅ Help text changes only; no behaviour change.
- ✅ The stale
TestNewForecastCommand_TimeoutFlagwas replaced rather than left alongside the new test. - ✅
go testfor the new test andgofmt/go vetonpkg/clipass.
Suggestions
- The test-table default check is special-cased for
forecast(inline comment onforecast_test.go). Moving the default into the table would coverlogsandtrial. logs episode --timeoutis a Go duration (flags.DurationVarinlogs_episode_retrieval_command.go) but its help does not say so. That is outside this diff, so consider a follow-up.
@copilot please address the review comments above.
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~3 AIC · ⌖ ~2 AIC · ⊞ 6.6K
Comment /matt to run again
| require.NotNil(t, timeoutFlag, "%s command should register --timeout", tt.name) | ||
| assert.Equal(t, tt.want, timeoutFlag.Usage) | ||
| assert.Equal(t, "int", timeoutFlag.Value.Type()) | ||
| if tt.name == "forecast" { |
There was a problem hiding this comment.
[/tdd] Branching on tt.name == "forecast" makes the default-value check a special case, so logs (default 0) and trial (default 30) never assert their defaults. Add a wantDefault field to the table and assert it for every row.
💡 Suggested change
tests := []struct {
name string
cmd *cobra.Command
want string
wantDefault string
}{
{name: "logs", cmd: NewLogsCommand(), want: "...", wantDefault: "0"},
{name: "forecast", cmd: NewForecastCommand(), want: "...", wantDefault: "0"},
{name: "trial", cmd: NewTrialCommand(func(string) error { return nil }), want: "...", wantDefault: "30"},
}
// in the loop
assert.Equal(t, tt.wantDefault, timeoutFlag.DefValue)Each row then pins its own default, and the loop has no special cases.
@copilot please address this.
There was a problem hiding this comment.
Added a per-row wantDefault assertion for logs (0), forecast (0), and trial (30) in edad1da.
|
🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:
Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering. Structured data{
"completed_task": 0,
"head": "3d6c08b690419d81ea54dfbd7e83d595a8ae1529",
"kind": "requested",
"schema_version": "1",
"state": "fe19c5b55e1ef571d34388f7aa6566e4960ca16992e7de2eaa3febc6f32c5bf8",
"work": [
"0384d253d3410c71a864e41868d2b53514a0546251850d41a7465f9d24f0c2f9",
"91d8bfe9af1be232f05ad7572c2b99daf6239210422bb414c3a585cb50c2bf16"
],
"workflow": "pr-sous-chef"
}
|
…cy-fix Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
The
--timeoutflag accepts integer minutes onlogs,forecast, andtrial, but Go durations on other commands. Help text now makes the integer-minute format explicit.