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

pantsbuild / pants / 19015773527

02 Nov 2025 05:33PM UTC coverage: 17.872% (-62.4%) from 80.3%
19015773527

Pull #22816

github

web-flow
Merge a12d75757 into 6c024e162
Pull Request #22816: Update Pants internal Python to 3.14

4 of 5 new or added lines in 3 files covered. (80.0%)

28452 existing lines in 683 files now uncovered.

9831 of 55007 relevant lines covered (17.87%)

0.18 hits per line

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

0.0
/src/python/pants/backend/cue/rules.py
1
# Copyright 2023 Pants project contributors (see CONTRIBUTORS.md).
2
# Licensed under the Apache License, Version 2.0 (see LICENSE).
UNCOV
3
from __future__ import annotations
×
4

UNCOV
5
from pants.backend.cue.subsystem import Cue
×
UNCOV
6
from pants.core.util_rules.external_tool import download_external_tool
×
UNCOV
7
from pants.engine.fs import MergeDigests, Snapshot
×
UNCOV
8
from pants.engine.intrinsics import execute_process, merge_digests
×
UNCOV
9
from pants.engine.platform import Platform
×
UNCOV
10
from pants.engine.process import FallibleProcessResult, Process
×
UNCOV
11
from pants.engine.rules import implicitly
×
UNCOV
12
from pants.util.logging import LogLevel
×
UNCOV
13
from pants.util.strutil import pluralize
×
14

15

UNCOV
16
def generate_argv(*args: str, files: tuple[str, ...], cue: Cue) -> tuple[str, ...]:
×
17
    return args + cue.args + files
×
18

19

UNCOV
20
async def _run_cue(
×
21
    *args: str, cue: Cue, snapshot: Snapshot, platform: Platform, **kwargs
22
) -> FallibleProcessResult:
23
    downloaded_cue = await download_external_tool(cue.get_request(platform))
×
24
    input_digest = await merge_digests(MergeDigests((downloaded_cue.digest, snapshot.digest)))
×
25
    process_result = await execute_process(
×
26
        Process(
27
            argv=[downloaded_cue.exe, *generate_argv(*args, files=snapshot.files, cue=cue)],
28
            input_digest=input_digest,
29
            description=f"Run `cue {args[0]}` on {pluralize(len(snapshot.files), 'file')}.",
30
            level=LogLevel.DEBUG,
31
            **kwargs,
32
        ),
33
        **implicitly(),
34
    )
35
    return process_result
×
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

© 2025 Coveralls, Inc