Skip to content

Commit d725081

Browse files
os-billclaude
andauthored
ci: say what the Worker size gate's reading is repeatable to, not only what it is accurate to (#279)
The size-gate comment set the reading up as a precise instrument — a 1.96 KiB agreement with the figure Cloudflare accepted, 0.0033% — and was silent on repeatability, which is what diff attribution needs. Measured it instead of assuming it. One empty commit (66cb0a4, tree byte-identical to main's at 50aacb9) run twice on two different runners read 58549.04 and 58553.46 KiB — 4.42 KiB apart, wider than the calibration agreement it sits next to. A third run over identical bundle inputs read 58549.06 KiB, making the shape a tight cluster with one outlier rather than free scatter. wrangler's gzip column moves too, so the artifact's bytes genuinely differ. Comment only: the parsed workflow is identical to main's, and the budget, the limit and the measurement method are untouched. The figure set is a frozen snapshot at named commits, deliberately not maintained. Fixes #277 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ChPQM8jamxLUfUAxwFpJ8S
1 parent 50aacb9 commit d725081

1 file changed

Lines changed: 61 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,67 @@ jobs:
200200
# Total Upload: 58553.98 KiB
201201
# 1.96 KiB low — 0.0033%. The reading tracks the enforced figure.
202202
#
203+
# ## Accurate against the limit; NOT repeatable to better than a few KiB
204+
#
205+
# #277. Accuracy is this gate's job and the figure above is the right
206+
# claim for it. It says nothing about REPEATABILITY, and a reader who
207+
# meets 0.0033% at the point of use will reasonably assume a small
208+
# per-PR delta means something. Measured, it does not.
209+
#
210+
# The strongest control is ONE commit run twice, with no tree difference
211+
# at all — not a workflow file, not a specifier line, nothing. `66cb0a4`
212+
# is an empty commit whose tree hash is byte-identical to `main`'s at
213+
# `50aacb9`; run 34252385192, attempts 1 and 2, landed on two different
214+
# `ubuntu-latest` runners. The third reading is from `1bf8b70`, a
215+
# DIFFERENT tree — it carries this comment — but the same bundle inputs,
216+
# since a workflow file cannot enter the Worker. Bundle-identical, not
217+
# tree-identical: the weaker of the two controls, and labelled as one.
218+
#
219+
# 66cb0a4 attempt 1, job 102149701548 58549.04 KiB
220+
# 66cb0a4 attempt 2, job 102152795435 58553.46 KiB
221+
# 1bf8b70 run 34277657373, job 102234545211 58549.06 KiB
222+
#
223+
# Largest gap: 4.42 KiB, between two runs of the SAME commit. That is
224+
# larger than the 1.96 KiB agreement above, so the agreement cannot be
225+
# read as sub-KiB precision either — it is one comparison, taken inside
226+
# this much noise.
227+
#
228+
# The SHAPE is a tight cluster and one outlier, NOT a wander across a
229+
# 4.42 KiB band: two of the three agree to 0.02 KiB and the third sits
230+
# ~4.4 KiB above both. Three points cannot carry a distribution and none
231+
# is modelled here. What is claimed is only that repeated readings over
232+
# identical bundle inputs are not equal, and how far apart the measured
233+
# ones landed.
234+
#
235+
# wrangler's gzip column moves too — 8800.26, 8800.65, 8797.64 KiB — so
236+
# the artifact's bytes genuinely differ; this is not the same number
237+
# being displayed differently. It does not track the raw figure (the
238+
# third reading has the smallest compressed size and a middling raw
239+
# one), so it confirms that much and nothing more.
240+
#
241+
# Holding the machine fixed shrinks the spread without closing it: four
242+
# cold rebuilds of `66cb0a4`'s tree in one container gave 58548.93,
243+
# 58548.93, 58548.94 and 58549.55 KiB — 0.62 KiB apart.
244+
#
245+
# So this number answers "is the bundle near the ceiling", not "did my
246+
# PR grow the bundle". A single-digit-KiB move between two commits is
247+
# inside the spread measured above and has not been shown to be a change
248+
# in the bundle at all; a real growth of a few KiB is equally invisible.
249+
# Attributing a small delta needs a same-tree control — the same commit
250+
# run twice — not the previous commit's reading.
251+
#
252+
# n is small (3 CI runs, 4 local builds) and 4.42 KiB is the largest
253+
# same-tree gap MEASURED, not a proven bound. Causes are NOT measured
254+
# here and none is claimed.
255+
#
256+
# ⚠️ A SNAPSHOT at the commits named above, deliberately NOT maintained.
257+
# Every run of this workflow produces another reading, so "fold in the
258+
# latest" has no end; the population was frozen at these three instead
259+
# of chased. Nobody is obliged to update this block, and a later reading
260+
# that differs is the point being made, not a defect in it. If the
261+
# question ever needs more than "a few KiB", take a fresh same-commit
262+
# series rather than appending to this one.
263+
#
203264
# ## The budget
204265
#
205266
# ONE constant, below, with the limit written beside it; every

0 commit comments

Comments
 (0)