Skip to content

Calibrate ParseCostProbeSpec's median ceiling for shared CI runners - #270

Merged
fupelaqu merged 1 commit into
mainfrom
fix/parse-cost-probe-ci-flake
Sep 2, 2026
Merged

Calibrate ParseCostProbeSpec's median ceiling for shared CI runners#270
fupelaqu merged 1 commit into
mainfrom
fix/parse-cost-probe-ci-flake

Conversation

@fupelaqu

@fupelaqu fupelaqu commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Closes #269

What

One-file test calibration: MedianCeilingNanos 1 ms → 10 ms in ParseCostProbeSpec, scaladoc updated with the CI data points, test name no longer hard-codes the number.

Why

The probe (added by #238) measures the raw json4s-jackson parse of the scroll request body and asserted the pathological 31.7 KB body's median stays under 1 ms — '~15× the worst measured median', but that median was measured on Apple silicon (0.067 ms). Loaded shared GitHub runners measure 1.35–1.42 ms (observed 2026-09-02 on the PR #263 and #266 test jobs — identical failure, all 820 other tests green, while #264 passed the same suite the same day). Nothing in a PR's diff can affect the number, so a red run says nothing about the PR.

The new ceiling is ~7× the worst CI-observed median and still ~150× the local one: a categorical regression (parser swap, accidental re-parse loop) blows past it on any machine; a slow runner does not.

Verification

  • core/testOnly *ParseCostProbeSpec green locally (p50 0.07 ms at 32 KB — matches the original baseline).
  • ++ 2.12.20 core/Test/compile green (0 errors); scalafmtAll applied.

🤖 Generated with Claude Code

…CI runners

The 1 ms ceiling was ~15x the worst median measured on Apple silicon; a
loaded GitHub runner measures >20x that baseline, so the probe flunked
runs whose diff never touched the parse (PRs #263/#266, both 1.35-1.42 ms
at 32 KB). The ceiling is now 10 ms — ~7x the worst CI-observed median,
still ~150x the local one — so a categorical regression fails everywhere
and a slow runner passes.

Closed Issue #269

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@fupelaqu
fupelaqu marked this pull request as ready for review September 2, 2026 14:38
@fupelaqu
fupelaqu merged commit 17d91d4 into main Sep 2, 2026
4 checks passed
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.

ParseCostProbeSpec trips on shared CI runners — the 1 ms median ceiling is machine-dependent

1 participant