Skip to content

feat: per-cell build counters on PyTorch/JAX status.json summary - #125

Merged
cgoea merged 8 commits into
developfrom
users/cgoea/framework_build_counts
Nov 11, 2026
Merged

cgoea merged 8 commits into
developfrom
users/cgoea/framework_build_counts

Conversation

@cgoea

@cgoea cgoea commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Motivation

Closes #124. PyTorch and JAX build each Python x framework version as a separate matrix cell. The summary build only carried a worst-of status, so one failed cell hid how many of the others had built. test already carries per-status counters; the PyTorch and JAX build now carries them too.

Technical Details

  • The PyTorch and JAX summary.<platform>.<pipeline>.build carries success, failure, in_progress, cancelled and skipped counts, one per matrix cell, next to the existing worst-of status (unchanged). They are computed by _build_rollup and stored as optional fields on BuildRollup.
  • rocm and native_packages are single builds, so their build stays a bare status with no counters.
  • The counters are optional. Consumers must handle their absence, because documents written before schema 2.2 do not have them.
  • schema_version goes from 2.1 to 2.2. This is a backward-compatible minor addition. Existing 2.x documents are restamped to 2.2 on the next write, using the migration already in place since 2.1.
  • All five counters are kept for parity with test. In practice skipped, and usually cancelled, stay 0: a fully skipped matrix records no cells, so it shows up only in the build's status.
  • Docs: the README.md overview, status_json_reference.jsonc and the changelog describe the counters and that they are optional.

Test Plan

Unit tests in therock_summary_test.py:

  • per-cell counts for PyTorch and JAX, covering all five statuses
  • the exact on-disk dict
  • rocm, native packages and unreported placeholders carry no counters

Test Result

Tests pass.

Submission Checklist

@cgoea
cgoea requested review from a team and HereThereBeDragons October 14, 2026 16:20
@cgoea
cgoea changed the base branch from main to develop October 16, 2026 10:31

@HereThereBeDragons HereThereBeDragons 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.

overall looks good. mainly remarks regarding comments/description.

if we want to update the consumer script we can do it in a follow up

claude suggestions regarding pr title and description:

  • new title: feat: per-cell build counters on PyTorch/JAX status.json summary (schema 2.2).
    Description (Major).
    Mention the schema_version 2.1 → 2.2 bump and that older documents get restamped.
    Drop the "uploads its wheels as soon as it succeeds" claim.
    Change the issue link to Closes #124.

Comment thread docs/status-json/README.md Outdated
`build` is a single status; `test` carries pass/fail counters. The PyTorch and
JAX `build` also carries counters, one per matrix cell (Python x framework
version), since each cell builds and uploads its wheels independently. Each
block is described in detail in

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.

Maybe add something like:
Note however: a successful build does not guarantee that the publishing of the wheel was successful. While urls.wheels points to URL ending in whl-next/ where all types of Python wheels can be found (ROCm, PyTorch, JAX), whl-next/ will be set as soon as ROCm wheels have been published.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

improved readme

Comment thread docs/status-json/README.md Outdated
Test phases in `summary` carry **counters** (one count per matrix entry), not a
single status. Pass/fail is derived by summing or inspecting them.

The PyTorch and JAX `build` phases carry the same five counters next to their

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.

too verbose and at the same time too little useful as a tutorial.

e.g. rocm and native_packages dont need a counter because their status is either success or failures while for pytorch we build multiple iddfferent versions of pytorch x py and as such there are multiple builds.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

hopefully it sounds better now

// carry counters: one count per matrix entry, NOT one per arch. E.g.
// pytorch.test for an arch with a 3 py x 2 torch matrix contributes 6 to
// the counters, not 1.
// the counters, not 1. (schema 2.2) The pytorch / jax build also carries

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.

can we shorten this comment? this is too much details not needed here. we only care that test phase has arch counters and build phase has worst-of rollup of the status and counters

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

Comment thread docs/changelogs/status_json.md Outdated

### Added

- Per-matrix-cell (Python x framework version) `success` / `failure` /

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.

this is rather verbose. could we go with something shorter?

pr number is also missing

│ ├── architectures
│ ├── urls
│ ├── <rocm|pytorch|jax> -> build {status} + test {status counts}
│ ├── <rocm|pytorch|jax> -> build {status [+ cell counts]}

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.

Suggested change
│ ├── <rocm|pytorch|jax> -> build {status [+ cell counts]}
│ ├── <rocm|pytorch|jax> -> build {status [+ status counts]}

same naming as for test

Comment thread docs/changelogs/status_json.md Outdated
they shipped even when they do not move `schema_version`. Entries reference the
pull request that introduced the change.

## schema_version 2.2 - 2026-10-14

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.

needs updating to the merge date then

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ahh, yes. done

@HereThereBeDragons HereThereBeDragons 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.

nearly good to land.
please update pr title and description (previous review had some comments about it)
and have a look at the comments below

Comment thread docs/status-json/README.md Outdated
described in detail in [What is in a status.json](#what-is-in-a-statusjson)
below.
`build` is a single status; `test` carries pass/fail counters. The PyTorch and
JAX `build` also carries counters, one per Python x framework version build.

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 think we have a case where the counters are not posted (e.g. legacy status.json) - so we should add here some saying that it is optiona lthat they have counters

@cgoea cgoea changed the title track pytorch independant versions feat: per-cell build counters on PyTorch/JAX status.json summary Nov 11, 2026
@cgoea
cgoea merged commit a162b63 into develop Nov 11, 2026
16 checks passed
@cgoea
cgoea deleted the users/cgoea/framework_build_counts branch November 11, 2026 15:30
quartz-sync-github-app Bot pushed a commit that referenced this pull request Nov 11, 2026
a162b63, feat: per-cell build counters on PyTorch/JAX status.json summary (#125), Ciprian Goea (ciprian.goea@amd.com), Wed Nov 11 17:30:12 2026 +0200
ethanwee1 added a commit to ethanwee1/Quartz that referenced this pull request Nov 12, 2026
develop's ROCm#125 already shipped status.json schema_version 2.2 (summary
build counters), so this PR's per-variant PyTorch test metrics move to
2.3: SCHEMA_VERSION, the model literal, the reference JSONC, and the
consumer test assertions. Resolve the changelog conflict with a 2.3 entry
above ROCm#125's 2.2 entry, and cover restamping live 2.2 documents.
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