Skip to content

ci: add an absolute floor to the same-runner compile ratio - #956

Merged
kvlonge merged 2 commits into
mainfrom
ci/ratio-absolute-floor
Oct 6, 2026
Merged

kvlonge merged 2 commits into
mainfrom
ci/ratio-absolute-floor

Conversation

@kvlonge

@kvlonge kvlonge commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Why

The same-runner compile ratio job compares wall and CPU time against a 1.10x ratio only. Since unchanged warm compiles are reused (#951), warm runs take about 0.5 s, so ordinary scheduler noise (0.56 vs 0.65 s with identical CPU) exceeds the ratio. This blocked the 0.134.6 release PR, whose code is identical to its base.

Changes

  • A mode now fails only when head exceeds base × ratio plus a 0.2 s floor (--noise-floor-seconds), so sub-second runs are judged in absolute terms; the E2E test of an unattainable limit passes a zero floor.
  • Unit cases for a sub-second warm compile inside and beyond the floor.

Verification

  • Unit and E2E tests for scripts/compile_performance_ratio, make check-ci.

@kvlonge
kvlonge enabled auto-merge (squash) October 6, 2026 01:42
@kvlonge
kvlonge merged commit 9f70c71 into main Oct 6, 2026
32 checks passed
@kvlonge
kvlonge deleted the ci/ratio-absolute-floor branch October 6, 2026 02:29
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