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

pantsbuild / pants / 5540 / 3
0%
main: 93%

Build:
Build:
LAST BUILD BRANCH: fix_uv_sources_config
DEFAULT BRANCH: main
Ran 08 Jul 2015 09:49PM UTC
Files 332
Run time 14s
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

08 Jul 2015 09:45PM UTC coverage: 66.516% (-0.4%) from 66.89%
CI_FLAGS="-fkmsrcn -u 1/2 'Unit tests for pants and pants-plugins - shard 2'"

push

travis-ci

John Sirois
Fixup BuildFile must_exist logic.

Relax the BuildFile.must_exist logic to ensure a logical BUILD file
exists.  Previously the logic required the primary canonical BUILD file
(no extension) to be a valid BUILD file and not a directory if a valid
sibling BUILD file existed.

This change adds a failing test that is then fixed.
Along the way, centralize BUILD file `._isfile` testing in
`_get_all_build_files`.

Testing Done:
Before fix, the new test failed like so:
```console
$ ./pants test tests/python/pants_test/base:filesystem_build_file -- -ktest_dir_is_primary
...
                     E         MissingBuildFileError: Path to buildfile (/tmp/tmp7ZEf8n/root/issue_1742/BUILD) is a directory, but it must be a file.

                     src/python/pants/base/build_file.py:167: MissingBuildFileError
...
```

CI went green here:
  https://travis-ci.org/pantsbuild/pants/builds/70123652

Bugs closed: 1742, 1774

Reviewed at https://rbcommons.com/s/twitter/r/2441/

13276 of 19959 relevant lines covered (66.52%)

0.67 hits per line

Source Files on job 5540.3 (CI_FLAGS="-fkmsrcn -u 1/2 'Unit tests for pants and pants-plugins - shard 2'")
  • Tree
  • List 0
  • Changed 82
  • Source Changed 1
  • Coverage Changed 82
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 5540
  • Travis Job 5540.3
  • 5d3610f3 on github
  • Prev Job for CI_FLAGS="-fkmsrcn -u 1/2 'Unit tests for pants and pants-plugins - shard 2'" on master (#5529.3)
  • Next Job for CI_FLAGS="-fkmsrcn -u 1/2 'Unit tests for pants and pants-plugins - shard 2'" on master (#5541.3)
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