Repository navigation
feat: per-cell build counters on PyTorch/JAX status.json summary - #125
Conversation
HereThereBeDragons
left a comment
There was a problem hiding this comment.
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.
| `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 |
There was a problem hiding this comment.
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.
| 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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
|
|
||
| ### Added | ||
|
|
||
| - Per-matrix-cell (Python x framework version) `success` / `failure` / |
There was a problem hiding this comment.
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]} |
There was a problem hiding this comment.
| │ ├── <rocm|pytorch|jax> -> build {status [+ cell counts]} | |
| │ ├── <rocm|pytorch|jax> -> build {status [+ status counts]} |
same naming as for test
| 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 |
There was a problem hiding this comment.
needs updating to the merge date then
…goea/framework_build_counts
…om/ROCm/Quartz into users/cgoea/framework_build_counts
HereThereBeDragons
left a comment
There was a problem hiding this comment.
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
| 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. |
There was a problem hiding this comment.
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
Co-authored-by: Laura Promberger <laura.promberger@amd.com>
…om/ROCm/Quartz into users/cgoea/framework_build_counts
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.
Motivation
Closes #124. PyTorch and JAX build each Python x framework version as a separate matrix cell. The
summarybuild only carried a worst-ofstatus, so one failed cell hid how many of the others had built.testalready carries per-status counters; the PyTorch and JAXbuildnow carries them too.Technical Details
summary.<platform>.<pipeline>.buildcarriessuccess,failure,in_progress,cancelledandskippedcounts, one per matrix cell, next to the existing worst-ofstatus(unchanged). They are computed by_build_rollupand stored as optional fields onBuildRollup.rocmandnative_packagesare single builds, so theirbuildstays a barestatuswith no counters.schema_versiongoes 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.test. In practiceskipped, and usuallycancelled, stay 0: a fully skipped matrix records no cells, so it shows up only in the build'sstatus.README.mdoverview,status_json_reference.jsoncand the changelog describe the counters and that they are optional.Test Plan
Unit tests in
therock_summary_test.py:Test Result
Tests pass.
Submission Checklist