Skip to content

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

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

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

Conversation

@Afloat16

@Afloat16 Afloat16 commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Current integration update — 2026-12-01

Source: 64f2e5493449a1b4313e0ccbbaa2c177b153aa6a; integrated main: 108fab86c5c0a8e1548289c036f0977a8c934bf3 (1.3.1 release preparation).

Resolved the CHANGELOG conflict by preserving the complete published 1.3.1 history and keeping this PR's entry under Unreleased. All PR-specific source and regression-test blobs are identical to previous head 37eb6a228fa9a2a016d80910ab35efd7b2d04aff. The merge preserves both parents and carries the required DCO sign-off.

Validation for this merge: whitespace checks, released-history preservation, and exact source/test blob comparisons passed. GitHub now reports the PR as conflict-free. Current-source integration checks await maintainer workflow approval; the earlier test results below retain their original revision scope.

Previous integration update (main ad4a12f)

Source: 37eb6a228fa9a2a016d80910ab35efd7b2d04aff; integrated main: ad4a12f0e17fe42e8f6839e41b6799ab8990bcf3. Resolved the CHANGELOG conflicts after the 1.3.0 release and stable-CI update. The released history and new upstream entry are preserved, with this PR’s change under Unreleased. The PR-specific source and regression-test files are unchanged from the previous head.

Focused validation: 6 report-name collision tests passed, on tree 5f4baeddc8ff7d1782aa9af038306e9b5d1be1a7 before the final CI-only main update. That final update changes only CI files and CHANGELOG; the tested runtime and regression files are unchanged. The updated CI modules passed 240 tests on the final #905 integration tree, and those CI blobs are identical in all 11 refreshed branches. Repository Ruff and whitespace checks passed.

Current-head upstream workflows require maintainer approval. Earlier results below apply to their recorded revisions.

Original contribution and validation before this integration update

Current review follow-up (2026-11-30)

Current source: 6fe0925, including main d218ef8. Report names now use a 12-character random hexadecimal run ID. The changelog states the timestamp change from 14 to 20 digits and the appended run ID so basename parsers can adapt. CLI help, the report reference, CI documentation and bundled skill references consistently use skillevaluator-output-<timestamp>-<run-id>. Both sides of the changelog merge are preserved.

Current-source verification: 55 passed across report-collision, helper and CLI-surface tests, including two actual concurrent CLI processes. make lint, changed-file Ruff formatting, make build and whitespace checks passed. Pinned Fern 5.121.0 validation with telemetry disabled reported 0 errors; its single warning is that the authenticated remote redirect check was skipped. The new upstream CI run and companion workflows are awaiting approval. Earlier verification below applies to its named source.


Current source and main refresh — 2026-11-30

Current source: 769381c6a9ac78891758940f136afc2688bc75f5, including main 8b057485209ae956f4d520b8132bbe5c004f5988 in a signed-off merge. The changelog keeps both main’s new entries and this PR’s report-naming entry. The overlapping documentation change preserves main’s current layout while describing the implemented microsecond timestamp and random run identifier consistently in the filename table and prose. The report helper and collision regressions are unchanged.

Validation of this source completed with 261 passed, 0 failed, plus whole-repository lint, the OSS-boundary scan, wheel/sdist builds and final source/tree/lockfile checks on Ubuntu 24.04 / Python 3.12 with the locked full extras. The pinned Fern 5.121.0 check on Node 22 passed with 0 errors and 1 warning.

These are focused checks on the current main merge. Earlier results below retain their stated source revisions. Upstream workflow approval and final maintainer review remain pending.


Earlier main refresh and validation — 2026-11-29

Current source: 11e4fb2134160eab5025bce962ee3be9c9b82454. The signed-off merge includes main da729c85676fc965ff81e710af89953126b44041. The only manual conflict resolution was in CHANGELOG.md: the distinct validation report basenames entry remains a separate bullet under Unreleased → Fixed, and all main entries are preserved. The original contribution changes and regression coverage remain intact.

At this exact source, focused contribution and integration validation completed with 261 passed, 0 failed. Whole-repository make lint, OSS-boundary checks, make build (wheel and sdist), and final source/tree/lockfile checks also passed on Ubuntu 24.04 with Python 3.12 and the locked full extras. The pinned Fern 5.121.0 check on Node 22 also completed with 0 errors and 1 warning.

These are focused checks on the new main merge. The earlier complete-suite results below retain their stated source revisions.


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>
@rng1995

rng1995 commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator

Thanks @Afloat16 for this contribution. I prepared and verified a signed-off merge against main at 86f1f141. The only conflict is in CHANGELOG.md.

Please enable Allow edits from maintainers in the PR sidebar so I can push the prepared merge. You can also merge main into this branch and keep the distinct validation report basenames entry as a separate bullet under ## Unreleased → ### Fixed, preserving the entries from main.

Signed-off-by: Afloat <ShuffleMonkey@163.com>
auto-merge was automatically disabled November 29, 2026 12:34

Head branch was pushed to by a user without write access

@Afloat16

Copy link
Copy Markdown
Contributor Author

Merged current main in signed-off commit 11e4fb21. The distinct validation report basenames entry is kept separately under Unreleased → Fixed, with all main entries preserved. Only the changelog conflict needed manual resolution; the original contribution patch and regression coverage are retained.

Validation of this exact merged source passed 261 passed, 0 failed, whole-repository lint, OSS-boundary checks, wheel/sdist builds and final clean-source checks. The pinned Fern 5.121.0 check on Node 22 also completed with 0 errors and 1 warning. The description now distinguishes these new focused results from the earlier complete-suite results. Fresh upstream workflows still await maintainer approval.

The requested main sync is ready for your final review.

Preserve the upstream documentation layout while describing the contribution's microsecond timestamp and random run identifier in both the naming table and prose. Keep both sides' changelog entries.

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 the overwrite on main: with the clock frozen, two validate runs into the same output dir leave one JSON/HTML pair, and two real concurrent CLI processes do the same. At this head both runs keep their reports byte for byte and the catalog summary points at the current run. The six new tests fail on main's source and pass at head, and the existing report-name tests I could find (helpers, CLI and commands catalog subsets) still pass.

The change itself is small and safe: make_timestamped_basename has exactly one caller (the combined validate basename), nothing in src or tests parses the old 14-digit shape, and a 122-bit random id is a perfectly good substitute for an atomic create. What does change for users is the filename: every report is now about 40 characters longer and the timestamp is 20 digits instead of 14. I would say that plainly in the CHANGELOG entry so anyone with tooling that pulls the timestamp out of the name is not surprised, and I left two nits inline about the uuid length and the other docs that still show the old placeholder.

CHANGELOG entry is under Unreleased / Fixed; the only conflict with main is CHANGELOG.md.

Comment thread src/skillevaluator/utils/helpers.py Resolved
Comment thread docs/reports.mdx Resolved
Signed-off-by: Afloat <ShuffleMonkey@163.com>
@Afloat16

Copy link
Copy Markdown
Contributor Author

Addressed both notes in 6fe092536166: the random run ID is now 12 hexadecimal characters, and all active CLI/help/report/CI/skill references use skillevaluator-output-<timestamp>-<run-id>. The CHANGELOG explicitly records the timestamp change from 14 to 20 digits and the appended ID, with a matching filename example.

All 55 related tests pass, including frozen-clock shape checks, preserved reports and two concurrent CLI processes. Lint, formatting and build pass. Pinned Fern validation reports 0 errors; its only warning is the unauthenticated remote redirect check being skipped. The CHANGELOG conflict is also resolved. Could you approve the new workflows and re-review?

Retain the pull request contribution and current upstream changes.
Resolve the CHANGELOG conflict by preserving both sets of entries.

Signed-off-by: Afloat <ShuffleMonkey@163.com>
Preserve the published 1.3.0 history and the new stable-CI release note,
and place this pull request's change under Unreleased. Keep the reviewed
source and test changes.

Signed-off-by: Afloat <ShuffleMonkey@163.com>
Keep the published 1.3.1 release history and this pull request's change
under Unreleased. The reviewed source and test changes are unchanged.

Signed-off-by: Afloat <ShuffleMonkey@163.com>
Integrate main 9747bc1 while retaining the original contribution and its regression coverage. Keep the release note as a separate Unreleased Fixed bullet and preserve all main entries.

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

rng1995 commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

@Afloat16 Please resolve merge conflicts and provide permission for me to merge your PR.

Keep the contribution under Unreleased and retain the complete published release history.

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.

3 participants