Skip to content

fix(reporting): keep concurrent validation reports distinct - #916

Open
Afloat16 wants to merge 1 commit into
NVIDIA:mainfrom
Afloat16:fix/unique-validation-report-names-20261126
Open

Afloat16 wants to merge 1 commit into
NVIDIA:mainfrom
Afloat16:fix/unique-validation-report-names-20261126

Conversation

@Afloat16

Copy link
Copy Markdown
Contributor

Summary

Two ordinary validate runs that finish in the same second currently write the same report basename. The second run replaces the first run's JSON/HTML and other selected formats, even though the report contract promises a separate artifact for each run. Two concurrent CLI processes reproduce the same loss.

Give the shared basename a UTC microsecond timestamp plus a UUID4 run identifier. The timestamp keeps names sortable; the independent identifier distinguishes repeated clock readings across processes. All selected formats from one run still share a basename, and existing skillevaluator-output-*.json discovery keeps working. The report documentation now describes the filename suffix.

Validation

  • Six new regressions cover identical clock readings, compound extensions, two real concurrent CLI processes, and consecutive ordinary/catalog runs. The old implementation fails the collision checks; the fix preserves both runs' reports byte-for-byte and keeps the catalog summary linked to the current failed run.
  • Relevant helper/CLI/report selection: 65 passed.
  • Whole-repository Ruff, changed-file formatting and git diff --check passed.
  • make build passed locally (wheel and sdist).
  • At immutable head 9af245042032085a78f7e022d0355f0bb82cbee5, a fresh Ubuntu 24.04 runner with Python 3.12 and all locked project extras passed make lint, full make test (45,545 passed, 338 existing skips, 19 existing deselections), and make build (wheel and sdist). The pinned Fern check passed with 0 errors and 1 warning. Full validation run · job and original logs. The project test defaults were unchanged.

Verification

  • I am familiar with the Contributing Guidelines
  • Added or updated focused tests
  • Updated documentation for user-visible changes
  • Ran make lint
  • Ran make test
  • Ran make build
  • Did not add credentials, private datasets, or proprietary benchmark content

Release Impact

  • No user-visible release note needed
  • Updated CHANGELOG.md

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.

1 participant