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

pantsbuild / pants / 31327056242
93%

Build:
DEFAULT BRANCH: main
Ran 09 Aug 2026 05:55PM UTC
Jobs 11
Files 1780
Run time 3min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

09 Aug 2026 05:41PM UTC coverage: 92.879% (-0.2%) from 93.089%
31327056242

push

github

web-flow
Run pants under free threaded python (#23477)

Switches Pants' own runtime to free-threaded CPython and makes the
engine and
Pants' Python code thread-safe without the GIL.

This has been validated as running without error in my companies CI, and
nets great speedups.

Most important callouts:
- Keep a persistent per-thread PyThreadState in the executor. Without
this, every `Python::attach` cycle tears down the thread state, and on
3.14t
that abandons the thread's mimalloc heaps. Created per tokio thread,
torn down in `on_thread_stop` (blocking
  threads are recycled, so the state must not leak per thread creation).
- Makes run-scoped internals thread-safe: rule_visitor, exception_sink,
logging, build_root, run_tracker.

I used https://github.com/pantsbuild/pants/pull/23437 as a launching
point.

I have on speculation set this as shipping in 2.34.x, as I believe 2.33
is too far along the dev-cycles. But I also do not see any reason to
delay further.

Blocks https://github.com/pantsbuild/scie-pants/pull/541

Edit:
This branch now serves as proof of green CI of the accumulation of
changes, and will be rebased as its parts are accepted incrementally:
- https://github.com/pantsbuild/pants/pull/23487
- https://github.com/pantsbuild/pants/pull/23488
- https://github.com/pantsbuild/pants/pull/23489
- https://github.com/pantsbuild/pants/pull/23490
- https://github.com/pantsbuild/pants/pull/23491
- https://github.com/pantsbuild/pants/pull/23492
- https://github.com/pantsbuild/pants/pull/23497
- https://github.com/pantsbuild/pants/pull/23514

Edit2:

Now that all pre-requisites are in, this PR contains CI/CD changes and
the new PANTS_FREE_THREADED option.
Current proposal for consumer UX is

| Consumer | `pants.toml#[GLOBAL].pants_free_threaded` | Resolves to |
Bootstrap warning |
|---|---|---|---|
| **scie-pants - not updated** | absent / `false` | `cp314` (GIL 3.14) |
- |
| **scie-pants - not updated** | `true` | `cp314` (GIL 3.14) | **"update
scie-pants"**. O... (continued)

42 of 49 new or added lines in 7 files covered. (85.71%)

18 existing lines in 1 file now uncovered.

95546 of 102872 relevant lines covered (92.88%)

3.66 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
36.69
src/python/pants_release/generate_github_workflows.py
1
95.91
-0.06% src/python/pants/option/bootstrap_options.py

Coverage Regressions

Lines Coverage ∆ File
18
95.91
-0.06% src/python/pants/option/bootstrap_options.py
Jobs
ID Job ID Ran Files Coverage
1 test_python_linux_x86_64_0/10 - 31327056242.1 09 Aug 2026 06:02PM UTC 1235
57.18
GitHub Action Run
2 test_python_linux_x86_64_4/10 - 31327056242.2 09 Aug 2026 06:06PM UTC 1245
58.87
GitHub Action Run
3 test_python_linux_x86_64_3/10 - 31327056242.3 09 Aug 2026 06:02PM UTC 1213
52.43
GitHub Action Run
4 test_python_linux_x86_64_1/10 - 31327056242.4 09 Aug 2026 06:01PM UTC 1215
48.99
GitHub Action Run
5 test_python_linux_x86_64_8/10 - 31327056242.5 09 Aug 2026 06:03PM UTC 1214
52.77
GitHub Action Run
6 test_python_linux_x86_64_5/10 - 31327056242.6 09 Aug 2026 05:59PM UTC 1230
60.31
GitHub Action Run
7 test_python_linux_x86_64_7/10 - 31327056242.7 09 Aug 2026 06:04PM UTC 1219
50.59
GitHub Action Run
8 test_python_linux_x86_64_6/10 - 31327056242.8 09 Aug 2026 05:59PM UTC 1211
50.07
GitHub Action Run
9 test_python_linux_x86_64_2/10 - 31327056242.9 09 Aug 2026 06:00PM UTC 1215
58.72
GitHub Action Run
10 test_python_linux_arm64 - 31327056242.10 09 Aug 2026 05:55PM UTC 1194
51.66
GitHub Action Run
11 test_python_linux_x86_64_9/10 - 31327056242.11 09 Aug 2026 06:03PM UTC 1225
54.08
GitHub Action Run
Source Files on build 31327056242
  • Tree
  • List 1780
  • Changed 7
  • Source Changed 5
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #31327056242
  • dc513736 on github
  • Prev Build on main (#31309774014)
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