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

pantsbuild / pants / 25200338051
93%

Build:
DEFAULT BRANCH: main
Ran 01 May 2026 03:12AM UTC
Jobs 12
Files 1734
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

01 May 2026 03:07AM UTC coverage: 92.955%. Remained the same
25200338051

push

github

web-flow
fix `test_range_deps` in plugin resolver test  to not use real `requests` distribution (#23299)

## Overview

Modify `test_range_deps` in
`src/python/pants/init/plugin_resolver_test.py` to not use `requests` as
the transitive dependency to verify the plugin resolver's behavior.
Instead, use a non-existent distribution because otherwise the version
of `requests` loaded in the test environment's `sys.path` could affect
the test (and cause a spurious failure).

Motivation is [this build
failure](https://github.com/pantsbuild/pants/actions/runs/24785703939/job/72530152547#step:12:438)
in [this other PR](https://github.com/pantsbuild/pants/pull/23284):

```
_______________________________ test_range_deps ________________________________

rule_runner = RuleRunner(build_root=/tmp/_BUILD_ROOTfn0lzflq)

    def test_range_deps(rule_runner: RuleRunner) -> None:
        # Test that when a plugin has a range dependency, specifying a working set constrains
        # to a particular version, where otherwise we would get the highest released (2.27.1 in
        # this case).
        with plugin_resolution(
            rule_runner,
            plugins=[Plugin("jane", "3.4.5", ["requests>=2.25.1,<2.28.0"])],
            existing_distributions=[MockDistribution(name="requests", version=Version("2.26.0"))],
            # Because we're resolving real distributions, we enable access to pypi.
            use_pypi=True,
        ) as (
            _,
            _,
            _,
            _,
        ):
            dist = importlib.metadata.distribution("requests")
>           assert "2.27.1" == dist.version
E           AssertionError: assert equals failed
E             '2.27.1'  '2.32.5'

src/python/pants/init/plugin_resolver_test.py:360: AssertionError
=============================== warnings summary ===============================
src/python/pants/init/plugin_resolver_test.py::test_no_plugins
  /opt/hostedtoolcache/Python/3.14.2/x64/lib/python3.14/ctypes/_endian.py:33: D... (continued)

9 of 9 new or added lines in 1 file covered. (100.0%)

91825 of 98784 relevant lines covered (92.96%)

4.04 hits per line

Jobs
ID Job ID Ran Files Coverage
1 test_python_linux_x86_64_7/10 - 25200338051.1 01 May 2026 03:25AM UTC 1195
51.31
GitHub Action Run
2 test_python_linux_x86_64_1/10 - 25200338051.2 01 May 2026 03:22AM UTC 1188
49.2
GitHub Action Run
3 test_python_linux_x86_64_4/10 - 25200338051.3 01 May 2026 03:19AM UTC 1224
59.51
GitHub Action Run
4 test_python_linux_arm64 - 25200338051.4 01 May 2026 03:24AM UTC 1173
52.36
GitHub Action Run
5 test_python_linux_x86_64_6/10 - 25200338051.5 01 May 2026 03:18AM UTC 1185
49.52
GitHub Action Run
6 test_python_linux_x86_64_9/10 - 25200338051.6 01 May 2026 03:19AM UTC 1200
53.91
GitHub Action Run
7 test_python_macos14_arm64 - 25200338051.7 01 May 2026 03:12AM UTC 1173
52.37
GitHub Action Run
8 test_python_linux_x86_64_5/10 - 25200338051.8 01 May 2026 03:19AM UTC 1204
59.69
GitHub Action Run
9 test_python_linux_x86_64_0/10 - 25200338051.9 01 May 2026 03:18AM UTC 1209
56.79
GitHub Action Run
10 test_python_linux_x86_64_8/10 - 25200338051.10 01 May 2026 03:23AM UTC 1192
53.56
GitHub Action Run
11 test_python_linux_x86_64_2/10 - 25200338051.11 01 May 2026 03:17AM UTC 1191
58.69
GitHub Action Run
12 test_python_linux_x86_64_3/10 - 25200338051.12 01 May 2026 03:22AM UTC 1189
53.84
GitHub Action Run
Source Files on build 25200338051
  • Tree
  • List 1734
  • Changed 4
  • Source Changed 1
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25200338051
  • 99e2f83b on github
  • Prev Build on main (#25199742816)
  • Next Build on main (#25259185675)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc