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

pantsbuild / pants / 25200338051 / 1
93%
main: 93%

Build:
DEFAULT BRANCH: main
Ran 01 May 2026 03:26AM UTC
Files 1195
Run time 30s
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: 51.311%. Remained the same
25200338051.1

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)

32183 of 62722 relevant lines covered (51.31%)

0.51 hits per line

Source Files on job test_python_linux_x86_64_7/10 - 25200338051.1
  • Tree
  • List 1195
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 25200338051
  • 99e2f83b on github
  • Prev Job for on main (#25199742816.4)
  • Next Job for on main (#25259185675.3)
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