Skip to content

Use Debian trixie for engine runtime compatibility - #157

Merged
luisleo526 merged 3 commits into
mainfrom
fix/runtime-libc-floor
Nov 4, 2026
Merged

luisleo526 merged 3 commits into
mainfrom
fix/runtime-libc-floor

Conversation

@luisleo526

Copy link
Copy Markdown
Contributor

The 1.10.0 amd64 engine library references __isoc23_strtol, which Debian bookworm's glibc does not export. Loading a compiled strategy therefore fails.

Move the Debian image stages to trixie and update the matching compiler/runtime pins, license checksums and source notice. Engine, codegen and HPO remain at 1.10.0. Update the packaging documentation and tests, and retire the fixed README line-count assertion while preserving the release pairing contract.

Validation is pending the existing publish workflow's amd64 and arm64 builds, runtime smoke tests and Debian source-mirror checks. Release finalization remains gated on their success.

🤖 Generated with Claude Code

Retire the fixed README line-count test because the runtime and source
documentation now changes length. Keep the release pairing contract checks
intact.

@graphify-labs graphify-labs Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Graphify reviewed this change.

Worth a look — the grounded gate found no coupling regressions or blocking issues, but 1 advisory finding(s) below merit a look before merge.

Not checked: tests were not run; no formal proof of the changed code.


Graphify review — findings

Moves every Debian-based Docker stage from bookworm-slim to trixie-slim and swaps the GCC 12 pins for GCC 14, so the image gets the glibc 2.41 family that the immutable amd64 engine library needs. The hpo-toolchain stage installs gcc, g++ and cpp at HPO_GCC_DEFAULTS_VERSION alongside the GCC 14 packages, and the publish parser rejects any empty toolchain pin. The README now lists sixteen vendored harness files, states that the 1.10.0 producer pins are unchanged, and requires a new trixie source set before any registry row is added. The release tests now assert the trixie runtime floor, the scratch/tmpfs guidance and the source-notice rendering. They compare release against a pinned historical digest that allows only the base change, in place of the git-history diff against the old runtime.

Worth a look

  • Documented gcc-defaults source pin is used as a binary package version — docker/Dockerfile:240 · Escalate · high
    • NOT verified (no proof, no reproducing execution) — needs human review
Analysis details — impact, health, verification

Impact & health

Graphify review

Impact — 178 functions depend on the 178 functions this change touches.

Health — grade A; 1 existing hotspot(s) in the area this change touches (pre-existing, not introduced here):

  • _toolchain_argument_problems() — 4 callers, 4 callees (medium)

Verification — 178 functions in the blast radius were not formally verified this run (proofs are advisory here).

Gate & verification

graphify gate

PASS — objectively clean (no health regressions, tests not run — proofs not run this pass (advisory)). Grounded, not self-assessed.

Advisory (not blocking):

  • verification_scope: 178 function(s) in the blast radius were not formally verified this run

Keep the bookworm-era notice as version 1 and add version 2 with only the
Debian release, GCC and binutils version facts updated. Point the existing
verbatim notice contract at version 2; preserve the source offer wording.
@luisleo526

Copy link
Copy Markdown
Contributor Author

Review of 583e31c against main 27a5ce1 (8 files, +227/-58): the diff is correct. It is not mergeable yet, for two reasons.

Not mergeable yet

  1. The required check fails at tests/test_release_sources.py:488-492. SourceNoticeTest compares docker/SOURCES.txt.in with the approved notice fixture tests/fixtures/GPL-NOTICE-v1.txt. This PR changes the template but not the fixture.
    • Fix: add GPL-NOTICE-v2.txt and point the test at it. Keep v1 unchanged as the bookworm-era record.
    • v2 differs from v1 in exactly three version facts in the first two lines:
      • Debian GNU/Linux 12 (bookworm) → 13 (trixie)
      • gcc/g++ 12.2.0 → 14.2.0
      • binutils 2.40 → 2.44
    • No other wording changes. Eigen 3.4.0 and every other sentence are the same.
  2. No trixie source set is registered. The publish workflow's source-bundle locate step refuses an unregistered package set before the image push, and every current row is bookworm. The registry row and its list and assets must land in this branch before the tag. The PR's own README text says so too.

I will review both follow-up commits as deltas.

What I checked

  • The pins agree with each other in every place they appear:
    • all four Debian stages are on debian:trixie-slim;
    • the six values in docker/hpo-toolchain.args match the Dockerfile's pinned installs. The toolchain and runtime stages install the gcc-14 family plus libgcc-s1 and libstdc++6 at 14.2.0-19 (trixie builds both from gcc-14), and binutils and Eigen at their pins. The native build stage installs CMake and make at theirs;
    • they also match the notice's tokens, the README's source mapping (gcc-defaults 1.220, gcc-14 14.2.0-19, binutils 2.44-3, eigen3 3.4.0-5, cmake 3.31.6-2, make-dfsg 4.4.1-2) and the renamed -14 entries in docker/LICENSE-SHA256SUMS.
  • Licence digests. I could not check them without the trixie packages. The build fails closed on a wrong one: it checks the exact file list and runs sha256sum -c --strict (docker/Dockerfile:346-351).
  • The release stage changes only by its base image. The kept digest test still holds it byte-identical to the historical runtime stage after normalization. The new normalizer accepts only the exact FROM debian:trixie-slim line and refuses six other forms.
  • The new tests read the real Dockerfile, args file and README. Every mutation actually changes its input. The pin table is labelled as a packaging assertion, not runtime proof. No test returns a constant or ignores its input.

Minor (no change needed for this PR)

  • README harness list, twelve → sixteen. This corrects stale text and matches the sixteen names the Dockerfile already checks (docker/Dockerfile:158-165).
  • The retired README 494-line assertion. Its only protected content, the pair-rule bytes at lines 215-244, is still pinned by the kept byte-identity test.
  • Exact apt pins are exposed to point releases. A later trixie point release that supersedes a pinned version makes the build fail at install. The bookworm pins had the same exposure; it fails closed.
  • "Native validation is pending" will go stale. The README and hpo-toolchain.args both say it, and a doc test pins the README phrase. After the publish smoke passes, both need a follow-up edit.
  • Stale comments. scripts/check_hpo_resolution.py:27 and :70 still say bookworm. The logic is version-agnostic: it reads pip's own --help for the three flags it uses.
  • First run on GCC 14 and Python 3.13. The default image's unpinned g++ and python3 follow the base, so the publish smoke is the first GCC 14 / Python 3.13 run of the engine headers, the generated code and the harness. No module removed in Python 3.13 is imported under docker/ or scripts/.

Nothing was executed for this review.

@luisleo526

Copy link
Copy Markdown
Contributor Author

Delta review of b81bd21 against 583e31c (2 files, +9/-1): the delta is correct, and the first blocker from my earlier review is closed.

  • New fixture. tests/fixtures/GPL-NOTICE-v2.txt differs from v1 in exactly the three version facts, and nothing else (checked with a word diff):
    • 12 (bookworm) → 13 (trixie);
    • gcc/g++ 12.2.0 → 14.2.0;
    • binutils 2.40 → 2.44.
  • The approved wording is unchanged. The source-offer sentences, the <this version> token and the snapshot.debian.org line all match v1.
  • v1 is kept unchanged as the bookworm-era record.
  • The test now points at v2. Its three assertions are unchanged: the template equals the approved text after the version-token substitution, there is exactly one @RELEASE_VERSION@ token, and no raw <this version> remains.
  • All required checks pass on this head, release-rules included.

Still open before merge: the trixie source set is not registered yet. The publish workflow's locate step refuses an unregistered package set before the image push. The registry row and its list and assets must be on this branch before the tag. I will review that commit as a delta.

Nothing was executed for this review.

Register the 72 source/version pairs from both native image inventories.
The source assets and list are mirrored on the existing v1.4.0 holding
release with their actual sizes and SHA-256 digests. Preserve prior sets
and retarget the existing registry data assertions for the new row.
@luisleo526

Copy link
Copy Markdown
Contributor Author

Review of 2668f00 against b81bd21 (3 files: README.md, docker/SOURCE-SETS.tsv, tests/test_release_sources.py). Delta GO. Every check on this head passes.

Checked against the published release, not only the diff

  • The list asset. set-17.SOURCES.list on v1.4.0 is 35,082 bytes with digest sha256:c8c640fc…c19a. The downloaded file hashes to the same value, which equals the new row's sources-list-sha256.
  • The set-id. The list has 72 entries over 72 distinct source/version pairs, matching n-pairs 72. Its sorted source<TAB>version lines hash to 76b31d33…994a, the row's set-id. That is the same computation as set_id() in scripts/release_sources.py:97-102.
  • The source assets. Each of the 72 assets the list names is on v1.4.0 with the listed size and SHA-256. None is missing or mismatched.
  • Public content. The list carries only Debian archive and snapshot URLs.

The test change retargets the existing test; nothing is added or skipped. test_95 keeps its structure:

  • rows 16 → 17;
  • unique set-ids 16 → 17;
  • one more v1.4.0 tag;
  • the per-row count now comes from expected_counts (84 for sets 1-16, 72 for set 17).

Each of these edits fails an assertion: dropping the row, changing its count, or reusing a set-id.

Release-step note (not a defect in this diff)

  • In set 17, tzdata is 2026e-0+deb13u1. Its source is now only on snapshot.debian.org. The live archive carries 2026c-0+deb13u1 (trixie) and 2026f-0+deb13u1 (trixie-updates).
  • A fresh build still reproduces 2026e. The current debian:trixie-slim image (created 2026-10-27) ships tzdata 2026e-0+deb13u1, and the Dockerfile installs packages without upgrading the ones already present (docker/Dockerfile:66, :97-101).
  • If that tag is rebuilt before the publish, or a package installed from the live archive gets an update, the publish run's Locate Debian source bundle step (.github/workflows/publish.yml:454-459) refuses before anything is pushed. That fails closed; the remedy is a new set taken from fresh inventories.
  • Pinning the base image by digest, and apt to a snapshot, would remove this race. That is a follow-up.

Wording (minor). README.md:325-328 still says the trixie image "needs a new source set … before adding a registry row", directly after the line that records set 17. Past tense would read better, for example: "It was derived from both native image inventories; the bookworm sets do not establish its source coverage."

No build or test was run for this review. The release assets were downloaded and hashed, and the Debian archive's current tzdata versions were read.

@luisleo526
luisleo526 merged commit b4b80bc into main Nov 4, 2026
10 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.

1 participant