3/3 Document the v1.0 format, rules, and run-folder layout - #82
Conversation
|
MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅ |
79b5c31 to
0d3ddb3
Compare
|
|
||
| A run flagged `--test` shows as `Test Run │ Yes` in `runs get`. It is **not** visible in | ||
| `runs list`: that view is served by the API's `RunSummary` schema, which does not carry | ||
| `is_test`, so the test marker stays dormant there until the API exposes it. |
There was a problem hiding this comment.
I think this is more like a TODO?
anandhu-eng
left a comment
There was a problem hiding this comment.
LGTM.
One point I noted: There are information being duplicated multiple places. Especially related to cli sub commands. It would be great if we could clean them
| `Accuracy + Performance`, which describes the dataset rather than this run — the build | ||
| fails with a message naming the run. | ||
|
|
||
| That is deliberate. Defaulting to "performance" was silently destructive: an accuracy |
There was a problem hiding this comment.
"defaulting to performance was" to " defaulting to performance is"?
| 9. Push the merged branch to the GitHub PR. | ||
| 1. `GET /submissions/{id}` — fetch the current run list and division. | ||
| 2. **Reject the update if it would add a run** (see below); log removed runs. | ||
| 3. `PATCH /submissions/{id}` with the new `run_ids` (and any metadata fields) in a single call. |
There was a problem hiding this comment.
Should the wording be "updated run_ids". Feel the "new run_ids" might convey the possibility to add new points.
| **Order of operations:** DB update (`DELETE /submissions/{id}`) → delete archive (`DELETE /submissions/{id}/archive`). | ||
|
|
||
| PR closure and archive deletion are best-effort — failures are reported as warnings but do not change the exit code. The submission is already `WITHDRAWN` in the database. | ||
| Archive deletion is best-effort — a failure is reported as a warning but does not change the exit code. The submission is already `WITHDRAWN` in the database. The CLI does not close the review pull request; it no longer manages one. |
There was a problem hiding this comment.
it no longer manages one
I'm wondering if we should leave reference to the past? Seems the past is referenced in many part of documentation
| **If the GitHub PR step fails** the submission record and uploaded bundle still | ||
| exist. Retry the PR step manually with `gh pr create` on the submission branch, | ||
| then contact MLCommons to update the PR linkage. | ||
| **If the final status PATCH fails** the submission record and uploaded bundle still |
There was a problem hiding this comment.
What does "final status PATCH" mean here?
| └── accuracy/ | ||
| ├── accuracy.txt | ||
| └── accuracy_result.json | ||
| <submitting_organization>/ |
There was a problem hiding this comment.
The directory structure seems to be documented multiple places. how about documenting it in one place and referencing in others
0d3ddb3 to
2ace2e5
Compare
2ace2e5 to
18474f6
Compare
README's structure diagram and rules tables were still describing v0.7's systems/ + pareto/ tree and its four *_throughput coverage rules. Rewritten against §8.1's tree, with the ~57 checks grouped by area (structure, system description, regions, measurement points, seed binding, metrics, accuracy) so a submitter can find the rule that rejected them. Also corrects references that had drifted or were never right: system_desc_id.json and run_metadata.json (both removed by policies PR #119), system_info.json (a filename the CLI has never read — it wants system_desc.json), seeds documented as 42 (v1.0 rotates them per §4.6), and the claim that config.yaml is required, which it no longer is in either the run folder or the bundle. The run-folder layout blocks now show the phase directories mlcommons/endpoints actually writes, and link to docs/endpoints-cli/reference/run-folder-layout.md rather than restating it. Drops the GitHub PR flow, which the docs described far more thoroughly than the code ever still implemented: the architecture reference's module inventory, dependency graph, two sequence diagrams, update_pr_branch strategy section and GitHubError; the `gh` install-and-authenticate prerequisites in the README and getting-started guide; MLPERF_SUBMISSION_REPO, which no source file reads; four per-command pipelines whose numbered steps included cloning the repo, merging into a PR branch and pushing; three copies of the PR-branch file update strategy table; and sample output printing a PR URL the CLI does not emit. Removes the add-run documentation to match the command's deletion, and records the rule behind it where a reader will meet it — on remove-run, which is the operation that now has a sharp edge. Withdrawing a faulty point is still permitted by §8.1 Corrections, but §8 no longer provides a window for adding one, so a submission that drops below the 7-point minimum cannot be repaired. `update --run-ids` gets the same note. pyproject gains package-data so data/seed_sets.yaml ships with the wheel; without it the seed checks would fail on an installed copy while passing from a checkout. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
18474f6 to
49e4ec6
Compare
Stack 3 of 3 ·
main← [#80 1-fixtures] ← [#81 2-checker] ← 3-docsDocumentation only — no source or test changes. 7 files.
README's structure diagram and rules tables were still describing v0.7's
systems/+pareto/tree and its four*_throughputcoverage rules. Rewritten against §8.1's tree,with the ~57 checks grouped by area (structure, system description, regions, measurement
points, seed binding, metrics, accuracy) so a submitter can find the rule that rejected
them.
References corrected
Some had drifted with the format; one was never right.
system_desc_id.json,run_metadata.jsonsystem_info.jsonsystem_desc.json42config.yamlandpoint.yamlare both required"config.yamlis required in neither the run folder nor the bundleresult_summary.jsonin the run foldermlcommons/endpointsactually writesThe run-folder layout blocks now link to
docs/endpoints-cli/reference/run-folder-layout.md(added in #78) rather than restating it, so there is one place to keep current.
GitHub PR flow removed from the docs
Follows the module deletion in #81. The architecture reference documented
github_ops.pyin its module inventory, dependency graph, two mermaid sequence diagrams, a
update_pr_branchstrategy section, and the exception hierarchy — all describing code thathas been unreachable since May and is now gone. The usage docs no longer claim
submissions createopens a pull request, and no longer print aPR: …line it neveremits.
pr_url/pr_numberstay documented as fieldssubmissions getdisplays: the recordstill carries them, the CLI just doesn't set them.
The docs described this flow far more thoroughly than the code still implemented it — the
ghinstall-and-authenticate prerequisites,MLPERF_SUBMISSION_REPO(which no source filereads), four per-command pipelines whose numbered steps included cloning the repo and
pushing to a PR branch, three copies of the PR-branch file update strategy table, and
sample output printing a PR URL the CLI does not emit.
Post-submission run additions removed
Follows the command deletion in #81.
endpoints_policies7fd3e89deletedSubmission Rules §8.1 Pareto Updates, so the
add-rundocumentation goes with it.Rather than only delete mentions, the rule is recorded where a reader will meet it — on
remove-runandupdate --run-ids, with the consequence spelled out: withdrawing a faultypoint is still permitted (§8.1 Corrections), but a submission that drops below the
7-point minimum cannot be repaired by adding another.
pyproject.tomlAdds
package-datasodata/seed_sets.yamlships with the wheel. Without it the seedchecks would fail on an installed copy while passing from a checkout — the kind of gap that
only shows up after release.