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

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

Build:
Build:
LAST BUILD BRANCH: multiplatform_pex_with_uv
DEFAULT BRANCH: main
Ran 12 Jul 2015 09:56PM UTC
Files 335
Run time 15s
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

12 Jul 2015 09:55PM UTC coverage: 66.587% (-0.04%) from 66.627%
CI_FLAGS="-fkmsrcn -u 1/2 'Unit tests for pants and pants-plugins - shard 2'"

push

travis-ci

John Sirois
Fix migrate_config to detect explicit [DEFAULT]s.

Previously it was using a public ConfigParser API and a private
ConfigParser data structure - both of which did not include the
'DEFAULT' section by design.

Testing Done:
I reproed the http://github.com/pantsbuild/pants/issues#issue/1758 case
with a local diff of:
```diff
diff --git a/pants.ini b/pants.ini
index 51aa086..5961063 100644
--- a/pants.ini
+++ b/pants.ini
@@ -9,6 +9,11 @@
 #   pants_workdir: the scratch space used to for live builds in this repo

 [DEFAULT]
+read_artifact_caches: ["/mnt/nfs/shared-cache/pants-artifact-cache", "https://foo.example.com/cache/"]
+read_from_artifact_cache: true
+write_artifact_caches: ["/mnt/nfs/shared-cache/pants-artifact-cache", "https://foo.example.com/cache/"]
+write_to_artifact_cache: true
+
```

This led to the following check results with the new code:
```console
Checking config file at ./pants.ini for unmigrated keys.
Found write_to_artifact_cache in section [DEFAULT]. Should be write in section [cache].
Found read_from_artifact_cache in section [DEFAULT]. Should be read in section [cache].
Found read_artifact_caches in section [DEFAULT]. Should be read_from in section [cache].
Found write_artifact_caches in section [DEFAULT]. Should be write_to in section [cache].
Found jvm_options in section [DEFAULT]. Should be options in section [jvm].
```

The 1st 4 messages are what were expected, the last seems unexpected except
that the migration has been partially done, with the legacy option left in
place pending full code migration to jvm subsystem as commented in
pants.ini.

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

Bugs closed: 1758, 1798

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

13330 of 20019 relevant lines covered (66.59%)

0.67 hits per line

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