Skip to content

fix(config): validate case parallelism and retry reasons - #445

Open
karanb192 wants to merge 4 commits into
alibaba:mainfrom
karanb192:fix/validate-parallelism-retry-on
Open

karanb192 wants to merge 4 commits into
alibaba:mainfrom
karanb192:fix/validate-parallelism-retry-on

Conversation

@karanb192

@karanb192 karanb192 commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

A file with cases.parallelism: 5000 passed validation despite the CLI's maximum of 256. A retry policy with retry_on: [timeouts] also passed, but the evaluator never matched that reason.

Changes

The CLI checks the effective parallelism after applying overrides, so run --parallelism can repair a bad file value. A zero file value still selects the loader default. Retry reasons accept timeout and error case-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 validate and run --dry-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 and prints the plan.

Local checks passed with make verify, go test -race ./... and the Codex plugin unit tests.

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.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-27T02:10:56.061594Z 77344b5 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@zpzjzj

zpzjzj commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

I reviewed 77344b5 and found no blocking issues. validate now checks the configured parallelism, while run checks the effective value after applying --parallelism. The accepted retry reasons match what the evaluator recognizes. One optional follow-up would be a CLI-level regression test using the same out-of-range YAML file: validate and run without an override should reject it, while run --parallelism 4 should pass config preparation. This was a static review; I did not run the tests.

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.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants