Skip to content

fix(cli): retain catalog summaries after worker failures - #909

Open
Afloat16 wants to merge 3 commits into
NVIDIA:mainfrom
Afloat16:fix/catalog-worker-failure-summary-20261126
Open

Afloat16 wants to merge 3 commits into
NVIDIA:mainfrom
Afloat16:fix/catalog-worker-failure-summary-20261126

Conversation

@Afloat16

@Afloat16 Afloat16 commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Parallel catalog validation loses its fleet summary when a worker raises outside the child CLI invocation or exits before returning a result. future.result() aborts the parent, and a broken pool can also reject later submissions before completed results are collected. CI then has no catalog-summary.json, even when other members already produced valid reports.

Associate every submitted future with its catalog member. Record submission and result exceptions as execution failures, then write the normal fleet summary and annotations. Completed members retain their exact report links; members without a returned result have a failure reason and no claimed report. The command still exits with code 1 when any member fails.

Verification

  • I am familiar with the Contributing Guidelines.
  • Added two regressions using real ProcessPoolExecutor workers: a missing working directory raises before child validation, and an abruptly exiting disposable worker breaks the pool and rejects the next submission.
  • Both regressions fail on the base revision because the catalog summary is absent. They verify all member identities, failed counts, preserved successful reports, failure annotations, and exit code 1 after the fix.
  • 53 catalog tests passed, including the two new regressions; another 28 catalog command tests passed (149 unrelated command tests were outside that focused selection).
  • Ran full-repository Ruff, changed-file formatting, and git diff --check.
  • Ran make build; wheel and source distribution built successfully.
  • Required gates passed on Ubuntu 24.04 / Python 3.12 after uv sync --all-extras --locked --python 3.12: make lint, make test, and make build, using the checkout’s .venv/bin/python. Full validation run checked exact contribution head a623df6104e622b9ec32cfb4e53f362256e136b8; pytest reported 45,541 passed, 338 skipped, 19 deselected. Skips and marker exclusions are the repository’s existing defaults; no new skips or filters were added.
  • No credentials, private datasets, or proprietary benchmark content were added.

Review follow-up validation

The current head ca241aae5f60116d9f26bb9b49a6135968960157 preserves the concurrent review update and redacts both worker submission and result exception details through the existing bounded diagnostic redactor. Four real-process regression cases verify credential masking and diagnostic size bounds, while the original worker failure cases still verify that healthy skills finish and a failed run exits nonzero.

At that exact head, a fresh Ubuntu 24.04 runner with Python 3.12 and all locked project extras passed make lint, the full make test (45,545 passed, 338 existing skips, 19 existing deselections), and make build (wheel and sdist). Full validation run · job and original logs. These are the fork preflight results; upstream PR workflow approval/results are separate.

Release Impact

  • Updated CHANGELOG.md.

Signed-off-by: Afloat <ShuffleMonkey@163.com>

@chrisknvidia chrisknvidia left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reproduced this on main with the PR's tests: a worker exception before the child CLI runs, and a worker that exits abruptly, both end with exit code 1 and no catalog-summary.json, so the members that had already validated lose their links too. At this head both cases write the summary with every member present: the failed ones carry a reason and no report link, the completed ones keep their exact report, the GitHub annotation stream still names the failure, and the command still exits 1. Row order is unchanged (entries follow discovery order and failures are sorted as before), and the serial path already handled this, so nothing else moves. The catalog, discovery, commands and GitHub reporter suites are the same between main and this head, and the new tests passed three repeated runs here.

One nit inline about the reason string: it drops the exception message and is also long enough that the console scoreboard truncates it. I reverted each of the two guards on its own as well; the submit guard is needed for the broken-pool case and the result guard for both, so both new tests earn their place.

Comment thread src/skillevaluator/cli.py Resolved
Signed-off-by: Afloat <ShuffleMonkey@163.com>
Signed-off-by: Afloat <ShuffleMonkey@163.com>

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