gleis-int-test Fix capturing of git URL and key name of key removal

Push event #5002.1 failed

  • Ran for
AMD64
Ruby: 2.2.7
Git
Raw log
Scroll to End of Log
0.16s0.00s0.09s
worker_info
1Worker information
2hostname: feb63d0f-1557-426b-abcd-25828b23009e@1.worker-com-6dfdbf9699-rkpqw.gce-production-2
3version: v6.2.1 https://github.com/travis-ci/worker/tree/4e3246c044eb4915c2378ffacd0b3d3ed0136bba
4instance: travis-job-e98d2cdc-2785-4e97-aae9-a23b529d4062 travis-ci-sardonyx-xenial-1553530528-f909ac5 (via amqp)
5startup: 6.39399512s
60.18s0.00s0.00s0.01s
system_info
7Build system information
8Build language: ruby
9Build group: stable
10Build dist: xenial
11Build id: 125784987
12Job id: 230845458
13Runtime kernel version: 4.15.0-1028-gcp
14travis-build version: 9fd04113e
15Build image provisioning date and time
16Mon Mar 25 16:43:24 UTC 2019
17Operating System Details
18Distributor ID: Ubuntu
19Description: Ubuntu 16.04.6 LTS
20Release: 16.04
21Codename: xenial
22Systemd Version
23systemd 229
24Cookbooks Version
2542e42e4 https://github.com/travis-ci/travis-cookbooks/tree/42e42e4
26git version
27git version 2.21.0
28bash version
29GNU bash, version 4.3.48(1)-release (x86_64-pc-linux-gnu)
30gcc version
31gcc (Ubuntu 5.4.0-6ubuntu1~16.04.11) 5.4.0 20160609
32docker version
33Client:
34 Version: 18.06.0-ce
35 API version: 1.38
36 Go version: go1.10.3
37 Git commit: 0ffa825
38 Built: Wed Jul 18 19:11:02 2018
39 OS/Arch: linux/amd64
40 Experimental: false
42Server:
43 Engine:
44 Version: 18.06.0-ce
45 API version: 1.38 (minimum version 1.12)
46 Go version: go1.10.3
47 Git commit: 0ffa825
48 Built: Wed Jul 18 19:09:05 2018
49 OS/Arch: linux/amd64
50 Experimental: false
51clang version
52clang version 7.0.0 (tags/RELEASE_700/final)
53jq version
54jq-1.5
55bats version
56Bats 0.4.0
57shellcheck version
580.6.0
59shfmt version
60v2.6.3
61ccache version
623.2.4
63cmake version
64cmake version 3.12.4
65heroku version
66heroku/7.22.7 linux-x64 node-v11.10.1
67imagemagick version
68Version: ImageMagick 6.8.9-9 Q16 x86_64 2018-09-28 http://www.imagemagick.org
69md5deep version
704.4
71mercurial version
72version 4.8
73mysql version
74mysql Ver 14.14 Distrib 5.7.25, for Linux (x86_64) using EditLine wrapper
75openssl version
76OpenSSL 1.0.2g 1 Mar 2016
77packer version
781.3.3
79postgresql client version
80psql (PostgreSQL) 10.7 (Ubuntu 10.7-1.pgdg16.04+1)
81ragel version
82Ragel State Machine Compiler version 6.8 Feb 2013
83sudo version
841.8.16
85gzip version
86gzip 1.6
87zip version
88Zip 3.0
89vim version
90VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Nov 24 2016 16:44:48)
91iptables version
92iptables v1.6.0
93curl version
94curl 7.47.0 (x86_64-pc-linux-gnu) libcurl/7.47.0 GnuTLS/3.4.10 zlib/1.2.8 libidn/1.32 librtmp/2.3
95wget version
96GNU Wget 1.17.1 built on linux-gnu.
97rsync version
98rsync version 3.1.1 protocol version 31
99gimme version
100v1.5.3
101nvm version
1020.34.0
103perlbrew version
104/home/travis/perl5/perlbrew/bin/perlbrew - App::perlbrew/0.86
105phpenv version
106rbenv 1.1.2
107rvm version
108rvm 1.29.7 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]
109default ruby version
110ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-linux]
111CouchDB version
112couchdb 1.6.1
113ElasticSearch version
1145.5.0
115Installed Firefox version
116firefox 63.0.1
117MongoDB version
118MongoDB 4.0.7
119PhantomJS version
1202.1.1
121Pre-installed PostgreSQL versions
1229.4.21
1239.5.16
1249.6.12
125Redis version
126redis-server 5.0.4
127Pre-installed Go versions
1281.11.1
129mvn version
130Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-24T18:41:47Z)
131gradle version
132Gradle 4.10.2!
133lein version
134Leiningen 2.9.1 on Java 11.0.2 OpenJDK 64-Bit Server VM
135Pre-installed Node.js versions
136v10.15.3
137v11.0.0
138v4.9.1
139v6.17.0
140v8.12.0
141v8.15.1
142v8.9
143phpenv versions
144 system
145 5.6
146 5.6.40
147 7.1
148 7.1.27
149 7.2
150* 7.2.15 (set by /home/travis/.phpenv/version)
151 hhvm
152 hhvm-stable
153composer --version
154Composer version 1.8.4 2019-02-11 10:52:10
155Pre-installed Ruby versions
156ruby-2.3.8
157ruby-2.4.5
158ruby-2.5.3
1600.01s0.01s0.36s0.38s0.06s0.00s0.05s0.00s0.01s0.01s0.01s0.01s0.01s0.00s0.00s0.03s0.00s0.01s0.35s0.00s0.00s0.00s0.01s0.00s0.14s0.01s0.93s0.00s0.12s0.05s0.00s2.94s0.00s2.43s
docker_mtu
resolvconf
git.checkout
1610.86s$ git clone --depth=50 --branch=gleis-int-test https://github.com/travis-ci/dpl.git travis-ci/dpl
162Cloning into 'travis-ci/dpl'...
163$ cd travis-ci/dpl
164$ git checkout -qf bc291a18d3211f2e7edaf046890bb668de7f182c
1660.01s
167Setting environment variables from repository settings
168$ export SNAP_TOKEN=[secure]
169$ export encrypted_81cf70da4be5_key=[secure]
170$ export encrypted_81cf70da4be5_iv=[secure]
171$ export encrypted_b24ece17e78a_key=[secure]
172$ export encrypted_b24ece17e78a_iv=[secure]
173$ export COVERALLS_REPO_TOKEN=[secure]
rvm
17526.12s$ rvm use 2.2.7 --install --binary --fuzzy
176curl: (22) The requested URL returned error: 404 Not Found
177Required ruby-2.2.7 is not installed - installing.
178curl: (22) The requested URL returned error: 404 Not Found
179Searching for binary rubies, this might take some time.
180Found remote file https://rvm_io.global.ssl.fastly.net/binaries/ubuntu/16.04/x86_64/ruby-2.2.7.tar.bz2
181Checking requirements for ubuntu.
182Requirements installation successful.
183ruby-2.2.7 - #configure
184ruby-2.2.7 - #download
185 % Total % Received % Xferd Average Speed Time Time Time Current
186 Dload Upload Total Spent Left Speed
187100 22.8M 100 22.8M 0 0 39.5M 0 --:--:-- --:--:-- --:--:-- 39.5M
188ruby-2.2.7 - #validate archive
189ruby-2.2.7 - #extract
190ruby-2.2.7 - #validate binary
191ruby-2.2.7 - #setup
192ruby-2.2.7 - #gemset created /home/travis/.rvm/gems/ruby-2.2.7@global
194** Updating RubyGems to the latest compatible version for security reasons. **
195** If you need an older version, you can downgrade with 'gem update --system OLD_VERSION'. **
197ruby-2.2.7 - #importing gemset /home/travis/.rvm/gemsets/global.gems............................................
198ruby-2.2.7 - #generating global wrappers.......
199ruby-2.2.7 - #uninstalling gem rubygems-bundler-1.4.4.
200ruby-2.2.7 - #gemset created /home/travis/.rvm/gems/ruby-2.2.7
201ruby-2.2.7 - #importing gemset /home/travis/.rvm/gemsets/default.gems..............
202ruby-2.2.7 - #generating default wrappers.......
203Using /home/travis/.rvm/gems/ruby-2.2.7
205$ export BUNDLE_GEMFILE=$PWD/Gemfile
cache.1
206Setting up build cache
207$ export CASHER_DIR=${TRAVIS_HOME}/.casher
2080.28s$ Installing caching utilities
2090.00s2.84sattempting to download cache archive
210fetching gleis-int-test/cache-linux-xenial-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855--rvm-2.2.7--gemfile-Gemfile.tgz
211found cache
cache.bundler
2140.00s3.39sadding /home/travis/build/travis-ci/dpl/vendor/bundle to cache
215creating directory /home/travis/build/travis-ci/dpl/vendor/bundle
ruby.versions
216$ ruby --version
217ruby 2.2.7p470 (2017-03-28 revision 58194) [x86_64-linux]
218$ rvm --version
219rvm 1.29.7 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]
220$ bundle --version
221Bundler version 1.16.6
222$ gem --version
2232.7.8
install.bundler
2255.54s$ bundle install --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle}
226Fetching gem metadata from https://rubygems.org/...........
227Fetching gem metadata from https://rubygems.org/.
228Resolving dependencies.....
229Using rake 12.3.3
230Using public_suffix 3.0.3
231Using awesome_print 1.8.0
232Using aws-eventstream 1.0.3
233Using aws-partitions 1.207.0
234Using jmespath 1.4.0
235Using optionally 0.0.3
236Using wrapomatic 0.3.0
237Using builder 3.2.3
238Using bundler 1.16.6
239Using fuzzyurl 0.9.0
240Using tomlrb 1.2.8
241Using mixlib-shellout 2.4.4
242Using libyajl2 1.2.0
243Using hashie 3.6.0
244Using mixlib-log 1.7.1
245Using rack 2.0.7
246Using uuidtools 2.1.5
247Using diff-lcs 1.3
248Using erubis 2.7.0
249Using highline 1.7.10
250Using iniparse 1.4.4
251Using mixlib-authentication 1.4.2
252Using mixlib-cli 1.7.0
253Using net-ssh 4.2.0
254Using ffi 1.11.1
255Using ipaddress 0.8.3
256Using plist 3.5.0
257Using systemu 2.6.5
258Using wmi-lite 1.0.2
259Using proxifier 1.0.3
260Using rspec-support 3.8.2
261Using multi_json 1.13.1
262Using net-telnet 0.1.1
263Using sfl 2.3
264Using syslog-logger 1.6.8
265Using cistern 0.12.3
266Using regstry 1.0.14
267Using coderay 1.1.2
268Using colorize 0.8.1
269Using cookiejar 0.3.3
270Using json 1.8.6
271Using docile 1.3.2
272Using simplecov-html 0.10.2
273Using tins 1.21.1
274Using thor 0.20.3
275Using safe_yaml 1.0.5
276Using unf_ext 0.0.7.6
277Using eventmachine 1.2.7
278Using http_parser.rb 0.6.0
279Using escape 0.0.4
280Using excon 0.66.0
281Using ey-hmac 2.2.0
282Using multipart-post 2.0.0
283Using websocket-extensions 0.1.4
284Using mime-types-data 3.2019.0331
285Using oj 3.7.12
286Using oj_mimic_json 1.0.1
287Using method_source 0.9.2
288Using sshkey 1.9.0
289Using table_print 1.5.6
290Using facter 2.5.6
291Using fast_gettext 1.1.2
292Using formatador 0.2.5
293Using mini_portile2 2.4.0
294Using netrc 0.11.0
295Using hashdiff 1.0.0
296Using hiera 3.5.0
297Using json_pure 1.8.6
298Using locale 2.1.2
299Using mime 0.4.4
300Using pathspec 0.2.1
301Using rendezvous 0.1.3
302Using rubyzip 1.2.3
303Using addressable 2.7.0
304Using aws-sigv4 1.1.0
305Using belafonte 0.5.0
306Using mixlib-config 2.2.18
307Using ffi-yajl 2.3.1
308Using mixlib-archive 0.4.20
309Using net-sftp 2.1.2
310Using net-ssh-gateway 2.0.0
311Using rspec-core 3.8.2
312Using rspec-expectations 3.8.4
313Using rspec-mocks 3.8.1
314Using net-scp 2.0.0
315Fetching cl 1.1.3
316Using simplecov 0.16.1
317Using term-ansicolor 1.7.1
318Using crack 0.4.3
319Using unf 0.1.4
320Using faraday 0.9.2
321Using websocket-driver 0.7.1
322Using gems 1.1.1
323Using em-socksify 0.3.2
324Using mime-types 3.2.2
325Using aws-sdk-core 3.65.1
326Using chef-config 12.22.5
327Using chef-zero 5.3.2
328Using net-ssh-multi 1.2.1
329Using rspec_junit_formatter 0.2.3
330Using rspec 3.8.0
331Using rspec-its 1.3.0
332Using specinfra 2.81.0
333Using pry 0.12.2
334Using nokogiri 1.9.1
335Using packagecloud-ruby 1.0.8
336Using puppet 5.5.16
337Using aws-sdk-codedeploy 1.26.0
338Using aws-sdk-elasticbeanstalk 1.25.0
339Using aws-sdk-kms 1.24.0
340Using aws-sdk-lambda 1.30.0
341Using aws-sdk-opsworks 1.20.0
342Using ohai 8.26.1
343Using serverspec 2.41.5
344Using coveralls 0.8.23
345Using domain_name 0.5.20190701
346Using em-http-request 1.1.5
347Using faraday_middleware 0.13.1
348Using faye-websocket 0.10.9
349Using fog-core 2.1.0
350Using sawyer 0.8.2
351Fetching webmock 3.7.1
352Installing cl 1.1.3
353Installing webmock 3.7.1
354Using aws-sdk-s3 1.48.0
355Using chef 12.22.5
356Using faye 1.2.4
357Using fog-json 1.2.0
358Using fog-xml 0.1.3
359Using http-cookie 1.0.3
360Using octokit 4.14.0
361Using dpl 2.0.0.alpha.1 from source at `.`
362Using ey-core 3.5.0
363Using fog-rackspace 0.1.6
364Using rest-client 2.0.2
365Using gleis 0.6.2
366Using puppet-blacksmith 3.3.1
367Bundle complete! 31 Gemfile dependencies, 136 gems now installed.
368Bundled gems are installed into `./vendor/bundle`
37015.34s$ bundle exec rspec
371[Coveralls] Set up the SimpleCov formatter.
372[Coveralls] Using SimpleCov's default settings.
373Run options: exclude {:skip=>true}
374...............................................................................................................................................................................................................................................................................................................FFF..F.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
376Failures:
378 1) Dpl::Providers::Gleis by default should run "[info] $ git push -f true HEAD:refs/heads/master"
379 Failure/Error: it { should have_run '[info] $ git push -f true HEAD:refs/heads/master' }
381 Expected the command
383 [info] $ git push -f true HEAD:refs/heads/master
385 to have run, but it didn't. Instead, we have run the commands:
387 [warn]
388 Support for deployments to Gleis is in development. Please see here: https://github.com/travis-ci/dpl/#maturity-levels
390 [info] Installing deployment dependencies
391 [gem:require] ["gleis", "~> 0.6.0", {}] (, {})
392 [info] $ gleis auth login user p******************* --skip-keygen
393 gleis auth login user pass --skip-keygen
394 [info] Setting the build environment up for the deployment
395 [info] Generating SSH key
396 [info] Setting up git-ssh
397 [info] $ gleis auth key add ~/.dpl/id_rsa.pub dpl_deploy_key
398 gleis auth key add ~/.dpl/id_rsa.pub dpl_deploy_key
399 [info] $ gleis app git -a app -q
400 gleis app git -a app -q
401 [info] $ gleis app status -a app
402 gleis app status -a app
403 [info] $ git push -f captured_stdout HEAD:refs/heads/master
404 git push -f captured_stdout HEAD:refs/heads/master
405 [info] $ gleis auth key remove dpl_deploy_key
406 gleis auth key remove dpl_deploy_key
407 # ./spec/dpl/providers/gleis_spec.rb:15:in `block (3 levels) in <top (required)>'
409 2) Dpl::Providers::Gleis by default should run "git push -f true HEAD:refs/heads/master"
410 Failure/Error: it { should have_run 'git push -f true HEAD:refs/heads/master' }
412 Expected the command
414 git push -f true HEAD:refs/heads/master
416 to have run, but it didn't. Instead, we have run the commands:
418 [warn]
419 Support for deployments to Gleis is in development. Please see here: https://github.com/travis-ci/dpl/#maturity-levels
421 [info] Installing deployment dependencies
422 [gem:require] ["gleis", "~> 0.6.0", {}] (, {})
423 [info] $ gleis auth login user p******************* --skip-keygen
424 gleis auth login user pass --skip-keygen
425 [info] Setting the build environment up for the deployment
426 [info] Generating SSH key
427 [info] Setting up git-ssh
428 [info] $ gleis auth key add ~/.dpl/id_rsa.pub dpl_deploy_key
429 gleis auth key add ~/.dpl/id_rsa.pub dpl_deploy_key
430 [info] $ gleis app git -a app -q
431 gleis app git -a app -q
432 [info] $ gleis app status -a app
433 gleis app status -a app
434 [info] $ git push -f captured_stdout HEAD:refs/heads/master
435 git push -f captured_stdout HEAD:refs/heads/master
436 [info] $ gleis auth key remove dpl_deploy_key
437 gleis auth key remove dpl_deploy_key
438 # ./spec/dpl/providers/gleis_spec.rb:16:in `block (3 levels) in <top (required)>'
440 3) Dpl::Providers::Gleis by default should have run commands in order
441 Failure/Error: it { should have_run_in_order }
443 Expected the commands
445 [info] $ gleis auth login user p******************* --skip-keygen
446 gleis auth login user pass --skip-keygen
447 [info] $ gleis auth key add ~/.dpl/id_rsa.pub dpl_deploy_key
448 gleis auth key add ~/.dpl/id_rsa.pub dpl_deploy_key
449 [info] $ gleis app git -a app -q
450 gleis app git -a app -q
451 [info] $ gleis app status -a app
452 gleis app status -a app
453 [info] $ git push -f true HEAD:refs/heads/master
454 git push -f true HEAD:refs/heads/master
456 to have run in this order, but they have run as follows:
458 [info] $ gleis auth login user p******************* --skip-keygen
459 gleis auth login user pass --skip-keygen
460 [info] $ gleis auth key add ~/.dpl/id_rsa.pub dpl_deploy_key
461 gleis auth key add ~/.dpl/id_rsa.pub dpl_deploy_key
462 [info] $ gleis app git -a app -q
463 gleis app git -a app -q
464 [info] $ gleis app status -a app
465 gleis app status -a app
466 # ./spec/dpl/providers/gleis_spec.rb:17:in `block (3 levels) in <top (required)>'
468 4) Dpl::Providers::Gleis given --verbose should run "git push -v -f true HEAD:refs/heads/master"
469 Failure/Error: it { should have_run 'git push -v -f true HEAD:refs/heads/master' }
471 Expected the command
473 git push -v -f true HEAD:refs/heads/master
475 to have run, but it didn't. Instead, we have run the commands:
477 [warn]
478 Support for deployments to Gleis is in development. Please see here: https://github.com/travis-ci/dpl/#maturity-levels
480 [info] Installing deployment dependencies
481 [gem:require] ["gleis", "~> 0.6.0", {}] (, {})
482 [info] $ gleis auth login user p******************* --skip-keygen
483 gleis auth login user pass --skip-keygen
484 [info] Setting the build environment up for the deployment
485 [info] Generating SSH key
486 [info] Setting up git-ssh
487 [info] $ gleis auth key add ~/.dpl/id_rsa.pub dpl_deploy_key
488 gleis auth key add ~/.dpl/id_rsa.pub dpl_deploy_key
489 [info] $ gleis app git -a app -q
490 gleis app git -a app -q
491 [info] $ gleis app status -a app
492 gleis app status -a app
493 [info] $ git push -v -f captured_stdout HEAD:refs/heads/master
494 git push -v -f captured_stdout HEAD:refs/heads/master
495 [info] $ gleis auth key remove dpl_deploy_key
496 gleis auth key remove dpl_deploy_key
497 # ./spec/dpl/providers/gleis_spec.rb:26:in `block (3 levels) in <top (required)>'
499Finished in 12.67 seconds (files took 0.9559 seconds to load)
500938 examples, 4 failures
502Failed examples:
504rspec ./spec/dpl/providers/gleis_spec.rb:15 # Dpl::Providers::Gleis by default should run "[info] $ git push -f true HEAD:refs/heads/master"
505rspec ./spec/dpl/providers/gleis_spec.rb:16 # Dpl::Providers::Gleis by default should run "git push -f true HEAD:refs/heads/master"
506rspec ./spec/dpl/providers/gleis_spec.rb:17 # Dpl::Providers::Gleis by default should have run commands in order
507rspec ./spec/dpl/providers/gleis_spec.rb:26 # Dpl::Providers::Gleis given --verbose should run "git push -v -f true HEAD:refs/heads/master"
509[Coveralls] Submitting to https://coveralls.io/api/v1
510fatal: not a git repository (or any of the parent directories): .git
511fatal: not a git repository (or any of the parent directories): .git
512fatal: not a git repository (or any of the parent directories): .git
513fatal: not a git repository (or any of the parent directories): .git
514fatal: not a git repository (or any of the parent directories): .git
515fatal: not a git repository (or any of the parent directories): .git
516fatal: not a git repository (or any of the parent directories): .git
517fatal: not a git repository (or any of the parent directories): .git
518[Coveralls] Job ##3723.1
519[Coveralls] https://coveralls.io/jobs/52797506
520Coverage is at 95.78%.
521Coverage report sent to Coveralls.
522The command "bundle exec rspec" exited with 1.
cache.2
523store build cache
524$ bundle clean
525Removing cl (1.1.1)
526Removing webmock (3.7.0)
5270.00s7.32schanges detected (content changed, file is created, or file is deleted):\n/home/travis/build/travis-ci/dpl/vendor/bundle/ruby/2.2.0/cache/cl-1.1.1.gem
528/home/travis/build/travis-ci/dpl/vendor/bundle/ruby/2.2.0/cache/cl-1.1.3.gem
529/home/travis/build/travis-ci/dpl/vendor/bundle/ruby/2.2.0/cache/webmock-3.7.0.gem
530/home/travis/build/travis-ci/dpl/vendor/bundle/ruby/2.2.0/cache/webmock-3.7.1.gem
531/home/travis/build/travis-ci/dpl/vendor/bundle/ruby/2.2.0/gems/cl-1.1.1/CHANGELOG.md
532/home/travis/build/travis-ci/dpl/vendor/bundle/ruby/2.2.0/gems/cl-1.1.1/examples/args/cast
533/home/travis/build/travis-ci/dpl/vendor/bundle/ruby/2.2.0/gems/cl-1.1.1/examples/args/opts
534/home/travis/build/travis-ci/dpl/vendor/bundle/ruby/2.2.0/gems/cl-1.1.1/examples/args/required
535/home/travis/build/travis-ci/dpl/vendor/bundle/ruby/2.2.0/gems/cl-1.1.1/examples/args/splat
536/home/travis/build/travis-ci/dpl/vendor/bundle/ruby/2.2.0/gems/cl-1.1.1/examples/gem
537/home/travis/build/travis-ci/dpl/vendor/bundle/ruby/2.2.0/gems/cl-1.1.1/examples/heroku
538/home/travis/build/travis-ci/dpl/vendor/bundle/ruby/2.2\n...
539changes detected, packing new archive
540uploading gleis-int-test/cache-linux-xenial-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855--rvm-2.2.7--gemfile-Gemfile.tgz
541cache uploaded
544Done. Your build exited with 1.
Top