Repository navigation
Conversation
cases.parallelism outside the documented range of 1 to 256 passed validate, and so did a misspelled retry_on reason such as 'timeouts', which the evaluator never matches, so retries silently never happened. Reject both; reasons still match without case, as the evaluator does.
run --parallelism replaces the file value, so a file value of 257 overridden by 4 must still run. run now checks the effective value after its overrides and validate checks the file value. Share one limit between the YAML and flag checks, and describe what a misspelled retry reason did precisely.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
I reviewed |
The existing tests call ValidateCasesParallelism and applyRunConfigOverrides directly. This drives the real validate and run commands against one eval file with cases.parallelism 257: validate and run without an override reject it, and run --parallelism 4 passes config preparation. run uses --dry-run so it stops before any agent is built.
Summary
A file with
cases.parallelism: 5000passed validation despite the CLI's maximum of 256. A retry policy withretry_on: [timeouts]also passed, but the evaluator never matched that reason.Changes
The CLI checks the effective parallelism after applying overrides, so
run --parallelismcan repair a bad file value. A zero file value still selects the loader default. Retry reasons accepttimeoutanderrorcase-insensitively. An unknown reason is reported with its index.Related issues
Refs #407.
Test plan
Regression tests cover the parallelism boundaries, a valid command-line override of a bad file value, and recognized and misspelled retry reasons.
A CLI-level test runs the real
validateandrun --dry-runcommands against one eval file withcases.parallelism: 257.validateandrunwithout an override reject it, andrun --parallelism 4passes config preparation and prints the plan.Local checks passed with
make verify,go test -race ./...and the Codex plugin unit tests.