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

pantsbuild / pants / 46948860541
93%

Build:
DEFAULT BRANCH: main
Ran 02 Dec 2026 07:19PM UTC
Jobs 10
Files 1742
Run time 1min
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

02 Dec 2026 07:12PM UTC coverage: 91.629% (-1.5%) from 93.113%
46948860541

push

github

web-flow
Upgrade to Coursier 2.1.27 (#23792)

There were some issues with Coursier 2.1.24 that I ran into while moving
some of my JVM projects over to Pants. I had to update to pre-release
versionse of 2.1.25 to get around those errors. Coursier went a very,
very long time without a full release with the fix which was frustrating
and the reasons were unclear. Regardless, they've dropped three releases
over the past couple of months. This PR upgrades Pants to use the most
recent one by default.

The newer Coursier versions introduced some minor breaking changes
around filenames, but the code in this PR should support both the old
and new patterns so that users who run into unforeseen issues can just
update pants.toml to point to whatever version of Coursier previously
worked for them so they're not stuck on 2.1.27 if they can't use it for
some reason.

I used Claude Code to write all of the code for this PR and it wrote the
remainder of this PR summary:

Fixes #22909.

## What this does

Bumps the default `[coursier].version` from `v2.1.24` to
[`v2.1.27`](https://github.com/coursier/coursier/releases/tag/v2.1.27).
All older `default_known_versions` entries are kept, so
`[coursier].version = "v2.1.24"` remains a one-line rollback.

Coursier 2.1.27 is not a drop-in replacement. Three things on the Pants
side had to change, and each of them also works with 2.1.24:

1. **JDK ids.** 2.1.27 defaults to a new per-platform JVM index whose
versions have no legacy `1.` prefix. `cs java-home --jvm=temurin:1.11`
fails with `JVM temurin:1.11 not found in index`, and `temurin:1.11` is
the default for both `[jvm].jdk` and `[jvm].tool_jdk`. Pants now strips
that prefix before calling Coursier (`normalize_jdk_id` in
`jvm/jdk_rules.py`), the two defaults are written as `temurin:11`, and
the Scala BSP rule that picks the highest JDK normalizes too (otherwise
`temurin:1.17` sorts below `temurin:11`).
2. **Maven `settings.xml` mirrors.** From 2.1.25, a mirror in the user's
`setting... (continued)

69 of 70 new or added lines in 8 files covered. (98.57%)

1347 existing lines in 76 files now uncovered.

94090 of 102686 relevant lines covered (91.63%)

3.43 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
93.03
0.36% src/python/pants/jvm/jdk_rules.py

Coverage Regressions

Lines Coverage ∆ File
146
35.78
-62.93% src/python/pants/backend/python/macros/poetry_requirements.py
102
0.0
-92.73% src/python/pants/backend/url_handlers/s3/register.py
88
77.91
-18.0% src/python/pants/option/bootstrap_options.py
80
40.65
-51.61% src/python/pants/backend/tools/semgrep/rules_integration_test.py
63
69.61
-22.26% src/python/pants/core/goals/generate_lockfiles.py
57
60.95
-33.73% src/python/pants/backend/project_info/peek.py
49
49.49
-49.49% src/python/pants/backend/cc/dependency_inference/rules.py
49
58.47
-41.53% src/python/pants/backend/shell/goals/test_test.py
48
51.75
-42.11% src/python/pants/backend/kotlin/compile/kotlinc_plugins.py
46
50.0
-50.0% src/python/pants/backend/project_info/paths.py
43
0.0
-100.0% src/python/pants/backend/javascript/run/rules.py
43
54.0
-43.0% src/python/pants/backend/python/lint/black/rules_integration_test.py
39
54.12
-45.88% src/python/pants/backend/codegen/protobuf/lint/buf/lint_rules_integration_test.py
38
64.39
-28.79% src/python/pants/backend/javascript/goals/test.py
37
0.0
-100.0% src/python/pants/backend/kotlin/test/junit.py
32
79.04
-13.97% src/python/pants/backend/codegen/protobuf/buf/config.py
30
0.0
-100.0% src/python/pants/backend/google_cloud_function/python/rules.py
29
51.61
-46.77% src/python/pants/backend/kotlin/compile/kotlinc.py
29
0.0
-100.0% src/python/pants/backend/cc/goals/tailor.py
25
0.0
-100.0% src/python/pants/backend/kotlin/goals/check.py
23
65.67
-34.33% src/python/pants/backend/python/lint/pydocstyle/rules_integration_test.py
22
0.0
-100.0% src/python/pants/backend/typescript/goals/tailor.py
18
66.37
-15.93% src/python/pants/pantsd/service/pants_service.py
18
76.15
-13.85% src/python/pants/option/global_options.py
12
0.0
-100.0% src/python/pants/backend/url_handlers/s3/subsystem.py
11
87.85
-10.28% src/python/pants/backend/go/util_rules/coverage_profile.py
11
73.08
-21.15% src/python/pants/core/goals/generate_snapshots.py
10
59.26
-37.04% src/python/pants/init/plugin_resolver_rules.py
10
93.03
-3.48% src/python/pants/engine/internals/parser.py
9
70.0
-18.0% src/python/pants/backend/codegen/protobuf/buf/lockfile.py
9
84.62
-11.54% src/python/pants/backend/scala/util_rules/versions.py
9
84.29
-12.86% src/python/pants/backend/google_cloud_function/python/target_types.py
8
77.78
-22.22% src/python/pants/version.py
6
89.66
-10.34% src/python/pants/init/plugin_resolver.py
6
90.67
-8.0% src/python/pants/backend/kotlin/dependency_inference/rules.py
6
70.67
-8.0% src/python/pants/init/options_initializer.py
6
88.89
-3.51% src/python/pants/backend/visibility/glob.py
6
88.89
-11.11% src/python/pants/backend/docker/registries.py
5
88.52
-4.1% src/python/pants/backend/kotlin/dependency_inference/kotlin_parser.py
4
98.05
-0.98% src/python/pants/backend/javascript/package_json.py
4
83.72
-9.3% src/python/pants/backend/python/lint/black/rules.py
4
77.78
-22.22% src/python/pants/backend/kotlin/subsystems/kotlin.py
4
77.78
-22.22% src/python/pants/backend/project_info/list_roots.py
4
86.21
-13.79% src/python/pants/backend/visibility/rules.py
3
95.76
-1.82% src/python/pants/backend/python/subsystems/setup.py
3
93.4
-0.79% src/python/pants/jvm/target_types.py
3
76.19
-14.29% src/python/pants/engine/platform.py
3
93.18
-6.82% src/python/pants/backend/go/util_rules/go_bootstrap.py
3
88.89
-11.11% src/python/pants/engine/collection.py
2
93.67
-1.27% src/python/pants/backend/visibility/rule_types.py
2
88.24
-2.94% src/python/pants/option/option_value_container.py
2
95.24
-4.76% src/python/pants/testutil/option_util.py
2
94.03
-1.49% src/python/pants/util/contextutil.py
2
90.91
-9.09% src/python/pants/core/goals/resolves.py
2
97.83
-2.17% src/python/pants/backend/tools/semgrep/rules.py
2
90.1
-1.98% src/python/pants/init/extension_loader.py
1
97.14
-2.86% src/python/pants/backend/python/lint/pydocstyle/rules.py
1
98.08
-0.96% src/python/pants/backend/javascript/nodejs_project_environment.py
1
93.83
-0.16% src/python/pants/engine/internals/graph.py
1
96.55
-0.69% src/python/pants/backend/javascript/nodejs_project.py
1
95.89
-1.37% src/python/pants/jvm/shading/rules.py
1
98.46
-1.54% src/python/pants/backend/javascript/install_node_package.py
1
98.77
-1.23% src/python/pants/engine/internals/defaults.py
1
94.74
-0.75% src/python/pants/backend/shell/util_rules/shell_command.py
1
98.68
-1.32% src/python/pants/backend/kotlin/target_types.py
1
95.43
-0.57% src/python/pants/source/source_root.py
1
92.05
-1.14% src/python/pants/engine/internals/dep_rules.py
1
94.32
-0.32% src/python/pants/testutil/rule_runner.py
1
92.95
-0.64% src/python/pants/build_graph/build_configuration.py
1
98.79
-0.61% src/python/pants/backend/adhoc/target_types.py
1
91.67
-8.33% src/python/pants/backend/kotlin/subsystems/kotlinc.py
1
95.0
-0.36% src/python/pants/backend/python/util_rules/faas.py
1
87.5
-12.5% src/python/pants/backend/python/lint/flake8/skip_field.py
1
87.5
-12.5% src/python/pants/backend/python/lint/pylint/skip_field.py
1
94.74
-0.28% src/python/pants/backend/python/util_rules/pex_requirements.py
1
85.57
-0.5% src/python/pants/testutil/pants_integration_test.py
Jobs
ID Job ID Ran Files Coverage
1 test_python_linux_x86_64_0/10 - 46948860541.1 02 Dec 2026 07:22PM UTC 1245
56.87
GitHub Action Run
2 test_python_linux_x86_64_7/10 - 46948860541.2 02 Dec 2026 07:35PM UTC 1228
51.19
GitHub Action Run
3 test_python_linux_x86_64_3/10 - 46948860541.3 02 Dec 2026 07:19PM UTC 1223
51.91
GitHub Action Run
4 test_python_linux_x86_64_4/10 - 46948860541.4 02 Dec 2026 07:24PM UTC 1254
59.06
GitHub Action Run
5 test_python_linux_x86_64_2/10 - 46948860541.5 02 Dec 2026 07:33PM UTC 1225
59.28
GitHub Action Run
6 test_python_linux_x86_64_6/10 - 46948860541.6 02 Dec 2026 07:20PM UTC 1222
49.86
GitHub Action Run
7 test_python_linux_x86_64_5/10 - 46948860541.7 02 Dec 2026 07:21PM UTC 1240
60.43
GitHub Action Run
8 test_python_linux_x86_64_9/10 - 46948860541.8 02 Dec 2026 07:21PM UTC 1235
54.7
GitHub Action Run
9 test_python_linux_arm64 - 46948860541.9 02 Dec 2026 07:19PM UTC 1210
53.14
GitHub Action Run
10 test_python_linux_x86_64_1/10 - 46948860541.10 02 Dec 2026 07:21PM UTC 1224
48.96
GitHub Action Run
Source Files on build 46948860541
  • Tree
  • List 1742
  • Changed 12
  • Source Changed 11
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #46948860541
  • fd3d5114 on github
  • Prev Build on main (#46542550740)
  • Next Build on main (#47037107414)
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