Skip to content

ci: bootstrap pins to 2026.8.27.5 — the last compiled-in glibc constants - #574

Merged
Sunrisepeak merged 1 commit into
mainfrom
ci/bootstrap-pins-to-2026.8.27.5
Aug 27, 2026
Merged

Sunrisepeak merged 1 commit into
mainfrom
ci/bootstrap-pins-to-2026.8.27.5

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member

Seven workflows bootstrapped an xlings whose subos runtime binding is a compiled-in constant — five on v2026.8.8.1, two on v2026.8.10.1. Both predate 2026.8.27.2, where the binding started coming from the index.

Measured

Four client versions against an index carrying glibc 2.44 and 2.44.2, with latest = 2.44.2 — i.e. the state restoring the entry would actually produce:

client binding source declares installs
v2026.8.8.1 constant 2.39 2.44.2 breaks
v2026.8.10.1 constant 2.44 2.44.2 breaks
2026.8.27.4 reads index 2.44.2 2.44.2 ok
2026.8.27.5 index + declared-wins 2.44.2 2.44.2 ok

Every client whose binding is a constant installs one version while declaring another; every client that reads the index stays consistent. These pins were the last constants in the loop.

What it unblocks

A packaging revision of a runtime package could not be published at all while these sat here. glibc 2.44.2 — the build that fixes the host /etc/ld.so.preload breach (mcpp-community/mcpp#484) — has been withdrawn from the index three times for exactly this reason.

Note v2026.8.8.1 was already mismatched today: it declares 2.39 on a home running 2.44 (mcpp-community/mcpp#406). Restoring 2.44.2 does not create that, it only changes which version it gets wrong.

Cost

BOOTSTRAP_XLINGS_VERSION appears in 17 cache keys, so the first run after this is a cold build. One-off.

Two comments corrected

  • The aarch64 rationale still said "move this pin to 2026.8.27.3 once it is released" — an instruction this PR carries out, so it had to stop reading as pending work.
  • Three workflows claimed to bump this "together with XIM_PKGINDEX_REF so CI uses a known-good xlings + package index pair". Measured: that variable is declared in seven workflows and checked out in three, two of them the Windows legs. On linux/macos the index is whatever is current. A comment describing a lock that does not exist is worse than none — the next person bumping these will believe it.

Ordering: this lands first, mcpp's own xlings pin follows, and the index entry moves last. Consumers ship before latest does.

Seven workflows bootstrapped an xlings whose subos runtime binding is a
COMPILED-IN CONSTANT: five on v2026.8.8.1, two on v2026.8.10.1. Both predate
2026.8.27.2, where the binding started coming from the index.

Measured across four client versions against an index carrying glibc 2.44 and
2.44.2 with `latest = 2.44.2`:

  v2026.8.8.1   [constant]      declares 2.39    installs 2.44.2   BREAKS
  v2026.8.10.1  [constant]      declares 2.44    installs 2.44.2   BREAKS
  2026.8.27.4   [reads index]   declares 2.44.2  installs 2.44.2   ok
  2026.8.27.5   [index + D1]    declares 2.44.2  installs 2.44.2   ok

Every client whose binding is a constant installs one version while declaring
another; every client that reads the index stays consistent. These pins were
the last constants in the loop.

What this unblocks: a packaging revision of a runtime package could not be
published at all while they sat here. glibc 2.44.2 -- the build that fixes
the host `/etc/ld.so.preload` breach (mcpp#484) -- has been withdrawn from
the index three times for exactly this reason. Note v2026.8.8.1 was ALREADY
mismatched today, declaring 2.39 on a home running 2.44 (mcpp#406); the
restore does not create that, it only changes which version it gets wrong.

Cost: BOOTSTRAP_XLINGS_VERSION appears in 17 cache keys, so the first run
after this is a cold build. One-off.

Also corrects two comments that no longer describe reality:

- the aarch64 rationale still said "move this pin to 2026.8.27.3 once it is
  released" -- an instruction this commit carries out, so it had to stop
  reading as pending work.
- three workflows claimed to bump BOOTSTRAP_XLINGS_VERSION "together with
  XIM_PKGINDEX_REF so CI uses a known-good pair". Measured: that variable is
  declared in seven workflows and checked out in three, two of them the
  Windows legs. On linux/macos the index is whatever is current. A comment
  describing a lock that does not exist is worse than none, because the next
  person bumping these pins will believe it.
@Sunrisepeak
Sunrisepeak merged commit 3c51d35 into main Aug 27, 2026
8 checks passed
@Sunrisepeak
Sunrisepeak deleted the ci/bootstrap-pins-to-2026.8.27.5 branch August 27, 2026 21:56
Sunrisepeak added a commit to openxlings/xim-pkgindex that referenced this pull request Aug 27, 2026
Withdrawn three times, never because the artifact was bad. The binding IS the
payload directory name, and consumers held that name as a compiled-in
constant: a consumer with `[email protected]` baked in needs `xim-x-glibc/2.44` on
disk, while 36 range dependencies (`glibc@>=2.38/2.39`) resolve through
select_best -- MAXIMUM satisfying, which does not consult `latest` -- and
install the higher one. The consumer then refuses:

  error: selected RuntimeBinding [email protected] requires payload
         '<home>/.../xpkgs/xim-x-glibc/2.44', but it is not installed

What changed is that every consumer now takes the binding from THIS FILE
rather than from a constant, so both questions asked of this table give the
same answer again. Measured across four client versions against exactly the
state this commit produces:

  v2026.8.8.1   [constant]     declares 2.39    installs 2.44.2   mismatch
  v2026.8.10.1  [constant]     declares 2.44    installs 2.44.2   mismatch
  2026.8.27.4   [reads index]  declares 2.44.2  installs 2.44.2   ok
  2026.8.27.5   [index + D1]   declares 2.44.2  installs 2.44.2   ok

Both mismatching versions are out of the loop: openxlings/xlings#574 moved all
seven CI bootstrap pins to 2026.8.27.5, and mcpp-community/mcpp#520 moved
mcpp's bundled xlings there too.

MOVING `latest` WITH THE ENTRY IS NOT OPTIONAL. Adding 2.44.2 while leaving
`latest` at 2.44 is strictly worse than not adding it -- select_best would
install 2.44.2 while every binding still said 2.44. That was measured too.

Why it is worth doing, `strings` on the two published loaders:

                            2.44                 2.44.2
  XLINGS_LD_PRELOAD_FILE    absent               present
  build-machine paths       8                    0
  preload path              /etc/ld.so.preload   /nonexistent/...

The 2.44 every user is on today reads the HOST's /etc/ld.so.preload
(mcpp-community/mcpp#484) and still carries the machine it was built on.

2.44 stays in the table, append-only: subos created against it keep
resolving, and on 2026.8.27.5 the declaration outranks `latest`, so they are
not dragged forward.

sha256 recomputed from the downloaded artifact, not copied from the
withdrawal note: ed4bf048b8ed2b65433e0dd655f93133da4a9bd458276cfa986b7cccde835d08

tests/g/test_glibc.py: 11 passed, 1 failed -- the failure is bare-name
ambiguity from three namespaces providing glibc on this machine, and it fails
identically on unmodified main.

Co-authored-by: sunrisepeak <[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