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

pantsbuild / pants / 6286
0%
main: 93%

Build:
Build:
LAST BUILD BRANCH: fix/rust-dockerfile-parser-fails-on-base-image-with-hash-build-arg
DEFAULT BRANCH: main
Ran 19 Aug 2015 05:53PM UTC
Jobs 10
Files 353
Run time 17min
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
6286

push

travis-ci

jsirois
Improved go remote library support.

GoFetch now supports remote libraries with nested packages as well as
implicit targets for transitive dependencies that fall within the same
remote import path root as an explicitly declared remote dependency.

The awkward fit of zip_url to the more generically named GoRemoteLibrary
is fixed by moving the task of fetching fully out to a Fetchers
subsystem that works by delegating based on matches against the remote
import path.  To support this, both GoRemoteLibrary and GoLocalSource
targets gain a consistent notion of `import_path` that matches the same
concept in go.

The existing zip download functionality for remote libraries on github
is extracted to a generic ArchiveFetcher implementation with a default
configuration that knows how to construct and github archive URLs and
unpack them.

Additionally, a 'go_remote_libraries' macro is introduced to allow for
depending on a suite of packages at a single revision without repeating
the version in the BUILD file.

Testing Done:
Tested this in Medium's mono-repo in a manual test case that's now
replicated by the `GoFetchIntegrationTest.test_issues_1998` test.

Also some ad-hoc testing of the fetcher options like so (flip default
github `.tar.gz` fetch to `.zip`):
```console
$ ./pants \
  --fetchers-mapping="{r'github.com/':'ArchiveFetcher'}" \
  --archive-fetcher-matchers="{r'github.com/(?P<user>[^/]+)/(?P<repo>[^/]+)':('https://github.com/\g<user>/\g<repo>/archive/{rev}.zip', 'master', 1)}" \
    compile contrib/go/examples/3rdparty/go/github.com/AdRoll/goamz:dynamodb
...
13:24:38 00:00   [resolve]
13:24:38 00:00     [ivy]
13:24:38 00:00       [cache].
13:24:38 00:00     [go]
                   Invalidated 1 target.INFO] Downloading https://github.com/AdRoll/goamz/archive/51b70b003.zip...

                   Invalidated 3 targets.INFO] Downloading https://github.com/bitly/go-simplejson/archive/v0.4.3.zip...

                   Invalidated 1 target.INFO] Downloading https://github.com/cbroglie/mapstructure/archive/25325b46b.zip...
...
$ $ tree .pants.d/compile/go/contrib.go.examples.3rdparty.go.github.com.AdRoll.goamz.dynamodb/pkg/linux_amd64/github.com/AdRoll/goamz/
.pants.d/compile/go/contrib.go.examples.3rdparty.go.github.com.AdRoll.goamz.dynamodb/pkg/linux_amd64/github.com/AdRoll/goamz/
├── aws.a -> /home/jsirois/dev/3rdparty/jsirois-pants4/.pants.d/compile/go/contrib.go.examples.3rdparty.go.github.com.AdRoll.goamz.aws/pkg/linux_amd64/github.com/AdRoll/goamz/aws.a
├── dynamodb
│   └── dynamizer.a -> /home/jsirois/dev/3rdparty/jsirois-pants4/.pants.d/compile/go/contrib.go.examples.3rdparty.go.github.com.AdRoll.goamz.dynamodb.dynamizer/pkg/linux_amd64/github.com/AdRoll/goamz/dynamodb/dynamizer.a
└── dynamodb.a

1 directory, 3 files
```

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

Bugs closed: 1998, 2013

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

15873 of 21444 relevant lines covered (74.02%)

1.39 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6286.1 (CI_FLAGS="-cjlpn 'Various pants self checks'") 19 Aug 2015 05:53PM UTC 0
Travis Job 6286.1
2 6286.2 (CI_FLAGS="-fkmsrcn -u 0/2 'Unit tests for pants and pants-plugins - shard 1'") 19 Aug 2015 05:57PM UTC 0
69.99
Travis Job 6286.2
3 6286.3 (CI_FLAGS="-fkmsrcn -u 1/2 'Unit tests for pants and pants-plugins - shard 2'") 19 Aug 2015 05:58PM UTC 0
69.42
Travis Job 6286.3
4 6286.4 (CI_FLAGS="-fkmsrcjlp 'Python contrib tests'") 19 Aug 2015 06:01PM UTC 0
Travis Job 6286.4
5 6286.5 (CI_FLAGS="-fkmsrjlpn -i 0/6 'Python integration tests for pants - shard 1'") 19 Aug 2015 06:05PM UTC 0
Travis Job 6286.5
6 6286.6 (CI_FLAGS="-fkmsrjlpn -i 1/6 'Python integration tests for pants - shard 2'") 19 Aug 2015 06:05PM UTC 0
Travis Job 6286.6
7 6286.7 (CI_FLAGS="-fkmsrjlpn -i 2/6 'Python integration tests for pants - shard 3'") 19 Aug 2015 06:06PM UTC 0
Travis Job 6286.7
8 6286.8 (CI_FLAGS="-fkmsrjlpn -i 3/6 'Python integration tests for pants - shard 4'") 19 Aug 2015 06:05PM UTC 0
Travis Job 6286.8
9 6286.9 (CI_FLAGS="-fkmsrjlpn -i 4/6 'Python integration tests for pants - shard 5'") 19 Aug 2015 06:08PM UTC 0
Travis Job 6286.9
10 6286.10 (CI_FLAGS="-fkmsrjlpn -i 5/6 'Python integration tests for pants - shard 6'") 19 Aug 2015 06:10PM UTC 0
Travis Job 6286.10
Source Files on build 6286
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #6286
  • 91f0e27b on github
  • Prev Build on master (#6284)
  • Next Build on master (#6289)
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