Skip to content

fix merge queue breakages - #6310

Merged
alex merged 5 commits into
PyO3:mainfrom
alex:claude/pyo3-pr-6309-ci-fix-y0fg45
Aug 8, 2026
Merged

fix merge queue breakages#6310
alex merged 5 commits into
PyO3:mainfrom
alex:claude/pyo3-pr-6309-ci-fix-y0fg45

Conversation

@alex

@alex alex commented Aug 8, 2026

Copy link
Copy Markdown
Member

There's two breakages:

  • latest rust nightly + cargo careful
  • latest CPython change to WASI

claude added 2 commits August 8, 2026 17:18
From nightly-2026-08-07 cargo no longer finds the sysroot `cargo careful`
builds for itself when running test binaries. Proc-macro crates link `libstd`
dynamically, so the `pyo3-macros` test binary can't start:

    error while loading shared libraries: libstd-<hash>.so: cannot open
    shared object file: No such file or directory

That aborts the job before it gets to anything else. Pin to the last nightly
where it works; revert to `@nightly` once
RalfJung/cargo-careful#55 is fixed.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N96dd4VafzejRKxEuk1pU4
Two problems, both surfaced by CPython 3.14 moving to a new patch release:

* `test-wasm` points the embedded interpreter at `PYTHONPATH=/lib`, which has
  never existed in the CPython checkout. It worked because `getpath` found the
  build tree itself, via the `Modules/Setup.local` landmark next to the
  "executable". CPython 3.14.7 removed that fallback (gh-151544), so the test
  binaries now die on startup with "Fatal Python error: Failed to import
  encodings module". Pass the stdlib and the WASI build directory explicitly.

* The `.nox/wasi` cache is keyed on `UV_PYTHON` ("3.14"), not on the CPython
  version nox builds and then looks for, so a new patch release restores the
  previous one's build and skips the build step. `cargo test` then fails
  immediately with "failed to search the lib dir at PYO3_CROSS_LIB_DIR=...".

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N96dd4VafzejRKxEuk1pU4
@alex alex added the CI-skip-changelog Skip checking changelog entry label Aug 8, 2026

@davidhewitt davidhewitt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks, this seems plausible to me, though I would prefer the extended commentary to be PR description and the inline comments to be more terse.

(IMO AI-generated code frequently leaves artifacts describing historical properties of code all over the place, and I tend to feel these just clutter thoughts rather than add value once the change has been done)

Comment thread .github/workflows/ci.yml Outdated
Comment thread .github/workflows/ci.yml Outdated
Comment thread noxfile.py Outdated
alex and others added 2 commits August 8, 2026 14:24
Co-authored-by: David Hewitt <mail@davidhewitt.dev>
Co-authored-by: David Hewitt <mail@davidhewitt.dev>
@alex

alex commented Aug 8, 2026

Copy link
Copy Markdown
Member Author

Agree: re: AI comment style. (It was so much worse before I trimmed it 🙃). The individual commits have much more detail.

@alex
alex enabled auto-merge August 8, 2026 18:25
@alex
alex added this pull request to the merge queue Aug 8, 2026
Merged via the queue into PyO3:main with commit f237312 Aug 8, 2026
89 checks passed
@alex
alex deleted the claude/pyo3-pr-6309-ci-fix-y0fg45 branch August 8, 2026 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI-build-full CI-skip-changelog Skip checking changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants