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

pantsbuild / pants / 24859780233
91%

Build:
DEFAULT BRANCH: main
Ran 23 Apr 2026 09:36PM UTC
Jobs 12
Files 1734
Run time 4min
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

23 Apr 2026 09:28PM UTC coverage: 92.936% (+0.01%) from 92.926%
24859780233

push

github

web-flow
Feature: Support extracting file/directory artifacts from Docker image layers (#23270)

Adds `output_files`, `output_directories`, and `outputs_match_mode`
attributes to the `docker_image` target, matching the behavior of the
same target attributes of `shell_command` and `adhoc_tool`.

This effectively uses the Docker CLI arguments of `--output
type=local[,parameters]` which is the `local` exporter. Then it uses the
same glob behavior to extract and digest cache the specified files or
directories, enabling using Docker as a cache-able build environment
usable in subsequent and dependent targets.

I have tested it extensively locally for a use-case of building
out-of-tree CoreDNS plugins, and having it as a dependency on a
`run_shell_command` target that builds a custom Debian 13 LXC that
configures CoreDNS for use in the Proxmox environment.

The docs have been updated to provide a "Hello World" example. Do note
that, if there is more than one stage, or the artifacts you want to
extract are not in the last stage of the Dockerfile, you will need to
specify the `target_stage` attribute in the `docker_image` target. This
is mentioned in the docs.

Also, I fixed a minor bug where this, the `shell_command` and
`adhoc_tool` would double-warn on an unmatched path.

146 of 150 new or added lines in 4 files covered. (97.33%)

91829 of 98809 relevant lines covered (92.94%)

4.04 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
97.32
-0.34% src/python/pants/backend/docker/goals/package_image.py
1
99.8
-0.2% src/python/pants/backend/docker/goals/package_image_test.py
1
99.14
-0.35% src/python/pants/backend/docker/target_types.py
Jobs
ID Job ID Ran Files Coverage
1 test_python_linux_x86_64_0/10 - 24859780233.1 23 Apr 2026 09:38PM UTC 1209
56.81
GitHub Action Run
2 test_python_linux_x86_64_2/10 - 24859780233.2 23 Apr 2026 09:37PM UTC 1191
58.69
GitHub Action Run
3 test_python_linux_x86_64_3/10 - 24859780233.3 23 Apr 2026 09:37PM UTC 1189
53.86
GitHub Action Run
4 test_python_linux_arm64 - 24859780233.4 23 Apr 2026 09:46PM UTC 1173
52.36
GitHub Action Run
5 test_python_linux_x86_64_4/10 - 24859780233.5 23 Apr 2026 09:41PM UTC 1224
59.53
GitHub Action Run
6 test_python_linux_x86_64_6/10 - 24859780233.6 23 Apr 2026 09:36PM UTC 1185
49.52
GitHub Action Run
7 test_python_linux_x86_64_9/10 - 24859780233.7 23 Apr 2026 09:39PM UTC 1200
53.91
GitHub Action Run
8 test_python_linux_x86_64_5/10 - 24859780233.8 23 Apr 2026 09:37PM UTC 1204
59.71
GitHub Action Run
9 test_python_linux_x86_64_1/10 - 24859780233.9 23 Apr 2026 09:38PM UTC 1188
49.21
GitHub Action Run
10 test_python_linux_x86_64_8/10 - 24859780233.10 23 Apr 2026 09:40PM UTC 1192
53.55
GitHub Action Run
11 test_python_linux_x86_64_7/10 - 24859780233.11 23 Apr 2026 09:40PM UTC 1195
51.3
GitHub Action Run
12 test_python_macos14_arm64 - 24859780233.12 23 Apr 2026 09:38PM UTC 1173
52.37
GitHub Action Run
Source Files on build 24859780233
  • Tree
  • List 1734
  • Changed 6
  • Source Changed 5
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24859780233
  • 7c1af406 on github
  • Prev Build on main (#24804797209)
  • Next Build on main (#25030810974)
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