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

pantsbuild / pants / 36982
0%
main: 80%

Build:
Build:
LAST BUILD BRANCH: pex-2.76.1
DEFAULT BRANCH: main
Ran 21 Dec 2020 10:55PM UTC
Jobs 1
Files 417
Run time 41s
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
36982

push

travis-ci-com

web-flow
Simplify and fix the @ensure_daemon decorator. (#11356)

### Problem

While investigating #11335, I noticed that the `@ensure_daemon` decorator (intended to run a test twice: once with `pantsd`, and once without) was broken by the introduction of the explicit `use_pantsd` parameter to the `run_pants` helper methods. 

### Solution

Preserve the decorator to assist with the common case, but implement it in terms of `pytest.mark.parametrize` to make it less fragile and more explicit.

### Result

Tests that had only been running with `pantsd` will run without it as well.

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

14 of 14 new or added lines in 7 files covered. (100.0%)

0 of 28982 relevant lines covered (0.0%)

0.0 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
src/python/pants/base/exiter_integration_test.py
1
100.0
src/python/pants/core/goals/fmt_integration_test.py
1
100.0
src/python/pants/engine/internals/scheduler_integration_test.py
2
100.0
src/python/pants/vcs/changed_integration_test.py
2
100.0
tests/python/pants_test/integration/goal_rule_integration_test.py
3
100.0
src/python/pants/option/options_integration_test.py
4
100.0
src/python/pants/testutil/pants_integration_test.py

Uncovered Existing Lines

Lines Coverage ∆ File
2
100.0
src/python/pants/vcs/changed_integration_test.py
3
100.0
src/python/pants/backend/codegen/protobuf/python/additional_fields.py
5
100.0
src/python/pants/backend/codegen/protobuf/target_types.py
15
100.0
src/python/pants/core/goals/package.py
16
100.0
src/python/pants/help/help_integration_test.py
17
100.0
src/python/pants/util/objects.py
21
100.0
src/python/pants/util/strutil_test.py
22
100.0
src/python/pants/help/help_formatter.py
36
100.0
src/python/pants/util/strutil.py
45
100.0
src/python/pants/help/help_printer.py
51
100.0
src/python/pants/backend/awslambda/python/target_types.py
66
100.0
src/python/pants/core/target_types.py
91
100.0
src/python/pants/help/help_info_extracter.py
104
100.0
src/python/pants/engine/target.py
125
100.0
src/python/pants/backend/python/target_types.py
Jobs
ID Job ID Ran Files Coverage
4 36982.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 MACOS_PYENV_PY27_VERSION=2.7.18 MACOS_PYENV_PY37_VERSION=3.7.7 MACOS_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=py37.linux CACHE_NAME=python_tests.py37) 21 Dec 2020 10:55PM UTC 0
0.0
Travis Job 36982.4
Source Files on build 36982
  • Tree
  • List 417
  • Changed 21
  • Source Changed 21
  • Coverage Changed 20
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Build #36982
  • 45920f91 on github
  • Prev Build on master (#36963)
  • Next Build on master (#36986)
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