Skip to content

Add trigger_repository to status.json (schema bump to 2.3, consumer bump to v1.4.0) - #138

Merged
HereThereBeDragons merged 2 commits into
developfrom
users/lpromber/issue_136
Nov 25, 2026
Merged

HereThereBeDragons merged 2 commits into
developfrom
users/lpromber/issue_136

Conversation

@HereThereBeDragons

Copy link
Copy Markdown
Collaborator

Motivation

A GitHub Actions run ID alone is not enough to look up a run or fetch its
artifacts; TheRock's tools also need the repository (--run-github-repo,
which defaults to $GITHUB_REPOSITORY or ROCm/TheRock). Since #137,
consumers can read the run ID of a nightly from Quartz, but they still have to
know that nightlies run in ROCm/rockrel. This PR records the repository next
to the run ID in status.json and exposes it through the consumer reader, so
consumers no longer need to hardcode it.

Closes #136

Technical Details

status.json (schema 2.2 -> 2.3):

  • New top-level field trigger_repository (for example ROCm/rockrel). The
    setup run and the top-level orchestrator set it together with
    trigger_workflow_run_id, so a newer run replaces both and a stale run
    changes neither.
  • Any accepted write restamps an older document to 2.3. When that write
    upgrades a 2.2 document, the producer also fills in trigger_repository from
    the incoming run. Therefore every 2.3 document carries the key.

Producer:

  • The repository now lives on the classification
    (Classification.repository). classify(wr, repository) copies it from the
    dispatch envelope, so the status writer and future database ingest read it
    from the same place.

Consumer reader (v1.4.0):

  • StatusDocument.trigger_repository returns the recorded owner/repo. Schema
    2.0 - 2.2 documents do not record it; for them it returns ROCm/rockrel,
    where all of those workflows ran. From 2.3 on, a missing or malformed value
    raises ValueError.
  • New --get-repo CLI option prints the repository. It takes no platform,
    since the repository belongs to the whole document, and it is mutually
    exclusive with --get-run-id.

Docs:

  • Schema reference, status.json README, and both changelogs are updated.
  • The fetch-artifacts tutorial resolves nightly/latest.json to its dated
    status document once, reads the run ID and the repository from it, and
    passes both to TheRock's tools.

Test Plan

  • python -m pytest scripts docs
  • Live check against the published nightly: the tutorial commands resolve
    nightly/20261124/status.json and return run ID 45293646167 and
    repository ROCm/rockrel (via the pre-2.3 fallback).

Test Result

  • 675 tests passed. NotifyQuartzWiringTest fails locally because it reads a
    local TheRock checkout; it fails the same way on main and is unrelated to
    this change.
  • New tests cover the repository on owner events, replacement by a newer
    owner from a different repository, rejection of a stale re-run, the 2.2 ->
    2.3 upgrade through both leaf and owner events, and the consumer fallback
    and error cases.

Submission Checklist

Generated with Claude Code

@HereThereBeDragons
HereThereBeDragons requested a review from a team November 24, 2026 21:27

@cgoea cgoea left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good.

@HereThereBeDragons
HereThereBeDragons merged commit 6883546 into develop Nov 25, 2026
13 of 14 checks passed
@HereThereBeDragons
HereThereBeDragons deleted the users/lpromber/issue_136 branch November 25, 2026 19:30
quartz-sync-github-app Bot pushed a commit that referenced this pull request Nov 25, 2026
6883546, Add `trigger_repository` to `status.json` (schema bump to 2.3, consumer bump to v1.4.0) (#138), Laura Promberger (laura.promberger@amd.com), Wed Nov 25 20:30:23 2026 +0100
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