Calibrate ParseCostProbeSpec's median ceiling for shared CI runners - #270
Merged
Conversation
…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
marked this pull request as ready for review
September 2, 2026 14:38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #269
What
One-file test calibration:
MedianCeilingNanos1 ms → 10 ms inParseCostProbeSpec, 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
testjobs — 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 *ParseCostProbeSpecgreen locally (p50 0.07 ms at 32 KB — matches the original baseline).++ 2.12.20 core/Test/compilegreen (0 errors);scalafmtAllapplied.🤖 Generated with Claude Code