Skip to content

ci: treat a workload's microseconds as a measured field - #192

Merged
RuibinCheung merged 1 commit into
mainfrom
ci/microseconds-measured-field
Nov 17, 2026
Merged

RuibinCheung merged 1 commit into
mainfrom
ci/microseconds-measured-field

Conversation

@zhenhuang12

@zhenhuang12 zhenhuang12 commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Why

#193 publishes each workload's kernel time as microseconds, beside speedup and accuracy. 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:
    • authored drops microseconds with the other measured fields;
    • shape accepts it absent or a positive number, in one check with speedup.
  • perf-guard.yaml: authored and measured include microseconds, so a contributor's PR cannot add or change it.
  • Until a schema carries microseconds, nothing changes.

Verification

Environment: head 0ae690782, jq 1.6 (GitHub's runners have a newer jq)
Gate overrides: none

Code

The shape check of main and of this head, run with jq -e on main's 666 schemas:

666 schemas on main; old and new shape agree on 666, differ on 0
new shape accepts: {'as is': 493, 'microseconds 4.17': 493, 'microseconds 0': 0}
  • 493 is the number of schemas whose every workload is measured.
  • microseconds 4.17 adds a time to each measured workload; it must still pass.
  • microseconds 0 puts 0 on every workload; it must fail.
  • The edited ci.yaml still parses as YAML.
  • No aklr/core change, so no schema or measurement version is involved.

Not run

  • This PR's own CI runs the changed workflow, so it is not evidence; code owners decide.
  • publish-measurement and perf-guard were not run end to end: they run on main's pushes and on later PRs.
  • No 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 microseconds through.
Undo: git revert, once no schema carries microseconds.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 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 microseconds in 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

Comment thread .github/workflows/perf-guard.yaml Resolved
Comment thread .github/workflows/ci.yaml Resolved
@zhenhuang12

Copy link
Copy Markdown
Collaborator Author

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.

@zhenhuang12

Copy link
Copy Markdown
Collaborator Author

Reopening: closed by mistake. The measurement job that accepts a bot-written microseconds runs from main's workflow, so this has to land on main on its own before any schema can carry the value; a feature branch cannot stand in for it.

@zhenhuang12 zhenhuang12 reopened this Nov 17, 2026
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.
@zhenhuang12
zhenhuang12 force-pushed the ci/microseconds-measured-field branch from 0ae6907 to 92c206a Compare November 17, 2026 04:01

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

LGTM

@RuibinCheung
RuibinCheung merged commit d9595d4 into main Nov 17, 2026
12 checks passed
@RuibinCheung
RuibinCheung deleted the ci/microseconds-measured-field branch November 17, 2026 05:26
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.

3 participants