Skip to content

boot smoke: the compute-floor tripwire goes runner-class-relative (tebako#1095) - #108

Merged
ronaldtse merged 5 commits into
mainfrom
fix/compute-floor-ratio-gate
Nov 25, 2026
Merged

ronaldtse merged 5 commits into
mainfrom
fix/compute-floor-ratio-gate

Conversation

@ronaldtse

@ronaldtse ronaldtse commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Follow-up to tebako#1095 (closed with the external verdict — every tebako layer exonerated on the current macos-15-intel fleet; runs 45324096740/45330380303/45338794570): the compute-floor tripwire becomes runner-class-relative.

The stale absolute 4.0 s ceiling was calibrated on the old fleet and is unachievable on the current macos-15-intel class by any x86_64 CPython — python.org's own build reads 4.26–6.66 s fib(35) there, while the tebako pair reads 4.270 s against the same-leg on-system reference's 4.258 s (parity ≈1.00). The gate is now a same-leg per-call-rate ratio, ≤ 1.5x, against an on-system reference measured in-leg.

The mechanism

  • tools/compute_reference_probe.py (new) — the reference probe: fib(30), median of 25 runs, timed inside the interpreter (time.perf_counter around each run; startup and the harness never enter the measurement). Prints n: / runs: / best: / median:; stdlib-only, any CPython. The median is the sustained-rate statistic at the tiny probe's scale — at ~0.1 s a run, a best-of-3 min samples the runner's instantaneous state (the first full-matrix run false-red two healthy macos-arm64 legs on exactly that, run 45344792366); the covenant's cells gate on medians for the same reason. The tebako arm keeps its fib(35) best-of-3 (tebako#1095's follow-up pins it; a 4.5 s run self-averages).
  • _build-platform.yml — a sibling step pair on every build leg: actions/setup-python@5fda3b9… (v7.0.0 — the covenant's own pin/provisioner) at ${{ matrix.reference_python }}, then a bash step times the probe on the leg's own runner and emits the median as ref_seconds with ref_n. The manifest lags the factory's exact micro pins for the older lines (3.11.16/3.12.14 — run 45344792366), so provisioning is exact-micro first with a loud line fallback (matrix.reference_line, a ::notice::, and a generation assertion in the measure step — a major.minor mismatch is a named error, never a quiet ratio). Container legs measure on the ubuntu host (the container shares the host's silicon); the loudly-skipped windows leg skips too.
  • scripts/compute_matrix.rb emits reference_python (the line's base version — a jit leg's reference is the plain interpreter, the flavor is a build flag) and reference_line per leg; the -jit/major_minor grammar stays inside PythonVersion.
  • tools/boot_smoke compute-floor: gates the tebako pair's fib(35) best-of-3 as a per-call-rate ratio against the reference — the naive recursive fib's call count is exact per N (T(n) = 2·F(n+1) − 1: T(30) = 2,692,537, T(35) = 29,860,703), so the arms' different Ns normalize and the ratio is a property of the built interpreter against the reference on the same runner, never of the fleet's absolute rate. A missing/malformed reference is a named wiring failure with the local remediation, never a silently degraded gate. The flags arm stays fail-closed in every mode.
  • The warn tier STAYS (COMPUTE_FLOOR_MODE=warn on the macos-x86_64 legs) as insurance while the gate proves itself. REMOVAL CONDITION (implemented in the workflow comment): revert to fail-closed once the ratio gate reads green on two consecutive runs on the current fleet — the gate's own per-call-ratio log lines are the evidence.
  • contract.yml records tebako#1095's side finding as a named KNOWN-BAD in the link-unit history (the factory still builds the 0.3.x line — VERSION 0.3.5): the published v0.3.0 pair (link unit v2.8.49) reproducibly wedges on the current macos-15-intel fleet, never reaching the interpreter (3/3 reproductions — a ≥40-minute hang in run 45324096740; hard-killed at the 420 s bound in runs 45330380303/45338794570). The v0.2.0 (v2.3.2) and v0.3.5 (v2.8.78) pairs are unaffected; published pairs stay installable forever, so old-line consumers on that fleet resolve v0.3.5+.

Evidence

  • The verdict this implements: tebako#1095's closing comment (probe workflow diag/1095-x86-compute-probes on this repo, runs 45324096740, 45330380303, 45338794570) — tebako 4.270 s vs on-system reference 4.258 s fib(35) best-of-3 on a real macos-15-intel runner, ratio ≈1.00; Apple's /usr/bin/python3 7.9–12.1 s; raw C fib(40) 0.399–0.512 s.
  • The ratio math reproduces that parity exactly: a fib(30) reference at the same per-call rate reads 0.3839 s where fib(35) reads 4.258 s, and (4.270/T(35)) ÷ (0.3839/T(30)) = 1.003.
  • Ratio-gate green on the current macos-15-intel fleet: dispatched build-macos leg (tidy/x86_64) run 45344836537 — success, per-call ratio 1.438 (limit 1.5x), the fail-closed check name passing with no ::warning:: (first-commit mechanism; re-dispatched on the hardened arm, see the comments).
  • Healthy-leg ratios from the first full-matrix run 45344792366: linux-gnu 1.012–1.053, linux-musl 0.971–1.366, windows 0.721–0.923, macos-arm64 1.140–1.169 green — plus the two reference-sampling false-reds (1.87/1.95) and two manifest-missing provisioning reds the second commit fixes; the x86_64 warn tier absorbed 1.965/2.131 readings as designed.
  • Local gates: bundle exec rspec — 90 examples, 0 failures; bundle exec scripts/check_contract.rb — validates (schema + parity arm); scripts/compute_matrix.rb (macos filter) — 12 legs with correct reference_python/reference_line; ruby -c clean; every workflow YAML + contract.yml + matrix.json parses.

What CI must prove

  • The ratio-gate leg green on the current macos-15-intel fleet on the hardened mechanism: dispatched build-macos leg (tidy/x86_64) run 45349361620 — the leg's log must show the reference median and the per-call ratio ≤ 1.5x with the warn tier unused (result in the comments).
  • The PR's own full matrix proves the reference step provisions on every leg shape — ubuntu host (container legs), macos arm64/x86_64, windows-2022, windows-11-arm — including the loud line fallback on 3.11.x/3.12.x and the generation assertion everywhere else.
  • lint (contract + catalog + matrix + parse + rspec) green.

Per the ecosystem rule this stays a draft — no merge until the owner calls it.

@ronaldtse

Copy link
Copy Markdown
Contributor Author

Ratio-gate status — verified green on the proof class, and one real finding on macos-arm64/3.14

What this PR now contains (3 commits)

  1. 2a6d0ca — the compute-floor tripwire goes runner-class-relative: same-leg ratio vs an on-system reference (setup-python at the leg's version, sibling step, fib(30) probe), gated ≤ 1.5x per-call, replacing the stale absolute 4.0 s ceiling. Warn tier (COMPUTE_FLOOR_MODE=warn on macos-x86_64) stays; its removal condition is now written in the workflow (ratio gate green on two consecutive runs). The v0.3.0-pair wedge is recorded as a named known-bad in contract.yml's comments (the published v0.3.0 link unit v2.8.49 wedges on the current macos-15-intel fleet, 3/3 repros; v0.2.0/v0.3.5 unaffected).
  2. 996c252 — the reference arm measures a median-of-25 (best-of-3 min at 0.1 s scale samples runner state; it false-redded two healthy arm64 legs in run 45344792366), and provisioning falls back to the line's latest micro with a loud ::notice:: when setup-python carries no exact micro (3.11.16/3.12.14), with a generation assertion in the measure step (wrong major.minor = named wiring error, never a quiet ratio).
  3. c890964 — the reference probe prints its build identity (CONFIGURE_ARGS, OPT/CFLAGS) so a persistent per-call gap can be read apples-to-apples against the factory build's own report in the same leg log.

Verified green

  • Proof leg (tidy/macos-x86_64), three consecutive dispatches, all green: run 45344836537 ratio 1.438 (commit 1), run 45349361620 ratio 1.464 (commit 2, exact 3.13.15 provisioning, fallback skipped), run 45352263656 ratio 1.435 (commit 3, exact 3.13.15, reference build identity in the log: universal2, -O3, NDEBUG, CONFIGURE_ARGS empty as distributed). The warn tier's removal condition (two consecutive green runs) is met on the proof class — three consecutive, in fact.
  • Full-catalog PR run 45349338822 (commit 2): every leg green except the two 3.14/macos-arm64 legs below. The line-fallback legs (3.11.16/3.12.14, both arches) pass with the loud notice; the generation assertion never tripped.
  • linux-gnu 1.012–1.053, linux-musl 0.971–1.366, windows 0.721/0.923 across the dispatched runs — parity on the healthy classes.

The finding: a persistent ~1.6x per-call gap on macos-arm64, split by python version

Full-catalog run 45349338822, per-call ratios (reference fib(30) median-of-25 vs tebako fib(35) best-of-3, normalized by call count 2·F(n+1)−1):

leg ratio verdict
3.11.16 / macos-arm64 1.253 pass
3.12.14 / macos-arm64 1.266 pass
3.13.15 / macos-arm64 1.249 pass
3.13.15-jit / macos-arm64 1.415 pass
3.14.7 / macos-arm64 1.635 fail
3.14.7-jit / macos-arm64 1.634 fail
3.11.16 / macos-x86_64 (warn) 1.816 warn-absorbed
3.12.14 / macos-x86_64 (warn) 1.724 warn-absorbed
3.13.15 / macos-x86_64 (warn) 1.389 warn-absorbed
3.13.15-jit / macos-x86_64 (warn) 1.517 warn-absorbed
3.14.7 / macos-x86_64 (warn) 1.998 warn-absorbed
3.14.7-jit / macos-x86_64 (warn) 1.960 warn-absorbed

Not sampling noise: the 3.14.7/arm64 failure reproduces across runs (1.635 in 45349338822, 1.95 on the earlier absolute-window run, 1.608 in the targeted evidence leg 45353646257 on commit 3) with stable windows on both arms (45349338822: reference 25 runs 0.067–0.078 s, median 0.070; tebako 1.290/1.269/1.420, best 1.269). The split is by python version, not by run or silicon: every ≤ 3.13 leg on arm64 reads ≤ 1.42 while both 3.14 legs read 1.63. The tebako build is not degenerate in absolute terms (1.269 s fib(35) on arm64 is fast); the ratio moved because something on ONE side of it changed.

The commit-3 diagnostics add one more datum: the reference's visible build idiom is identical across versions — 3.13.15 and 3.14.7 both report universal2 (-arch arm64 -arch x86_64), -O3, NDEBUG, empty CONFIGURE_ARGS (python.org strips it as distributed). The factory's own report is the same idiom, arm64-only (-O3, NDEBUG, Py_DEBUG: 0). So the 3.14-specific split is NOT a visible-flags difference on either side — it lives in what the flags hide (PGO training, the tail-calling interpreter, codegen).

The evidence chain narrows it to the build toolchain

  1. The reference did not change. The covenant's green 2026-11-18 run (tamatebako/tebako 44204925939, macos-arm64 leg consuming the published v0.3.3 pair) provisioned setup-python 3.14.7 from actions/python-versions release 3.14.7-31064857500 — the byte-identical tarball this run's failing legs measured against. Same reference, green then, red now.
  2. The factory recipe did not change. git diff v0.3.3..HEAD -- tools/build_runtime is comment-only; same source (3.14.7), same configure idiom (--prefix --disable-shared --with-openssl…, no PGO on either side, computed gotos default-on).
  3. The build toolchain changed. The published v0.3.3 macos-arm64 exe (built 2026-10-21) has [Clang 15.0.0 (clang-1500.3.9.4)] baked into its compiler string — Xcode 16.3-era Apple Clang 15. Today's fresh builds run on runner image macos-15-arm64 20261118.0550.1, whose default Xcode is 16.4 (CLT 16.4.0.0.1.1747106510 → Apple Clang 17). The factory rides the image default cc — nothing pins the toolchain.
  4. The impact is 3.14-specific. A fresh 3.13.15 build on the same image reads 1.249–1.253 (≈0.80 speedup, at the covenant bound); fresh 3.14.7 reads 1.63 (0.61). CPython 3.14's specializing interpreter is markedly more codegen-sensitive than 3.13's classic ceval — a compiler swing (computed-goto lowering, inline budgets) of the size observed is plausible there and only there.

Consistent with the covenant's history: the published (clang-15) v0.3.3 pair measured worst 0.84 on macos-arm64 python (covenant run 42525964214) and stayed ≥ 0.80 on 11-18; the fresh (clang-17) build of the same recipe reads 0.61 against the same reference.

Decisive cheap experiment (not run here — proposing, not acting): the current image still carries Xcode 16.3 at /Applications/Xcode_16.3.app. Rebuild 3.14.7/macos-arm64 once with DEVELOPER_DIR pinned there and re-read the ratio. If it returns to ≈1.25, the toolchain is confirmed and the fix is a toolchain pin (or a configure/toolchain decision for 3.14); if it stays ≈1.6, the reference build itself gained something (PGO/tail-call in the python.org build) and the re-scope option below is the answer.

Downstream implication for the covenant (tamatebako/tebako#1118)

The covenant's python arm pins this repo's v0.3.3 / lang 3.14.7 against the same on-system provisioner (setup-python 3.14.7), and steady.cpu.throughput is a worst-leg aggregate with bound 0.80 ge. The published pair is safe today (measured ≥ 0.80 on 11-18) — but any new release built on the current image would publish a 0.61-class macos-arm64 python, and the covenant would trip the next time its pin bumps. The factory gate is what stands in front of that: this finding is the gate doing its job before a slow build ships. tebako#1118's re-baseline covers macos-x86_64 (verified at parity in tebako#1095's closing runs); the macos-arm64 python question is what remains open.

Decision needed (owner)

The two red legs are the gate surfacing a real, reproducible discrepancy, not a wiring bug. Options:

  1. Confirm the toolchain and pin/adopt — run the DEVELOPER_DIR-pinned experiment above; if confirmed, either pin the macOS build toolchain in the factory (and record the pin as a contract value) or adopt whatever codegen option restores 3.14 (and consider whether the covenant's arm64 python cell needs a one-time re-baseline note).
  2. Re-scope the reference or the bound for the 3.14/macos-arm64 class — e.g. a reference built with the factory's own configure idiom, or a per-class bound — with the covenant re-baselined to match.

This PR deliberately does neither unilaterally: the 1.5x bound and the fail tier stay as they are, and the PR stays draft until you call it.

@ronaldtse

Copy link
Copy Markdown
Contributor Author

Addendum — PR-head CI (commit c890964) final state, run 45352240234: the full check suite is green except exactly the two legs this thread is about — 3.14.7 / macos-arm64 (per-call ratio 2.133; reference fib(30) median 0.081 s, tebako fib(35) best 1.916 s) and 3.14.7-jit / macos-arm64. CodeQL ×4, cla, contract+catalog+matrix+parse, all linux-gnu/linux-musl legs, windows, and every other macos leg (fallback legs 3.11.16/3.12.14 included; warn-tier x86_64 absorbed) pass. The reference's reported idiom is again universal2 -O3 with empty CONFIGURE_ARGS; the factory's is the same -O3/NDEBUG idiom, arm64-only, Py_DEBUG off.

Running tally for 3.14.7/macos-arm64 across runs: 1.635 (45349338822), 1.608 (45353646257), 2.133 (45352240234), plus 1.95 on the earlier absolute-window run — always ≥ 1.6 on a class where ≤ 3.13 reads ≤ 1.42. The red set on the PR head is exactly the gate surfacing the finding, nothing else.

@ronaldtse

Copy link
Copy Markdown
Contributor Author

Resolved by experiment: the 3.14/macos-arm64 gap is CPython's tail-calling interpreter under Apple Clang 17 — fixed in bec563c

The owner decision this thread asked for is now made by evidence, on the experiment branch exp/xcode-16.3-arm64 (scratch; never lands on main):

1. The DEVELOPER_DIR pin can't discriminate. The current image's Xcode 16.3 and 16.4 ship the identical compiler — the pinned leg's own probe printed Apple clang version 17.0.0 (clang-1700.0.13.3) under DEVELOPER_DIR=/Applications/Xcode_16.3.app, and the leg read ratio 1.630, unchanged from the unpinned legs (run 45358458871). The toolchain that built the published v0.3.3 exe is Apple Clang 15.0.0 (clang-1500.3.9.4) (Xcode/CLT 15.4 — its baked-in compiler string), and it no longer exists on the hosted fleet: v0.3.3 was built 2026-10-21 on the macos-14 label (matrix.json at the tag), which GitHub retired 2026-11-02; this factory migrated 2026-10-31 (aedeb62).

2. Head-to-head, everything else held constant (the decisive isolation). The sha256-verified published v0.3.3 binary runs this gate's exact probe on the current image (macos-15-arm64 20261118.0550.1) against the same setup-python 3.14.7 reference the failing legs used: ratio 1.099 (run 45361240827), 1.122 on the green rerun (45362166947) — parity-class, where the same-recipe fresh clang-17 builds read 1.608 / 1.630 / 1.635 / 1.95 / 2.133 across today's runs. Same image, same reference, two binaries differing only in build toolchain.

3. Mechanism, and the remedy proven on the current fleet. CPython 3.14's configure auto-enables the tail-calling interpreter when the compiler passes its musttail probe; clang 15 builds the classic computed-goto ceval, clang 17 the tail-call one. The fresh clang-17 build with --with-tail-call-interp=no (one flag, current fleet, run 45362178911): fib(35) best 1.816 s vs reference median 0.121 s — ratio 1.353, gate PASS.

The fix — commit bec563c on this branch: the macOS 3.14 lines (both arches, the jit flavor included) configure --with-tail-call-interp=no, pinning the build shape deterministically whatever toolchain the fleet carries next; README records it as "The macOS configure shape". Neither a bound re-scope nor a (fleeting) toolchain pin was needed; the 1.5x bound and the fail tier stand as they are, and the covenant's 0.80 steady.cpu bound keeps its meaning for the next release built with the fix.

PR CI is rerunning on bec563c; the two previously-red legs (3.14.7 and 3.14.7-jit / macos-arm64) are expected green.

@ronaldtse

Copy link
Copy Markdown
Contributor Author

Correction to the thread above — the bec563c fix is necessary-looking but NOT sufficient: on this PR's own run (45365694894) the plain 3.14.7/macos-arm64 leg came back red at ratio 1.921 (fib(35) best 1.598 s, reference median 0.075 s) with --with-tail-call-interp=no confirmed in its configure line — while the identical recipe passed at 1.353 in the exp leg (45362178911, best 1.816 s, ref median 0.121 s) twenty minutes earlier. Same recipe, same image, opposite verdicts.

The confound is now measurable: the arm64 fleet is hardware-heterogeneous, and the two builds do not scale alike across it. Today's reference fib(30) medians span 0.070–0.131 s (~1.9x) across same-image legs; the tebako bests span 1.27–2.14 s; and the ratio anti-correlates with instance speed — on instances where the universal2 python.org reference runs 0.07–0.08 s, every factory variant reads ≥ 1.6 regardless of the tail-call flag (tailcall-on: 1.635 @ 0.070, 2.133 @ 0.081; tailcall-off: 1.921 @ 0.075, 1.614-jit @ 0.096), while on ~0.12 s instances the same recipes read 1.353–1.608. The 1.5x bound on this leg is currently a runner-allocation lottery.

What remains cleanly established: the published v0.3.3 (clang-15) binary reads 1.099/1.122 head-to-head against the same-leg reference (two runs, both on ~0.10 s instances); whether it too climbs on fast instances, and whether a fresh current-recipe build is same-instance slower than v0.3.3 at all, is what the follow-on interleaved probe (same instance, same reference, both binaries back-to-back) is measuring now. Until that lands, the honest summary is: the tail-call flag's effect is unproven under the lottery, and this leg's red is dominated by fleet heterogeneity vs a generic arm64 no-PGO build — the re-scope-the-reference/bound path (owner's option 2) is the live decision, with the toolchain question downgraded to a component.

bec563c stays on this branch for the moment (it is the clang-15-equivalent build shape and moved x86_64 1.998 → 1.758); whether it stays or reverts rides on the interleaved probe's verdict. Both PRs stay draft; nothing merged.

…bako#1095)

tebako#1095's closing verdict exonerated every tebako layer on the
current macos-15-intel fleet: the tebako pair reads fib(35) best-of-3
at 4.270 s against the same-leg on-system reference (setup-python
3.14.7, the covenant's provisioner) at 4.258 s — parity ≈1.00 — while
the fleet-calibrated absolute 4.0 s ceiling is unachievable there by
ANY x86_64 CPython (python.org's own build reads 4.26-6.66 s; runs
45324096740/45330380303/45338794570). An absolute ceiling is a bug on
arrival after a runner-class move; the gate becomes a same-leg ratio.

- tools/compute_reference_probe.py (new): the on-system reference
  probe — fib(30) best-of-3, timed inside the interpreter; the
  workflow's sibling step runs it under setup-python at the leg's base
  version (matrix.reference_python, the PythonVersion-owned -jit
  grammar) and hands best:/n: down as
  COMPUTE_FLOOR_REFERENCE_SECONDS / COMPUTE_FLOOR_REFERENCE_N.
- tools/boot_smoke compute-floor: the per-call-rate ratio gate
  (<= 1.5x). The recursive fib's call count is exact per N
  (T(n) = 2*F(n+1) - 1), so the arms' different Ns normalize to
  per-call rates; the ratio is a property of the built interpreter
  against the reference on the same runner, never of the fleet's
  absolute rate. A missing/malformed reference is a named wiring
  failure with the local remediation, never a silently degraded gate.
- COMPUTE_FLOOR_MODE=warn stays on the macos-x86_64 legs as insurance
  while the gate proves itself; REMOVAL CONDITION (the workflow
  comment): revert to fail-closed once the ratio gate reads green on
  two consecutive runs on the current fleet.
- contract.yml: record tebako#1095's side finding as a named KNOWN-BAD
  — the published v0.3.0 pair (link unit v2.8.49) reproducibly wedges
  on the current macos-15-intel fleet, never reaching the interpreter
  (3/3 reproductions); the v0.2.0 (v2.3.2) and v0.3.5 (v2.8.78) pairs
  are unaffected. Old-line consumers on that fleet resolve v0.3.5+.
…ng falls back to the line

The first full-matrix run of the ratio gate (45344792366) found two
defects in the mechanism, both in the reference arm, never in the
tebako measurement:

- setup-python's manifest carries no 3.11.16 / 3.12.14 (it lags the
  factory's micro pins), so the provision step red those catalog legs
  before any measurement. The provisioning is now exact-micro first
  (continue-on-error) with a LOUD fallback to the leg's major.minor
  line — the same interpreter generation — and the measure step
  asserts the resolved interpreter's line against
  matrix.reference_line (a generation mismatch is a named wiring
  error, never a quiet ratio). A ::notice:: records every fallback.
- Two healthy macos-arm64 legs false-red at ratio 1.87/1.95: their
  reference windows' own three runs spread 29% (0.090/0.116/0.104)
  while the tebako arms' seconds-scale runs held within 7%. At ~0.1 s
  a run, a best-of-3 MIN samples the runner's instantaneous state
  instead of its sustained rate — the median of 25 runs is the same
  statistic the covenant's cells gate on, and it costs ~3-7 s. The
  tebako arm keeps its fib(35) best-of-3 (tebako#1095's follow-up
  pins it; a 4.5 s run self-averages).

Healthy-leg ratios from that run otherwise read 0.72-1.49 across
linux-gnu, linux-musl, windows (both arches), and the macos legs that
measured in-window — the gate's shape is right; the reference arm's
sampling was not.
The ratio gate's denominator now prints the reference interpreter's
CONFIGURE_ARGS and OPT/CFLAGS next to its median. A per-call gap that
survives a stable 25-run window is a build difference, and the
apples-to-apples read needs both builds' identities in the same leg
log — the factory build already reports its own opt:/CFLAGS in the
compute probe; the reference now answers in kind.
The fleet's macos-14 -> macos-15 move (aedeb62, ahead of GitHub's
2026-11-02 retirement) took the arm64 build toolchain from Apple Clang
15 (Xcode/CLT 15.4 — the published v0.3.3 exe's baked-in compiler
string) to Apple Clang 17 (clang-1700.0.13.3, Xcode 16.3 and 16.4
alike — a DEVELOPER_DIR pin cannot discriminate, exp leg 45358458871).
CPython 3.14's configure auto-enables the tail-calling interpreter when
the compiler passes its musttail probe, and on the current fleet that
shape reads a per-call compute ratio of 1.6-2.1 against the same-leg
on-system 3.14.7 reference (runs 45349338822/45352240234/45353646257)
— while the published clang-15 binary reads 1.099-1.122 head-to-head on
the same image (run 45361240827 + rerun), and the same clang-17 build
with --with-tail-call-interp=no reads 1.353 (run 45362178911).
Mechanism and remedy proven on the current fleet: the 3.14 lines pin
the classic interpreter on macOS, whatever toolchain the fleet carries
next.
…eval"

The flag is a no-op on this recipe, so the justification was wrong.
CPython v3.14.7's configure.ac handles --with-tail-call-interp only as
explicit yes -> AC_DEFINE(Py_TAIL_CALL_INTERP,1) / explicit no ->
AC_DEFINE(...,0) / absent -> nothing; there is no musttail probe
anywhere in configure.ac or the generated configure, and no header
supplies a default. Every consumer (Python/ceval_macros.h, ceval.c,
bytecodes.c, generated_cases.c.h, opcode_targets.h) tests the macro
with #if, so an absent define and a define-to-0 compile identically.
This recipe never passed =yes: v0.3.3 (clang 15) and the current
clang-17 builds are all the classic computed-goto ceval already.

The single green sample the flag produced (exp leg 45362178911, ratio
1.353) was a slow-instance draw: the same flag on this branch's own CI
(run 45365694894) read 1.921 plain / 1.614 jit, and the unflagged
recipe has drawn 1.353-1.510 passes on slow instances against
1.6-2.1 fails on fast ones. The mechanism hunt continues on
exp/xcode-16.3-arm64; the pin is noise on main's recipe.

This branch was previously deployed

1 inactive deployment
windows-signing — d8622723 Deployed Nov 25, 2026 by ronaldtse via linux-gnu / 3.14.7-jit / linux-gnu-arm64 #246
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.

2 participants