Skip to content

README: the off-page figure, and the instrument that produces it - #645

Merged
tannevaled merged 2 commits into
mainfrom
readme-offpage-figures
Oct 25, 2026
Merged

tannevaled merged 2 commits into
mainfrom
readme-offpage-figures

Conversation

@tannevaled

Copy link
Copy Markdown
Contributor

The README's off-page figure was two releases and one instrument change behind.

The number

Over the 154-paper corpus, 21 papers still draw text past their own page edge in
their first two pages; the widest line is 1281pt on a 612pt sheet. The floor on
the reference PDFs themselves is 0.

⚠ Why the floor is 0 and not 2, said in the README rather than quietly continued

The counter used to live in a session scratchpad. That directory was purged, the tool
went with it, and rewriting it exposed what the old one had been hiding: unfiltered,
the reference PDFs themselves report 12 papers off the page
, one of them at
x=5135. All of it is text the PDF reader surfaces that was never typeset — a
/Title string's UTF-16 octal escapes, hyperref's PostScript specials, pdfmark
annotation attributes (attr/Border[0 0 1]/H/I/C[…]), the burl package's PostScript
definitions (/burl@stx null def).

The old tool filtered some of those and left 2, and those 2 were simply the shapes
it had not named. So:

papers widest line reference floor filter
v0.260.0 49 6619pt 2 old
v0.261.0 23 3357pt 2 old
now 21 1281pt 0 new

⛔ The first two rows are not directly comparable to the third, and the README now
says so. A Σ carried across a change of instrument is exactly the drift this corpus
has been bitten by before.

The tool lives in the measure harness now, as measure offpage, with its threshold
pinned by a test (650pt — US Letter is 612 and A4 595, so it is a property of the
paper and not a knob) and three planted positives taken verbatim from the corpus,
because a filter that removes artefacts can remove the finding and the two look
identical from a count that went down.

Two further causes named

\maketitle never running the class's own \@maketitle (#643), which left \@author
in a \centerline no line breaker touches; and key-list commands left undefined
(mdframed #644, caption #642), which left their keys on the page. Five causes
becomes seven.

🤖 Generated with Claude Code

tannevaled and others added 2 commits October 25, 2026 17:41
21 of the 154 corpus papers still draw past their own page edge in their first two
pages, widest line 1281pt, against a floor of 0 on the reference PDFs.

⚠ The floor is 0 and not 2 because the INSTRUMENT changed. It lives in the measure
harness now (`measure offpage`) instead of a session scratchpad, and it filters text
the PDF reader surfaces but that was never TYPESET: a /Title string's octal escapes,
hyperref's PostScript specials, pdfmark attributes, burl's PostScript definitions.
Unfiltered, the reference PDFs themselves report 12 papers, one at x=5135.

So the earlier series — 49 at v0.260.0, 23 at v0.261.0 — was taken with a filter that
left 2 on the reference, and is NOT directly comparable to this number. Said in the
README rather than quietly continued, because a sigma carried across a change of
instrument is the drift this corpus has been bitten by before.

Two further causes named: \\maketitle never running the class's own \\@maketitle, and
key-list commands left undefined (mdframed, caption).

Co-Authored-By: Claude Opus 5 <[email protected]>
ubuntu-latest migrated to Ubuntu 26 from 2026-10-19, and the three qemu arch lanes
went red between a green main on 2026-10-23 and 2026-10-25 with nothing committed:

  Image: ubuntu-26.04
  E: Package 'qemu-user-static' has no installation candidate
  Package qemu-user-static is a virtual package provided by:
    qemu-user-binfmt-hwe 1:10.2.1+ds-1ubuntu4.4
    qemu-user-binfmt     1:10.2.1+ds-1ubuntu3.3

apt will not choose between two providers, and the step exits 100 in 16 seconds.

⚠ Installing a provider is NOT the fix. They register binfmt handlers; they do not
ship the qemu-<arch>-static binaries this lane invokes. The lane would then take its
`command -v` branch and go GREEN while testing nothing — worse than red, and the one
outcome this matrix exists to rule out. qemu-user ships the dynamic qemu-<arch>,
which is all that is needed to run one Go test binary with go test -exec, so both
package names are installed and both binary names are looked for.

⛔ And a missing emulator now FAILS the lane instead of warning and exiting 0.

Co-Authored-By: Claude Opus 5 <[email protected]>
@tannevaled
tannevaled merged commit 3547490 into main Oct 25, 2026
18 checks passed
@tannevaled
tannevaled deleted the readme-offpage-figures branch October 25, 2026 17:22
tannevaled added a commit to go-ruby-opentelemetry/opentelemetry that referenced this pull request Oct 25, 2026
`ubuntu-latest` became Ubuntu 26 on 2026-10-19 and apt refuses to choose between the
two providers of what is now a virtual package:

	E: Package 'qemu-user-static' has no installation candidate
	Package qemu-user-static is a virtual package provided by:
	  qemu-user-binfmt-hwe 1:10.2.1+ds-1ubuntu4.4
	  qemu-user-binfmt     1:10.2.1+ds-1ubuntu3.3

The step exits 100 in about 20 seconds. go-tex/engine#645 has the full account; 333
repositories of this account carried the line.

⚠ Installing a provider is NOT the fix. They register binfmt handlers; they do not
ship the qemu-<arch>-static binaries this matrix names, and the runner has none of
them. qemu-user ships the dynamic qemu-<arch>, which is all that `go test -exec`
needs, so both packages are installed and BOTH binary names are accepted.

⛔ The matrix column is left alone on purpose. Stripping -static as a FALLBACK keeps
this lane working both on an image that ships the static binaries and on one that
ships only the dynamic ones; rewriting the matrix would trade one of those for the
other.

⛔ A missing emulator now FAILS the lane, and the lane PRINTS which emulator it ran.
Without that line, "ran under emulation" and "skipped" are indistinguishable from a
green tick — which is how a fix for this can look like it worked while testing nothing.

This file was the one the campaign's qemufix tool REFUSED, out of 192 in its batch:
the `env:` key on the line after `run:` means a multi-line rewrite has to be inserted
before it, and the tool declines rather than risk swallowing the key. The refusal was
right; patched by hand here.

Co-authored-by: Claude Opus 5 <[email protected]>
tannevaled added a commit to go-tex/math that referenced this pull request Oct 25, 2026
`ubuntu-latest` migrated to Ubuntu 26 from 2026-10-19, and this lane went red with
nothing committed:

	Image: ubuntu-26.04
	E: Package 'qemu-user-static' has no installation candidate
	Package qemu-user-static is a virtual package provided by:
	  qemu-user-binfmt-hwe 1:10.2.1+ds-1ubuntu4.4
	  qemu-user-binfmt     1:10.2.1+ds-1ubuntu3.3

apt will not choose between two providers, and the step exits 100 in ~20 seconds.

⚠ Installing a provider is NOT the fix. They register binfmt handlers; they do not
ship the qemu-<arch>-static binaries this matrix names. qemu-user ships the dynamic
qemu-<arch>, which is all that `go test -exec` needs, so both packages are installed
and both binary names are accepted.

⛔ A missing emulator now FAILS the lane, and the lane PRINTS which emulator it ran.
Without that line, "ran under emulation" and "skipped" are indistinguishable from a
green tick — which is how a fix for this can look like it worked while testing
nothing.

Verified on go-tex/engine#645 before being copied here: its ppc64le lane logs
"running ppc64le under qemu-ppc64le" and six packages green under emulation, the
engine's own in 257s.

333 repositories in 258 organisations of this account still carry the old line; 8 had
a red default branch as of 2026-10-25. The rest are green only because the runner
migration is rolling out gradually.

Co-authored-by: Claude Opus 5 <[email protected]>
tannevaled added a commit to go-tex/tex that referenced this pull request Oct 25, 2026
`ubuntu-latest` migrated to Ubuntu 26 from 2026-10-19, and this lane went red with
nothing committed:

	Image: ubuntu-26.04
	E: Package 'qemu-user-static' has no installation candidate
	Package qemu-user-static is a virtual package provided by:
	  qemu-user-binfmt-hwe 1:10.2.1+ds-1ubuntu4.4
	  qemu-user-binfmt     1:10.2.1+ds-1ubuntu3.3

apt will not choose between two providers, and the step exits 100 in ~20 seconds.

⚠ Installing a provider is NOT the fix. They register binfmt handlers; they do not
ship the qemu-<arch>-static binaries this matrix names. qemu-user ships the dynamic
qemu-<arch>, which is all that `go test -exec` needs, so both packages are installed
and both binary names are accepted.

⛔ A missing emulator now FAILS the lane, and the lane PRINTS which emulator it ran.
Without that line, "ran under emulation" and "skipped" are indistinguishable from a
green tick — which is how a fix for this can look like it worked while testing
nothing.

Verified on go-tex/engine#645 before being copied here: its ppc64le lane logs
"running ppc64le under qemu-ppc64le" and six packages green under emulation, the
engine's own in 257s.

333 repositories in 258 organisations of this account still carry the old line; 8 had
a red default branch as of 2026-10-25. The rest are green only because the runner
migration is rolling out gradually.

Co-authored-by: Claude Opus 5 <[email protected]>
tannevaled added a commit that referenced this pull request Oct 26, 2026
go test's default package timeout is 10 minutes, and that is a native-hardware
figure. The qemu lanes run the tests through an interpreter, the engine package
sat right against the limit, and ordinary runner variance crossed it:

  #645 on main            riscv64  6m06s   pass
  #648 on main            riscv64 11m19s   FAIL  github.com/go-tex/engine 600.406s
  #650 PR, 1st attempt    riscv64 11m04s   FAIL  same 600s
  #650 PR, RE-RUN of the same commit       pass

The re-run is the control: identical code, opposite outcome.

⚠ The failure does not look like a timeout. go test dumps every goroutine's stack
when the deadline passes, so the log ends with a trace through go-opentype's font
parser inside TestWriteToAClosedStreamIsDiscarded. That is where one goroutine
happened to be, not a crash and not a hang in that test. Only `FAIL … 600.406s`
says what happened.

And the obvious reading was wrong: the 6m06 → 11m19 doubling coincides exactly
with #648, which touched the page breaker's hot loop, so "that change made the
engine twice as slow" was the natural suspicion. The non-emulated lanes refute
it -- ubuntu went 23m04s to 16m27s across the same two commits, FASTER, and macos
17m00s to 18m25s. There is no 2x slowdown; variance on an emulated lane is enough
on its own.

The native job already carries `-timeout 30m` for the same reason on windows, so
this is the same remedy in the place that needed it next. A lane that reds on
variance teaches people to ignore reds, which costs more than the lane is worth.

Closes #652.

Co-authored-by: Claude Opus 5 <[email protected]>
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