Repository navigation
fix: record rocm test results for prerelease and nightly-bkc in status.json, drop legacy release-nightly/ routing - #131
Merged
HereThereBeDragons merged 2 commits intoNov 4, 2026
Conversation
…s.json, drop legacy release-nightly/ routing
cgoea
reviewed
Oct 30, 2026
| repo_dir, release_type, c.release_version or "", build_variant | ||
| ) | ||
| else: | ||
| leaf_path = _leaf_status_path( |
Contributor
There was a problem hiding this comment.
small race: _leaf_status_path() runs on the checkout from before _sync_to_upstream(). if the owner (setup) push lands after this receiver checked out main, the lookup finds no document and we return here without entering the fetch/retry loop, so a version-less event is dropped permanently.
Don't think will happen in practice, since test_artifacts starts long after setup is published but better have it covered.
Collaborator
Author
There was a problem hiding this comment.
thanks for catching this! would have been a difficult surprise to catch live
cgoea
approved these changes
Oct 30, 2026
cgoea
left a comment
Contributor
There was a problem hiding this comment.
just one small comment, apart from that looks good. approving cause it's just a small change.
HereThereBeDragons
deleted the
users/lpromber/fix_test_rocm_registration
branch
November 4, 2026 21:19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #130.
Summary
Prerelease and nightly-bkc status.json documents did not record any rocm artifact test results, even though the tests ran and notified Quartz.
test_artifacts.ymlis dispatched without a version input, so its events carry norelease_version. The updater could only route such events for nightly, where it fell back to the run date (created_at). For prerelease and nightly-bkc, the routing raisedValueError: Cannot extract suffix from release_version ''and the receive job failed.We now route every event that does not own a document to an existing one, and use the
quartz_tracking_idowner for events without a version. While touching this path, we also fixed howbuild_dateis stamped and removed the expiredrelease-nightly/routing workaround.Changes
1. Routing of non-owner events (the fix for #130)
Only the owner events (setup run, top-level orchestrator) create a status document; they keep routing by version. Every other event now only updates an existing document:
release_version, the path follows from the version as before. If the document does not exist yet, the event is skipped instead of creating an ownerless document.release_version, the document is found through the owner run id fromquartz_tracking_id(normalized intotrigger_workflow_run_idbyclassify()). The lookup scans the release type's folder for the document whosetrigger_workflow_run_idmatches (about 90 small files onmaintoday).In both cases
_gate_to_document_ownerstill rejects events that belong to a different run. The previous nightly fallback tocreated_atis removed: it routed a test that started after UTC midnight into the next day's folder._status_json_pathnow takes therelease_versioninstead of the whole workflow run and raises explicitly on an empty version.2.
build_dateis stamped by the owner onlyPreviously every event overwrote
build_datewith its owncreated_atdate (except nightly-bkc, which took it from the version). A test finishing after midnight therefore moved the document'sbuild_dateto the next day.build_dateis now set only in_apply_build_metadata, i.e. by the owner events, as the date the owning top-level orchestrator was created. A newer run taking over the document restamps it; a re-run attempt keeps it, since GitHub keepscreated_atacross attempts. This applies uniformly to all release types, which removes the bkc special case. For nightly-bkc the value is unchanged in practice, since the bkc date is the date the bkc run started.3. Removal of the
release-nightly/routing workaroundThe temporary bridge from the #93 folder rename (
_nightly_root, planned for removal after 2026-09-11) is removed. The existingrelease-nightly/data onmainand its scanner excludes are untouched.Testing
test_artifactsevents (Prerelease/nighlty-bkc status.json does not report on rocm artifact test results #130), a nightly test starting after UTC midnight, a leaf never creating a document, a version-less leaf whose owner has no document, an empty version in_status_json_path, andbuild_datestaying on the owner's date for nightly-bkc.pytest scripts docs: 646 passed. pre-commit clean.Follow-ups
release-nightly/data folder and its excludes intrivy.yml,bandit.ymlandpre_commit.yml.🤖 Generated with Claude Code