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

pantsbuild / pants / 35313
0%
main: 93%

Build:
Build:
LAST BUILD BRANCH: add-generic-option-to-docker-image
DEFAULT BRANCH: main
Ran 10 Sep 2020 09:36PM UTC
Jobs 1
Files 433
Run time 50s
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

pending completion
35313

push

travis-ci-com

web-flow
Add new intrinsic `Paths` to avoid snapshotting (#10741)

### Problem

Several of our mission-critical rules only need to resolve file names to work; they do not need the actual file contents, nor to save the snapshot to LMDB store. This includes:

- Resolving `AddressInput -> Address`.
- Getting the directory names for `AddressSpecs` for which we should get `AddressFamily`.
- Generating subtargets to figure out which subtargets exist.
- Finding owners, which requires determining what is a real file vs. deleted.
- Determining source roots via marker files.

### Solution

Add a new intrinsic `Paths`, which is nearly identical to `Snapshot`, but leaves off the `digest` field and does not snapshot the directory.

### Result

This command will run several of the above rules, including finding owners, resolving address specs, and generating subtargets.

Before:

```
multitime -n 50 ./pants --no-pantsd --changed-since=release_2.0.0a0 list
            Mean        Std.Dev.    Min         Median      Max
real        2.848       0.080       2.797       2.823       3.279
user        2.905       0.043       2.851       2.890       3.057
sys         1.757       0.023       1.721       1.752       1.826

```

After:

```
multitime -n 50 ./pants --no-pantsd --changed-since=release_2.0.0a0 list
            Mean        Std.Dev.    Min         Median      Max
real        2.713       0.048       2.628       2.703       2.991
user        2.482       0.024       2.444       2.477       2.552
sys         1.377       0.017       1.327       1.379       1.405

```

This results in a ~5% speedup for real time, ~15% speedup for user time, and ~20% speedup for sys time (ignoring standard deviations).

Closes https://github.com/pantsbuild/pants/issues/10711.

[ci skip-rust]
[ci skip-build-wheels]

28 of 28 new or added lines in 6 files covered. (100.0%)

0 of 29191 relevant lines covered (0.0%)

0.0 hits per line

Jobs
ID Job ID Ran Files Coverage
4 35313.4 (PANTS_CONFIG_FILES="${TRAVIS_BUILD_DIR}/pants.travis-ci.toml" PANTS_DYNAMIC_UI=false LC_ALL="en_US.UTF-8" AWS_BUCKET=ci-public.pantsbuild.org BOOTSTRAPPED_PEX_KEY_PREFIX=daily/${TRAVIS_BUILD_NUMBER}/${TRAVIS_BUILD_ID}/pants.pex NATIVE_ENGINE_SO_KEY_PREFIX=monthly/native_engine_so PYENV_PY27_VERSION=2.7.18 PYENV_PY36_VERSION=3.6.10 PYENV_PY37_VERSION=3.7.7 PYENV_PY38_VERSION=3.8.3 PYENV_ROOT_OSX=${HOME}/.pants_pyenv PYENV_ROOT="${PYENV_ROOT:-${PYENV_ROOT_OSX}}" PATH="${PYENV_ROOT}/shims:${PATH}" AWS_CLI_ROOT="${HOME}/.aws_cli" AWS_ACCESS_KEY_ID__TO_BE_REEXPORTED_ON_DEPLOYS=AKIAV6A6G7RQ2HFZ5KP7 AWS_SECRET_ACCESS_KEY=[secure] RUST_BACKTRACE="all" BOOTSTRAPPED_PEX_KEY_SUFFIX=py36.linux PANTS_REMOTE_CA_CERTS_PATH=/usr/lib/google-cloud-sdk/lib/third_party/grpc/_cython/_credentials/roots.pem CACHE_NAME=python_tests.py36) 10 Sep 2020 09:36PM UTC 0
0.0
Travis Job 35313.4
Source Files on build 35313
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #35313
  • 7c8947d8 on github
  • Prev Build on master (#35309)
  • Next Build on master (#35314)
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