• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pantsbuild / pants / 43557681239

14 Nov 2026 04:38AM UTC coverage: 93.116%. Remained the same
43557681239

push

github

web-flow
Avoid importing Pex backend when generating workflows (#23769)

## Why

The Pants `native_engine.so` extension module is built for the
free-threaded-only Python 3.14t ABI. The `generate_github_workflows.py`
workflow generator script can run under standard Python 3.14, which uses
the standard GIL-enabled ABI and so is binary incompatible. The import
of `pex_cli.py` in that script loads the `native_enginel.so` extension
indirectly, so generation fails at startup with:

```text
ValueError: module functions cannot set METH_CLASS or METH_STATIC
```

The generator only needs Pex version and checksum values. This PR avoids
loading the incompatible native extension when obtaining them.

AI disclosure: I used Codex to diagnose the underlying issue
(encountered when working on
https://github.com/pantsbuild/pants/pull/23768) and to implement and
test this fix.

24 of 25 new or added lines in 2 files covered. (96.0%)

98124 of 105378 relevant lines covered (93.12%)

3.65 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

37.85
/src/python/pants_release/generate_github_workflows.py


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc