Skip to content

ci: compare release candidates with the previous release - #879

Merged
kvlonge merged 3 commits into
mainfrom
ci/chi-435-release-perf-compare
Sep 29, 2026
Merged

kvlonge merged 3 commits into
mainfrom
ci/chi-435-release-perf-compare

Conversation

@kvlonge

@kvlonge kvlonge commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

Why

sqb plan regressed twice (0.118.0, 0.121.0) without any release failing: fixed ceilings miss gradual creep and doublings that stay under a loose limit. Release PRs now compare the candidate with the previous published release on the same runner.

Changes

  • scripts/release_performance/: installs candidate and baseline in separate venvs, generates the existing benchmark projects once, and times compile (cold/warm), plan --json, lineage (hub downstream, rollup upstream, one column trace), dag --json, scope --json and a 1,000-model build, interleaved 3 runs each; fails when a median is >25% worse and above a 0.5 s / 32 MiB floor. Markdown table in the job summary, JSON artifact.
  • Baseline: highest earlier non-yanked release from PyPI; a tag counts only while its release is still publishing; wheel fallback with sha256.
  • release-please.yml: a rerunnable release-checks job dispatches metadata, version and performance checks with a per-attempt request id, matches exactly those runs, and posts Verify success only when all pass (failure otherwise); a fresh token enables auto-merge.

Verification

  • 0.121.0 vs 0.119.1 fails (plan CPU 1.26x, RSS 1.80x; build RSS 1.92x); 0.126.2 vs 0.126.1 passes.
  • Unit and E2E tests for the module; actionlint; make test, make check-ci; one review plus follow-up.

Release Please now dispatches a same-runner comparison of the candidate wheel with the previous published release and posts the required Verify status only after it passes. Wall time, CPU time and peak RSS medians of compile, plan, lineage, dag, scope and build on the generated benchmark fail above +25% and the absolute floors.
A release tag only counts as a baseline while its version is not yet on PyPI, so a yanked release is never compared against.
Release Please passes a per-attempt request id to each trusted check and waits only on the run carrying it, never with a baseline override. The checks run in their own job so re-running it re-dispatches all three and repaints Verify on the current head, and the delivery token is minted just before enabling auto-merge.
@kvlonge
kvlonge enabled auto-merge (squash) September 29, 2026 05:46
@kvlonge
kvlonge merged commit d895760 into main Sep 29, 2026
30 checks passed
@kvlonge
kvlonge deleted the ci/chi-435-release-perf-compare branch September 29, 2026 06:04
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.

1 participant