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

pantsbuild / pants / 20328535594

18 Dec 2025 06:46AM UTC coverage: 57.969% (-22.3%) from 80.295%
20328535594

Pull #22954

github

web-flow
Merge ccc9c5409 into 407284c67
Pull Request #22954: free up disk space in runner image

39083 of 67421 relevant lines covered (57.97%)

0.91 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).
3
from __future__ import annotations
×
4

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

15

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

19

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

© 2026 Coveralls, Inc