Pull request event #7806 failed

  • Ran for
  • New branch build
AMD64
Ruby
Git
TRAVIS_JOB_BOARD_REGISTER_YML="${TRAVIS_BUILD_DIR}/.example-job-board-register-sardonyx.yml"
Raw log
Scroll to End of Log
0.00s0.19s0.12s0.06s0.00s
worker_info
1Worker information
2hostname: ef2cf35c-e54c-4260-bba4-84b1437c0c4c@1.worker-n2-com-f8c4bb956-zjhwc.gce-production-1
3version: deploy_2024.10.02-2-gc32b553 https://github.com/travis-ci/worker/tree/c32b553e81363378d09787f52103ea9bcadf253c
4instance: travis-job-3a4d6995-bac1-4da4-b4cc-33473b8501ce travis-ci-ubuntu-2004-1737724207-d0e199ee-dirty (via amqp)
5startup: 5.873927328s
60.31s0.01s0.00s0.01s
system_info
7Build system information
8Build language: ruby
9Build group: stable
10Build dist: focal
11Build id: 274055960
12Job id: 630201586
13Runtime kernel version: 5.15.0-1074-gcp
14VM: default
15travis-build version: 6b157a1c
16Build image provisioning date and time
17Fri 24 Jan 2025 01:35:36 PM UTC
18Operating System Details
19Distributor ID: Ubuntu
20Description: Ubuntu 20.04.6 LTS
21Release: 20.04
22Codename: focal
23Systemd Version
24systemd 245 (245.4-4ubuntu3.24)
25Cookbooks Version
26fd4012d https://github.com/travis-ci/travis-cookbooks/tree/fd4012d
27git version
28git version 2.48.1
29bash version
30GNU bash, version 5.0.17(1)-release (x86_64-pc-linux-gnu)
31gcc version
32gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
33docker version
34Client:
35 Version: 24.0.7
36 API version: 1.43
37 Go version: go1.21.1
38 Git commit: 24.0.7-0ubuntu2~20.04.1
39 Built: Wed Mar 13 20:29:24 2024
40 OS/Arch: linux/amd64
41 Context: default
43Server:
44 Engine:
45 Version: 24.0.7
46 API version: 1.43 (minimum version 1.12)
47 Go version: go1.21.1
48 Git commit: 24.0.7-0ubuntu2~20.04.1
49 Built: Wed Mar 13 20:29:24 2024
50 OS/Arch: linux/amd64
51 Experimental: false
52 containerd:
53 Version: 1.7.12
54 GitCommit:
55 runc:
56 Version: 1.1.12-0ubuntu2~20.04.1
57 GitCommit:
58 docker-init:
59 Version: 0.19.0
60 GitCommit:
61clang version
62clang version 18.1.8
63jq version
64jq-1.7.1
65bats version
66Bats 1.11.1
67shellcheck version
680.10.0
69shfmt version
70v3.8.0
71ccache version
723.7.7
73cmake version
74cmake version 3.29.0
75heroku version
76heroku/10.0.2 linux-x64 node-v20.17.0
77imagemagick version
78Version: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
79md5deep version
804.4
81mercurial version
82version 6.5.2
83mysql version
84mysql Ver 8.0.40-0ubuntu0.20.04.1 for Linux on x86_64 ((Ubuntu))
85openssl version
86OpenSSL 1.1.1f 31 Mar 2020
87packer version
88Packer v1.11.2
89postgresql client version
90psql (PostgreSQL) 13.18 (Ubuntu 13.18-1.pgdg20.04+1)
91ragel version
92Ragel State Machine Compiler version 6.10 March 2017
93sudo version
941.8.31
95gzip version
96gzip 1.10
97zip version
98Zip 3.0
99vim version
100VIM - Vi IMproved 8.1 (2018 May 18, compiled Jan 20 2025 13:56:30)
101iptables version
102iptables v1.8.4 (legacy)
103curl version
104curl 7.68.0 (x86_64-pc-linux-gnu) libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3
105wget version
106GNU Wget 1.20.3 built on linux-gnu.
107rsync version
108rsync version 3.1.3 protocol version 31
109go version
110go version go1.23.5 linux/amd64
111nvm version
1120.40.1
113perlbrew version
114/home/travis/perl5/perlbrew/bin/perlbrew - App::perlbrew/0.95
115phpenv version
116rbenv 1.3.2
117rvm version
118rvm 1.29.12 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]
119default ruby version
120ruby 3.3.5 (2024-09-03 revision ef084cc8f4) [x86_64-linux]
121default python version
122Python 3.7.17
123ElasticSearch version
1247.16.3
125Installed Firefox version
126firefox 99.0
127MongoDB version
128MongoDB 4.4.29
129PhantomJS version
1302.1.1
131Redis version
132redis-server 7.4.2
133Pre-installed Go versions
134go version go1.23.5 linux/amd64
135mvn version
136Apache Maven 3.9.4 (dfbb324ad4a7c8fb0bf182e6d91b0ae20e3d2dd9)
137gradle version
138Gradle 8.3!
139lein version
140Leiningen 2.11.2 on Java 11.0.21 OpenJDK 64-Bit Server VM
141Pre-installed Node.js versions
142v10.24.1
143v12.22.12
144v14.21.3
145v16.15
146v16.20.2
147v18.20.3
148v18.20.6
149v20.18.2
150v22.13.1
151v4.9.1
152v6.17.1
153v8.17.0
154phpenv versions
155 system
156 7.4
157* 7.4.6 (set by /home/travis/.phpenv/version)
158 hhvm-stable
159 hhvm
160composer --version
161Composer version 1.10.6 2020-05-06 10:28:10
162Pre-installed Ruby versions
163ruby-2.7.6
164ruby-3.3.5
1660.02s0.01s0.78s0.34s0.06s0.01s0.04s0.00s0.03s0.01s0.03s0.01s0.01s0.00s0.39sOK
1670.00s0.06s0.00s0.01s0.15s0.00s0.00s0.00s0.01s0.00s0.13s0.00s1.02s0.00s0.00s6.04s0.00s3.98s0.00s2.16s
docker_mtu_and_registry_mirrors
Docker
resolvconf
services
1685.91s$ travis_setup_postgresql
169Starting PostgreSQL v13
170sudo systemctl start postgresql@13-main
git.checkout
1710.01s0.97s$ git clone --depth=50 https://github.com/travis-ci/packer-templates.git travis-ci/packer-templates
172Cloning into 'travis-ci/packer-templates'...
173remote: Enumerating objects: 1780, done.
174remote: Counting objects: 100% (1780/1780), done.
175remote: Compressing objects: 100% (880/880), done.
176remote: Total 1780 (delta 1109), reused 1219 (delta 737), pack-reused 0 (from 0)
177Receiving objects: 100% (1780/1780), 353.14 KiB | 5.79 MiB/s, done.
178Resolving deltas: 100% (1109/1109), done.
179$ cd travis-ci/packer-templates
1800.37s$ git fetch origin +refs/pull/875/merge: --depth=50
181remote: Enumerating objects: 308, done.
182remote: Counting objects: 100% (308/308), done.
183remote: Compressing objects: 100% (96/96), done.
184remote: Total 241 (delta 170), reused 181 (delta 117), pack-reused 0 (from 0)
185Receiving objects: 100% (241/241), 40.35 KiB | 5.04 MiB/s, done.
186Resolving deltas: 100% (170/170), completed with 43 local objects.
187From https://github.com/travis-ci/packer-templates
188 * branch refs/pull/875/merge -> FETCH_HEAD
189$ git checkout -qf FETCH_HEAD
1910.01s
192Setting environment variables from repository settings
193$ export DOCKER_LOGIN_EMAIL=[secure]
194$ export DOCKER_LOGIN_PASSWORD=[secure]
195$ export DOCKER_LOGIN_SERVER=[secure]
196$ export DOCKER_LOGIN_USERNAME=[secure]
197$ export GCE_PROJECT_ID=[secure]
198$ export JOB_BOARD_IMAGES_URL=[secure]
199$ export GCE_ACCOUNT_FILE=[secure]
200$ export GCE_ACCOUNT_FILE_B64_BZ2=[secure]
201$ export GCR_LOGIN_SERVER=[secure]
202$ export GCR_AUTH_TOKEN=[secure]
203$ export QUAY_DOCKER_LOGIN_EMAIL=[secure]
204$ export QUAY_DOCKER_LOGIN_PASSWORD=[secure]
205$ export QUAY_DOCKER_LOGIN_SERVER=[secure]
206$ export QUAY_DOCKER_LOGIN_USERNAME=[secure]
207$ export TRAVIS_WORKER_VERSION=[secure]
208$ export GCE_ACCOUNT_ID=[secure]
209$ export GCE_SERVICE_ACCOUNT_ID=[secure]
210$ export GCE_SERVICE_ACCOUNT_FILE_BZ2_B64=[secure]
211$ export GITHUB_API_TOKEN=[secure]
213Setting environment variables from .travis.yml
214$ export DPKG_MANIFEST_JSON="${TRAVIS_BUILD_DIR}/.example-dpkg-manifest.json"
215$ export LANG=en_US.UTF-8
216$ export NODE_ATTRIBUTES_YML="${TRAVIS_BUILD_DIR}/.example-node-attributes.yml"
217$ export PACKER_CHEF_PREFIX="${TRAVIS_BUILD_DIR}/tmp"
218$ export PATH="/opt/chef-workstation/bin:/opt/chef-workstation/embedded/bin:/opt/chef/bin:${HOME}/bin:${PATH}"
219$ export REQUEST_INTERVAL=5
220$ export SKIP_CHEF_REMOVAL='1'
221$ export SPEC_ARGS='--tag ~dev'
222$ export SPEC_RUNNER='bash -lc'
223$ export SPEC_SUITES='travis_packer_templates'
224$ export SYSTEM_INFO_JSON="${TRAVIS_BUILD_DIR}/.example_system_info.json"
225$ export TRAVIS_SOURCE_AMI="ami-01eefcaf0edcc4cf0"
226$ export TRAVIS_JOB_BOARD_REGISTER_YML="${TRAVIS_BUILD_DIR}/.example-job-board-register-sardonyx.yml"
rvm
2280.72s$ rvm use default
229Using /home/travis/.rvm/gems/ruby-3.3.5
231$ export BUNDLE_GEMFILE=$PWD/Gemfile
cache.1
232Setting up build cache
233$ export CASHER_DIR=${TRAVIS_HOME}/.casher
2340.17s$ Installing caching utilities
2350.00s1.51sattempting to download cache archive
236fetching PR.875/cache--linux-focal-cc013414c57ac8c1748cd2de9aad19a7ca10be0189feb0a5adcc2c060b0d138d--rvm-default--gemfile-Gemfile.tgz
237found cache
2380.00s2.91sadding /home/travis/bin to cache
cache.bundler
2410.00s2.83sadding /home/travis/build/travis-ci/packer-templates/vendor/bundle to cache
242creating directory /home/travis/build/travis-ci/packer-templates/vendor/bundle
ruby.versions
243$ ruby --version
244ruby 3.3.5 (2024-09-03 revision ef084cc8f4) [x86_64-linux]
245$ rvm --version
246rvm 1.29.12 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]
247$ bundle --version
248Bundler version 2.5.16
249$ gem --version
2503.5.16
install.1
2520.00s$ if [[ -f .test-branch ]]; then export TRAVIS_COOKBOOKS_TEST_BRANCH="$(cat .test-branch 2>/dev/null)"; fi
install.2
2530.01s$ export GIT_DESC="$(git describe --always --dirty --tags)"
install.3
2540.71s$ rvm use 3.3.5 --install --binary --fuzzy
255Using /home/travis/.rvm/gems/ruby-3.3.5
install.4
2560.71s$ gem install bundler:2.5.21
257Fetching bundler-2.5.21.gem
258GemWrappers: Can not wrap not executable file: /home/travis/.rvm/gems/ruby-3.3.5/bin/bundler.lock
259GemWrappers: Can not wrap not executable file: /home/travis/.rvm/gems/ruby-3.3.5/bin/bundle.lock
260Successfully installed bundler-2.5.21
2611 gem installed
install.5
2621.65s$ bundle install --jobs=3 --retry=2 --path=vendor/bundle
263[DEPRECATED] The `--path` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set path 'vendor/bundle'`, and stop using this flag
264Bundler 2.5.21 is running, but your lockfile was generated with 2.6.2. Installing Bundler 2.6.2 and restarting using that version.
265Fetching gem metadata from https://rubygems.org/.
266Fetching bundler 2.6.2
267Installing bundler 2.6.2
268[DEPRECATED] The `--path` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set path 'vendor/bundle'`, and stop using this flag
269Bundle complete! 7 Gemfile dependencies, 56 gems now installed.
270Bundled gems are installed into `./vendor/bundle`
install.6
2710.45s$ ./bin/packer-build-install
install.7
2720.00s$ ln -sv "${TRAVIS_BUILD_DIR}" "${TRAVIS_BUILD_DIR}/tmp/packer-chef-local"
273'/home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local' -> '/home/travis/build/travis-ci/packer-templates'
2740.05s$ make
275./bin/dump-git-meta ./tmp/git-meta
276HEAD
277ff12e12
278./bin/write-envdir /home/travis/build/travis-ci/packer-templates/tmp/docker-meta 'DOCKER_LOGIN_(USERNAME|PASSWORD|SERVER)'
279./bin/write-envdir /home/travis/build/travis-ci/packer-templates/tmp/job-board-env 'JOB_BOARD'
280The command "make" exited with 0.
28153.39s$ bundle exec make test
282./runtests --env .example.env
283Running isolated with env .example.env
284.example-job-board-register-sardonyx.yml ✓
285.example-node-attributes.yml ✓
286.packer-build-pull-request-false-tmpl.yml ✓
287.packer-build-pull-request-tmpl.yml ✓
288.rubocop.yml ✓
289.rubocop_todo.yml ✓
290.travis.yml ✓
291ci-freebsd-12.yml (packer validate ...) The configuration is valid.
292`--> ✓
293ci-opal.yml (packer validate ...) The configuration is valid.
294`--> ✓
295ci-sardonyx.yml (packer validate ...) The configuration is valid.
296`--> ✓
297ci-stevonnie.yml (packer validate ...) The configuration is valid.
298`--> ✓
299ci-ubuntu-1804-minimal.yml (packer validate ...) The configuration is valid.
300`--> ✓
301ci-ubuntu-1804.yml (packer validate ...) The configuration is valid.
302`--> ✓
303ci-ubuntu-2004-minimal.yml (packer validate ...) The configuration is valid.
304`--> ✓
305ci-ubuntu-2004.yml (packer validate ...) The configuration is valid.
306`--> ✓
307ci-ubuntu-2204-minimal.yml (packer validate ...) The configuration is valid.
308`--> ✓
309ci-ubuntu-2204.yml (packer validate ...) The configuration is valid.
310`--> ✓
311ci-windows-1803.yml (packer validate ...) The configuration is valid.
312`--> ✓
313jupiter-brain.yml ✓
314packer-assets/opal-system-info-commands.yml ✓
315packer-assets/sardonyx-system-info-commands.yml ✓
316packer-assets/stevonnie-system-info-commands.yml ✓
317packer-assets/system-info.d/android.yml ✓
318packer-assets/system-info.d/basic.yml ✓
319packer-assets/system-info.d/cassandra.yml ✓
320packer-assets/system-info.d/couchdb.yml ✓
321packer-assets/system-info.d/elasticsearch.yml ✓
322packer-assets/system-info.d/erlang.yml ✓
323packer-assets/system-info.d/firefox.yml ✓
324packer-assets/system-info.d/go.yml ✓
325packer-assets/system-info.d/haskell.yml ✓
326packer-assets/system-info.d/java.yml ✓
327packer-assets/system-info.d/mongodb.yml ✓
328packer-assets/system-info.d/mysql.yml ✓
329packer-assets/system-info.d/neo4j.yml ✓
330packer-assets/system-info.d/node_js.yml ✓
331packer-assets/system-info.d/perl.yml ✓
332packer-assets/system-info.d/phantomjs.yml ✓
333packer-assets/system-info.d/php.yml ✓
334packer-assets/system-info.d/postgresql.yml ✓
335packer-assets/system-info.d/redis.yml ✓
336packer-assets/system-info.d/ruby.yml ✓
337packer-assets/system-info.d/sphinxsearch.yml ✓
338packer-assets/ubuntu-1804-minimal-system-info-commands.yml ✓
339packer-assets/ubuntu-1804-system-info-commands.yml ✓
340packer-assets/ubuntu-2004-minimal-system-info-commands.yml ✓
341packer-assets/ubuntu-2004-system-info-commands.yml ✓
342packer-assets/ubuntu-2204-minimal-system-info-commands.yml ✓
343packer-assets/ubuntu-2204-system-info-commands.yml ✓
344tfw.yml ✓
345vault-consul-server.yml (packer validate ...) The configuration is valid.
346`--> ✓
347Running shellcheck
348Running shfmt
349Inspecting 131 files
350.CC...........C....C..W..........................W.C.C.......C.CCC..C.CC..C..C..C..C..CCC..CC....C.CC.C..C...............C.........
352Offenses:
354Gemfile:10:1: C: [Correctable] Bundler/OrderedGems: Gems should be sorted in an alphabetical order within their section of the Gemfile. Gem rubocop should appear before uri.
355gem 'rubocop'
356^^^^^^^^^^^^^
357bin/assert-job-board-tags:65:3: C: [Correctable] Style/BitwisePredicate: Replace with loaded_base.allbits?(loaded_other) for comparison with bit flags.
358 (loaded_base & loaded_other) == loaded_other
359 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
360cookbooks/lib/features/basic_spec.rb:513:19: C: [Correctable] Style/RedundantConstantBase: Remove redundant ::.
361 describe file(::File.expand_path("~/.ssh/#{basename}")) do
362 ^^
363cookbooks/lib/features/basic_spec.rb:689:55: C: [Correctable] Style/RedundantStringEscape: Redundant escape of " inside string literal.
364 sh(%(emacs -batch #{test_txt} --eval '(insert \"poof\")' -f save-buffer))
365 ^^
366cookbooks/lib/features/basic_spec.rb:689:61: C: [Correctable] Style/RedundantStringEscape: Redundant escape of " inside string literal.
367 sh(%(emacs -batch #{test_txt} --eval '(insert \"poof\")' -f save-buffer))
368 ^^
369cookbooks/lib/features/elasticsearch_spec.rb:17:9: C: [Correctable] Style/RedundantStringEscape: Redundant escape of " inside string literal.
370 \"name\": \"Shy Bowser\"
371 ^^
372cookbooks/lib/features/elasticsearch_spec.rb:17:15: C: [Correctable] Style/RedundantStringEscape: Redundant escape of " inside string literal.
373 \"name\": \"Shy Bowser\"
374 ^^
375cookbooks/lib/features/elasticsearch_spec.rb:17:19: C: [Correctable] Style/RedundantStringEscape: Redundant escape of " inside string literal.
376 \"name\": \"Shy Bowser\"
377 ^^
378cookbooks/lib/features/elasticsearch_spec.rb:17:31: C: [Correctable] Style/RedundantStringEscape: Redundant escape of " inside string literal.
379 \"name\": \"Shy Bowser\"
380 ^^
381cookbooks/lib/features/elasticsearch_spec.rb:21:9: C: [Correctable] Style/RedundantStringEscape: Redundant escape of " inside string literal.
382 \"user\": \"koopa93\",
383 ^^
384cookbooks/lib/features/elasticsearch_spec.rb:21:15: C: [Correctable] Style/RedundantStringEscape: Redundant escape of " inside string literal.
385 \"user\": \"koopa93\",
386 ^^
387cookbooks/lib/features/elasticsearch_spec.rb:21:19: C: [Correctable] Style/RedundantStringEscape: Redundant escape of " inside string literal.
388 \"user\": \"koopa93\",
389 ^^
390cookbooks/lib/features/elasticsearch_spec.rb:21:28: C: [Correctable] Style/RedundantStringEscape: Redundant escape of " inside string literal.
391 \"user\": \"koopa93\",
392 ^^
393cookbooks/lib/features/elasticsearch_spec.rb:22:9: C: [Correctable] Style/RedundantStringEscape: Redundant escape of " inside string literal.
394 \"postDate\": \"2009-11-15T13:12:00\",
395 ^^
396cookbooks/lib/features/elasticsearch_spec.rb:22:19: C: [Correctable] Style/RedundantStringEscape: Redundant escape of " inside string literal.
397 \"postDate\": \"2009-11-15T13:12:00\",
398 ^^
399cookbooks/lib/features/elasticsearch_spec.rb:22:23: C: [Correctable] Style/RedundantStringEscape: Redundant escape of " inside string literal.
400 \"postDate\": \"2009-11-15T13:12:00\",
401 ^^
402cookbooks/lib/features/elasticsearch_spec.rb:22:44: C: [Correctable] Style/RedundantStringEscape: Redundant escape of " inside string literal.
403 \"postDate\": \"2009-11-15T13:12:00\",
404 ^^
405cookbooks/lib/features/elasticsearch_spec.rb:23:9: C: [Correctable] Style/RedundantStringEscape: Redundant escape of " inside string literal.
406 \"message\": \"Frying up Elastosearch\"
407 ^^
408cookbooks/lib/features/elasticsearch_spec.rb:23:18: C: [Correctable] Style/RedundantStringEscape: Redundant escape of " inside string literal.
409 \"message\": \"Frying up Elastosearch\"
410 ^^
411cookbooks/lib/features/elasticsearch_spec.rb:23:22: C: [Correctable] Style/RedundantStringEscape: Redundant escape of " inside string literal.
412 \"message\": \"Frying up Elastosearch\"
413 ^^
414cookbooks/lib/features/elasticsearch_spec.rb:23:46: C: [Correctable] Style/RedundantStringEscape: Redundant escape of " inside string literal.
415 \"message\": \"Frying up Elastosearch\"
416 ^^
417cookbooks/lib/features/google_chrome_spec.rb:5:1: C: [Correctable] Layout/IndentationWidth: Use 2 (not 4) spaces for indentation.
418 'google-chrome package has deprecated for Xenial'
419^^^^
420cookbooks/lib/features/google_chrome_spec.rb:6:3: C: [Correctable] Layout/ElseAlignment: Align else with if.
421 else
422 ^^^^
423cookbooks/lib/features/google_chrome_spec.rb:11:1: C: [Correctable] Layout/TrailingWhitespace: Trailing whitespace detected.
424cookbooks/lib/features/google_chrome_spec.rb:16:3: W: [Correctable] Layout/EndAlignment: end at 16, 2 is not aligned with if at 4, 0.
425 end
426 ^^^
427cookbooks/lib/features/google_chrome_spec.rb:17:1: C: [Correctable] Layout/TrailingEmptyLines: 1 trailing blank lines detected.
428cookbooks/lib/features/google_chrome_spec.rb:17:1: C: [Correctable] Layout/TrailingWhitespace: Trailing whitespace detected.
429cookbooks/lib/languages/python_spec.rb:33:3: W: Lint/DuplicateBranch: Duplicate branch body detected.
430 elsif 'focal'.include?(Support.distro) ...
431 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
432cookbooks/lib/support.rb:27:15: C: [Correctable] Style/RedundantRegexpArgument: Use string "\n" as argument instead of regexp /\n/.
433 ).split(/\n/).map(&:strip).reject { |l| l =~ /^#/ }
434 ^^^^
435cookbooks/lib/support/helpers.rb:28:32: C: [Correctable] Style/RedundantRegexpArgument: Use string "\n" as argument instead of regexp /\n/.
436 procs = `ps aux`.split(/\n/).map(&:strip)
437 ^^^^
438cookbooks/lib/support/helpers.rb:36:27: C: [Correctable] Style/FileNull: Use File::NULL instead of /dev/null.
439 def sh(command, out = '/dev/null', err = '/dev/null')
440 ^^^^^^^^^^^
441cookbooks/lib/support/helpers.rb:36:46: C: [Correctable] Style/FileNull: Use File::NULL instead of /dev/null.
442 def sh(command, out = '/dev/null', err = '/dev/null')
443 ^^^^^^^^^^^
444cookbooks/travis_ci_freebsd_12/recipes/create_bash_profile.rb:3:6: C: [Correctable] Style/RedundantConstantBase: Remove redundant ::.
445file ::File.join(
446 ^^
447cookbooks/travis_ci_freebsd_12/recipes/jdk_switcher.rb:10:20: C: [Correctable] Style/RedundantConstantBase: Remove redundant ::.
448jdk_switcher_dir = ::File.dirname(node['travis_java']['jdk_switcher_path'])
449 ^^
450cookbooks/travis_ci_freebsd_12/recipes/jdk_switcher.rb:11:28: C: [Correctable] Style/RedundantConstantBase: Remove redundant ::.
451jdk_switcher_source_path = ::File.join(
452 ^^
453cookbooks/travis_ci_freebsd_12/recipes/pyenv.rb:3:24: C: [Correctable] Style/RedundantConstantBase: Remove redundant ::.
454pyenv_installer_path = ::File.join(
455 ^^
456cookbooks/travis_ci_freebsd_12/recipes/pyenv.rb:30:16: C: [Correctable] Style/RedundantConstantBase: Remove redundant ::.
457bash_profile = ::File.join(
458 ^^
459cookbooks/travis_ci_opal/attributes/default.rb:11:51: C: [Correctable] Style/RedundantLineContinuation: Redundant line continuation.
460override['travis_system_info']['commands_file'] = \ ...
461 ^
462cookbooks/travis_ci_opal/attributes/default.rb:96:71: C: [Correctable] Style/RedundantLineContinuation: Redundant line continuation.
463 override['travis_build_environment']['python_aliases'][full_name] = \ ...
464 ^
465cookbooks/travis_ci_sardonyx/attributes/default.rb:15:51: C: [Correctable] Style/RedundantLineContinuation: Redundant line continuation.
466override['travis_system_info']['commands_file'] = \ ...
467 ^
468cookbooks/travis_ci_sardonyx/attributes/default.rb:42:1: C: [Correctable] Layout/LeadingCommentSpace: Missing space after #.
469#override['travis_build_environment']['virtualenv']['version'] = '20.15.1'
470^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
471cookbooks/travis_ci_sardonyx/attributes/default.rb:80:65: C: [Correctable] Style/RedundantConstantBase: Remove redundant ::.
472override['travis_build_environment']['clang']['download_url'] = ::File.join(
473 ^^
474cookbooks/travis_ci_sardonyx/attributes/default.rb:104:71: C: [Correctable] Style/RedundantLineContinuation: Redundant line continuation.
475 override['travis_build_environment']['python_aliases'][full_name] = \ ...
476 ^
477cookbooks/travis_ci_sardonyx/recipes/default.rb:50:1: C: [Correctable] Layout/LeadingCommentSpace: Missing space after #.
478#xecute 'wget -q http://archive.ubuntu.com/ubuntu/pool/main/libu/libu2f-host/libu2f-udev_1.1.10-1_all.deb && sudo apt install ./libu2f-udev_1.1.10-1_all.deb'
479^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
480cookbooks/travis_ci_sardonyx/recipes/default.rb:51:1: C: [Correctable] Layout/LeadingCommentSpace: Missing space after #.
481#execute 'wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && sudo dpkg --force-depends -i ./google-chrome-stable_current_amd64.deb'
482^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
483cookbooks/travis_ci_stevonnie/attributes/default.rb:57:71: C: [Correctable] Style/RedundantLineContinuation: Redundant line continuation.
484 override['travis_build_environment']['python_aliases'][full_name] = \ ...
485 ^
486cookbooks/travis_ci_stevonnie/attributes/default.rb:61:51: C: [Correctable] Style/RedundantLineContinuation: Redundant line continuation.
487override['travis_system_info']['commands_file'] = \ ...
488 ^
489cookbooks/travis_ci_ubuntu_1804/attributes/default.rb:4:51: C: [Correctable] Style/RedundantLineContinuation: Redundant line continuation.
490override['travis_system_info']['commands_file'] = \ ...
491 ^
492cookbooks/travis_ci_ubuntu_1804/attributes/default.rb:119:71: C: [Correctable] Style/RedundantLineContinuation: Redundant line continuation.
493override['travis_build_environment']['packer']['amd64']['checksum'] = \ ...
494 ^
495cookbooks/travis_ci_ubuntu_1804/attributes/default.rb:120:1: C: [Correctable] Layout/AssignmentIndentation: Indent the first line of the right-hand-side of a multi-line assignment.
496******************************************************************
497^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
498cookbooks/travis_ci_ubuntu_1804/attributes/default.rb:125:65: C: [Correctable] Style/RedundantConstantBase: Remove redundant ::.
499override['travis_build_environment']['clang']['download_url'] = ::File.join(
500 ^^
501cookbooks/travis_ci_ubuntu_1804_minimal/attributes/default.rb:30:51: C: [Correctable] Style/RedundantLineContinuation: Redundant line continuation.
502override['travis_system_info']['commands_file'] = \ ...
503 ^
504cookbooks/travis_ci_ubuntu_2004/attributes/default.rb:4:51: C: [Correctable] Style/RedundantLineContinuation: Redundant line continuation.
505override['travis_system_info']['commands_file'] = \ ...
506 ^
507cookbooks/travis_ci_ubuntu_2004/attributes/default.rb:61:1: C: [Correctable] Layout/TrailingWhitespace: Trailing whitespace detected.
508cookbooks/travis_ci_ubuntu_2004/attributes/default.rb:69:65: C: [Correctable] Style/RedundantConstantBase: Remove redundant ::.
509override['travis_build_environment']['cmake']['download_url'] = ::File.join(
510 ^^
511cookbooks/travis_ci_ubuntu_2004/attributes/default.rb:111:71: C: [Correctable] Style/RedundantLineContinuation: Redundant line continuation.
512override['travis_build_environment']['packer']['amd64']['checksum'] = \ ...
513 ^
514cookbooks/travis_ci_ubuntu_2004/attributes/default.rb:112:1: C: [Correctable] Layout/AssignmentIndentation: Indent the first line of the right-hand-side of a multi-line assignment.
515******************************************************************
516^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
517cookbooks/travis_ci_ubuntu_2004/attributes/default.rb:115:65: C: [Correctable] Style/RedundantConstantBase: Remove redundant ::.
518override['travis_build_environment']['clang']['download_url'] = ::File.join(
519 ^^
520cookbooks/travis_ci_ubuntu_2004/recipes/erlang.rb:5:12: C: [Correctable] Style/RedundantConstantBase: Remove redundant ::.
521 not_if { ::File.exist?('/etc/apt/trusted.gpg.d/erlang_solutions.gpg') }
522 ^^
523cookbooks/travis_ci_ubuntu_2004/recipes/erlang.rb:10:12: C: [Correctable] Style/RedundantConstantBase: Remove redundant ::.
524 not_if { ::File.exist?('/etc/apt/trusted.gpg.d/erlang_solutions.gpg') }
525 ^^
526cookbooks/travis_ci_ubuntu_2004/recipes/erlang.rb:15:12: C: [Correctable] Style/RedundantConstantBase: Remove redundant ::.
527 not_if { ::File.exist?('/etc/apt/sources.list.d/rabbitmq.list') }
528 ^^
529cookbooks/travis_ci_ubuntu_2004/recipes/erlang.rb:20:12: C: [Correctable] Style/RedundantConstantBase: Remove redundant ::.
530 not_if { ::File.exist?('/etc/apt/sources.list.d/rabbitmq.list') }
531 ^^
532cookbooks/travis_ci_ubuntu_2004/recipes/mysql.rb:29:6: C: [Correctable] Style/RedundantConstantBase: Remove redundant ::.
533file ::File.join(
534 ^^
535cookbooks/travis_ci_ubuntu_2004/recipes/postgresql.rb:26:1: C: [Correctable] Layout/TrailingEmptyLines: 1 trailing blank lines detected.
536cookbooks/travis_ci_ubuntu_2004_minimal/attributes/default.rb:30:51: C: [Correctable] Style/RedundantLineContinuation: Redundant line continuation.
537override['travis_system_info']['commands_file'] = \ ...
538 ^
539cookbooks/travis_ci_ubuntu_2204/attributes/default.rb:4:51: C: [Correctable] Style/RedundantLineContinuation: Redundant line continuation.
540override['travis_system_info']['commands_file'] = \ ...
541 ^
542cookbooks/travis_ci_ubuntu_2204/attributes/default.rb:13:31: C: [Correctable] Style/TrailingCommaInHashLiteral: Avoid comma after the last item of a hash.
543 'pypy3.6-7.3.1' => %w[pypy3],
544 ^
545cookbooks/travis_ci_ubuntu_2204/attributes/default.rb:48:65: C: [Correctable] Style/RedundantConstantBase: Remove redundant ::.
546override['travis_build_environment']['clang']['download_url'] = ::File.join(
547 ^^
548cookbooks/travis_ci_ubuntu_2204/attributes/default.rb:53:127: C: [Correctable] Layout/TrailingWhitespace: Trailing whitespace detected.
549*******************************************************************************************************************************
550 ^
551cookbooks/travis_ci_ubuntu_2204/attributes/default.rb:55:1: C: [Correctable] Layout/EmptyLines: Extra blank line detected.
552cookbooks/travis_ci_ubuntu_2204/attributes/default.rb:75:65: C: [Correctable] Style/RedundantConstantBase: Remove redundant ::.
553override['travis_build_environment']['cmake']['download_url'] = ::File.join(
554 ^^
555cookbooks/travis_ci_ubuntu_2204/attributes/default.rb:94:1: C: [Correctable] Layout/EmptyLines: Extra blank line detected.
556cookbooks/travis_ci_ubuntu_2204/attributes/default.rb:117:71: C: [Correctable] Style/RedundantLineContinuation: Redundant line continuation.
557override['travis_build_environment']['packer']['amd64']['checksum'] = \ ...
558 ^
559cookbooks/travis_ci_ubuntu_2204/attributes/default.rb:118:1: C: [Correctable] Layout/AssignmentIndentation: Indent the first line of the right-hand-side of a multi-line assignment.
560******************************************************************
561^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
562cookbooks/travis_ci_ubuntu_2204/metadata.rb:8:18: C: [Correctable] Security/IoMethods: File.read is safer than IO.read.
563long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
564 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
565cookbooks/travis_ci_ubuntu_2204/recipes/mysql.rb:38:6: C: [Correctable] Style/RedundantConstantBase: Remove redundant ::.
566file ::File.join(
567 ^^
568cookbooks/travis_ci_ubuntu_2204_minimal/attributes/default.rb:30:51: C: [Correctable] Style/RedundantLineContinuation: Redundant line continuation.
569override['travis_system_info']['commands_file'] = \ ...
570 ^
571cookbooks/travis_ci_ubuntu_2204_minimal/metadata.rb:8:18: C: [Correctable] Security/IoMethods: File.read is safer than IO.read.
572long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
573 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
574cookbooks/travis_ci_windows_1803/attributes/default.rb:30:51: C: [Correctable] Style/RedundantLineContinuation: Redundant line continuation.
575override['travis_system_info']['commands_file'] = \ ...
576 ^
577cookbooks/travis_packer_templates/attributes/default.rb:8:69: C: [Correctable] Style/RedundantLineContinuation: Redundant line continuation.
578default['travis_packer_templates']['env']['TRAVIS_COOKBOOKS_DIR'] = \ ...
579 ^
580lib/stack_promotion_hydrator.rb:122:17: C: [Correctable] Style/ZeroLengthPredicate: Use empty? instead of length.zero?.
581 unless urls.length.zero?
582 ^^^^^^^^^^^^
583lib/stack_promotion_hydrator.rb:129:25: C: [Correctable] Style/ZeroLengthPredicate: Use empty? instead of length.zero?.
584 unless output_files.length.zero?
585 ^^^^^^^^^^^^
587131 files inspected, 82 offenses detected, 81 offenses autocorrectable
588make: *** [Makefile:68: test] Error 1
589The command "bundle exec make test" exited with 2.
5903.78s$ make update-gce-images
591bin/gce-image-update $(git grep -lE 'source_image: ubuntu' *.yml)
592ERROR: (gcloud.compute.images.list) You do not currently have an active account selected.
593Please run:
595 $ gcloud auth login
597to obtain new credentials.
599If you have already logged in with a different account, run:
601 $ gcloud config set account ACCOUNT
603to select an already authenticated account to use.
604ERROR: (gcloud.compute.images.list) You do not currently have an active account selected.
605Please run:
607 $ gcloud auth login
609to obtain new credentials.
611If you have already logged in with a different account, run:
613 $ gcloud config set account ACCOUNT
615to select an already authenticated account to use.
616ERROR: (gcloud.compute.images.list) You do not currently have an active account selected.
617Please run:
619 $ gcloud auth login
621to obtain new credentials.
623If you have already logged in with a different account, run:
625 $ gcloud config set account ACCOUNT
627to select an already authenticated account to use.
628The command "make update-gce-images" exited with 0.
6290.01s$ git diff --exit-code
630diff --git a/packer-scripts/ant-install b/packer-scripts/ant-install
631index 48967fa..6ae9f53 100644
632--- a/packer-scripts/ant-install
633+++ b/packer-scripts/ant-install
634@@ -14,7 +14,7 @@ main() {
635 ANT_HOME=/usr/local/ant
636 PATH="$PATH:/usr/local/ant/bin"
637 export ANT_HOME
638- export PATH="$PATH:/usr/local/ant/bin" >> /etc/profile
639+ export PATH="$PATH:/usr/local/ant/bin" >>/etc/profile
640 cat /etc/profile
642 }
643diff --git a/packer-scripts/cleanup b/packer-scripts/cleanup
644index d017045..be4240e 100755
645--- a/packer-scripts/cleanup
646+++ b/packer-scripts/cleanup
647@@ -71,5 +71,5 @@ if test -f /etc/cloud/cloud.cfg >&/dev/null; then
648 sed -i '/package-update-upgrade-install/d' /etc/cloud/cloud.cfg
649 fi
651-echo "PubkeyAcceptedKeyTypes +ssh-rsa" >> /etc/ssh/sshd_config
652-echo "HostKeyAlgorithms +ssh-rsa" >> /etc/ssh/sshd_config
653\ No newline at end of file
654+echo "PubkeyAcceptedKeyTypes +ssh-rsa" >>/etc/ssh/sshd_config
655+echo "HostKeyAlgorithms +ssh-rsa" >>/etc/ssh/sshd_config
656diff --git a/packer-scripts/pre-chef-bootstrap b/packer-scripts/pre-chef-bootstrap
657index a691e0c..ebe63b3 100755
658--- a/packer-scripts/pre-chef-bootstrap
659+++ b/packer-scripts/pre-chef-bootstrap
660@@ -45,7 +45,7 @@ __install_packages() {
662 # Add Perforce repository
663 echo "deb http://package.perforce.com/apt/ubuntu ${machine} release" | sudo tee /etc/apt/sources.list.d/perforce.list
664-
666 apt-get clean
667 apt-get autoclean -y
668 apt-get autoremove -y
669@@ -81,7 +81,6 @@ __install_packages() {
670 # Install chromium since google chrome is not installable
671 apt install -y chromium-browser
674 # link python ##TODO move this to chef
675 if ! [ -x "$(command -v python)" ]; then
676 update-alternatives --install /usr/bin/python python /usr/bin/python3 1
677diff --git a/packer-scripts/pre-chef-bootstrap-bionic b/packer-scripts/pre-chef-bootstrap-bionic
678index 0178f71..b08e072 100644
679--- a/packer-scripts/pre-chef-bootstrap-bionic
680+++ b/packer-scripts/pre-chef-bootstrap-bionic
681@@ -45,7 +45,7 @@ __install_packages() {
683 # Add Perforce repository
684 echo "deb http://package.perforce.com/apt/ubuntu ${machine} release" | sudo tee /etc/apt/sources.list.d/perforce.list
685-
687 apt-get clean
688 apt-get autoclean -y
689 apt-get autoremove -y
690@@ -70,8 +70,8 @@ __install_packages() {
691 rabbitmq-server \
692 "${APT_GET_INSTALL_PRE_CHEF}"
694- # rabbitmq service fix
695- sudo systemctl unmask rabbitmq-server.service
696+ # rabbitmq service fix
697+ sudo systemctl unmask rabbitmq-server.service
698 }
699 __setup_redis() {
700 echo "Installing the newest redis"
701diff --git a/packer-scripts/pre-chef-bootstrap-focal b/packer-scripts/pre-chef-bootstrap-focal
702index 7d4e384..8e923e2 100755
703--- a/packer-scripts/pre-chef-bootstrap-focal
704+++ b/packer-scripts/pre-chef-bootstrap-focal
705@@ -7,7 +7,7 @@ main() {
706 shopt -s nullglob
708 export DEBIAN_FRONTEND='noninteractive'
709- export LC_ALL=C.UTF-8
710+ export LC_ALL=C.UTF-8
711 export LANG=C.UTF-8
713 if [[ "${PACKER_BUILDER_TYPE}" != docker ]]; then
714@@ -86,8 +86,8 @@ __setup_sshd() {
715 if ! grep -Eq '^sshd: ALL: ALLOW' /etc/hosts.allow; then
716 echo 'sshd: ALL: ALLOW' >>/etc/hosts.allow
717 fi
718- echo "PubkeyAcceptedKeyTypes +ssh-rsa" >> /etc/ssh/sshd_config
719- echo "HostKeyAlgorithms +ssh-rsa" >> /etc/ssh/sshd_config
720+ echo "PubkeyAcceptedKeyTypes +ssh-rsa" >>/etc/ssh/sshd_config
721+ echo "HostKeyAlgorithms +ssh-rsa" >>/etc/ssh/sshd_config
722 }
724 __setup_travis_user() {
725diff --git a/packer-scripts/pre-chef-bootstrap-jammy b/packer-scripts/pre-chef-bootstrap-jammy
726index dbe751f..67fc980 100644
727--- a/packer-scripts/pre-chef-bootstrap-jammy
728+++ b/packer-scripts/pre-chef-bootstrap-jammy
729@@ -7,10 +7,9 @@ main() {
730 shopt -s nullglob
732 export DEBIAN_FRONTEND='noninteractive'
733- export LC_ALL=C.UTF-8
734+ export LC_ALL=C.UTF-8
735 export LANG=C.UTF-8
738 if [[ "${PACKER_BUILDER_TYPE}" != docker ]]; then
739 __disable_ipv6
740 fi
741@@ -94,8 +93,8 @@ __setup_sshd() {
742 if ! grep -Eq '^sshd: ALL: ALLOW' /etc/hosts.allow; then
743 echo 'sshd: ALL: ALLOW' >>/etc/hosts.allow
744 fi
745- echo "PubkeyAcceptedKeyTypes +ssh-rsa" >> /etc/ssh/sshd_config
746- echo "HostKeyAlgorithms +ssh-rsa" >> /etc/ssh/sshd_config
747+ echo "PubkeyAcceptedKeyTypes +ssh-rsa" >>/etc/ssh/sshd_config
748+ echo "HostKeyAlgorithms +ssh-rsa" >>/etc/ssh/sshd_config
749 }
751 __setup_travis_user() {
752@@ -151,8 +150,8 @@ __setup_travis_ssh() {
753 cat "${f}" >>/home/travis/.ssh/authorized_keys
754 done
755 chmod 0600 /home/travis/.ssh/authorized_keys
756- echo "PubkeyAcceptedKeyTypes +ssh-rsa" >> /etc/ssh/ssh_config
757- echo "HostKeyAlgorithms +ssh-rsa" >> /etc/ssh/ssh_config
758+ echo "PubkeyAcceptedKeyTypes +ssh-rsa" >>/etc/ssh/ssh_config
759+ echo "HostKeyAlgorithms +ssh-rsa" >>/etc/ssh/ssh_config
760 }
762 __write_pre_chef_env() {
763diff --git a/packer-scripts/pyenv-install b/packer-scripts/pyenv-install
764index a9e6ea8..8481ea0 100644
765--- a/packer-scripts/pyenv-install
766+++ b/packer-scripts/pyenv-install
767@@ -5,12 +5,12 @@ set -o xtrace
769 main() {
771- # Install pyenv-update plugin
772- git config --global --add safe.directory /opt/pyenv
773- cd /opt/pyenv/bin/
774- git checkout master
775- git clone https://github.com/pyenv/pyenv-update.git "$(pyenv root)"/plugins/pyenv-update
776- pyenv update
777- pyenv rehash && hash -r
778+ # Install pyenv-update plugin
779+ git config --global --add safe.directory /opt/pyenv
780+ cd /opt/pyenv/bin/
781+ git checkout master
782+ git clone https://github.com/pyenv/pyenv-update.git "$(pyenv root)"/plugins/pyenv-update
783+ pyenv update
784+ pyenv rehash && hash -r
786-}
787\ No newline at end of file
788+}
789diff --git a/packer-scripts/updates b/packer-scripts/updates
790index cd77a03..454581f 100644
791--- a/packer-scripts/updates
792+++ b/packer-scripts/updates
793@@ -8,112 +8,112 @@ set -o xtrace
795 main() {
797- dist=$(lsb_release -cs)
799- if [[ "${dist}" = "jammy" ]]; then
800- apt install linux-headers-generic -y
802- echo "Installing pip-review"
803-
804- # Install rustc (needed for python updates)
805- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
806- export PATH="$HOME/.cargo/bin:$PATH"
807- source ~/.bashrc
808- rustc --version
810- sudo apt-get install -y libgirepository1.0-dev libdbus-1-dev libsystemd-dev libcurl4-openssl-dev python3-testresources
812- #sudo chown -R $USER:$USER /home/packer/.cache/pip
814- pip install --upgrade pip
815- #pip install pip-review
816- #pip-review --auto
818- echo "Appling docker buildx fix"
819- sudo install -m 0755 -d /etc/apt/keyrings
820- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
821- sudo chmod a+r /etc/apt/keyrings/docker.gpg
822- echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
823- sudo apt-get update -y
824- sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
826- # Update composer
827- /home/travis/.phpenv/shims/composer self-update
829- # Update bundler
830- gem install bundler
831- else
832- echo "Appling main updates"
833- apt update -yqq --fix-missing
834- echo "Uninstalling old kernel modules"
835- dpkg --list | grep linux-image | awk '{ print $2 }' | sort -V | sed -n "/$(uname -r)/q;p" | xargs sudo apt-get -y purge
836- apt purge "$(for tag in "linux-image" "linux-headers"; do dpkg-query -W -f'${Package}\n' "$tag-[0-9]*.[0-9]*.[0-9]*" | sort -V | awk 'index($0,c){exit} //' c="$(uname -r | cut -d- -f1,2)"; done)"
838- apt full-upgrade -y
839- apt install linux-headers-generic -y
841- # Install rustc (needed for python updates)
842- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
843- export PATH="$HOME/.cargo/bin:$PATH"
844- source ~/.bashrc
845- rustc --version
847- # Uninstall old kernels (yes they are still there) - use it to uninstall when needed only DOCKER
849- # if [[ "${dist}" = "focal" ]]; then
850- # apt remove -y linux-gcp-headers-5.4.0-1080 linux-modules-5.15.0-1006-gcp linux-modules-5.15.0-1060-gcp
851- # echo "Installing updated kernel modules"
852- # apt install -y --no-install-suggests --no-install-recommends linux-gcp-headers-5.4.0-1129 linux-modules-5.15.0-1060-gcp
853- # elif [[ "${dist}" = "bionic" ]]; then
854- # apt remove -y linux-modules-5.4.0-1080
855- # apt install -yqq --no-install-suggests --no-install-recommends \
856- # linux-modules-5.4.0-1106
857- # fi
858- # # Remove system-package installed python packages
859- # apt remove --purge python3-setuptools -y
861- echo "Appling python updates"
863- sudo apt-get install -y libgirepository1.0-dev libdbus-1-dev libsystemd-dev libcurl4-openssl-dev python3-testresources
865- pip3 install --upgrade pip
866- pip3 install pip-review
867- pip-review --auto
869- # # Focal install python modules
870- # if [[ "${dist}" = "focal" ]]; then
871- # echo "Installing pip-review"
872- # # Focal docker issue with pip-review - docker will fail with these
873- # pip install importlib_metadata --force-reinstall
874- # # pip install pip-review
875- # # pip-review --auto
876- # else
877- # echo "Installing pip-review"
878- # pip install --upgrade pip-review
879- # pip-review --auto
880- # fi
882- echo "Appling docker buildx fix"
883- sudo install -m 0755 -d /etc/apt/keyrings
884- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
885- sudo chmod a+r /etc/apt/keyrings/docker.gpg
886- # shellcheck source=/etc/os-release
887- echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
888- sudo apt update -y
889- sudo apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
890- #pip install --upgrade pip pyopenssl certifi rsa pytest oauthlib testresources setuptools numpy
892- # Bionic install git
893- if [[ "${dist}" = "bionic" ]]; then
894+ dist=$(lsb_release -cs)
896+ if [[ "${dist}" = "jammy" ]]; then
897+ apt install linux-headers-generic -y
899+ echo "Installing pip-review"
901+ # Install rustc (needed for python updates)
902+ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
903+ export PATH="$HOME/.cargo/bin:$PATH"
904+ source ~/.bashrc
905+ rustc --version
907+ sudo apt-get install -y libgirepository1.0-dev libdbus-1-dev libsystemd-dev libcurl4-openssl-dev python3-testresources
909+ #sudo chown -R $USER:$USER /home/packer/.cache/pip
911+ pip install --upgrade pip
912+ #pip install pip-review
913+ #pip-review --auto
915+ echo "Appling docker buildx fix"
916+ sudo install -m 0755 -d /etc/apt/keyrings
917+ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
918+ sudo chmod a+r /etc/apt/keyrings/docker.gpg
919+ echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | sudo tee /etc/apt/sources.list.d/docker.list >/dev/null
920+ sudo apt-get update -y
921+ sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
923+ # Update composer
924+ /home/travis/.phpenv/shims/composer self-update
926+ # Update bundler
927+ gem install bundler
928+ else
929+ echo "Appling main updates"
930+ apt update -yqq --fix-missing
931+ echo "Uninstalling old kernel modules"
932+ dpkg --list | grep linux-image | awk '{ print $2 }' | sort -V | sed -n "/$(uname -r)/q;p" | xargs sudo apt-get -y purge
933+ apt purge "$(for tag in "linux-image" "linux-headers"; do dpkg-query -W -f'${Package}\n' "$tag-[0-9]*.[0-9]*.[0-9]*" | sort -V | awk 'index($0,c){exit} //' c="$(uname -r | cut -d- -f1,2)"; done)"
935+ apt full-upgrade -y
936+ apt install linux-headers-generic -y
938+ # Install rustc (needed for python updates)
939+ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
940+ export PATH="$HOME/.cargo/bin:$PATH"
941+ source ~/.bashrc
942+ rustc --version
944+ # Uninstall old kernels (yes they are still there) - use it to uninstall when needed only DOCKER
946+ # if [[ "${dist}" = "focal" ]]; then
947+ # apt remove -y linux-gcp-headers-5.4.0-1080 linux-modules-5.15.0-1006-gcp linux-modules-5.15.0-1060-gcp
948+ # echo "Installing updated kernel modules"
949+ # apt install -y --no-install-suggests --no-install-recommends linux-gcp-headers-5.4.0-1129 linux-modules-5.15.0-1060-gcp
950+ # elif [[ "${dist}" = "bionic" ]]; then
951+ # apt remove -y linux-modules-5.4.0-1080
952+ # apt install -yqq --no-install-suggests --no-install-recommends \
953+ # linux-modules-5.4.0-1106
954+ # fi
955+ # # Remove system-package installed python packages
956+ # apt remove --purge python3-setuptools -y
958+ echo "Appling python updates"
960+ sudo apt-get install -y libgirepository1.0-dev libdbus-1-dev libsystemd-dev libcurl4-openssl-dev python3-testresources
962+ pip3 install --upgrade pip
963+ pip3 install pip-review
964+ pip-review --auto
966+ # # Focal install python modules
967+ # if [[ "${dist}" = "focal" ]]; then
968+ # echo "Installing pip-review"
969+ # # Focal docker issue with pip-review - docker will fail with these
970+ # pip install importlib_metadata --force-reinstall
971+ # # pip install pip-review
972+ # # pip-review --auto
973+ # else
974+ # echo "Installing pip-review"
975+ # pip install --upgrade pip-review
976+ # pip-review --auto
977+ # fi
979+ echo "Appling docker buildx fix"
980+ sudo install -m 0755 -d /etc/apt/keyrings
981+ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
982+ sudo chmod a+r /etc/apt/keyrings/docker.gpg
983+ # shellcheck source=/etc/os-release
984+ echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | sudo tee /etc/apt/sources.list.d/docker.list >/dev/null
985+ sudo apt update -y
986+ sudo apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
987+ #pip install --upgrade pip pyopenssl certifi rsa pytest oauthlib testresources setuptools numpy
989+ # Bionic install git
990+ if [[ "${dist}" = "bionic" ]]; then
991 sudo apt install git-all
992- fi
993+ fi
995- # Update composer
996- /home/travis/.phpenv/shims/composer self-update
997+ # Update composer
998+ /home/travis/.phpenv/shims/composer self-update
1000- # # Update bundler - to fix in the future
1001- # /home/travis/.rvm/bin/rvm use 3.3.1
1002- fi
1003+ # # Update bundler - to fix in the future
1004+ # /home/travis/.rvm/bin/rvm use 3.3.1
1005+ fi
1009The command "git diff --exit-code" exited with 1.
10100.01s$ git diff --cached --exit-code
1011The command "git diff --cached --exit-code" exited with 0.
10120.15s$ sudo lsof | grep dpkg || true
1013The command "sudo lsof | grep dpkg || true" exited with 0.
101445.26s$ travis_retry bundle exec bash -xc 'sudo packer-scripts/run-serverspecs'
1015+sudo packer-scripts/run-serverspecs
1016+ shopt -s nullglob
1017+ export CHEF_PATH=/opt/chef-workstation/bin:/opt/chef-workstation/embedded/bin:/opt/chef/bin
1018+ CHEF_PATH=/opt/chef-workstation/bin:/opt/chef-workstation/embedded/bin:/opt/chef/bin
1019+ export CHEF_LICENSE=accept-silent
1020+ CHEF_LICENSE=accept-silent
1021+ export PATH=/opt/chef-workstation/bin:/opt/chef-workstation/embedded/bin:/opt/chef/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
1022+ PATH=/opt/chef-workstation/bin:/opt/chef-workstation/embedded/bin:/opt/chef/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
1023+ export DEBIAN_FRONTEND=noninteractive
1024+ DEBIAN_FRONTEND=noninteractive
1025+ export RUBYOPT=-W0
1026+ RUBYOPT=-W0
1027+ : /home/travis/build/travis-ci/packer-templates/tmp
1028+ : 'bash -lc'
1029+ : docker
1030+ [[ docker == \d\o\c\k\e\r ]]
1031+ export 'SPEC_ARGS=--tag ~dev --tag ~docker:false'
1032+ SPEC_ARGS='--tag ~dev --tag ~docker:false'
1033+ __install_chef /home/travis/build/travis-ci/packer-templates/tmp
1034+ [[ -f /opt/chef-workstation/embedded/bin/rspec ]]
1035+ curl -sSL https://omnitruck.chef.io/install.sh
1036+ sudo bash -s -- -P chef-workstation -v 22.5.923
1037ubuntu 20.04 x86_64
1038Getting information for chef-workstation stable 22.5.923 for ubuntu...
1039downloading https://omnitruck.chef.io/stable/chef-workstation/metadata?v=22.5.923&p=ubuntu&pv=20.04&m=x86_64
1040 to file /tmp/install.sh.9435/metadata.txt
1041trying wget...
1042sha1 b8c582336804d5986f0f6d3dddeb9bf300d2d2bd
1043sha256 b9d73fa16a3f4008e2f4cd2a4d96d482bc8f0fea77c06a3754382e0d940b8d0c
1044url https://packages.chef.io/files/stable/chef-workstation/22.5.923/ubuntu/20.04/chef-workstation_22.5.923-1_amd64.deb
1045version 22.5.923
1046downloaded metadata file looks valid...
1047downloading https://packages.chef.io/files/stable/chef-workstation/22.5.923/ubuntu/20.04/chef-workstation_22.5.923-1_amd64.deb
1048 to file /tmp/install.sh.9435/chef-workstation_22.5.923-1_amd64.deb
1049trying wget...
1050Comparing checksum with sha256sum...
1051Installing chef-workstation 22.5.923
1052installing with dpkg...
1053Selecting previously unselected package chef-workstation.
1054(Reading database ... 153602 files and directories currently installed.)
1055Preparing to unpack .../chef-workstation_22.5.923-1_amd64.deb ...
1056Unpacking chef-workstation (22.5.923-1) ...
1057Setting up chef-workstation (22.5.923-1) ...
1059The Chef Workstation App is available.
1061Launch the App by running 'chef-workstation-app'.
1062The App will then be available in the system tray.
1064Thank you for installing Chef Workstation!
1065You can find some tips on getting started at https://docs.chef.io/workstation/getting_started/
1067+ __run_retry 2 30 apt-get update -y
1068+ local retries=2
1069+ shift
1070+ local retry_delay=30
1071+ shift
1072+ cmd=("${@}")
1073+ local cmd
1074+ local i=0
1075+ true
1076+ [[ 0 -gt 2 ]]
1077+ apt-get update -y
1078Get:1 http://package.perforce.com/apt/ubuntu focal InRelease [7,646 B]
1079Get:2 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal InRelease [265 kB]
1080Hit:3 https://download.docker.com/linux/ubuntu focal InRelease
1081Hit:4 http://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 InRelease
1082Get:5 https://ppa1.novemberain.com/rabbitmq/rabbitmq-erlang/deb/ubuntu focal InRelease [5,185 B]
1083Get:6 https://public.dhe.ibm.com/software/server/POWER/Linux/toolchain/at/ubuntu focal InRelease [5,172 B]
1084Get:7 http://security.ubuntu.com/ubuntu focal-security InRelease [128 kB]
1085Get:8 https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu focal InRelease [5,182 B]
1086Get:9 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates InRelease [128 kB]
1087Hit:10 https://packages.redis.io/deb focal InRelease
1088Get:11 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-backports InRelease [128 kB]
1089Get:12 http://package.perforce.com/apt/ubuntu focal/release amd64 Packages [45.9 kB]
1090Get:13 http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease [129 kB]
1091Get:14 https://ppa2.novemberain.com/rabbitmq/rabbitmq-erlang/deb/ubuntu focal InRelease [5,185 B]
1092Get:15 http://package.perforce.com/apt/ubuntu focal/release i386 Packages [5,117 B]
1093Ign:16 https://ppa1.novemberain.com/rabbitmq/rabbitmq-erlang/deb/ubuntu focal/main amd64 Packages
1094Get:17 https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu focal InRelease [5,182 B]
1095Get:16 https://ppa1.novemberain.com/rabbitmq/rabbitmq-erlang/deb/ubuntu focal/main amd64 Packages [143 kB]
1096Get:18 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/main amd64 Packages [1,275 kB]
1097Get:19 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/main i386 Packages [930 kB]
1098Get:20 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/main Translation-en [709 kB]
1099Get:21 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/main amd64 c-n-f Metadata [29.5 kB]
1100Get:22 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/restricted amd64 Packages [33.4 kB]
1101Get:23 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/restricted i386 Packages [10.1 kB]
1102Get:24 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/restricted Translation-en [6,851 B]
1103Get:25 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/restricted amd64 c-n-f Metadata [392 B]
1104Get:26 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB]
1105Get:27 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/universe i386 Packages [5,999 kB]
1106Get:28 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/universe Translation-en [7,220 kB]
1107Get:29 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/universe amd64 c-n-f Metadata [265 kB]
1108Get:30 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [177 kB]
1109Get:31 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/multiverse i386 Packages [88.9 kB]
1110Get:32 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/multiverse Translation-en [128 kB]
1111Get:33 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/multiverse amd64 c-n-f Metadata [9,136 B]
1112Get:34 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [4,693 kB]
1113Get:35 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/main i386 Packages [1,326 kB]
1114Get:36 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/main Translation-en [856 kB]
1115Get:37 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/main amd64 c-n-f Metadata [17.8 kB]
1116Get:38 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/restricted i386 Packages [49.0 kB]
1117Get:39 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [4,515 kB]
1118Get:40 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/restricted Translation-en [625 kB]
1119Get:41 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/restricted amd64 c-n-f Metadata [548 B]
1120Get:42 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1,589 kB]
1121Get:43 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/universe i386 Packages [1,020 kB]
1122Get:44 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/universe Translation-en [421 kB]
1123Get:45 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f Metadata [28.3 kB]
1124Get:46 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [34.6 kB]
1125Get:47 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/multiverse i386 Packages [9,592 B]
1126Get:48 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/multiverse Translation-en [8,635 B]
1127Get:49 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 c-n-f Metadata [612 B]
1128Get:50 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages [55.2 kB]
1129Get:51 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-backports/main i386 Packages [43.4 kB]
1130Get:52 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-backports/main Translation-en [18.8 kB]
1131Get:53 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-backports/main amd64 c-n-f Metadata [1,420 B]
1132Get:54 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-backports/restricted amd64 c-n-f Metadata [116 B]
1133Get:55 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-backports/universe i386 Packages [15.4 kB]
1134Get:56 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [28.6 kB]
1135Get:57 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-backports/universe Translation-en [17.6 kB]
1136Get:58 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-backports/universe amd64 c-n-f Metadata [880 B]
1137Get:59 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-backports/multiverse amd64 c-n-f Metadata [116 B]
1138Ign:60 https://ppa2.novemberain.com/rabbitmq/rabbitmq-erlang/deb/ubuntu focal/main amd64 Packages
1139Get:60 https://ppa2.novemberain.com/rabbitmq/rabbitmq-erlang/deb/ubuntu focal/main amd64 Packages [143 kB]
1140Get:61 http://security.ubuntu.com/ubuntu focal-security/main i386 Packages [1,046 kB]
1141Get:62 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 Packages [574 kB]
1142Get:63 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [4,217 kB]
1143Get:64 http://security.ubuntu.com/ubuntu focal-security/main Translation-en [742 kB]
1144Get:65 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [4,327 kB]
1145Get:66 http://security.ubuntu.com/ubuntu focal-security/restricted Translation-en [600 kB]
1146Get:67 http://security.ubuntu.com/ubuntu focal-security/universe i386 Packages [860 kB]
1147Get:68 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [1,297 kB]
1148Fetched 58.4 MB in 4s (13.6 MB/s)
1149Reading package lists... Done
1150N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease' doesn't support architecture 'i386'
1151+ return
1152+ __run_retry 2 30 apt-get install libc-client2007e-dev mysql-client
1153+ local retries=2
1154+ shift
1155+ local retry_delay=30
1156+ shift
1157+ cmd=("${@}")
1158+ local cmd
1159+ local i=0
1160+ true
1161+ [[ 0 -gt 2 ]]
1162+ apt-get install libc-client2007e-dev mysql-client
1163Reading package lists... Done
1164Building dependency tree
1165Reading state information... Done
1166libc-client2007e-dev is already the newest version (8:2007f~dfsg-7).
1167The following packages were automatically installed and are no longer required:
1168 amd64-microcode bubblewrap dictionaries-common hunspell-en-us
1169 intel-microcode iucode-tool libaspell15 libenchant-2-2 libglu1-mesa
1170 libgstreamer-gl1.0-0 libgstreamer-plugins-base1.0-0 libgudev-1.0-0
1171 libharfbuzz-icu0 libhunspell-1.7-0 libhyphen0 libjavascriptcoregtk-4.0-18
1172 libnotify4 libopengl0 libopenjp2-7 liborc-0.4-0 libsecret-1-0
1173 libsecret-common libwebkit2gtk-4.0-37 libwebpdemux2 libwoff1
1174 libwxbase3.0-0v5 libwxgtk-webview3.0-gtk3-0v5 libwxgtk3.0-gtk3-0v5
1175 linux-image-unsigned-5.4.0-204-generic linux-modules-5.4.0-204-generic
1176 xdg-dbus-proxy
1177Use 'sudo apt autoremove' to remove them.
1178The following packages will be upgraded:
1179 mysql-client
11801 upgraded, 0 newly installed, 0 to remove and 39 not upgraded.
1181Need to get 9,368 B of archives.
1182After this operation, 0 B of additional disk space will be used.
1183Get:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/main amd64 mysql-client all 8.0.41-0ubuntu0.20.04.1 [9,368 B]
1184Fetched 9,368 B in 0s (58.9 kB/s)
1185(Reading database ... 201004 files and directories currently installed.)
1186Preparing to unpack .../mysql-client_8.0.41-0ubuntu0.20.04.1_all.deb ...
1187Unpacking mysql-client (8.0.41-0ubuntu0.20.04.1) over (8.0.40-0ubuntu0.20.04.1) ...
1188Setting up mysql-client (8.0.41-0ubuntu0.20.04.1) ...
1189+ return
1190+ __create_sudo_bash
1191+ cat
1192+ chmod 0755 /tmp/sudo-bash
1193+ __chown_travis_dirs /home/travis/build/travis-ci/packer-templates/tmp
1194+ chown -R travis:travis /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local /var/tmp
1195+ for suite in ${SPEC_SUITES/,/ }
1196+ __run_suite travis_packer_templates /home/travis/build/travis-ci/packer-templates/tmp 'bash -lc'
1197+ local suite=travis_packer_templates
1198+ local chef_prefix=/home/travis/build/travis-ci/packer-templates/tmp
1199+ local 'runner=bash -lc'
1200+ local cookbook_dir
1201++ __suite_cookbook_dir travis_packer_templates /home/travis/build/travis-ci/packer-templates/tmp
1202++ local suite=travis_packer_templates
1203++ local chef_prefix=/home/travis/build/travis-ci/packer-templates/tmp
1204++ local spec_dir
1205+++ head -1
1206+++ find /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/bin /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/chef-solo.rb.tmpl /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/ci-freebsd-12.yml /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/ci-opal.yml /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/ci-sardonyx.yml /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/ci-stevonnie.yml /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/ci-ubuntu-1804-minimal.yml /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/ci-ubuntu-1804.yml /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/ci-ubuntu-2004-minimal.yml /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/ci-ubuntu-2004.yml /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/ci-ubuntu-2204-minimal.yml /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/ci-ubuntu-2204.yml /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/ci-windows-1803.yml /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/CODE_OF_CONDUCT.md /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/Gemfile /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/Gemfile.lock /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/jupiter-brain.yml /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/lib /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/LICENSE.md /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/Makefile /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/packer-assets /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/packer-scripts /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/README.md /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/run-foodcritic /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/runtests /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/spec /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/tfw.yml /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/tmp /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/vault-consul-server.yml /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/vendor -wholename '*travis_packer_templates/spec' -type d
1207++ spec_dir=/home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates/spec
1208++ dirname /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates/spec
1209+ cookbook_dir=/home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates
1210+ pushd /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates
1211+ __run_suite_as_travis travis_packer_templates /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates 'bash -lc'
1212+ local suite=travis_packer_templates
1213+ local cookbook_dir=/home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates
1214+ local 'runner=bash -lc'
1215+ set +o errexit
1216+ bash -lc '
1217set -o xtrace
1218export PATH="/opt/chef-workstation/bin:/opt/chef-workstation/embedded/bin:/opt/chef/bin:$PATH"
1219export TERM=xterm
1220export PACKER_BUILDER_TYPE=docker
1221export RUBYOPT=-W0
1222chef gem install serverspec
1223unset GEM_PATH
1224cd /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates
1225sudo systemctl start xvfb.service
1226set -o errexit
1228+ export PATH=/opt/chef-workstation/bin:/opt/chef-workstation/embedded/bin:/opt/chef/bin:/home/travis/.local/bin:/usr/local/lib/jvm/openjdk11/bin:/opt/pyenv/shims:/home/travis/.phpenv/shims:/home/travis/perl5/perlbrew/bin:/home/travis/.nvm/versions/node/v18.20.3/bin:/home/travis/.kiex/elixirs/elixir-1.7.4/bin:/home/travis/.kiex/bin:/home/travis/.rvm/gems/ruby-3.3.5/bin:/home/travis/.rvm/gems/ruby-3.3.5@global/bin:/home/travis/.rvm/rubies/ruby-3.3.5/bin:/home/travis/.phpenv/shims:/home/travis/gopath/bin:/usr/local/maven-3.9.4/bin:/usr/local/cmake-3.29.0/bin:/usr/local/clang-18.1.8/bin:/usr/local/maven-3.9.4/bin:/usr/local/cmake-3.29.0/bin:/usr/local/clang-18.1.8/bin:/opt/chef-workstation/bin:/opt/chef-workstation/embedded/bin:/opt/chef/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/usr/local/ant/bin:/usr/local/ant/bin:/home/travis/.rvm/bin:/home/travis/.phpenv/bin:/opt/pyenv/bin
1229+ PATH=/opt/chef-workstation/bin:/opt/chef-workstation/embedded/bin:/opt/chef/bin:/home/travis/.local/bin:/usr/local/lib/jvm/openjdk11/bin:/opt/pyenv/shims:/home/travis/.phpenv/shims:/home/travis/perl5/perlbrew/bin:/home/travis/.nvm/versions/node/v18.20.3/bin:/home/travis/.kiex/elixirs/elixir-1.7.4/bin:/home/travis/.kiex/bin:/home/travis/.rvm/gems/ruby-3.3.5/bin:/home/travis/.rvm/gems/ruby-3.3.5@global/bin:/home/travis/.rvm/rubies/ruby-3.3.5/bin:/home/travis/.phpenv/shims:/home/travis/gopath/bin:/usr/local/maven-3.9.4/bin:/usr/local/cmake-3.29.0/bin:/usr/local/clang-18.1.8/bin:/usr/local/maven-3.9.4/bin:/usr/local/cmake-3.29.0/bin:/usr/local/clang-18.1.8/bin:/opt/chef-workstation/bin:/opt/chef-workstation/embedded/bin:/opt/chef/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/usr/local/ant/bin:/usr/local/ant/bin:/home/travis/.rvm/bin:/home/travis/.phpenv/bin:/opt/pyenv/bin
1230+ export TERM=xterm
1231+ TERM=xterm
1232+ export PACKER_BUILDER_TYPE=docker
1233+ PACKER_BUILDER_TYPE=docker
1234+ export RUBYOPT=-W0
1235+ RUBYOPT=-W0
1236+ chef gem install serverspec
1237Fetching serverspec-2.42.3.gem
1238WARNING: You don't have /home/travis/.chefdk/gem/ruby/3.0.0/bin in your PATH,
1239 gem executables will not run.
1240Successfully installed serverspec-2.42.3
12411 gem installed
1242+ unset GEM_PATH
1243+ cd /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates
1244+ sudo systemctl start xvfb.service
1245+ set -o errexit
1246+ local exit_code=0
1247+ [[ 0 != 0 ]]
1248+ set -o errexit
1249+ popd
1250+ [[ -z 1 ]]
1251The command "travis_retry bundle exec bash -xc 'sudo packer-scripts/run-serverspecs'" exited with 0.
12520.01s$ for f in ~/.*_rspec.json; do echo "checking $f"; jq . < $f &>/dev/null; done
1253checking /home/travis/.*_rspec.json
1254/home/travis/.travis/functions: line 109: /home/travis/.*_rspec.json: No such file or directory
1255The command "for f in ~/.*_rspec.json; do echo "checking $f"; jq . < $f &>/dev/null; done" exited with 1.
cache.2
1256store build cache
1257$ bundle clean
12580.00s1.49snothing changed
1261Done. Your build exited with 1.
Top