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

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

Build:
Build:
LAST BUILD BRANCH: upgrade_runson_to_ami-0a3c71582153db678
DEFAULT BRANCH: main
Ran 14 Aug 2015 11:01PM UTC
Files 351
Run time 9s
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

14 Aug 2015 10:11PM UTC coverage: 68.494% (-0.02%) from 68.51%
CI_FLAGS="-fkmsrcn -u 1/2 'Unit tests for pants and pants-plugins - shard 2'"

push

travis-ci

ericzundel
Ignore 'NonfatalArtifactCacheError' when calling the artifact cache in the background

This addresses some intermittent failures we were seeing from our builds with no apparent error output. We traced back the problem to a
problem with a call to the artifact cache running in the background.

Testing Done:
Locally I'm able to reproduce this  while running one of our custom tasks by turning on the artifact cache, but there is a configuration issue on my laptop that's keeping it from working.

Before:
```
$ ./pants clean-all test script:test --config-override=pants-ci.ini
…

12:47:25 00:03     [rspecs]
                   Bundler setup
                   Checking if bundle is installed

                   Running specs
                   Finished in 2.61 seconds (files took 0.23828 seconds to load)
                   33 examples, 0 failures
               Waiting for background workers to finish.
12:47:30 00:08   [complete]
               FAILURE
```

In the pants server output we could see the error:

```
13:19:5100:00 [background] 4.544s
13:19:5100:00 [cache] 0.406s
Failed to HEAD https://pypi.corp.squareup.com/laundrybasket-rw/abc_BootstrapJvmTools_bootstrap_bootstrap_jvm_tools/.nailgun-server/<a class=hub.com/pantsbuild/pants/commit/035c2b81c6aa2b6426fb6c0224db8f578643269a">035c2b81c-IvyResolveFingerprintStrategy_53c4bb9c6553.tgz. Error: 401 Unauthorized
```

After applying this fix:
```
13:43:48 00:04     [rspecs]
                   Bundler setup

                   Checking if bundle is installed
                   WARN] Error while inserting into artifact cache: Failed to HEAD https://pypi.corp.squareup.com/laundrybasket-rw/abc_BootstrapJvmTools_bootstrap_bootstrap_jvm_tools/.nailgun-server/035c2b81c6aa2b6426fb6c0224db8f578643269a-IvyResolveFingerprintStrategy_53c4bb9c6553.tgz. Error: 401 Unauthorized

                   Running specs
                   Finished in 2.9 seconds (files took 0.21919 seconds to load)
                   33 examples, 0 failures
               Waiting for background workers to finish.
13:43:53 00:09   [complete]
               SUCCESS
```

Bugs closed: 1979, 1980

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

14531 of 21215 relevant lines covered (68.49%)

0.68 hits per line

Source Files on job 6187.3 (CI_FLAGS="-fkmsrcn -u 1/2 'Unit tests for pants and pants-plugins - shard 2'")
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 6187
  • Travis Job 6187.3
  • 8d365460 on github
  • Prev Job for CI_FLAGS="-fkmsrcn -u 1/2 'Unit tests for pants and pants-plugins - shard 2'" on master (#6186.3)
  • Next Job for CI_FLAGS="-fkmsrcn -u 1/2 'Unit tests for pants and pants-plugins - shard 2'" on master (#6192.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