Repository navigation
ci: treat a workload's microseconds as a measured field - #192
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The trusted guard permits undetected edits to the bot-only microseconds field, while CI accepts explicit null values that would abort batch publication once #193 lands.
2 open issues
What changed in this PR
Prepares CI for #193’s per-workload microseconds field by treating it as bot-managed measurement data alongside speedup and accuracy. No schema or Python code changes are included.
Changes:
- Extend publish-measurement’s authored-data comparison and value checks to cover
microseconds. - Include
microsecondsin perf-guard’s measured-field protection.
| File | Description |
|---|---|
.github/workflows/perf-guard.yaml |
Include microseconds when separating authored data from bot-managed measurements. |
.github/workflows/ci.yaml |
Update measurement-field documentation, authored-data filtering, and measured-value validation. |
Review effort: Max
|
Closing: this exists to serve the shepherd's roofline strategy, and its change moves into feat/shepherd-model-roofline-strategy, which is being rewritten as one branch. |
|
Reopening: closed by mistake. The measurement job that accepts a bot-written |
A coming change publishes each workload's kernel time as `microseconds`, beside `speedup` and `accuracy`. publish-measurement's authored-parts and shape checks and perf-guard now treat it as a measured field only the bot writes: the measurement PR may add or change it, a contributor's PR may not. Until a schema carries it, nothing changes.
0ae6907 to
92c206a
Compare


Why
#193 publishes each workload's kernel time as
microseconds, besidespeedupandaccuracy. publish-measurement and perf-guard must treat it as a measured field only the bot writes before any schema carries it. Otherwise the first measurement PR after #193 is refused. Merge this one before #193.Scope
ci.yaml, publish-measurement:authoreddropsmicrosecondswith the other measured fields;shapeaccepts it absent or a positive number, in one check withspeedup.perf-guard.yaml:authoredandmeasuredincludemicroseconds, so a contributor's PR cannot add or change it.microseconds, nothing changes.Verification
Environment: head
0ae690782, jq 1.6 (GitHub's runners have a newer jq)Gate overrides: none
Code
The
shapecheck of main and of this head, run withjq -eon main's 666 schemas:microseconds 4.17adds a time to each measured workload; it must still pass.microseconds 0puts 0 on every workload; it must fail.ci.yamlstill parses as YAML.aklr/corechange, so no schema or measurement version is involved.Not run
ci:gpu: no schema or Python code changes.Risk
Affects: publish-measurement (the bot's measurement PR) and perf-guard.
If wrong: the bot's measurement PR is refused, or perf-guard lets a hand-written
microsecondsthrough.Undo:
git revert, once no schema carriesmicroseconds.