Pull request event #7671 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.20s0.12s0.06s0.00s
worker_info
1Worker information
2hostname: 89d2f1cc-0b4e-4e50-9430-ddb3f00612a4@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-58a26f39-de54-48c7-ae41-1fb87831584e travis-ci-ubuntu-2004-1726220016-655c8cb5 (via amqp)
5startup: 5.942225571s
60.21s0.01s0.00s0.01s
system_info
7Build system information
8Build language: ruby
9Build group: stable
10Build dist: focal
11Build id: 272621755
12Job id: 626853155
13Runtime kernel version: 5.15.0-1068-gcp
14VM: default
15travis-build version: 6b157a1c
16Build image provisioning date and time
17Fri 13 Sep 2024 09:58:48 AM 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.23)
25Cookbooks Version
2639734fe https://github.com/travis-ci/travis-cookbooks/tree/39734fe
27git version
28git version 2.46.0
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.0
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/9.2.1 linux-x64 node-v16.20.2
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.39-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.16 (Ubuntu 13.16-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 Sep 04 2024 03:11:27)
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
109gimme version
110v1.5.4
111nvm version
1120.40.1
113perlbrew version
114/home/travis/perl5/perlbrew/bin/perlbrew - App::perlbrew/0.95
115phpenv version
116rbenv 1.3.0
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.0
133Pre-installed Go versions
1341.23.0
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.4
149v20.17.0
150v4.9.1
151v6.17.1
152v8.17.0
153phpenv versions
154 system
155 7.4
156* 7.4.6 (set by /home/travis/.phpenv/version)
157 hhvm-stable
158 hhvm
159composer --version
160Composer version 1.10.6 2020-05-06 10:28:10
161Pre-installed Ruby versions
162ruby-2.7.6
163ruby-3.3.5
1650.02s0.01s0.76s0.29s0.05s0.01s0.04s0.00s0.03s0.01s0.01s0.01s0.01s0.00s0.36sOK
1660.00s0.03s0.00s0.02s0.18s0.00s0.00s0.00s0.01s0.00s0.19s0.00s1.04s0.00s0.00s6.04s0.00s4.00s0.00s2.20s
docker_mtu_and_registry_mirrors
Docker
resolvconf
services
1675.96s$ travis_setup_postgresql
168Starting PostgreSQL v13
169sudo systemctl start postgresql@13-main
git.checkout
1700.01s0.50s$ git clone --depth=50 https://github.com/travis-ci/packer-templates.git travis-ci/packer-templates
171Cloning into 'travis-ci/packer-templates'...
172remote: Enumerating objects: 1540, done.
173remote: Counting objects: 100% (1540/1540), done.
174remote: Compressing objects: 100% (762/762), done.
175remote: Total 1540 (delta 930), reused 1094 (delta 650), pack-reused 0 (from 0)
176Receiving objects: 100% (1540/1540), 305.02 KiB | 4.12 MiB/s, done.
177Resolving deltas: 100% (930/930), done.
178$ cd travis-ci/packer-templates
1790.33s$ git fetch origin +refs/pull/872/merge: --depth=50
180remote: Enumerating objects: 417, done.
181remote: Counting objects: 100% (349/349), done.
182remote: Compressing objects: 100% (159/159), done.
183remote: Total 294 (delta 223), reused 147 (delta 99), pack-reused 0 (from 0)
184Receiving objects: 100% (294/294), 54.42 KiB | 2.27 MiB/s, done.
185Resolving deltas: 100% (223/223), completed with 35 local objects.
186From https://github.com/travis-ci/packer-templates
187 * branch refs/pull/872/merge -> FETCH_HEAD
188$ git checkout -qf FETCH_HEAD
1900.01s
191Setting environment variables from repository settings
192$ export DOCKER_LOGIN_EMAIL=[secure]
193$ export DOCKER_LOGIN_PASSWORD=[secure]
194$ export DOCKER_LOGIN_SERVER=[secure]
195$ export DOCKER_LOGIN_USERNAME=[secure]
196$ export GCE_PROJECT_ID=[secure]
197$ export JOB_BOARD_IMAGES_URL=[secure]
198$ export GCE_ACCOUNT_FILE=[secure]
199$ export GCE_ACCOUNT_FILE_B64_BZ2=[secure]
200$ export GCR_LOGIN_SERVER=[secure]
201$ export GCR_AUTH_TOKEN=[secure]
202$ export QUAY_DOCKER_LOGIN_EMAIL=[secure]
203$ export QUAY_DOCKER_LOGIN_PASSWORD=[secure]
204$ export QUAY_DOCKER_LOGIN_SERVER=[secure]
205$ export QUAY_DOCKER_LOGIN_USERNAME=[secure]
206$ export TRAVIS_WORKER_VERSION=[secure]
207$ export GCE_ACCOUNT_ID=[secure]
208$ export GCE_SERVICE_ACCOUNT_ID=[secure]
209$ export GCE_SERVICE_ACCOUNT_FILE_BZ2_B64=[secure]
210$ export GITHUB_API_TOKEN=[secure]
212Setting environment variables from .travis.yml
213$ export DPKG_MANIFEST_JSON="${TRAVIS_BUILD_DIR}/.example-dpkg-manifest.json"
214$ export LANG=en_US.UTF-8
215$ export NODE_ATTRIBUTES_YML="${TRAVIS_BUILD_DIR}/.example-node-attributes.yml"
216$ export PACKER_CHEF_PREFIX="${TRAVIS_BUILD_DIR}/tmp"
217$ export PATH="/opt/chef-workstation/bin:/opt/chef-workstation/embedded/bin:/opt/chef/bin:${HOME}/bin:${PATH}"
218$ export REQUEST_INTERVAL=5
219$ export SKIP_CHEF_REMOVAL='1'
220$ export SPEC_ARGS='--tag ~dev'
221$ export SPEC_RUNNER='bash -lc'
222$ export SPEC_SUITES='travis_packer_templates'
223$ export SYSTEM_INFO_JSON="${TRAVIS_BUILD_DIR}/.example_system_info.json"
224$ export TRAVIS_SOURCE_AMI="ami-01eefcaf0edcc4cf0"
225$ export TRAVIS_JOB_BOARD_REGISTER_YML="${TRAVIS_BUILD_DIR}/.example-job-board-register-sardonyx.yml"
rvm
2270.70s$ rvm use default
228Using /home/travis/.rvm/gems/ruby-3.3.5
230$ export BUNDLE_GEMFILE=$PWD/Gemfile
cache.1
231Setting up build cache
232$ export CASHER_DIR=${TRAVIS_HOME}/.casher
2330.17s$ Installing caching utilities
2340.00s1.42sattempting to download cache archive
235fetching PR.872/cache--linux-focal-cc013414c57ac8c1748cd2de9aad19a7ca10be0189feb0a5adcc2c060b0d138d--rvm-default--gemfile-Gemfile.tgz
236fetching PR.872/cache-linux-focal-cc013414c57ac8c1748cd2de9aad19a7ca10be0189feb0a5adcc2c060b0d138d--rvm-default--gemfile-Gemfile.tgz
237fetching PR.872/cache--rvm-default--gemfile-Gemfile.tgz
238fetching master/cache--linux-focal-cc013414c57ac8c1748cd2de9aad19a7ca10be0189feb0a5adcc2c060b0d138d--rvm-default--gemfile-Gemfile.tgz
239fetching master/cache-linux-focal-cc013414c57ac8c1748cd2de9aad19a7ca10be0189feb0a5adcc2c060b0d138d--rvm-default--gemfile-Gemfile.tgz
240fetching master/cache--rvm-default--gemfile-Gemfile.tgz
241could not download cache
2420.00s1.14sadding /home/travis/bin to cache
cache.bundler
2450.00s1.14sadding /home/travis/build/travis-ci/packer-templates/vendor/bundle to cache
246creating directory /home/travis/build/travis-ci/packer-templates/vendor/bundle
ruby.versions
247$ ruby --version
248ruby 3.3.5 (2024-09-03 revision ef084cc8f4) [x86_64-linux]
249$ rvm --version
250rvm 1.29.12 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]
251$ bundle --version
252Bundler version 2.5.16
253$ gem --version
2543.5.16
install.1
2560.00s$ if [[ -f .test-branch ]]; then export TRAVIS_COOKBOOKS_TEST_BRANCH="$(cat .test-branch 2>/dev/null)"; fi
install.2
2570.01s$ export GIT_DESC="$(git describe --always --dirty --tags)"
install.3
2580.69s$ rvm use 3.3.5 --install --binary --fuzzy
259Using /home/travis/.rvm/gems/ruby-3.3.5
install.4
2600.66s$ gem install bundler:2.5.21
261Fetching bundler-2.5.21.gem
262GemWrappers: Can not wrap not executable file: /home/travis/.rvm/gems/ruby-3.3.5/bin/bundler.lock
263GemWrappers: Can not wrap not executable file: /home/travis/.rvm/gems/ruby-3.3.5/bin/bundle.lock
264Successfully installed bundler-2.5.21
2651 gem installed
install.5
26621.42s$ bundle install --jobs=3 --retry=2 --path=vendor/bundle
267[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
268Bundler 2.5.21 is running, but your lockfile was generated with 2.5.13. Installing Bundler 2.5.13 and restarting using that version.
269Fetching gem metadata from https://rubygems.org/.
270Fetching bundler 2.5.13
271Installing bundler 2.5.13
272[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
273Fetching https://github.com/travis-ci/travis-packer-build
274Fetching gem metadata from https://rubygems.org/.........
275Fetching https://github.com/travis-ci/travis-packer-build
276Fetching rake 13.2.1
277Installing rake 13.2.1
278Fetching concurrent-ruby 1.3.4
279Fetching minitest 5.25.1
280Fetching thread_safe 0.3.6
281Installing concurrent-ruby 1.3.4
282Installing minitest 5.25.1
283Installing thread_safe 0.3.6
284Fetching public_suffix 6.0.1
285Installing public_suffix 6.0.1
286Fetching ast 2.4.2
287Installing ast 2.4.2
288Fetching coderay 1.1.3
289Fetching diff-lcs 1.5.1
290Fetching docile 1.4.1
291Installing coderay 1.1.3
292Installing diff-lcs 1.5.1
293Installing docile 1.4.1
294Fetching erubis 2.7.0
295Fetching multipart-post 2.4.1
296Fetching libyajl2 2.1.0
297Installing multipart-post 2.4.1
298Installing erubis 2.7.0
299Fetching racc 1.8.1
300Installing libyajl2 2.1.0 with native extensions
301Installing racc 1.8.1 with native extensions
302Fetching rufus-lru 1.1.0
303Installing rufus-lru 1.1.0
304Fetching polyglot 0.3.5
305Installing polyglot 0.3.5
306Fetching multi_json 1.15.0
307Installing multi_json 1.15.0
308Fetching net-http-persistent 2.9.4
309Installing net-http-persistent 2.9.4
310Fetching net-http-pipeline 1.0.1
311Installing net-http-pipeline 1.0.1
312Fetching rchardet 1.8.0
313Installing rchardet 1.8.0
314Fetching json 2.7.2
315Installing json 2.7.2 with native extensions
316Fetching language_server-protocol 3.17.0.3
317Installing language_server-protocol 3.17.0.3
318Fetching method_source 1.1.0
319Installing method_source 1.1.0
320Fetching parallel 1.26.3
321Installing parallel 1.26.3
322Fetching rainbow 3.1.1
323Installing rainbow 3.1.1
324Fetching regexp_parser 2.9.2
325Installing regexp_parser 2.9.2
326Fetching strscan 3.1.0
327Installing strscan 3.1.0 with native extensions
328Fetching rspec-support 3.13.1
329Installing rspec-support 3.13.1
330Fetching ruby-progressbar 1.13.0
331Installing ruby-progressbar 1.13.0
332Fetching unicode-display_width 2.5.0
333Installing unicode-display_width 2.5.0
334Fetching simplecov-html 0.12.3
335Installing simplecov-html 0.12.3
336Fetching simplecov_json_formatter 0.1.4
337Installing simplecov_json_formatter 0.1.4
338Fetching uri 0.13.1
339Installing uri 0.13.1
340Fetching tzinfo 1.2.11
341Installing tzinfo 1.2.11
342Fetching addressable 2.8.7
343Installing addressable 2.8.7
344Fetching i18n 1.14.5
345Installing i18n 1.14.5
346Fetching faraday 0.17.6
347Installing faraday 0.17.6
348Fetching treetop 1.6.12
349Installing treetop 1.6.12
350Fetching nokogiri 1.16.7 (x86_64-linux)
351Installing nokogiri 1.16.7 (x86_64-linux)
352Fetching parser 3.3.4.2
353Installing parser 3.3.4.2
354Fetching pry 0.14.2
355Installing pry 0.14.2
356Fetching ffi-yajl 2.6.0
357Installing ffi-yajl 2.6.0 with native extensions
358Fetching rspec-core 3.13.0
359Installing rspec-core 3.13.0
360Fetching rspec-expectations 3.13.2
361Installing rspec-expectations 3.13.2
362Fetching rspec-mocks 3.13.1
363Installing rspec-mocks 3.13.1
364Fetching simplecov 0.22.0
365Installing simplecov 0.22.0
366Fetching git 1.19.1
367Installing git 1.19.1
368Fetching activesupport 5.2.8.1
369Installing activesupport 5.2.8.1
370Fetching faraday_middleware 0.14.0
371Installing faraday_middleware 0.14.0
372Fetching rubocop-ast 1.32.1
373Installing rubocop-ast 1.32.1
374Fetching rexml 3.3.6
375Installing rexml 3.3.6
376Fetching rspec 3.13.0
377Installing rspec 3.13.0
378Fetching gh 0.16.0
379Installing gh 0.16.0
380Fetching rubocop 1.65.1
381Installing rubocop 1.65.1
382Fetching foodcritic 16.3.0
383Installing foodcritic 16.3.0
384Bundle complete! 7 Gemfile dependencies, 56 gems now installed.
385Bundled gems are installed into `./vendor/bundle`
install.6
3861.47s$ ./bin/packer-build-install
387curl -sSLo tmp/packer.zip 'https://releases.hashicorp.com/packer/1.3.3/packer_1.3.3_linux_amd64.zip'
388mkdir -p ~/bin
389unzip -o -d ~/bin tmp/packer.zip
390Archive: tmp/packer.zip
391 inflating: /home/travis/bin/packer
392chmod +x ~/bin/packer
install.7
3930.00s$ ln -sv "${TRAVIS_BUILD_DIR}" "${TRAVIS_BUILD_DIR}/tmp/packer-chef-local"
394'/home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local' -> '/home/travis/build/travis-ci/packer-templates'
3950.04s$ make
396./bin/dump-git-meta ./tmp/git-meta
397HEAD
398ab8e150
399./bin/write-envdir /home/travis/build/travis-ci/packer-templates/tmp/docker-meta 'DOCKER_LOGIN_(USERNAME|PASSWORD|SERVER)'
400./bin/write-envdir /home/travis/build/travis-ci/packer-templates/tmp/job-board-env 'JOB_BOARD'
401The command "make" exited with 0.
4023.54s$ bundle exec make test
403./runtests --env .example.env
404Running isolated with env .example.env
405.example-job-board-register-sardonyx.yml ✓
406.example-node-attributes.yml ✓
407.packer-build-pull-request-false-tmpl.yml ✓
408.packer-build-pull-request-tmpl.yml ✓
409.rubocop.yml ✓
410.rubocop_todo.yml ✓
411.travis.yml ✓
412ci-freebsd-12.yml /home/travis/.rvm/gems/ruby-3.3.5/gems/bundler-2.5.13/lib/bundler/runtime.rb:304:in `check_for_activated_spec!': You have already activated strscan 3.0.9, but your Gemfile requires strscan 3.1.0. Since strscan is a default gem, you can either remove your dependency on it or try updating to a newer version of bundler that supports strscan as a default gem. (Gem::LoadError)
413 from /home/travis/.rvm/gems/ruby-3.3.5/gems/bundler-2.5.13/lib/bundler/runtime.rb:25:in `block in setup'
414 from /home/travis/.rvm/gems/ruby-3.3.5/gems/bundler-2.5.13/lib/bundler/spec_set.rb:191:in `each'
415 from /home/travis/.rvm/gems/ruby-3.3.5/gems/bundler-2.5.13/lib/bundler/spec_set.rb:191:in `each'
416 from /home/travis/.rvm/gems/ruby-3.3.5/gems/bundler-2.5.13/lib/bundler/runtime.rb:24:in `map'
417 from /home/travis/.rvm/gems/ruby-3.3.5/gems/bundler-2.5.13/lib/bundler/runtime.rb:24:in `setup'
418 from /home/travis/.rvm/gems/ruby-3.3.5/gems/bundler-2.5.13/lib/bundler.rb:164:in `setup'
419 from /home/travis/.rvm/gems/ruby-3.3.5/gems/bundler-2.5.13/lib/bundler/setup.rb:16:in `block in <top (required)>'
420 from /home/travis/.rvm/gems/ruby-3.3.5/gems/bundler-2.5.13/lib/bundler/ui/shell.rb:159:in `with_level'
421 from /home/travis/.rvm/gems/ruby-3.3.5/gems/bundler-2.5.13/lib/bundler/ui/shell.rb:111:in `silence'
422 from /home/travis/.rvm/gems/ruby-3.3.5/gems/bundler-2.5.13/lib/bundler/setup.rb:16:in `<top (required)>'
423 from <internal:/home/travis/.rvm/rubies/ruby-3.3.5/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:136:in `require'
424 from <internal:/home/travis/.rvm/rubies/ruby-3.3.5/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:136:in `require'
425make: *** [Makefile:68: test] Error 1
426The command "bundle exec make test" exited with 2.
4273.63s$ make update-gce-images
428bin/gce-image-update $(git grep -lE 'source_image: ubuntu' *.yml)
429ERROR: (gcloud.compute.images.list) You do not currently have an active account selected.
430Please run:
432 $ gcloud auth login
434to obtain new credentials.
436If you have already logged in with a different account, run:
438 $ gcloud config set account ACCOUNT
440to select an already authenticated account to use.
441ERROR: (gcloud.compute.images.list) You do not currently have an active account selected.
442Please run:
444 $ gcloud auth login
446to obtain new credentials.
448If you have already logged in with a different account, run:
450 $ gcloud config set account ACCOUNT
452to select an already authenticated account to use.
453ERROR: (gcloud.compute.images.list) You do not currently have an active account selected.
454Please run:
456 $ gcloud auth login
458to obtain new credentials.
460If you have already logged in with a different account, run:
462 $ gcloud config set account ACCOUNT
464to select an already authenticated account to use.
465The command "make update-gce-images" exited with 0.
4660.01s$ git diff --exit-code
467The command "git diff --exit-code" exited with 0.
4680.01s$ git diff --cached --exit-code
469The command "git diff --cached --exit-code" exited with 0.
4700.15s$ sudo lsof | grep dpkg || true
471The command "sudo lsof | grep dpkg || true" exited with 0.
472243.63s$ travis_retry bundle exec bash -xc 'sudo packer-scripts/run-serverspecs'
473+sudo packer-scripts/run-serverspecs
474+ shopt -s nullglob
475+ export CHEF_PATH=/opt/chef-workstation/bin:/opt/chef-workstation/embedded/bin:/opt/chef/bin
476+ CHEF_PATH=/opt/chef-workstation/bin:/opt/chef-workstation/embedded/bin:/opt/chef/bin
477+ export CHEF_LICENSE=accept-silent
478+ CHEF_LICENSE=accept-silent
479+ 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
480+ 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
481+ export DEBIAN_FRONTEND=noninteractive
482+ DEBIAN_FRONTEND=noninteractive
483+ export RUBYOPT=-W0
484+ RUBYOPT=-W0
485+ : /home/travis/build/travis-ci/packer-templates/tmp
486+ : 'bash -lc'
487+ : docker
488+ [[ docker == \d\o\c\k\e\r ]]
489+ export 'SPEC_ARGS=--tag ~dev --tag ~docker:false'
490+ SPEC_ARGS='--tag ~dev --tag ~docker:false'
491++ uname -m
492+ [[ x86_64 =~ aarch64 ]]
493++ uname -m
494+ [[ x86_64 =~ ppc64 ]]
495+ __install_chef /home/travis/build/travis-ci/packer-templates/tmp
496+ [[ -f /opt/chef-workstation/embedded/bin/rspec ]]
497+ curl -sSL https://omnitruck.chef.io/install.sh
498+ sudo bash -s -- -P chef-workstation -v 22.5.923
499ubuntu 20.04 x86_64
500Getting information for chef-workstation stable 22.5.923 for ubuntu...
501downloading https://omnitruck.chef.io/stable/chef-workstation/metadata?v=22.5.923&p=ubuntu&pv=20.04&m=x86_64
502 to file /tmp/install.sh.6327/metadata.txt
503trying wget...
504sha1 b8c582336804d5986f0f6d3dddeb9bf300d2d2bd
505sha256 b9d73fa16a3f4008e2f4cd2a4d96d482bc8f0fea77c06a3754382e0d940b8d0c
506url https://packages.chef.io/files/stable/chef-workstation/22.5.923/ubuntu/20.04/chef-workstation_22.5.923-1_amd64.deb
507version 22.5.923
508downloaded metadata file looks valid...
509downloading https://packages.chef.io/files/stable/chef-workstation/22.5.923/ubuntu/20.04/chef-workstation_22.5.923-1_amd64.deb
510 to file /tmp/install.sh.6327/chef-workstation_22.5.923-1_amd64.deb
511trying wget...
512Comparing checksum with sha256sum...
513Installing chef-workstation 22.5.923
514installing with dpkg...
515Selecting previously unselected package chef-workstation.
516(Reading database ... 154608 files and directories currently installed.)
517Preparing to unpack .../chef-workstation_22.5.923-1_amd64.deb ...
518Unpacking chef-workstation (22.5.923-1) ...
519Setting up chef-workstation (22.5.923-1) ...
521The Chef Workstation App is available.
523Launch the App by running 'chef-workstation-app'.
524The App will then be available in the system tray.
526Thank you for installing Chef Workstation!
527You can find some tips on getting started at https://docs.chef.io/workstation/getting_started/
529+ __run_retry 2 30 apt-get update -y
530+ local retries=2
531+ shift
532+ local retry_delay=30
533+ shift
534+ cmd=("${@}")
535+ local cmd
536+ local i=0
537+ true
538+ [[ 0 -gt 2 ]]
539+ apt-get update -y
540Ign:1 http://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 InRelease
541Get:2 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal InRelease [265 kB]
542Get:3 http://package.perforce.com/apt/ubuntu focal InRelease [7,646 B]
543Get:4 https://download.docker.com/linux/ubuntu focal InRelease [57.7 kB]
544Hit:5 https://public.dhe.ibm.com/software/server/POWER/Linux/toolchain/at/ubuntu focal InRelease
545Hit:6 http://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 Release
546Get:7 http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease [129 kB]
547Get:8 https://ppa1.novemberain.com/rabbitmq/rabbitmq-erlang/deb/ubuntu focal InRelease [5,185 B]
548Get:9 http://security.ubuntu.com/ubuntu focal-security InRelease [128 kB]
549Get:10 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates InRelease [128 kB]
550Get:11 https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu focal InRelease [5,182 B]
551Get:12 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-backports InRelease [128 kB]
552Get:13 https://ppa2.novemberain.com/rabbitmq/rabbitmq-erlang/deb/ubuntu focal InRelease [5,185 B]
553Get:14 http://package.perforce.com/apt/ubuntu focal/release i386 Packages [4,332 B]
554Get:15 https://packages.redis.io/deb focal InRelease [3,821 B]
555Get:16 https://download.docker.com/linux/ubuntu focal/stable amd64 Packages [61.9 kB]
556Get:17 http://package.perforce.com/apt/ubuntu focal/release amd64 Packages [43.5 kB]
557Get:18 https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu focal InRelease [5,182 B]
558Get:20 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/main i386 Packages [930 kB]
559Ign:21 https://ppa1.novemberain.com/rabbitmq/rabbitmq-erlang/deb/ubuntu focal/main amd64 Packages
560Get:21 https://ppa1.novemberain.com/rabbitmq/rabbitmq-erlang/deb/ubuntu focal/main amd64 Packages [120 kB]
561Get:22 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/main amd64 Packages [1,275 kB]
562Get:23 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/main Translation-en [709 kB]
563Get:24 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/main amd64 c-n-f Metadata [29.5 kB]
564Get:25 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/restricted amd64 Packages [33.4 kB]
565Get:26 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/restricted i386 Packages [10.1 kB]
566Get:27 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/restricted Translation-en [6,851 B]
567Get:28 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/restricted amd64 c-n-f Metadata [392 B]
568Get:29 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/universe i386 Packages [5,999 kB]
569Get:30 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB]
570Ign:31 https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu focal/main amd64 Packages
571Get:31 https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu focal/main amd64 Packages [18.0 kB]
572Get:32 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/universe Translation-en [7,220 kB]
573Get:33 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/universe amd64 c-n-f Metadata [265 kB]
574Get:34 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [177 kB]
575Get:35 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/multiverse i386 Packages [88.9 kB]
576Get:36 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/multiverse Translation-en [128 kB]
577Get:37 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/multiverse amd64 c-n-f Metadata [9,136 B]
578Get:38 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/main i386 Packages [1,286 kB]
579Get:39 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [4,488 kB]
580Get:40 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/main Translation-en [823 kB]
581Get:41 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/main amd64 c-n-f Metadata [17.8 kB]
582Get:42 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/restricted i386 Packages [48.0 kB]
583Get:43 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [4,188 kB]
584Get:44 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/restricted Translation-en [581 kB]
585Get:45 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/restricted amd64 c-n-f Metadata [548 B]
586Get:46 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/universe i386 Packages [1,004 kB]
587Get:47 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1,561 kB]
588Get:48 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/universe Translation-en [413 kB]
589Get:49 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f Metadata [28.3 kB]
590Get:50 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/multiverse i386 Packages [9,592 B]
591Get:51 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [33.5 kB]
592Ign:52 https://ppa2.novemberain.com/rabbitmq/rabbitmq-erlang/deb/ubuntu focal/main amd64 Packages
593Get:53 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/multiverse Translation-en [8,589 B]
594Get:54 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 c-n-f Metadata [616 B]
595Get:55 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-backports/main i386 Packages [43.4 kB]
596Get:56 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages [55.2 kB]
597Get:57 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-backports/main Translation-en [18.8 kB]
598Get:58 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-backports/main amd64 c-n-f Metadata [1,420 B]
599Get:52 https://ppa2.novemberain.com/rabbitmq/rabbitmq-erlang/deb/ubuntu focal/main amd64 Packages [120 kB]
600Get:59 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-backports/restricted amd64 c-n-f Metadata [116 B]
601Get:60 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-backports/universe i386 Packages [15.4 kB]
602Get:61 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [28.6 kB]
603Get:62 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-backports/universe Translation-en [17.6 kB]
604Get:63 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-backports/universe amd64 c-n-f Metadata [880 B]
605Get:64 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-backports/multiverse amd64 c-n-f Metadata [116 B]
606Get:65 https://packages.redis.io/deb focal/main all Packages [6,199 B]
607Ign:66 https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu focal/main amd64 Packages
608Get:66 https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu focal/main amd64 Packages [18.0 kB]
609Get:67 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 Packages [570 kB]
610Get:68 https://packages.redis.io/deb focal/main i386 Packages [6,094 B]
611Get:69 http://security.ubuntu.com/ubuntu focal-security/main i386 Packages [1,011 kB]
612Get:70 https://packages.redis.io/deb focal/main amd64 Packages [29.6 kB]
613Get:71 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [4,025 kB]
614Get:72 http://security.ubuntu.com/ubuntu focal-security/main Translation-en [710 kB]
615Get:73 http://security.ubuntu.com/ubuntu focal-security/main amd64 c-n-f Metadata [14.3 kB]
616Get:74 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [4,036 kB]
617Get:75 http://security.ubuntu.com/ubuntu focal-security/restricted Translation-en [560 kB]
618Get:76 http://security.ubuntu.com/ubuntu focal-security/universe i386 Packages [843 kB]
619Get:77 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [1,274 kB]
620Get:78 http://security.ubuntu.com/ubuntu focal-security/universe Translation-en [294 kB]
621Get:79 http://security.ubuntu.com/ubuntu focal-security/universe amd64 c-n-f Metadata [21.5 kB]
622Fetched 57.5 MB in 4s (13.9 MB/s)
623Reading package lists... Done
624N: 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'
625+ return
626+ __run_retry 2 30 apt-get install libc-client2007e-dev mysql-client
627+ local retries=2
628+ shift
629+ local retry_delay=30
630+ shift
631+ cmd=("${@}")
632+ local cmd
633+ local i=0
634+ true
635+ [[ 0 -gt 2 ]]
636+ apt-get install libc-client2007e-dev mysql-client
637Reading package lists... Done
638Building dependency tree
639Reading state information... Done
640libc-client2007e-dev is already the newest version (8:2007f~dfsg-7).
641mysql-client is already the newest version (8.0.39-0ubuntu0.20.04.1).
642The following packages were automatically installed and are no longer required:
643 amd64-microcode intel-microcode iucode-tool libglu1-mesa
644 libjs-jquery-metadata libjs-jquery-tablesorter libnotify4 libwxbase3.0-0v5
645 libwxgtk3.0-gtk3-0v5 linux-modules-5.4.0-195-generic postgresql-client-12
646Use 'sudo apt autoremove' to remove them.
6470 upgraded, 0 newly installed, 0 to remove and 77 not upgraded.
648+ return
649+ __create_sudo_bash
650+ cat
651+ chmod 0755 /tmp/sudo-bash
652+ __chown_travis_dirs /home/travis/build/travis-ci/packer-templates/tmp
653+ chown -R travis:travis /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local /var/tmp
654+ for suite in ${SPEC_SUITES/,/ }
655+ __run_suite travis_packer_templates /home/travis/build/travis-ci/packer-templates/tmp 'bash -lc'
656+ local suite=travis_packer_templates
657+ local chef_prefix=/home/travis/build/travis-ci/packer-templates/tmp
658+ local 'runner=bash -lc'
659+ local cookbook_dir
660++ __suite_cookbook_dir travis_packer_templates /home/travis/build/travis-ci/packer-templates/tmp
661++ local suite=travis_packer_templates
662++ local chef_prefix=/home/travis/build/travis-ci/packer-templates/tmp
663++ local spec_dir
664+++ head -1
665+++ 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-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
666++ spec_dir=/home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates/spec
667++ dirname /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates/spec
668+ cookbook_dir=/home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates
669+ pushd /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates
670+ __run_suite_as_travis travis_packer_templates /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates 'bash -lc'
671+ local suite=travis_packer_templates
672+ local cookbook_dir=/home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates
673+ local 'runner=bash -lc'
674+ set +o errexit
675++ uname -m
676++ uname -m
677+ bash -lc '
678set -o xtrace
679export PATH="/opt/chef-workstation/bin:/opt/chef-workstation/embedded/bin:/opt/chef/bin:$PATH"
680export TERM=xterm
681export PACKER_BUILDER_TYPE=docker
682export RUBYOPT=-W0
683if [[ x86_64 =~ ppc64 ]]; then
684 gem install serverspec
685else
686 chef gem install serverspec
687fi
688unset GEM_PATH
689cd /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates
690sudo systemctl start xvfb.service
691set -o errexit
692if [[ x86_64 =~ ppc64 ]]; then
693 rspec --tag ~dev --tag ~docker:false \
694 --format documentation \
695 --format json \
696 --out /home/travis/.travis_packer_templates_rspec.json
697else
698 chef exec rspec --tag ~dev --tag ~docker:false \
699 --format documentation \
700 --format json \
701 --out /home/travis/.travis_packer_templates_rspec.json
702fi
704+ 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:/home/travis/.gimme/versions/go1.23.0.linux.amd64/bin:/usr/local/maven-3.9.4/bin:/usr/local/cmake-3.29.0/bin:/usr/local/clang-18.1.8/bin:/home/travis/.gimme/versions/go1.23.0.linux.amd64/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
705+ 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:/home/travis/.gimme/versions/go1.23.0.linux.amd64/bin:/usr/local/maven-3.9.4/bin:/usr/local/cmake-3.29.0/bin:/usr/local/clang-18.1.8/bin:/home/travis/.gimme/versions/go1.23.0.linux.amd64/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
706+ export TERM=xterm
707+ TERM=xterm
708+ export PACKER_BUILDER_TYPE=docker
709+ PACKER_BUILDER_TYPE=docker
710+ export RUBYOPT=-W0
711+ RUBYOPT=-W0
712+ [[ x86_64 =~ ppc64 ]]
713+ chef gem install serverspec
714Fetching serverspec-2.42.3.gem
715WARNING: You don't have /home/travis/.chefdk/gem/ruby/3.0.0/bin in your PATH,
716 gem executables will not run.
717Successfully installed serverspec-2.42.3
7181 gem installed
719+ unset GEM_PATH
720+ cd /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates
721+ sudo systemctl start xvfb.service
722+ set -o errexit
723+ [[ x86_64 =~ ppc64 ]]
724+ chef exec rspec --tag '~dev' --tag '~docker:false' --format documentation --format json --out /home/travis/.travis_packer_templates_rspec.json
725Run options: exclude {:dev=>true, :docker=>false}
727Randomized with seed 58636
729ccache installation
730 ccache commands are executed
731 Command "ccache -M 0.5"
732 stdout
733 is expected to match /Set cache size limit to (512\.0 Mbytes|500\.0 MB)/
734 Command "ccache -s"
735 stdout
736 is expected to include "cache directory", "cache hit", "cache miss", "files in cache", and "max cache size"
737 Command "ccache -V"
738 exit_status
739 is expected to eq 0
741sudoers setup
742 File "/etc/sudoers"
743 is expected to be file
744 is expected to exist
745 is expected to be owned by "root"
746 is expected to be mode 440
747 content
748 is expected to match /^#includedir \/etc\/sudoers\.d$/
749 File "/etc/sudoers.d/travis"
750 is expected to exist
751 is expected to be owned by "root"
752 is expected to be mode 440
753 is expected to be file
754 content
755 is expected to match /^Defaults !env_reset$/
756 content
757 is expected to match /^Defaults !mail_badpass$/
758 content
759 is expected to match /^Defaults !authenticate$/
760 content
761 is expected to match /^travis ALL=\(ALL\) NOPASSWD:ALL$/
763Command "ssh -V"
764 stderr
765 is expected to match /OpenSSH/
767dictionaries commands
768 Command "look kid"
769 stdout
770 is expected to match /^kidding$/
771 stderr
772 is expected to be empty
773 stdout
774 is expected to match /^kidnappers$/
775 stdout
776 is expected to match /^kidney$/
778User "travis"
779 is expected to exist
780 is expected to have login shell "/bin/bash"
781 is expected to have home directory "/home/travis"
783redis installation
784 redis commands
785 Command "redis-cli -p 16379 PING"
786 stdout
787 is expected to match /^PONG$/
788 Command "redis-cli -p 16379 GET test_key | cat"
789 stdout
790 is expected to match /^test_value$/
791 Command "redis-server --version"
792 exit_status
793 is expected to eq 0
794 stdout
795 is expected to match /^Redis /
797go toolchain installation
798 Command "go env GOROOT"
799 stdout
800 is expected to match /\/\.gimme\//
801 Command "go version"
802 stdout
803 is expected to match /^go version go/
804 compiling something
805 Command "go run /tmp/packer-templates-20241007-7928-254nu9-rspec/example.go"
806 stdout
807 is expected to match /Good morrow, 19021/
809gcc installation
810 Command "gcc -v"
811 stderr
812 is expected to match /^gcc version/
813 Command "cd /tmp/packer-templates-20241007-7928-254nu9-rspec/empty && gcc"
814 stderr
815 is expected to include "no input files"
816 Command "
817 cd /tmp/packer-templates-20241007-7928-254nu9-rspec;
818 gcc -Wall -o hai hai.c;
819 ./hai there
820 "
821 stdout
822 is expected to match /^hai 2$/
824mongodb installation
825 Command "mongo --version"
826 exit_status
827 is expected to eq 0
828 stdout
829 is expected to match /MongoDB shell/
830 mongo commands
831 Command "mongo --eval "var myCursor = db.testData.find( { x: 6 }); myCursor.forEach(printjson);""
832 stdout
833 is expected to match /{ "_id" : ObjectId\("\w+"\), "x" : 6 }/
834 Service "mongod"
835 is expected not to be enabled
836 is expected not to be running
838mercurial installation
839 mecurial commands are executed
840 Command "cd /tmp/packer-templates-20241007-7928-254nu9-rspec/hg-project; hg status; hg add .; hg status"
841 stdout
842 is expected to match "A test-file.txt"
843 stdout
844 is expected to match "\\? test-file.txt"
845 Command "hg version"
846 exit_status
847 is expected to eq 0
848 stdout
849 is expected to match /^Mercurial Distributed SCM \(version \d/
851File "/opt"
852 is expected to be directory
853 is expected to be writable
855Command "rsync --version"
856 exit_status
857 is expected to eq 0
858 stdout
859 is expected to match /rsync.+version/
861emacs installation
862 Command "emacs --version"
863 exit_status
864 is expected to eq 0
865 editing
866 File "/tmp/packer-templates-20241007-7928-254nu9-rspec/test.txt"
867 content
868 is expected to match "poof"
870Command "ldconfig -V"
871 stdout
872 is expected to include "ldconfig "
873 exit_status
874 is expected to eq 0
876docker-compose installation
877 Command "docker-compose --version"
878 stdout
879 is expected to match /^docker-compose version:?\s+\d+\.\d+\.\d+/ (FAILED - 1)
880 exit_status
881 is expected to eq 0
883xserver installation
884 Command "Xorg -version"
885 exit_status
886 is expected to eq 0
887 Command "DISPLAY=:99.0 xset -q"
888 stderr
889 is expected to be empty
890 exit_status
891 is expected to eq 0
892 stdout
893 is expected to match /^Keyboard Control:/
894 Command "xvfb-run -a xdpyinfo"
895 stdout
896 is expected to match /^\s+GLX$/
897 stderr
898 is expected to be empty
899 exit_status
900 is expected to eq 0
902unarchivers installation
903 Command "dpkg -s libbz2-dev"
904 stdout
905 is expected to match "Status: install ok installed"
906 Command "
907 gzip /tmp/packer-templates-20241007-7928-254nu9-rspec/test.txt;
908 rm /tmp/packer-templates-20241007-7928-254nu9-rspec/test.txt;
909 ls /tmp/packer-templates-20241007-7928-254nu9-rspec;
910 gzip -d /tmp/packer-templates-20241007-7928-254nu9-rspec/test.txt.gz;
911 cat /tmp/packer-templates-20241007-7928-254nu9-rspec/test.txt
912 "
913 stdout
914 is expected to match "Konstantin broke all the things."
915 stdout
916 is expected to include "test.txt.gz"
917 Command "unzip -version"
918 exit_status
919 is expected to eq 0
920 stdout
921 is expected to match /^UnZip \d/
922 Command "gzip --version"
923 exit_status
924 is expected to eq 0
925 stdout
926 is expected to match /^gzip \d/
927 Command "
928 cd /tmp/packer-templates-20241007-7928-254nu9-rspec;
929 zip test.zip test.txt;
930 rm test.txt;
931 ls /tmp/packer-templates-20241007-7928-254nu9-rspec;
932 unzip test.zip;
933 cat test.txt
934 "
935 stdout
936 is expected to include "test.zip"
937 stdout
938 is expected to match "Konstantin broke all the things."
939 Command "zip --version"
940 stdout
941 is expected to match /Zip \d/
942 exit_status
943 is expected to eq 0
944 Command "
945 bzip2 -z /tmp/packer-templates-20241007-7928-254nu9-rspec/test.txt;
946 rm /tmp/packer-templates-20241007-7928-254nu9-rspec/test.txt;
947 ls /tmp/packer-templates-20241007-7928-254nu9-rspec;
948 bzip2 -d /tmp/packer-templates-20241007-7928-254nu9-rspec/test.txt.bz2;
949 cat /tmp/packer-templates-20241007-7928-254nu9-rspec/test.txt
950 "
951 stdout
952 is expected to include "test.txt.bz2"
953 stdout
954 is expected to match "Konstantin broke all the things."
956ssh access
957 File "/home/travis/.ssh/authorized_keys"
958 is expected to be readable
959 is expected to exist
960 is expected to be writable
961 size
962 is expected to be positive
963 File "/home/travis/.ssh/known_hosts"
964 is expected to be writable
965 is expected to be readable
966 is expected to exist
967 size
968 is expected to be positive
970apt installation
971 /var/lib/apt/lists/*Packages*
972 is non-empty
973 apt architecture
974 Command "dpkg --print-foreign-architectures"
975 stdout
976 is expected to match /i386/
977 Command "dpkg --print-architecture"
978 stdout
979 is expected to match /amd64/
980 Command "apt-get -v"
981 exit_status
982 is expected to eq 0
983 Command "apt-cache search ubuntu-restricted-extras"
984 stdout
985 is expected not to be empty
986 apt commands
987 Command "sudo apt-get update -y"
988 stdout
989 is expected to match /http/
990 Command "sudo apt-get install -y language-pack-pt"
991 stdout
992 is expected to match /Reading state/
993 File "/var/lib/apt/lists"
994 is expected to be directory
996Command "iptables --version"
997 stdout
998 is expected to include "iptables"
999 exit_status
1000 is expected to eq 0
1002memcached installation
1003 memcached commands
1004 Service "memcached"
1005 is expected to be running
1006 Command "echo 'stats' | nc -w 5 127.0.0.1 11211"
1007 stdout
1008 is expected to match "version"
1009 Command "memcached -h"
1010 stdout
1011 is expected to match /^memcached \d/
1012 exit_status
1013 is expected to eq 0
1014 Package "memcached"
1015 is expected to be installed
1017sysctl installation
1018 Command "sysctl -a"
1019 stdout
1020 is expected to include "kernel.sched_child_runs_first"
1021 Command "sysctl -V"
1022 exit_status
1023 is expected to eq 0
1025Command "mysql --version"
1026 exit_status
1027 is expected to eq 0
1028 stdout
1029 is expected to match /^mysql /
1031nodejs interpreter
1032 Command "node -e "console.log('Konstantin broke all the thingz')""
1033 stdout
1034 is expected to match "Konstantin broke all the thingz"
1035 Command "node -v"
1036 stdout
1037 is expected to match /v\d/
1038 exit_status
1039 is expected to eq 0
1041File "/etc/cloud/templates/hosts.ubuntu.tmpl"
1042 is expected to be exist
1043 content
1044 is expected to match /managed by chef/i
1045 content
1046 is expected to match /travis_build_environment/i
1048Command "cmake --version"
1049 exit_status
1050 is expected to eq 0
1051 stdout
1052 is expected to match /^cmake version [23]/
1054bazaar installation
1055 Command "bzr version"
1056 stdout
1057 is expected to match /Bazaar \(bzr\)|Breezy \(brz\)/
1058 exit_status
1059 is expected to eq 0
1060 bazaar commands
1061 Command "
1062 cd /tmp/packer-templates-20241007-7928-254nu9-rspec/bzr-project;
1063 bzr status;
1064 bzr add test.txt;
1065 bzr status;
1067 stdout
1068 is expected to match /^unknown:/
1069 stdout
1070 is expected to match /^adding test\.txt/
1071 stdout
1072 is expected to match /^ test\.txt/
1073 stdout
1074 is expected to match /^ test\.txt/
1075 stdout
1076 is expected to match /^added:/
1078dictionaries installation
1079 Package "wamerican"
1080 is expected to be installed
1082phantomjs installation
1083 Command "phantomjs -v"
1084 stdout
1085 is expected to match /\d/
1086 exit_status
1087 is expected to eq 0
1088 Command "phantomjs /tmp/packer-templates-20241007-7928-254nu9-rspec/test.js"
1089 stdout
1090 is expected to match "Status: success"
1092php environment
1093 Command "PHPENV_VERSION=system phpenv exec php-fpm --version"
1094 stdout
1095 is expected to match /^PHP \d+\.\d+\.\d+.+fpm-fcgi/
1096 exit_status
1097 is expected to eq 0
1098 Command "PHPENV_VERSION=system phpenv exec php -m --version"
1099 stdout
1100 is expected to include "Core", "PDO", "Phar", "SPL", "Xdebug", "bcmath", "ctype", "curl", "date", "dom", "exif", "filter", "ftp", "gd", "hash", "iconv", "json", "libxml", "mbstring", "pcre", "pdo_mysql", "pdo_sqlite", "posix", "readline", "sqlite3", "standard", "sysvsem", "sysvshm", "tidy", "xmlrpc", "xmlwriter", "xsl", "zip", and "zlib"
1101 File "/home/travis/.pearrc"
1102 is expected not to exist
1104Command "heroku version"
1105 stdout
1106 is expected to match /^heroku/
1108ragel installation
1109 Package "ragel"
1110 is expected to be installed
1111 ragel commands
1112 add a ragel file and execute a ragel command
1113 File "/tmp/packer-templates-20241007-7928-254nu9-rspec/hello_world.rb"
1114 content
1115 is expected to match /^puts "Hello World"/
1116 Command "ragel -v"
1117 stdout
1118 is expected to match /^Ragel /
1119 exit_status
1120 is expected to eq 0
1122File "/etc/cloud/templates/hosts.debian.tmpl"
1123 is expected to be exist
1124 content
1125 is expected to match /travis_build_environment/i
1126 content
1127 is expected to match /managed by chef/i
1129File "/etc/cloud/templates/sources.list.ubuntu.tmpl"
1130 content
1131 is expected to match /managed by chef/i
1132 content
1133 is expected to match /travis_build_environment/i
1135clang installation
1136 Command "clang -v"
1137 exit_status
1138 is expected to eq 0
1139 clang command
1140 Command "clang -help"
1141 stdout
1142 is expected to include "OVERVIEW: clang LLVM compiler" and "OPTIONS:"
1144postgresql installation
1145 Command " psql --version"
1146 exit_status
1147 is expected to eq 0
1148 stdout
1149 is expected to match /^psql.+(9\.[3-6]+\.[0-9]+|10\.[0-9])/ (FAILED - 2)
1150 psql commands
1151 Command " psql -U travis -ltA"
1152 stdout
1153 is expected to match /^test_db\|/
1154 with a test table
1155 Command " psql -U travis -tA -c '\dt' test_db"
1156 stderr
1157 is expected to be empty
1158 stdout
1159 is expected to match /^public\|test_table\|/
1161Command "packer version"
1162 exit_status
1163 is expected to eq 0
1164 stdout
1165 is expected to match /^Packer v\d/
1167go installation
1168 Command "gimme -l"
1169 stdout
1170 is expected not to be empty
1172imagemagick installation
1173 imagemagick commands
1174 Command "identify /tmp/packer-templates-20241007-7928-254nu9-rspec/logo.gif"
1175 exit_status
1176 is expected to eq 0
1177 stdout
1178 is expected to match /logo\.gif GIF/
1179 Command "convert --version"
1180 exit_status
1181 is expected to eq 0
1182 stdout
1183 is expected to match /imagemagick/i
1185ruby interpreter
1186 Command "ruby --version"
1187 stdout
1188 is expected to match /^ruby 3\.\d+\.\d+/
1189 stderr
1190 is expected to be empty
1191 Command "ruby -e 'puts RUBY_ENGINE'"
1192 stdout
1193 is expected to match /^ruby/
1194 Command "ruby -e 'puts "Konstanin broke all the things!"'"
1195 stdout
1196 is expected to match /^Konstanin broke all the things!$/
1198rvm installation
1199 File "/home/travis/.rvm/user/db"
1200 is expected to exist
1201 is expected to be writable
1202 is expected to be readable
1203 rvm commands
1204 Command "rvm default do echo whatever"
1205 stderr
1206 is expected not to include "Warning!"
1207 stdout
1208 is expected not to include "Warning!"
1209 stdout
1210 is expected to include "whatever"
1211 Command "rvm list"
1212 stdout
1213 is expected to match /ruby-2\.[234567]\.\d/
1214 stdout
1215 is expected to include "current"
1216 stderr
1217 is expected to be empty
1218 Command "rvm version"
1219 stderr
1220 is expected to be empty
1221 stdout
1222 is expected to match /^rvm /
1223 exit_status
1224 is expected to eq 0
1225 File "/home/travis/.rvmrc"
1226 is expected to be writable
1227 is expected to be readable
1228 is expected to exist
1230File "/etc/cloud/templates/sources.list.tmpl"
1231 content
1232 is expected to match /managed by chef/i
1233 content
1234 is expected to match /travis_build_environment/i
1236openssl installation
1237 Command "openssl version"
1238 exit_status
1239 is expected to eq 0
1240 stdout
1241 is expected to match /^OpenSSL/
1242 openssl commands
1243******************************************************************************************
1244 stdout
1245 is expected to match "Konstantin broke all the things."
1246 Command "echo "Konstantin broke all the things." | openssl enc -base64"
1247 stdout
1248************************************************************************************
1250perl interpreter
1251 Command "perl -e 'print "Hello Mr Euler!\n"'"
1252 stdout
1253 is expected to match /^Hello Mr Euler!/
1254 stderr
1255 is expected to be empty
1256 Command "perl --version"
1257 stdout
1258 is expected to match /perl 5, version \d/
1259 stderr
1260 is expected to be empty
1262git installation
1263 git commands
1264 Command "cd /tmp/packer-templates-20241007-7928-254nu9-rspec/git-project; git status; git add test-file.txt; git status; git add test-file.txt; git rm -f test-file.txt; git status"
1265 stdout
1266 is expected to include "Untracked files:", "test-file.txt", "Changes to be committed:", and "new file: test-file.txt"
1267 stdout
1268 is expected to match /nothing to commit/
1269 Package "git"
1270 is expected to be installed
1271 Command "git --version"
1272 exit_status
1273 is expected to eq 0
1274 stdout
1275 is expected to match /^git version (2\.|1\.[89])/
1276 Command "git config user.name"
1277 stdout
1278 is expected to match /travis/i
1279 Command "git config user.email"
1280 stdout
1281 is expected to match /travis@example\.org/
1283md5deep installation
1284 Command "md5deep -V"
1285 stdout
1286 is expected to match "This program is a work of the US Government."
1287 Command "md5deep /tmp/packer-templates-20241007-7928-254nu9-rspec/md5deep.txt"
1288 stdout
1289 is expected to match /^29c04665afa6ef18edc38824ceaff6ab\b/
1290 Command "md5deep -v"
1291 exit_status
1292 is expected to eq 0
1294python environment
1295 Command "true ; wheel version"
1296 stderr
1297 is expected to be empty (FAILED - 3)
1298 stdout
1299 is expected to match /^wheel \d+\.\d+\.\d+/ (FAILED - 4)
1300 Command "true ; nosetests --version"
1301 stderr
1302 is expected to be empty (FAILED - 5)
1303 stdout
1304 is expected to match /^nosetests version \d+\.\d+\.\d+/ (FAILED - 6)
1305 Command "true ; python -c 'import sys;from unittest import mock;sys.stdout.write(mock.__version__ + "\n")'"
1306 stderr
1307 is expected to be empty
1308 stdout
1309 is expected to match /^\d+\.\d+/
1310 Command "true ; pip --version"
1311 stdout
1312 is expected to match /^pip \d+\.\d+(\.\d+)?/
1313 stderr
1314 is expected to be empty
1315 Command "true ; py.test --version"
1316 stderr
1317 is expected to be empty (FAILED - 7)
1318 stdout
1319 is expected to match /pytest (version )?\d+\.\d+\.\d+/ (FAILED - 8)
1321sqlite installation
1322 Command "sqlite3 -version"
1323 exit_status
1324 is expected to eq 0
1325 stdout
1326 is expected to match /^\d\.\d/
1327 sqlite commands are executed
1328 Command "
1329 sqlite3 /tmp/packer-templates-20241007-7928-254nu9-rspec/test.db "
1330 CREATE TABLE hats (
1331 id INTEGER PRIMARY KEY,
1332 name TEXT,
1333 style INTEGER
1334 );
1335 INSERT INTO hats VALUES(1, 'floppy', 9001);
1336 SELECT * FROM hats;
1339 stdout
1340 is expected to match "1|floppy|9001"
1342File "/.node-attributes.yml"
1343 is expected to exist
1344 content_as_yaml
1345 is expected to include "__timestamp"
1347File "/etc/cloud/templates/sources.list.debian.tmpl"
1348 content
1349 is expected to match /travis_build_environment/i
1350 content
1351 is expected to match /managed by chef/i
1353vim installation
1354 File "/tmp/packer-templates-20241007-7928-254nu9-rspec/test.txt"
1355 content
1356 is expected to match /there/
1357 Command "vim --version"
1358 exit_status
1359 is expected to eq 0
1360 stderr
1361 is expected to be empty
1362 stdout
1363 is expected not to be empty
1365subversion installation
1366 Command "svn --version"
1367 exit_status
1368 is expected to eq 0
1369 subversion commands are executed
1370 File "/tmp/packer-templates-20241007-7928-254nu9-rspec/svn-project/README.txt"
1371 content
1372 is expected to match "This is a Subversion repository;"
1374perlbrew installation
1375 Command "perlbrew list"
1376 exit_status
1377 is expected to eq 0
1378 Command "perlbrew --version"
1379 exit_status
1380 is expected to eq 0
1381 stdout
1382 is expected to match /perl5\/perlbrew\/bin\/perlbrew.+App::perlbrew\/\d+\.\d+/
1384File "/etc/cloud/templates"
1385 is expected to be directory
1387Command "curl --version | head -1"
1388 exit_status
1389 is expected to eq 0
1390 stdout
1391 is expected to include "curl"
1393Command "bats --version"
1394 stdout
1395 is expected to match /^Bats \d/
1397Command "shellcheck --version"
1398 stdout
1399 is expected to match /^version: \d+\.\d+\.\d+/
1401jq installation
1402 Command "jq -r '.stuff|.[]|select(."@type"=="smarm")|.msg[0]' </tmp/packer-templates-20241007-7928-254nu9-rspec/test.json"
1403 stdout
1404 is expected to match /^Konstantin broke all the things/
1405 Command "jq -V"
1406 exit_status
1407 is expected to eq 0
1409jdk installation
1410 should have JAVA_HOME defined
1411 Command "java -version"
1412 exit_status
1413 is expected to eq 0
1414 stderr
1415 is expected to match /^(java|openjdk)/
1416 java command
1417 Command "cd /tmp/packer-templates-20241007-7928-254nu9-rspec && java Hello"
1418 stdout
1419 is expected to match "Hello World!"
1421python3 interpreter
1422 Command "python3 -m this"
1423 stderr
1424 is expected to be empty
1425 stdout
1426 is expected to match /Readability counts\./
1427 python3 --version
1428 is expected to match /^Python \d+\.\d+\.\d+/
1430File "/home/travis/bin"
1431 is expected to be writable
1432 is expected to be directory
1434Command "lsof -v 2>&1 | head -2 | tail -1"
1435 exit_status
1436 is expected to eq 0
1437 stdout
1438 is expected to match /revision:/
1440mysql installation
1441 mysql commands
1442 Command "mysql -u root -e 'select "hai"'"
1443 stdout
1444 is expected to match /hai/
1445 exit_status
1446 is expected to eq 0
1447 stderr
1448 is expected to be empty
1449 Command "echo "SHOW VARIABLES LIKE 'performance_schema'" | mysql"
1450 stdout
1451 is expected to include "performance_schema\tOFF" (FAILED - 9)
1452 Command "mysql -u travis -e 'select "hai"'"
1453 exit_status
1454 is expected to eq 0
1455 stdout
1456 is expected to match /hai/
1457 stderr
1458 is expected to be empty
1459 Command "echo "SELECT id FROM test" | mysql travis"
1460 stdout
1461 is expected to match /^4$/
1462 Command "echo "SHOW DATABASES" | mysql"
1463 stdout
1464 is expected to match /^travis$/
1465 File "/etc/mysql/conf.d/performance-schema.cnf"
1466 is expected to exist (FAILED - 10)
1467 is expected to be owned by "root" (FAILED - 11)
1468 is expected to be grouped into "root" (FAILED - 12)
1469 is expected to be readable (FAILED - 13)
1470 File "/home/travis/.my.cnf"
1471 is expected to be owned by "travis"
1472 is expected to be grouped into "travis"
1473 is expected to be readable
1474 is expected to exist
1476php interpreter
1477 Command "PHPENV_VERSION=system phpenv exec php --version"
1478 stdout
1479 is expected to match /^PHP \d+\.\d+/
1480 stderr
1481 is expected to be empty
1482 Command "PHPENV_VERSION=system phpenv exec php -r 'foreach(range(1, 5) as $i) echo $i * 2 . " ";'"
1483 stdout
1484 is expected to match /^2 4 6 8 10/
1485 stderr
1486 is expected to be empty
1488ruby installation
1489 Command "rspec --version"
1490 stderr
1491 is expected to be empty
1492 stdout
1493 is expected to match /^RSpec \d+\.\d+/
1494 Command "gem --version"
1495 stderr
1496 is expected to be empty
1497 stdout
1498 is expected to match /^\d+\.\d+\.\d+/
1500File "/usr/share/travis/system_info"
1501 is expected to exist
1502 size
1503 is expected to be positive
1505Command "sudo -V"
1506 stdout
1507 is expected to match /^Sudo version \d/
1509gimme installation
1510 Command "gimme --version"
1511 exit_status
1512 is expected to eq 0
1513 Command "eval "$(HOME=/tmp/packer-templates-20241007-7928-254nu9-rspec gimme 1.6.3)" 2>&1"
1514 stdout
1515 is expected to match "go version go1.6.3"
1517File "/etc/cloud/templates/hosts.tmpl"
1518 is expected to be exist
1519 content
1520 is expected to match /managed by chef/i
1521 content
1522 is expected to match /travis_build_environment/i
1524Command "psql --version"
1525 exit_status
1526 is expected to eq 0
1527 stdout
1528 is expected to match /^psql.+(9\.[4-6]+\.[0-9]+|10\.[0-9]{1,2}|11\.[0-9]{1,2}|12\.[0-9]{1,2}|13\.[0-9]{1,2})/ (FAILED - 14)
1530File "/etc/cloud/cloud.cfg"
1531 content
1532 is expected to match /travis_build_environment/i
1533 content
1534 is expected to match /managed by chef/i
1536Command "wget --version"
1537 exit_status
1538 is expected to eq 0
1539 stdout
1540 is expected to include "GNU Wget"
1542Command "ldconfig -p | grep libldap"
1543 stdout
1544 is expected to match /libldap_r/
1545 exit_status
1546 is expected to eq 0
1548Command "nc -h"
1549 exit_status
1550 is expected to eq 0
1552firefox installation
1553 Command "sudo -u travis firefox -v"
1554 stderr
1555 is expected to be empty
1556 exit_status
1557 is expected to eq 0
1558 firefox commands
1559 File "/tmp/packer-templates-20241007-7928-254nu9-rspec/.mozilla/firefox/profiles.ini"
1560 is expected to exist
1561 content
1562 is expected to match /^Name=test/
1564Command "shfmt -version"
1565 stdout
1566 is expected to match /^v\d+\.\d+\.\d+/
1568python2 interpreter
1569 python --version
1570 is expected to match /^Python \d+\.\d+\.\d+/
1571 Command "python -m this"
1572 stderr
1573 is expected to be empty
1574 stdout
1575 is expected to match /Readability counts\./
1577Failures:
1579 1) docker-compose installation Command "docker-compose --version" stdout is expected to match /^docker-compose version:?\s+\d+\.\d+\.\d+/
1580 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
1581 expected "Docker Compose version v2.27.1\n" to match /^docker-compose version:?\s+\d+\.\d+\.\d+/
1582 Diff:
1583 @@ -1,2 +1,2 @@
1584 -/^docker-compose version:?\s+\d+\.\d+\.\d+/
1585 +Docker Compose version v2.27.1
1587 /bin/bash -c docker-compose\ --version
1588 Docker Compose version v2.27.1
1590 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/docker_compose_spec.rb:9:in `block (3 levels) in <top (required)>'
1592 2) postgresql installation Command " psql --version" stdout is expected to match /^psql.+(9\.[3-6]+\.[0-9]+|10\.[0-9])/
1593 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
1594 expected "psql (PostgreSQL) 16.4 (Ubuntu 16.4-1.pgdg20.04+1)\n" to match /^psql.+(9\.[3-6]+\.[0-9]+|10\.[0-9])/
1595 Diff:
1596 @@ -1,2 +1,2 @@
1597 -/^psql.+(9\.[3-6]+\.[0-9]+|10\.[0-9])/
1598 +psql (PostgreSQL) 16.4 (Ubuntu 16.4-1.pgdg20.04+1)
1601 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/postgresql_spec.rb:7:in `block (3 levels) in <top (required)>'
1603 3) python environment Command "true ; wheel version" stderr is expected to be empty
1604 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
1605 expected `"/bin/bash: wheel: command not found\n".empty?` to be truthy, got false
1606 /bin/bash -c true\ \;\ wheel\ version
1608 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb:22:in `block (3 levels) in <top (required)>'
1610 4) python environment Command "true ; wheel version" stdout is expected to match /^wheel \d+\.\d+\.\d+/
1611 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
1612 expected "" to match /^wheel \d+\.\d+\.\d+/
1613 Diff:
1614 @@ -1,2 +1,2 @@
1615 -/^wheel \d+\.\d+\.\d+/
1616 +""
1619 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb:23:in `block (3 levels) in <top (required)>'
1621 5) python environment Command "true ; nosetests --version" stderr is expected to be empty
1622 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
1623 expected `"/bin/bash: nosetests: command not found\n".empty?` to be truthy, got false
1624 /bin/bash -c true\ \;\ nosetests\ --version
1626 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb:41:in `block (3 levels) in <top (required)>'
1628 6) python environment Command "true ; nosetests --version" stdout is expected to match /^nosetests version \d+\.\d+\.\d+/
1629 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
1630 expected "" to match /^nosetests version \d+\.\d+\.\d+/
1631 Diff:
1632 @@ -1,2 +1,2 @@
1633 -/^nosetests version \d+\.\d+\.\d+/
1634 +""
1637 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb:42:in `block (3 levels) in <top (required)>'
1639 7) python environment Command "true ; py.test --version" stderr is expected to be empty
1640 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
1641 expected `"/bin/bash: py.test: command not found\n".empty?` to be truthy, got false
1642 /bin/bash -c true\ \;\ py.test\ --version
1644 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb:35:in `block (3 levels) in <top (required)>'
1646 8) python environment Command "true ; py.test --version" stdout is expected to match /pytest (version )?\d+\.\d+\.\d+/
1647 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
1648 expected "" to match /pytest (version )?\d+\.\d+\.\d+/
1649 Diff:
1650 @@ -1,2 +1,2 @@
1651 -/pytest (version )?\d+\.\d+\.\d+/
1652 +""
1655 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb:36:in `block (3 levels) in <top (required)>'
1657 9) mysql installation mysql commands Command "echo "SHOW VARIABLES LIKE 'performance_schema'" | mysql" stdout is expected to include "performance_schema\tOFF"
1658 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
1659 expected "Variable_name\tValue\nperformance_schema\tON\n" to include "performance_schema\tOFF"
1660 Diff:
1661 @@ -1,2 +1,3 @@
1662 -performance_schema OFF
1663 +Variable_name Value
1664 +performance_schema ON
1666 /bin/bash -c echo\ \"SHOW\ VARIABLES\ LIKE\ \'performance_schema\'\"\ \|\ mysql
1667 Variable_name Value
1668performance_schema ON
1670 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/mysql_spec.rb:72:in `block (4 levels) in <top (required)>'
1672 10) mysql installation File "/etc/mysql/conf.d/performance-schema.cnf" is expected to exist
1673 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
1674 expected File "/etc/mysql/conf.d/performance-schema.cnf" to exist
1675 /bin/bash -c test\ -e\ /etc/mysql/conf.d/performance-schema.cnf
1677 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/mysql_spec.rb:39:in `block (3 levels) in <top (required)>'
1679 11) mysql installation File "/etc/mysql/conf.d/performance-schema.cnf" is expected to be owned by "root"
1680 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
1681 expected `File "/etc/mysql/conf.d/performance-schema.cnf".owned_by?("root")` to be truthy, got false
1682 /bin/bash -c stat\ -c\ \%U\ /etc/mysql/conf.d/performance-schema.cnf\ \|\ grep\ --\ \\\^root\\\$
1684 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/mysql_spec.rb:41:in `block (3 levels) in <top (required)>'
1686 12) mysql installation File "/etc/mysql/conf.d/performance-schema.cnf" is expected to be grouped into "root"
1687 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
1688 expected `File "/etc/mysql/conf.d/performance-schema.cnf".grouped_into?("root")` to be truthy, got false
1689 /bin/bash -c stat\ -c\ \%G\ /etc/mysql/conf.d/performance-schema.cnf\ \|\ grep\ --\ \\\^root\\\$
1691 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/mysql_spec.rb:42:in `block (3 levels) in <top (required)>'
1693 13) mysql installation File "/etc/mysql/conf.d/performance-schema.cnf" is expected to be readable
1694 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
1695 expected File "/etc/mysql/conf.d/performance-schema.cnf" to be readable
1696 /bin/bash -c stat\ -c\ \%a\ /etc/mysql/conf.d/performance-schema.cnf
1698 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/mysql_spec.rb:40:in `block (3 levels) in <top (required)>'
1700 14) Command "psql --version" stdout is expected to match /^psql.+(9\.[4-6]+\.[0-9]+|10\.[0-9]{1,2}|11\.[0-9]{1,2}|12\.[0-9]{1,2}|13\.[0-9]{1,2})/
1701 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
1702 expected "psql (PostgreSQL) 16.4 (Ubuntu 16.4-1.pgdg20.04+1)\n" to match /^psql.+(9\.[4-6]+\.[0-9]+|10\.[0-9]{1,2}|11\.[0-9]{1,2}|12\.[0-9]{1,2}|13\.[0-9]{1,2})/
1703 Diff:
1704 @@ -1,2 +1,2 @@
1705 -/^psql.+(9\.[4-6]+\.[0-9]+|10\.[0-9]{1,2}|11\.[0-9]{1,2}|12\.[0-9]{1,2}|13\.[0-9]{1,2})/
1706 +psql (PostgreSQL) 16.4 (Ubuntu 16.4-1.pgdg20.04+1)
1709 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/basic_spec.rb:469:in `block (2 levels) in <top (required)>'
1711Finished in 1 minute 8.79 seconds (files took 1.15 seconds to load)
1712280 examples, 14 failures
1714Failed examples:
1716rspec /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/docker_compose_spec.rb[1:1:2:1] # docker-compose installation Command "docker-compose --version" stdout is expected to match /^docker-compose version:?\s+\d+\.\d+\.\d+/
1717rspec /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/postgresql_spec.rb[1:1:1:1] # postgresql installation Command " psql --version" stdout is expected to match /^psql.+(9\.[3-6]+\.[0-9]+|10\.[0-9])/
1718rspec /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb[1:2:1:1] # python environment Command "true ; wheel version" stderr is expected to be empty
1719rspec /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb[1:2:2:1] # python environment Command "true ; wheel version" stdout is expected to match /^wheel \d+\.\d+\.\d+/
1720rspec /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb[1:4:1:1] # python environment Command "true ; nosetests --version" stderr is expected to be empty
1721rspec /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb[1:4:2:1] # python environment Command "true ; nosetests --version" stdout is expected to match /^nosetests version \d+\.\d+\.\d+/
1722rspec /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb[1:3:1:1] # python environment Command "true ; py.test --version" stderr is expected to be empty
1723rspec /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb[1:3:2:1] # python environment Command "true ; py.test --version" stdout is expected to match /pytest (version )?\d+\.\d+\.\d+/
1724rspec /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/mysql_spec.rb[1:4:5:1:1] # mysql installation mysql commands Command "echo "SHOW VARIABLES LIKE 'performance_schema'" | mysql" stdout is expected to include "performance_schema\tOFF"
1725rspec /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/mysql_spec.rb[1:3:1] # mysql installation File "/etc/mysql/conf.d/performance-schema.cnf" is expected to exist
1726rspec /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/mysql_spec.rb[1:3:3] # mysql installation File "/etc/mysql/conf.d/performance-schema.cnf" is expected to be owned by "root"
1727rspec /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/mysql_spec.rb[1:3:4] # mysql installation File "/etc/mysql/conf.d/performance-schema.cnf" is expected to be grouped into "root"
1728rspec /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/mysql_spec.rb[1:3:2] # mysql installation File "/etc/mysql/conf.d/performance-schema.cnf" is expected to be readable
1729rspec /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/basic_spec.rb[30:1:1] # Command "psql --version" stdout is expected to match /^psql.+(9\.[4-6]+\.[0-9]+|10\.[0-9]{1,2}|11\.[0-9]{1,2}|12\.[0-9]{1,2}|13\.[0-9]{1,2})/
1731Randomized with seed 58636
1733+ local exit_code=1
1734+ [[ 1 != 0 ]]
1735+ echo 'Spec suite exited with 1'
1736Spec suite exited with 1
1737+ [[ -n '' ]]
1738+ exit 1
1740The command "bundle exec bash -xc sudo packer-scripts/run-serverspecs" failed. Retrying, 2 of 3.
1742+sudo packer-scripts/run-serverspecs
1743+ shopt -s nullglob
1744+ export CHEF_PATH=/opt/chef-workstation/bin:/opt/chef-workstation/embedded/bin:/opt/chef/bin
1745+ CHEF_PATH=/opt/chef-workstation/bin:/opt/chef-workstation/embedded/bin:/opt/chef/bin
1746+ export CHEF_LICENSE=accept-silent
1747+ CHEF_LICENSE=accept-silent
1748+ 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
1749+ 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
1750+ export DEBIAN_FRONTEND=noninteractive
1751+ DEBIAN_FRONTEND=noninteractive
1752+ export RUBYOPT=-W0
1753+ RUBYOPT=-W0
1754+ : /home/travis/build/travis-ci/packer-templates/tmp
1755+ : 'bash -lc'
1756+ : docker
1757+ [[ docker == \d\o\c\k\e\r ]]
1758+ export 'SPEC_ARGS=--tag ~dev --tag ~docker:false'
1759+ SPEC_ARGS='--tag ~dev --tag ~docker:false'
1760++ uname -m
1761+ [[ x86_64 =~ aarch64 ]]
1762++ uname -m
1763+ [[ x86_64 =~ ppc64 ]]
1764+ __install_chef /home/travis/build/travis-ci/packer-templates/tmp
1765+ [[ -f /opt/chef-workstation/embedded/bin/rspec ]]
1766+ return
1767+ __create_sudo_bash
1768+ cat
1769+ chmod 0755 /tmp/sudo-bash
1770+ __chown_travis_dirs /home/travis/build/travis-ci/packer-templates/tmp
1771+ chown -R travis:travis /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local /var/tmp
1772+ for suite in ${SPEC_SUITES/,/ }
1773+ __run_suite travis_packer_templates /home/travis/build/travis-ci/packer-templates/tmp 'bash -lc'
1774+ local suite=travis_packer_templates
1775+ local chef_prefix=/home/travis/build/travis-ci/packer-templates/tmp
1776+ local 'runner=bash -lc'
1777+ local cookbook_dir
1778++ __suite_cookbook_dir travis_packer_templates /home/travis/build/travis-ci/packer-templates/tmp
1779++ local suite=travis_packer_templates
1780++ local chef_prefix=/home/travis/build/travis-ci/packer-templates/tmp
1781++ local spec_dir
1782+++ head -1
1783+++ 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-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
1784++ spec_dir=/home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates/spec
1785++ dirname /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates/spec
1786+ cookbook_dir=/home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates
1787+ pushd /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates
1788+ __run_suite_as_travis travis_packer_templates /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates 'bash -lc'
1789+ local suite=travis_packer_templates
1790+ local cookbook_dir=/home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates
1791+ local 'runner=bash -lc'
1792+ set +o errexit
1793++ uname -m
1794++ uname -m
1795+ bash -lc '
1796set -o xtrace
1797export PATH="/opt/chef-workstation/bin:/opt/chef-workstation/embedded/bin:/opt/chef/bin:$PATH"
1798export TERM=xterm
1799export PACKER_BUILDER_TYPE=docker
1800export RUBYOPT=-W0
1801if [[ x86_64 =~ ppc64 ]]; then
1802 gem install serverspec
1803else
1804 chef gem install serverspec
1806unset GEM_PATH
1807cd /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates
1808sudo systemctl start xvfb.service
1809set -o errexit
1810if [[ x86_64 =~ ppc64 ]]; then
1811 rspec --tag ~dev --tag ~docker:false \
1812 --format documentation \
1813 --format json \
1814 --out /home/travis/.travis_packer_templates_rspec.json
1815else
1816 chef exec rspec --tag ~dev --tag ~docker:false \
1817 --format documentation \
1818 --format json \
1819 --out /home/travis/.travis_packer_templates_rspec.json
1822+ 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:/home/travis/.gimme/versions/go1.23.0.linux.amd64/bin:/usr/local/maven-3.9.4/bin:/usr/local/cmake-3.29.0/bin:/usr/local/clang-18.1.8/bin:/home/travis/.gimme/versions/go1.23.0.linux.amd64/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
1823+ 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:/home/travis/.gimme/versions/go1.23.0.linux.amd64/bin:/usr/local/maven-3.9.4/bin:/usr/local/cmake-3.29.0/bin:/usr/local/clang-18.1.8/bin:/home/travis/.gimme/versions/go1.23.0.linux.amd64/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
1824+ export TERM=xterm
1825+ TERM=xterm
1826+ export PACKER_BUILDER_TYPE=docker
1827+ PACKER_BUILDER_TYPE=docker
1828+ export RUBYOPT=-W0
1829+ RUBYOPT=-W0
1830+ [[ x86_64 =~ ppc64 ]]
1831+ chef gem install serverspec
1832WARNING: You don't have /home/travis/.chefdk/gem/ruby/3.0.0/bin in your PATH,
1833 gem executables will not run.
1834Successfully installed serverspec-2.42.3
18351 gem installed
1836+ unset GEM_PATH
1837+ cd /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates
1838+ sudo systemctl start xvfb.service
1839+ set -o errexit
1840+ [[ x86_64 =~ ppc64 ]]
1841+ chef exec rspec --tag '~dev' --tag '~docker:false' --format documentation --format json --out /home/travis/.travis_packer_templates_rspec.json
1842Run options: exclude {:dev=>true, :docker=>false}
1844Randomized with seed 47570
1846jq installation
1847 Command "jq -r '.stuff|.[]|select(."@type"=="smarm")|.msg[0]' </tmp/packer-templates-20241007-12048-jyojje-rspec/test.json"
1848 stdout
1849 is expected to match /^Konstantin broke all the things/
1850 Command "jq -V"
1851 exit_status
1852 is expected to eq 0
1854Command "curl --version | head -1"
1855 exit_status
1856 is expected to eq 0
1857 stdout
1858 is expected to include "curl"
1860subversion installation
1861 subversion commands are executed
1862 File "/tmp/packer-templates-20241007-12048-jyojje-rspec/svn-project/README.txt"
1863 content
1864 is expected to match "This is a Subversion repository;"
1865 Command "svn --version"
1866 exit_status
1867 is expected to eq 0
1869docker-compose installation
1870 Command "docker-compose --version"
1871 stdout
1872 is expected to match /^docker-compose version:?\s+\d+\.\d+\.\d+/ (FAILED - 1)
1873 exit_status
1874 is expected to eq 0
1876python environment
1877 Command "true ; nosetests --version"
1878 stderr
1879 is expected to be empty (FAILED - 2)
1880 stdout
1881 is expected to match /^nosetests version \d+\.\d+\.\d+/ (FAILED - 3)
1882 Command "true ; wheel version"
1883 stderr
1884 is expected to be empty (FAILED - 4)
1885 stdout
1886 is expected to match /^wheel \d+\.\d+\.\d+/ (FAILED - 5)
1887 Command "true ; python -c 'import sys;from unittest import mock;sys.stdout.write(mock.__version__ + "\n")'"
1888 stderr
1889 is expected to be empty
1890 stdout
1891 is expected to match /^\d+\.\d+/
1892 Command "true ; pip --version"
1893 stderr
1894 is expected to be empty
1895 stdout
1896 is expected to match /^pip \d+\.\d+(\.\d+)?/
1897 Command "true ; py.test --version"
1898 stderr
1899 is expected to be empty (FAILED - 6)
1900 stdout
1901 is expected to match /pytest (version )?\d+\.\d+\.\d+/ (FAILED - 7)
1903go toolchain installation
1904 Command "go env GOROOT"
1905 stdout
1906 is expected to match /\/\.gimme\//
1907 compiling something
1908 Command "go run /tmp/packer-templates-20241007-12048-jyojje-rspec/example.go"
1909 stdout
1910 is expected to match /Good morrow, 10545/
1911 Command "go version"
1912 stdout
1913 is expected to match /^go version go/
1915go installation
1916 Command "gimme -l"
1917 stdout
1918 is expected not to be empty
1920Command "shellcheck --version"
1921 stdout
1922 is expected to match /^version: \d+\.\d+\.\d+/
1924imagemagick installation
1925 Command "convert --version"
1926 stdout
1927 is expected to match /imagemagick/i
1928 exit_status
1929 is expected to eq 0
1930 imagemagick commands
1931 Command "identify /tmp/packer-templates-20241007-12048-jyojje-rspec/logo.gif"
1932 stdout
1933 is expected to match /logo\.gif GIF/
1934 exit_status
1935 is expected to eq 0
1937sysctl installation
1938 Command "sysctl -a"
1939 stdout
1940 is expected to include "kernel.sched_child_runs_first"
1941 Command "sysctl -V"
1942 exit_status
1943 is expected to eq 0
1945phantomjs installation
1946 Command "phantomjs /tmp/packer-templates-20241007-12048-jyojje-rspec/test.js"
1947 stdout
1948 is expected to match "Status: success"
1949 Command "phantomjs -v"
1950 stdout
1951 is expected to match /\d/
1952 exit_status
1953 is expected to eq 0
1955mysql installation
1956 File "/home/travis/.my.cnf"
1957 is expected to be readable
1958 is expected to be grouped into "travis"
1959 is expected to be owned by "travis"
1960 is expected to exist
1961 mysql commands
1962 Command "mysql -u travis -e 'select "hai"'"
1963 stderr
1964 is expected to be empty
1965 stdout
1966 is expected to match /hai/
1967 exit_status
1968 is expected to eq 0
1969 Command "echo "SHOW VARIABLES LIKE 'performance_schema'" | mysql"
1970 stdout
1971 is expected to include "performance_schema\tOFF" (FAILED - 8)
1972 Command "echo "SELECT id FROM test" | mysql travis"
1973 stdout
1974 is expected to match /^4$/
1975 Command "echo "SHOW DATABASES" | mysql"
1976 stdout
1977 is expected to match /^travis$/
1978 Command "mysql -u root -e 'select "hai"'"
1979 stderr
1980 is expected to be empty
1981 stdout
1982 is expected to match /hai/
1983 exit_status
1984 is expected to eq 0
1985 File "/etc/mysql/conf.d/performance-schema.cnf"
1986 is expected to be owned by "root" (FAILED - 9)
1987 is expected to exist (FAILED - 10)
1988 is expected to be readable (FAILED - 11)
1989 is expected to be grouped into "root" (FAILED - 12)
1991sqlite installation
1992 Command "sqlite3 -version"
1993 stdout
1994 is expected to match /^\d\.\d/
1995 exit_status
1996 is expected to eq 0
1997 sqlite commands are executed
1998 Command "
1999 sqlite3 /tmp/packer-templates-20241007-12048-jyojje-rspec/test.db "
2000 CREATE TABLE hats (
2001 id INTEGER PRIMARY KEY,
2002 name TEXT,
2003 style INTEGER
2004 );
2005 INSERT INTO hats VALUES(1, 'floppy', 9001);
2006 SELECT * FROM hats;
2009 stdout
2010 is expected to match "1|floppy|9001"
2012Command "nc -h"
2013 exit_status
2014 is expected to eq 0
2016File "/etc/cloud/templates/sources.list.tmpl"
2017 content
2018 is expected to match /travis_build_environment/i
2019 content
2020 is expected to match /managed by chef/i
2022redis installation
2023 Command "redis-server --version"
2024 exit_status
2025 is expected to eq 0
2026 stdout
2027 is expected to match /^Redis /
2028 redis commands
2029 Command "redis-cli -p 16379 GET test_key | cat"
2030 stdout
2031 is expected to match /^test_value$/
2032 Command "redis-cli -p 16379 PING"
2033 stdout
2034 is expected to match /^PONG$/
2036File "/etc/cloud/cloud.cfg"
2037 content
2038 is expected to match /travis_build_environment/i
2039 content
2040 is expected to match /managed by chef/i
2042md5deep installation
2043 Command "md5deep /tmp/packer-templates-20241007-12048-jyojje-rspec/md5deep.txt"
2044 stdout
2045 is expected to match /^29c04665afa6ef18edc38824ceaff6ab\b/
2046 Command "md5deep -v"
2047 exit_status
2048 is expected to eq 0
2049 Command "md5deep -V"
2050 stdout
2051 is expected to match "This program is a work of the US Government."
2053php interpreter
2054 Command "PHPENV_VERSION=system phpenv exec php --version"
2055 stderr
2056 is expected to be empty
2057 stdout
2058 is expected to match /^PHP \d+\.\d+/
2059 Command "PHPENV_VERSION=system phpenv exec php -r 'foreach(range(1, 5) as $i) echo $i * 2 . " ";'"
2060 stderr
2061 is expected to be empty
2062 stdout
2063 is expected to match /^2 4 6 8 10/
2065ruby interpreter
2066 Command "ruby --version"
2067 stderr
2068 is expected to be empty
2069 stdout
2070 is expected to match /^ruby 3\.\d+\.\d+/
2071 Command "ruby -e 'puts "Konstanin broke all the things!"'"
2072 stdout
2073 is expected to match /^Konstanin broke all the things!$/
2074 Command "ruby -e 'puts RUBY_ENGINE'"
2075 stdout
2076 is expected to match /^ruby/
2078vim installation
2079 Command "vim --version"
2080 stdout
2081 is expected not to be empty
2082 exit_status
2083 is expected to eq 0
2084 stderr
2085 is expected to be empty
2086 File "/tmp/packer-templates-20241007-12048-jyojje-rspec/test.txt"
2087 content
2088 is expected to match /there/
2090Command "iptables --version"
2091 stdout
2092 is expected to include "iptables"
2093 exit_status
2094 is expected to eq 0
2096perlbrew installation
2097 Command "perlbrew --version"
2098 exit_status
2099 is expected to eq 0
2100 stdout
2101 is expected to match /perl5\/perlbrew\/bin\/perlbrew.+App::perlbrew\/\d+\.\d+/
2102 Command "perlbrew list"
2103 exit_status
2104 is expected to eq 0
2106unarchivers installation
2107 Command "
2108 gzip /tmp/packer-templates-20241007-12048-jyojje-rspec/test.txt;
2109 rm /tmp/packer-templates-20241007-12048-jyojje-rspec/test.txt;
2110 ls /tmp/packer-templates-20241007-12048-jyojje-rspec;
2111 gzip -d /tmp/packer-templates-20241007-12048-jyojje-rspec/test.txt.gz;
2112 cat /tmp/packer-templates-20241007-12048-jyojje-rspec/test.txt
2114 stdout
2115 is expected to include "test.txt.gz"
2116 stdout
2117 is expected to match "Konstantin broke all the things."
2118 Command "
2119 cd /tmp/packer-templates-20241007-12048-jyojje-rspec;
2120 zip test.zip test.txt;
2121 rm test.txt;
2122 ls /tmp/packer-templates-20241007-12048-jyojje-rspec;
2123 unzip test.zip;
2124 cat test.txt
2126 stdout
2127 is expected to match "Konstantin broke all the things."
2128 stdout
2129 is expected to include "test.zip"
2130 Command "unzip -version"
2131 stdout
2132 is expected to match /^UnZip \d/
2133 exit_status
2134 is expected to eq 0
2135 Command "dpkg -s libbz2-dev"
2136 stdout
2137 is expected to match "Status: install ok installed"
2138 Command "zip --version"
2139 exit_status
2140 is expected to eq 0
2141 stdout
2142 is expected to match /Zip \d/
2143 Command "
2144 bzip2 -z /tmp/packer-templates-20241007-12048-jyojje-rspec/test.txt;
2145 rm /tmp/packer-templates-20241007-12048-jyojje-rspec/test.txt;
2146 ls /tmp/packer-templates-20241007-12048-jyojje-rspec;
2147 bzip2 -d /tmp/packer-templates-20241007-12048-jyojje-rspec/test.txt.bz2;
2148 cat /tmp/packer-templates-20241007-12048-jyojje-rspec/test.txt
2150 stdout
2151 is expected to include "test.txt.bz2"
2152 stdout
2153 is expected to match "Konstantin broke all the things."
2154 Command "gzip --version"
2155 stdout
2156 is expected to match /^gzip \d/
2157 exit_status
2158 is expected to eq 0
2160Command "mysql --version"
2161 exit_status
2162 is expected to eq 0
2163 stdout
2164 is expected to match /^mysql /
2166postgresql installation
2167 psql commands
2168 Command " psql -U travis -ltA"
2169 stdout
2170 is expected to match /^test_db\|/
2171 with a test table
2172 Command " psql -U travis -tA -c '\dt' test_db"
2173 stdout
2174 is expected to match /^public\|test_table\|/
2175 stderr
2176 is expected to be empty
2177 Command " psql --version"
2178 stdout
2179 is expected to match /^psql.+(9\.[3-6]+\.[0-9]+|10\.[0-9])/ (FAILED - 13)
2180 exit_status
2181 is expected to eq 0
2183git installation
2184 Command "git config user.name"
2185 stdout
2186 is expected to match /travis/i
2187 git commands
2188 Command "cd /tmp/packer-templates-20241007-12048-jyojje-rspec/git-project; git status; git add test-file.txt; git status; git add test-file.txt; git rm -f test-file.txt; git status"
2189 stdout
2190 is expected to match /nothing to commit/
2191 stdout
2192 is expected to include "Untracked files:", "test-file.txt", "Changes to be committed:", and "new file: test-file.txt"
2193 Command "git config user.email"
2194 stdout
2195 is expected to match /travis@example\.org/
2196 Command "git --version"
2197 stdout
2198 is expected to match /^git version (2\.|1\.[89])/
2199 exit_status
2200 is expected to eq 0
2201 Package "git"
2202 is expected to be installed
2204Command "bats --version"
2205 stdout
2206 is expected to match /^Bats \d/
2208php environment
2209 Command "PHPENV_VERSION=system phpenv exec php-fpm --version"
2210 stdout
2211 is expected to match /^PHP \d+\.\d+\.\d+.+fpm-fcgi/
2212 exit_status
2213 is expected to eq 0
2214 Command "PHPENV_VERSION=system phpenv exec php -m --version"
2215 stdout
2216 is expected to include "Core", "PDO", "Phar", "SPL", "Xdebug", "bcmath", "ctype", "curl", "date", "dom", "exif", "filter", "ftp", "gd", "hash", "iconv", "json", "libxml", "mbstring", "pcre", "pdo_mysql", "pdo_sqlite", "posix", "readline", "sqlite3", "standard", "sysvsem", "sysvshm", "tidy", "xmlrpc", "xmlwriter", "xsl", "zip", and "zlib"
2217 File "/home/travis/.pearrc"
2218 is expected not to exist
2220File "/usr/share/travis/system_info"
2221 is expected to exist
2222 size
2223 is expected to be positive
2225mongodb installation
2226 Service "mongod"
2227 is expected not to be enabled
2228 is expected not to be running
2229 mongo commands
2230 Command "mongo --eval "var myCursor = db.testData.find( { x: 6 }); myCursor.forEach(printjson);""
2231 stdout
2232 is expected to match /{ "_id" : ObjectId\("\w+"\), "x" : 6 }/
2233 Command "mongo --version"
2234 exit_status
2235 is expected to eq 0
2236 stdout
2237 is expected to match /MongoDB shell/
2239File "/etc/cloud/templates/hosts.debian.tmpl"
2240 is expected to be exist
2241 content
2242 is expected to match /travis_build_environment/i
2243 content
2244 is expected to match /managed by chef/i
2246File "/etc/cloud/templates/sources.list.ubuntu.tmpl"
2247 content
2248 is expected to match /managed by chef/i
2249 content
2250 is expected to match /travis_build_environment/i
2252File "/.node-attributes.yml"
2253 is expected to exist
2254 content_as_yaml
2255 is expected to include "__timestamp"
2257python3 interpreter
2258 Command "python3 -m this"
2259 stderr
2260 is expected to be empty
2261 stdout
2262 is expected to match /Readability counts\./
2263 python3 --version
2264 is expected to match /^Python \d+\.\d+\.\d+/
2266Command "wget --version"
2267 exit_status
2268 is expected to eq 0
2269 stdout
2270 is expected to include "GNU Wget"
2272Command "rsync --version"
2273 exit_status
2274 is expected to eq 0
2275 stdout
2276 is expected to match /rsync.+version/
2278gimme installation
2279 Command "gimme --version"
2280 exit_status
2281 is expected to eq 0
2282 Command "eval "$(HOME=/tmp/packer-templates-20241007-12048-jyojje-rspec gimme 1.6.3)" 2>&1"
2283 stdout
2284 is expected to match "go version go1.6.3"
2286Command "cmake --version"
2287 stdout
2288 is expected to match /^cmake version [23]/
2289 exit_status
2290 is expected to eq 0
2292firefox installation
2293 Command "sudo -u travis firefox -v"
2294 stderr
2295 is expected to be empty
2296 exit_status
2297 is expected to eq 0
2298 firefox commands
2299 File "/tmp/packer-templates-20241007-12048-jyojje-rspec/.mozilla/firefox/profiles.ini"
2300 is expected to exist
2301 content
2302 is expected to match /^Name=test/
2304perl interpreter
2305 Command "perl --version"
2306 stdout
2307 is expected to match /perl 5, version \d/
2308 stderr
2309 is expected to be empty
2310 Command "perl -e 'print "Hello Mr Euler!\n"'"
2311 stdout
2312 is expected to match /^Hello Mr Euler!/
2313 stderr
2314 is expected to be empty
2316apt installation
2317 /var/lib/apt/lists/*Packages*
2318 is non-empty
2319 apt commands
2320 Command "sudo apt-get install -y language-pack-pt"
2321 stdout
2322 is expected to match /Reading state/
2323 Command "sudo apt-get update -y"
2324 stdout
2325 is expected to match /http/
2326 Command "apt-cache search ubuntu-restricted-extras"
2327 stdout
2328 is expected not to be empty
2329 apt architecture
2330 Command "dpkg --print-architecture"
2331 stdout
2332 is expected to match /amd64/
2333 Command "dpkg --print-foreign-architectures"
2334 stdout
2335 is expected to match /i386/
2336 Command "apt-get -v"
2337 exit_status
2338 is expected to eq 0
2339 File "/var/lib/apt/lists"
2340 is expected to be directory
2342User "travis"
2343 is expected to exist
2344 is expected to have login shell "/bin/bash"
2345 is expected to have home directory "/home/travis"
2347Command "packer version"
2348 exit_status
2349 is expected to eq 0
2350 stdout
2351 is expected to match /^Packer v\d/
2353gcc installation
2354 Command "
2355 cd /tmp/packer-templates-20241007-12048-jyojje-rspec;
2356 gcc -Wall -o hai hai.c;
2357 ./hai there
2359 stdout
2360 is expected to match /^hai 2$/
2361 Command "gcc -v"
2362 stderr
2363 is expected to match /^gcc version/
2364 Command "cd /tmp/packer-templates-20241007-12048-jyojje-rspec/empty && gcc"
2365 stderr
2366 is expected to include "no input files"
2368Command "ldconfig -V"
2369 exit_status
2370 is expected to eq 0
2371 stdout
2372 is expected to include "ldconfig "
2374dictionaries installation
2375 Package "wamerican"
2376 is expected to be installed
2378bazaar installation
2379 Command "bzr version"
2380 stdout
2381 is expected to match /Bazaar \(bzr\)|Breezy \(brz\)/
2382 exit_status
2383 is expected to eq 0
2384 bazaar commands
2385 Command "
2386 cd /tmp/packer-templates-20241007-12048-jyojje-rspec/bzr-project;
2387 bzr status;
2388 bzr add test.txt;
2389 bzr status;
2391 stdout
2392 is expected to match /^adding test\.txt/
2393 stdout
2394 is expected to match /^unknown:/
2395 stdout
2396 is expected to match /^ test\.txt/
2397 stdout
2398 is expected to match /^added:/
2399 stdout
2400 is expected to match /^ test\.txt/
2402File "/etc/cloud/templates"
2403 is expected to be directory
2405Command "lsof -v 2>&1 | head -2 | tail -1"
2406 exit_status
2407 is expected to eq 0
2408 stdout
2409 is expected to match /revision:/
2411memcached installation
2412 memcached commands
2413 Service "memcached"
2414 is expected to be running
2415 Command "echo 'stats' | nc -w 5 127.0.0.1 11211"
2416 stdout
2417 is expected to match "version"
2418 Package "memcached"
2419 is expected to be installed
2420 Command "memcached -h"
2421 stdout
2422 is expected to match /^memcached \d/
2423 exit_status
2424 is expected to eq 0
2426xserver installation
2427 Command "DISPLAY=:99.0 xset -q"
2428 stderr
2429 is expected to be empty
2430 exit_status
2431 is expected to eq 0
2432 stdout
2433 is expected to match /^Keyboard Control:/
2434 Command "Xorg -version"
2435 exit_status
2436 is expected to eq 0
2437 Command "xvfb-run -a xdpyinfo"
2438 stderr
2439 is expected to be empty
2440 exit_status
2441 is expected to eq 0
2442 stdout
2443 is expected to match /^\s+GLX$/
2445File "/etc/cloud/templates/hosts.ubuntu.tmpl"
2446 is expected to be exist
2447 content
2448 is expected to match /travis_build_environment/i
2449 content
2450 is expected to match /managed by chef/i
2452rvm installation
2453 Command "rvm version"
2454 stderr
2455 is expected to be empty
2456 exit_status
2457 is expected to eq 0
2458 stdout
2459 is expected to match /^rvm /
2460 File "/home/travis/.rvmrc"
2461 is expected to exist
2462 is expected to be readable
2463 is expected to be writable
2464 rvm commands
2465 Command "rvm list"
2466 stdout
2467 is expected to include "current"
2468 stdout
2469 is expected to match /ruby-2\.[234567]\.\d/
2470 stderr
2471 is expected to be empty
2472 Command "rvm default do echo whatever"
2473 stdout
2474 is expected not to include "Warning!"
2475 stderr
2476 is expected not to include "Warning!"
2477 stdout
2478 is expected to include "whatever"
2479 File "/home/travis/.rvm/user/db"
2480 is expected to exist
2481 is expected to be readable
2482 is expected to be writable
2484mercurial installation
2485 Command "hg version"
2486 stdout
2487 is expected to match /^Mercurial Distributed SCM \(version \d/
2488 exit_status
2489 is expected to eq 0
2490 mecurial commands are executed
2491 Command "cd /tmp/packer-templates-20241007-12048-jyojje-rspec/hg-project; hg status; hg add .; hg status"
2492 stdout
2493 is expected to match "A test-file.txt"
2494 stdout
2495 is expected to match "\\? test-file.txt"
2497emacs installation
2498 Command "emacs --version"
2499 exit_status
2500 is expected to eq 0
2501 editing
2502 File "/tmp/packer-templates-20241007-12048-jyojje-rspec/test.txt"
2503 content
2504 is expected to match "poof"
2506nodejs interpreter
2507 Command "node -e "console.log('Konstantin broke all the thingz')""
2508 stdout
2509 is expected to match "Konstantin broke all the thingz"
2510 Command "node -v"
2511 stdout
2512 is expected to match /v\d/
2513 exit_status
2514 is expected to eq 0
2516sudoers setup
2517 File "/etc/sudoers"
2518 is expected to be mode 440
2519 is expected to be owned by "root"
2520 is expected to be file
2521 is expected to exist
2522 content
2523 is expected to match /^#includedir \/etc\/sudoers\.d$/
2524 File "/etc/sudoers.d/travis"
2525 is expected to be mode 440
2526 is expected to be file
2527 is expected to be owned by "root"
2528 is expected to exist
2529 content
2530 is expected to match /^Defaults !mail_badpass$/
2531 content
2532 is expected to match /^Defaults !authenticate$/
2533 content
2534 is expected to match /^travis ALL=\(ALL\) NOPASSWD:ALL$/
2535 content
2536 is expected to match /^Defaults !env_reset$/
2538Command "psql --version"
2539 stdout
2540 is expected to match /^psql.+(9\.[4-6]+\.[0-9]+|10\.[0-9]{1,2}|11\.[0-9]{1,2}|12\.[0-9]{1,2}|13\.[0-9]{1,2})/ (FAILED - 14)
2541 exit_status
2542 is expected to eq 0
2544ragel installation
2545 Package "ragel"
2546 is expected to be installed
2547 ragel commands
2548 add a ragel file and execute a ragel command
2549 File "/tmp/packer-templates-20241007-12048-jyojje-rspec/hello_world.rb"
2550 content
2551 is expected to match /^puts "Hello World"/
2552 Command "ragel -v"
2553 stdout
2554 is expected to match /^Ragel /
2555 exit_status
2556 is expected to eq 0
2558Command "ldconfig -p | grep libldap"
2559 stdout
2560 is expected to match /libldap_r/
2561 exit_status
2562 is expected to eq 0
2564File "/opt"
2565 is expected to be writable
2566 is expected to be directory
2568python2 interpreter
2569 python --version
2570 is expected to match /^Python \d+\.\d+\.\d+/
2571 Command "python -m this"
2572 stderr
2573 is expected to be empty
2574 stdout
2575 is expected to match /Readability counts\./
2577Command "sudo -V"
2578 stdout
2579 is expected to match /^Sudo version \d/
2581openssl installation
2582 openssl commands
2583******************************************************************************************
2584 stdout
2585 is expected to match "Konstantin broke all the things."
2586 Command "echo "Konstantin broke all the things." | openssl enc -base64"
2587 stdout
2588************************************************************************************
2589 Command "openssl version"
2590 exit_status
2591 is expected to eq 0
2592 stdout
2593 is expected to match /^OpenSSL/
2595clang installation
2596 clang command
2597 Command "clang -help"
2598 stdout
2599 is expected to include "OVERVIEW: clang LLVM compiler" and "OPTIONS:"
2600 Command "clang -v"
2601 exit_status
2602 is expected to eq 0
2604ccache installation
2605 Command "ccache -V"
2606 exit_status
2607 is expected to eq 0
2608 ccache commands are executed
2609 Command "ccache -M 0.5"
2610 stdout
2611 is expected to match /Set cache size limit to (512\.0 Mbytes|500\.0 MB)/
2612 Command "ccache -s"
2613 stdout
2614 is expected to include "cache directory", "cache hit", "cache miss", "files in cache", and "max cache size"
2616File "/etc/cloud/templates/sources.list.debian.tmpl"
2617 content
2618 is expected to match /travis_build_environment/i
2619 content
2620 is expected to match /managed by chef/i
2622ssh access
2623 File "/home/travis/.ssh/known_hosts"
2624 is expected to exist
2625 is expected to be writable
2626 is expected to be readable
2627 size
2628 is expected to be positive
2629 File "/home/travis/.ssh/authorized_keys"
2630 is expected to be readable
2631 is expected to be writable
2632 is expected to exist
2633 size
2634 is expected to be positive
2636Command "heroku version"
2637 stdout
2638 is expected to match /^heroku/
2640ruby installation
2641 Command "gem --version"
2642 stderr
2643 is expected to be empty
2644 stdout
2645 is expected to match /^\d+\.\d+\.\d+/
2646 Command "rspec --version"
2647 stdout
2648 is expected to match /^RSpec \d+\.\d+/
2649 stderr
2650 is expected to be empty
2652jdk installation
2653 should have JAVA_HOME defined
2654 java command
2655 Command "cd /tmp/packer-templates-20241007-12048-jyojje-rspec && java Hello"
2656 stdout
2657 is expected to match "Hello World!"
2658 Command "java -version"
2659 stderr
2660 is expected to match /^(java|openjdk)/
2661 exit_status
2662 is expected to eq 0
2664File "/etc/cloud/templates/hosts.tmpl"
2665 is expected to be exist
2666 content
2667 is expected to match /travis_build_environment/i
2668 content
2669 is expected to match /managed by chef/i
2671Command "shfmt -version"
2672 stdout
2673 is expected to match /^v\d+\.\d+\.\d+/
2675dictionaries commands
2676 Command "look kid"
2677 stdout
2678 is expected to match /^kidding$/
2679 stdout
2680 is expected to match /^kidnappers$/
2681 stdout
2682 is expected to match /^kidney$/
2683 stderr
2684 is expected to be empty
2686File "/home/travis/bin"
2687 is expected to be writable
2688 is expected to be directory
2690Command "ssh -V"
2691 stderr
2692 is expected to match /OpenSSH/
2694Failures:
2696 1) docker-compose installation Command "docker-compose --version" stdout is expected to match /^docker-compose version:?\s+\d+\.\d+\.\d+/
2697 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
2698 expected "Docker Compose version v2.27.1\n" to match /^docker-compose version:?\s+\d+\.\d+\.\d+/
2699 Diff:
2700 @@ -1,2 +1,2 @@
2701 -/^docker-compose version:?\s+\d+\.\d+\.\d+/
2702 +Docker Compose version v2.27.1
2704 bash -c docker-compose\ --version
2705 Docker Compose version v2.27.1
2707 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/docker_compose_spec.rb:9:in `block (3 levels) in <top (required)>'
2709 2) python environment Command "true ; nosetests --version" stderr is expected to be empty
2710 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
2711 expected `"bash: nosetests: command not found\n".empty?` to be truthy, got false
2712 bash -c true\ \;\ nosetests\ --version
2714 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb:41:in `block (3 levels) in <top (required)>'
2716 3) python environment Command "true ; nosetests --version" stdout is expected to match /^nosetests version \d+\.\d+\.\d+/
2717 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
2718 expected "" to match /^nosetests version \d+\.\d+\.\d+/
2719 Diff:
2720 @@ -1,2 +1,2 @@
2721 -/^nosetests version \d+\.\d+\.\d+/
2722 +""
2725 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb:42:in `block (3 levels) in <top (required)>'
2727 4) python environment Command "true ; wheel version" stderr is expected to be empty
2728 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
2729 expected `"bash: wheel: command not found\n".empty?` to be truthy, got false
2730 bash -c true\ \;\ wheel\ version
2732 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb:22:in `block (3 levels) in <top (required)>'
2734 5) python environment Command "true ; wheel version" stdout is expected to match /^wheel \d+\.\d+\.\d+/
2735 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
2736 expected "" to match /^wheel \d+\.\d+\.\d+/
2737 Diff:
2738 @@ -1,2 +1,2 @@
2739 -/^wheel \d+\.\d+\.\d+/
2740 +""
2743 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb:23:in `block (3 levels) in <top (required)>'
2745 6) python environment Command "true ; py.test --version" stderr is expected to be empty
2746 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
2747 expected `"bash: py.test: command not found\n".empty?` to be truthy, got false
2748 bash -c true\ \;\ py.test\ --version
2750 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb:35:in `block (3 levels) in <top (required)>'
2752 7) python environment Command "true ; py.test --version" stdout is expected to match /pytest (version )?\d+\.\d+\.\d+/
2753 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
2754 expected "" to match /pytest (version )?\d+\.\d+\.\d+/
2755 Diff:
2756 @@ -1,2 +1,2 @@
2757 -/pytest (version )?\d+\.\d+\.\d+/
2758 +""
2761 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb:36:in `block (3 levels) in <top (required)>'
2763 8) mysql installation mysql commands Command "echo "SHOW VARIABLES LIKE 'performance_schema'" | mysql" stdout is expected to include "performance_schema\tOFF"
2764 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
2765 expected "Variable_name\tValue\nperformance_schema\tON\n" to include "performance_schema\tOFF"
2766 Diff:
2767 @@ -1,2 +1,3 @@
2768 -performance_schema OFF
2769 +Variable_name Value
2770 +performance_schema ON
2772 bash -c echo\ \"SHOW\ VARIABLES\ LIKE\ \'performance_schema\'\"\ \|\ mysql
2773 Variable_name Value
2774performance_schema ON
2776 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/mysql_spec.rb:72:in `block (4 levels) in <top (required)>'
2778 9) mysql installation File "/etc/mysql/conf.d/performance-schema.cnf" is expected to be owned by "root"
2779 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
2780 expected `File "/etc/mysql/conf.d/performance-schema.cnf".owned_by?("root")` to be truthy, got false
2781 bash -c stat\ -c\ \%U\ /etc/mysql/conf.d/performance-schema.cnf\ \|\ grep\ --\ \\\^root\\\$
2783 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/mysql_spec.rb:41:in `block (3 levels) in <top (required)>'
2785 10) mysql installation File "/etc/mysql/conf.d/performance-schema.cnf" is expected to exist
2786 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
2787 expected File "/etc/mysql/conf.d/performance-schema.cnf" to exist
2788 bash -c test\ -e\ /etc/mysql/conf.d/performance-schema.cnf
2790 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/mysql_spec.rb:39:in `block (3 levels) in <top (required)>'
2792 11) mysql installation File "/etc/mysql/conf.d/performance-schema.cnf" is expected to be readable
2793 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
2794 expected File "/etc/mysql/conf.d/performance-schema.cnf" to be readable
2795 bash -c stat\ -c\ \%a\ /etc/mysql/conf.d/performance-schema.cnf
2797 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/mysql_spec.rb:40:in `block (3 levels) in <top (required)>'
2799 12) mysql installation File "/etc/mysql/conf.d/performance-schema.cnf" is expected to be grouped into "root"
2800 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
2801 expected `File "/etc/mysql/conf.d/performance-schema.cnf".grouped_into?("root")` to be truthy, got false
2802 bash -c stat\ -c\ \%G\ /etc/mysql/conf.d/performance-schema.cnf\ \|\ grep\ --\ \\\^root\\\$
2804 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/mysql_spec.rb:42:in `block (3 levels) in <top (required)>'
2806 13) postgresql installation Command " psql --version" stdout is expected to match /^psql.+(9\.[3-6]+\.[0-9]+|10\.[0-9])/
2807 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
2808 expected "psql (PostgreSQL) 16.4 (Ubuntu 16.4-1.pgdg20.04+1)\n" to match /^psql.+(9\.[3-6]+\.[0-9]+|10\.[0-9])/
2809 Diff:
2810 @@ -1,2 +1,2 @@
2811 -/^psql.+(9\.[3-6]+\.[0-9]+|10\.[0-9])/
2812 +psql (PostgreSQL) 16.4 (Ubuntu 16.4-1.pgdg20.04+1)
2814 bash -c \ psql\ --version
2815 psql (PostgreSQL) 16.4 (Ubuntu 16.4-1.pgdg20.04+1)
2817 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/postgresql_spec.rb:7:in `block (3 levels) in <top (required)>'
2819 14) Command "psql --version" stdout is expected to match /^psql.+(9\.[4-6]+\.[0-9]+|10\.[0-9]{1,2}|11\.[0-9]{1,2}|12\.[0-9]{1,2}|13\.[0-9]{1,2})/
2820 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
2821 expected "psql (PostgreSQL) 16.4 (Ubuntu 16.4-1.pgdg20.04+1)\n" to match /^psql.+(9\.[4-6]+\.[0-9]+|10\.[0-9]{1,2}|11\.[0-9]{1,2}|12\.[0-9]{1,2}|13\.[0-9]{1,2})/
2822 Diff:
2823 @@ -1,2 +1,2 @@
2824 -/^psql.+(9\.[4-6]+\.[0-9]+|10\.[0-9]{1,2}|11\.[0-9]{1,2}|12\.[0-9]{1,2}|13\.[0-9]{1,2})/
2825 +psql (PostgreSQL) 16.4 (Ubuntu 16.4-1.pgdg20.04+1)
2827 /bin/bash -c psql\ --version
2828 psql (PostgreSQL) 16.4 (Ubuntu 16.4-1.pgdg20.04+1)
2830 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/basic_spec.rb:469:in `block (2 levels) in <top (required)>'
2832Finished in 59.53 seconds (files took 0.99834 seconds to load)
2833280 examples, 14 failures
2835Failed examples:
2837rspec /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/docker_compose_spec.rb[1:1:2:1] # docker-compose installation Command "docker-compose --version" stdout is expected to match /^docker-compose version:?\s+\d+\.\d+\.\d+/
2838rspec /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb[1:4:1:1] # python environment Command "true ; nosetests --version" stderr is expected to be empty
2839rspec /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb[1:4:2:1] # python environment Command "true ; nosetests --version" stdout is expected to match /^nosetests version \d+\.\d+\.\d+/
2840rspec /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb[1:2:1:1] # python environment Command "true ; wheel version" stderr is expected to be empty
2841rspec /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb[1:2:2:1] # python environment Command "true ; wheel version" stdout is expected to match /^wheel \d+\.\d+\.\d+/
2842rspec /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb[1:3:1:1] # python environment Command "true ; py.test --version" stderr is expected to be empty
2843rspec /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb[1:3:2:1] # python environment Command "true ; py.test --version" stdout is expected to match /pytest (version )?\d+\.\d+\.\d+/
2844rspec /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/mysql_spec.rb[1:4:5:1:1] # mysql installation mysql commands Command "echo "SHOW VARIABLES LIKE 'performance_schema'" | mysql" stdout is expected to include "performance_schema\tOFF"
2845rspec /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/mysql_spec.rb[1:3:3] # mysql installation File "/etc/mysql/conf.d/performance-schema.cnf" is expected to be owned by "root"
2846rspec /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/mysql_spec.rb[1:3:1] # mysql installation File "/etc/mysql/conf.d/performance-schema.cnf" is expected to exist
2847rspec /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/mysql_spec.rb[1:3:2] # mysql installation File "/etc/mysql/conf.d/performance-schema.cnf" is expected to be readable
2848rspec /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/mysql_spec.rb[1:3:4] # mysql installation File "/etc/mysql/conf.d/performance-schema.cnf" is expected to be grouped into "root"
2849rspec /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/postgresql_spec.rb[1:1:1:1] # postgresql installation Command " psql --version" stdout is expected to match /^psql.+(9\.[3-6]+\.[0-9]+|10\.[0-9])/
2850rspec /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/basic_spec.rb[30:1:1] # Command "psql --version" stdout is expected to match /^psql.+(9\.[4-6]+\.[0-9]+|10\.[0-9]{1,2}|11\.[0-9]{1,2}|12\.[0-9]{1,2}|13\.[0-9]{1,2})/
2852Randomized with seed 47570
2854+ local exit_code=1
2855+ [[ 1 != 0 ]]
2856+ echo 'Spec suite exited with 1'
2857Spec suite exited with 1
2858+ [[ -n '' ]]
2859+ exit 1
2861The command "bundle exec bash -xc sudo packer-scripts/run-serverspecs" failed. Retrying, 3 of 3.
2863+sudo packer-scripts/run-serverspecs
2864+ shopt -s nullglob
2865+ export CHEF_PATH=/opt/chef-workstation/bin:/opt/chef-workstation/embedded/bin:/opt/chef/bin
2866+ CHEF_PATH=/opt/chef-workstation/bin:/opt/chef-workstation/embedded/bin:/opt/chef/bin
2867+ export CHEF_LICENSE=accept-silent
2868+ CHEF_LICENSE=accept-silent
2869+ 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
2870+ 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
2871+ export DEBIAN_FRONTEND=noninteractive
2872+ DEBIAN_FRONTEND=noninteractive
2873+ export RUBYOPT=-W0
2874+ RUBYOPT=-W0
2875+ : /home/travis/build/travis-ci/packer-templates/tmp
2876+ : 'bash -lc'
2877+ : docker
2878+ [[ docker == \d\o\c\k\e\r ]]
2879+ export 'SPEC_ARGS=--tag ~dev --tag ~docker:false'
2880+ SPEC_ARGS='--tag ~dev --tag ~docker:false'
2881++ uname -m
2882+ [[ x86_64 =~ aarch64 ]]
2883++ uname -m
2884+ [[ x86_64 =~ ppc64 ]]
2885+ __install_chef /home/travis/build/travis-ci/packer-templates/tmp
2886+ [[ -f /opt/chef-workstation/embedded/bin/rspec ]]
2887+ return
2888+ __create_sudo_bash
2889+ cat
2890+ chmod 0755 /tmp/sudo-bash
2891+ __chown_travis_dirs /home/travis/build/travis-ci/packer-templates/tmp
2892+ chown -R travis:travis /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local /var/tmp
2893+ for suite in ${SPEC_SUITES/,/ }
2894+ __run_suite travis_packer_templates /home/travis/build/travis-ci/packer-templates/tmp 'bash -lc'
2895+ local suite=travis_packer_templates
2896+ local chef_prefix=/home/travis/build/travis-ci/packer-templates/tmp
2897+ local 'runner=bash -lc'
2898+ local cookbook_dir
2899++ __suite_cookbook_dir travis_packer_templates /home/travis/build/travis-ci/packer-templates/tmp
2900++ local suite=travis_packer_templates
2901++ local chef_prefix=/home/travis/build/travis-ci/packer-templates/tmp
2902++ local spec_dir
2903+++ 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-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
2904+++ head -1
2905++ spec_dir=/home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates/spec
2906++ dirname /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates/spec
2907+ cookbook_dir=/home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates
2908+ pushd /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates
2909+ __run_suite_as_travis travis_packer_templates /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates 'bash -lc'
2910+ local suite=travis_packer_templates
2911+ local cookbook_dir=/home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates
2912+ local 'runner=bash -lc'
2913+ set +o errexit
2914++ uname -m
2915++ uname -m
2916+ bash -lc '
2917set -o xtrace
2918export PATH="/opt/chef-workstation/bin:/opt/chef-workstation/embedded/bin:/opt/chef/bin:$PATH"
2919export TERM=xterm
2920export PACKER_BUILDER_TYPE=docker
2921export RUBYOPT=-W0
2922if [[ x86_64 =~ ppc64 ]]; then
2923 gem install serverspec
2924else
2925 chef gem install serverspec
2927unset GEM_PATH
2928cd /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates
2929sudo systemctl start xvfb.service
2930set -o errexit
2931if [[ x86_64 =~ ppc64 ]]; then
2932 rspec --tag ~dev --tag ~docker:false \
2933 --format documentation \
2934 --format json \
2935 --out /home/travis/.travis_packer_templates_rspec.json
2936else
2937 chef exec rspec --tag ~dev --tag ~docker:false \
2938 --format documentation \
2939 --format json \
2940 --out /home/travis/.travis_packer_templates_rspec.json
2943+ 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:/home/travis/.gimme/versions/go1.23.0.linux.amd64/bin:/usr/local/maven-3.9.4/bin:/usr/local/cmake-3.29.0/bin:/usr/local/clang-18.1.8/bin:/home/travis/.gimme/versions/go1.23.0.linux.amd64/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
2944+ 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:/home/travis/.gimme/versions/go1.23.0.linux.amd64/bin:/usr/local/maven-3.9.4/bin:/usr/local/cmake-3.29.0/bin:/usr/local/clang-18.1.8/bin:/home/travis/.gimme/versions/go1.23.0.linux.amd64/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
2945+ export TERM=xterm
2946+ TERM=xterm
2947+ export PACKER_BUILDER_TYPE=docker
2948+ PACKER_BUILDER_TYPE=docker
2949+ export RUBYOPT=-W0
2950+ RUBYOPT=-W0
2951+ [[ x86_64 =~ ppc64 ]]
2952+ chef gem install serverspec
2953WARNING: You don't have /home/travis/.chefdk/gem/ruby/3.0.0/bin in your PATH,
2954 gem executables will not run.
2955Successfully installed serverspec-2.42.3
29561 gem installed
2957+ unset GEM_PATH
2958+ cd /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates
2959+ sudo systemctl start xvfb.service
2960+ set -o errexit
2961+ [[ x86_64 =~ ppc64 ]]
2962+ chef exec rspec --tag '~dev' --tag '~docker:false' --format documentation --format json --out /home/travis/.travis_packer_templates_rspec.json
2963Run options: exclude {:dev=>true, :docker=>false}
2965Randomized with seed 525
2967bazaar installation
2968 bazaar commands
2969 Command "
2970 cd /tmp/packer-templates-20241007-16070-2um28b-rspec/bzr-project;
2971 bzr status;
2972 bzr add test.txt;
2973 bzr status;
2975 stdout
2976 is expected to match /^adding test\.txt/
2977 stdout
2978 is expected to match /^ test\.txt/
2979 stdout
2980 is expected to match /^added:/
2981 stdout
2982 is expected to match /^unknown:/
2983 stdout
2984 is expected to match /^ test\.txt/
2985 Command "bzr version"
2986 exit_status
2987 is expected to eq 0
2988 stdout
2989 is expected to match /Bazaar \(bzr\)|Breezy \(brz\)/
2991ruby installation
2992 Command "rspec --version"
2993 stdout
2994 is expected to match /^RSpec \d+\.\d+/
2995 stderr
2996 is expected to be empty
2997 Command "gem --version"
2998 stdout
2999 is expected to match /^\d+\.\d+\.\d+/
3000 stderr
3001 is expected to be empty
3003ccache installation
3004 Command "ccache -V"
3005 exit_status
3006 is expected to eq 0
3007 ccache commands are executed
3008 Command "ccache -M 0.5"
3009 stdout
3010 is expected to match /Set cache size limit to (512\.0 Mbytes|500\.0 MB)/
3011 Command "ccache -s"
3012 stdout
3013 is expected to include "cache directory", "cache hit", "cache miss", "files in cache", and "max cache size"
3015File "/opt"
3016 is expected to be writable
3017 is expected to be directory
3019ruby interpreter
3020 Command "ruby -e 'puts RUBY_ENGINE'"
3021 stdout
3022 is expected to match /^ruby/
3023 Command "ruby -e 'puts "Konstanin broke all the things!"'"
3024 stdout
3025 is expected to match /^Konstanin broke all the things!$/
3026 Command "ruby --version"
3027 stderr
3028 is expected to be empty
3029 stdout
3030 is expected to match /^ruby 3\.\d+\.\d+/
3032Command "shfmt -version"
3033 stdout
3034 is expected to match /^v\d+\.\d+\.\d+/
3036apt installation
3037 /var/lib/apt/lists/*Packages*
3038 is non-empty
3039 apt architecture
3040 Command "dpkg --print-foreign-architectures"
3041 stdout
3042 is expected to match /i386/
3043 Command "dpkg --print-architecture"
3044 stdout
3045 is expected to match /amd64/
3046 Command "apt-get -v"
3047 exit_status
3048 is expected to eq 0
3049 apt commands
3050 Command "sudo apt-get install -y language-pack-pt"
3051 stdout
3052 is expected to match /Reading state/
3053 Command "sudo apt-get update -y"
3054 stdout
3055 is expected to match /http/
3056 Command "apt-cache search ubuntu-restricted-extras"
3057 stdout
3058 is expected not to be empty
3059 File "/var/lib/apt/lists"
3060 is expected to be directory
3062ragel installation
3063 Command "ragel -v"
3064 stdout
3065 is expected to match /^Ragel /
3066 exit_status
3067 is expected to eq 0
3068 ragel commands
3069 add a ragel file and execute a ragel command
3070 File "/tmp/packer-templates-20241007-16070-2um28b-rspec/hello_world.rb"
3071 content
3072 is expected to match /^puts "Hello World"/
3073 Package "ragel"
3074 is expected to be installed
3076Command "cmake --version"
3077 stdout
3078 is expected to match /^cmake version [23]/
3079 exit_status
3080 is expected to eq 0
3082ssh access
3083 File "/home/travis/.ssh/known_hosts"
3084 is expected to be writable
3085 is expected to exist
3086 is expected to be readable
3087 size
3088 is expected to be positive
3089 File "/home/travis/.ssh/authorized_keys"
3090 is expected to exist
3091 is expected to be readable
3092 is expected to be writable
3093 size
3094 is expected to be positive
3096xserver installation
3097 Command "Xorg -version"
3098 exit_status
3099 is expected to eq 0
3100 Command "xvfb-run -a xdpyinfo"
3101 stdout
3102 is expected to match /^\s+GLX$/
3103 exit_status
3104 is expected to eq 0
3105 stderr
3106 is expected to be empty
3107 Command "DISPLAY=:99.0 xset -q"
3108 exit_status
3109 is expected to eq 0
3110 stdout
3111 is expected to match /^Keyboard Control:/
3112 stderr
3113 is expected to be empty
3115File "/etc/cloud/templates/hosts.tmpl"
3116 is expected to be exist
3117 content
3118 is expected to match /travis_build_environment/i
3119 content
3120 is expected to match /managed by chef/i
3122md5deep installation
3123 Command "md5deep -V"
3124 stdout
3125 is expected to match "This program is a work of the US Government."
3126 Command "md5deep -v"
3127 exit_status
3128 is expected to eq 0
3129 Command "md5deep /tmp/packer-templates-20241007-16070-2um28b-rspec/md5deep.txt"
3130 stdout
3131 is expected to match /^29c04665afa6ef18edc38824ceaff6ab\b/
3133sudoers setup
3134 File "/etc/sudoers.d/travis"
3135 is expected to be owned by "root"
3136 is expected to be file
3137 is expected to exist
3138 is expected to be mode 440
3139 content
3140 is expected to match /^Defaults !authenticate$/
3141 content
3142 is expected to match /^travis ALL=\(ALL\) NOPASSWD:ALL$/
3143 content
3144 is expected to match /^Defaults !mail_badpass$/
3145 content
3146 is expected to match /^Defaults !env_reset$/
3147 File "/etc/sudoers"
3148 is expected to exist
3149 is expected to be file
3150 is expected to be owned by "root"
3151 is expected to be mode 440
3152 content
3153 is expected to match /^#includedir \/etc\/sudoers\.d$/
3155Command "ldconfig -p | grep libldap"
3156 exit_status
3157 is expected to eq 0
3158 stdout
3159 is expected to match /libldap_r/
3161php environment
3162 Command "PHPENV_VERSION=system phpenv exec php -m --version"
3163 stdout
3164 is expected to include "Core", "PDO", "Phar", "SPL", "Xdebug", "bcmath", "ctype", "curl", "date", "dom", "exif", "filter", "ftp", "gd", "hash", "iconv", "json", "libxml", "mbstring", "pcre", "pdo_mysql", "pdo_sqlite", "posix", "readline", "sqlite3", "standard", "sysvsem", "sysvshm", "tidy", "xmlrpc", "xmlwriter", "xsl", "zip", and "zlib"
3165 Command "PHPENV_VERSION=system phpenv exec php-fpm --version"
3166 stdout
3167 is expected to match /^PHP \d+\.\d+\.\d+.+fpm-fcgi/
3168 exit_status
3169 is expected to eq 0
3170 File "/home/travis/.pearrc"
3171 is expected not to exist
3173dictionaries installation
3174 Package "wamerican"
3175 is expected to be installed
3177File "/usr/share/travis/system_info"
3178 is expected to exist
3179 size
3180 is expected to be positive
3182go installation
3183 Command "gimme -l"
3184 stdout
3185 is expected not to be empty
3187sqlite installation
3188 sqlite commands are executed
3189 Command "
3190 sqlite3 /tmp/packer-templates-20241007-16070-2um28b-rspec/test.db "
3191 CREATE TABLE hats (
3192 id INTEGER PRIMARY KEY,
3193 name TEXT,
3194 style INTEGER
3195 );
3196 INSERT INTO hats VALUES(1, 'floppy', 9001);
3197 SELECT * FROM hats;
3200 stdout
3201 is expected to match "1|floppy|9001"
3202 Command "sqlite3 -version"
3203 stdout
3204 is expected to match /^\d\.\d/
3205 exit_status
3206 is expected to eq 0
3208File "/etc/cloud/templates/hosts.debian.tmpl"
3209 is expected to be exist
3210 content
3211 is expected to match /managed by chef/i
3212 content
3213 is expected to match /travis_build_environment/i
3215unarchivers installation
3216 Command "
3217 cd /tmp/packer-templates-20241007-16070-2um28b-rspec;
3218 zip test.zip test.txt;
3219 rm test.txt;
3220 ls /tmp/packer-templates-20241007-16070-2um28b-rspec;
3221 unzip test.zip;
3222 cat test.txt
3224 stdout
3225 is expected to match "Konstantin broke all the things."
3226 stdout
3227 is expected to include "test.zip"
3228 Command "
3229 gzip /tmp/packer-templates-20241007-16070-2um28b-rspec/test.txt;
3230 rm /tmp/packer-templates-20241007-16070-2um28b-rspec/test.txt;
3231 ls /tmp/packer-templates-20241007-16070-2um28b-rspec;
3232 gzip -d /tmp/packer-templates-20241007-16070-2um28b-rspec/test.txt.gz;
3233 cat /tmp/packer-templates-20241007-16070-2um28b-rspec/test.txt
3235 stdout
3236 is expected to match "Konstantin broke all the things."
3237 stdout
3238 is expected to include "test.txt.gz"
3239 Command "zip --version"
3240 stdout
3241 is expected to match /Zip \d/
3242 exit_status
3243 is expected to eq 0
3244 Command "
3245 bzip2 -z /tmp/packer-templates-20241007-16070-2um28b-rspec/test.txt;
3246 rm /tmp/packer-templates-20241007-16070-2um28b-rspec/test.txt;
3247 ls /tmp/packer-templates-20241007-16070-2um28b-rspec;
3248 bzip2 -d /tmp/packer-templates-20241007-16070-2um28b-rspec/test.txt.bz2;
3249 cat /tmp/packer-templates-20241007-16070-2um28b-rspec/test.txt
3251 stdout
3252 is expected to include "test.txt.bz2"
3253 stdout
3254 is expected to match "Konstantin broke all the things."
3255 Command "unzip -version"
3256 stdout
3257 is expected to match /^UnZip \d/
3258 exit_status
3259 is expected to eq 0
3260 Command "dpkg -s libbz2-dev"
3261 stdout
3262 is expected to match "Status: install ok installed"
3263 Command "gzip --version"
3264 stdout
3265 is expected to match /^gzip \d/
3266 exit_status
3267 is expected to eq 0
3269jdk installation
3270 should have JAVA_HOME defined
3271 java command
3272 Command "cd /tmp/packer-templates-20241007-16070-2um28b-rspec && java Hello"
3273 stdout
3274 is expected to match "Hello World!"
3275 Command "java -version"
3276 exit_status
3277 is expected to eq 0
3278 stderr
3279 is expected to match /^(java|openjdk)/
3281go toolchain installation
3282 Command "go version"
3283 stdout
3284 is expected to match /^go version go/
3285 Command "go env GOROOT"
3286 stdout
3287 is expected to match /\/\.gimme\//
3288 compiling something
3289 Command "go run /tmp/packer-templates-20241007-16070-2um28b-rspec/example.go"
3290 stdout
3291 is expected to match /Good morrow, 15558/
3293redis installation
3294 redis commands
3295 Command "redis-cli -p 16379 GET test_key | cat"
3296 stdout
3297 is expected to match /^test_value$/
3298 Command "redis-cli -p 16379 PING"
3299 stdout
3300 is expected to match /^PONG$/
3301 Command "redis-server --version"
3302 exit_status
3303 is expected to eq 0
3304 stdout
3305 is expected to match /^Redis /
3307postgresql installation
3308 psql commands
3309 with a test table
3310 Command " psql -U travis -tA -c '\dt' test_db"
3311 stdout
3312 is expected to match /^public\|test_table\|/
3313 stderr
3314 is expected to be empty
3315 Command " psql -U travis -ltA"
3316 stdout
3317 is expected to match /^test_db\|/
3318 Command " psql --version"
3319 exit_status
3320 is expected to eq 0
3321 stdout
3322 is expected to match /^psql.+(9\.[3-6]+\.[0-9]+|10\.[0-9])/ (FAILED - 1)
3324gimme installation
3325 Command "gimme --version"
3326 exit_status
3327 is expected to eq 0
3328 Command "eval "$(HOME=/tmp/packer-templates-20241007-16070-2um28b-rspec gimme 1.6.3)" 2>&1"
3329 stdout
3330 is expected to match "go version go1.6.3"
3332python3 interpreter
3333 Command "python3 -m this"
3334 stderr
3335 is expected to be empty
3336 stdout
3337 is expected to match /Readability counts\./
3338 python3 --version
3339 is expected to match /^Python \d+\.\d+\.\d+/
3341Command "curl --version | head -1"
3342 exit_status
3343 is expected to eq 0
3344 stdout
3345 is expected to include "curl"
3347Command "rsync --version"
3348 exit_status
3349 is expected to eq 0
3350 stdout
3351 is expected to match /rsync.+version/
3353python2 interpreter
3354 python --version
3355 is expected to match /^Python \d+\.\d+\.\d+/
3356 Command "python -m this"
3357 stdout
3358 is expected to match /Readability counts\./
3359 stderr
3360 is expected to be empty
3362vim installation
3363 Command "vim --version"
3364 stdout
3365 is expected not to be empty
3366 stderr
3367 is expected to be empty
3368 exit_status
3369 is expected to eq 0
3370 File "/tmp/packer-templates-20241007-16070-2um28b-rspec/test.txt"
3371 content
3372 is expected to match /there/
3374docker-compose installation
3375 Command "docker-compose --version"
3376 exit_status
3377 is expected to eq 0
3378 stdout
3379 is expected to match /^docker-compose version:?\s+\d+\.\d+\.\d+/ (FAILED - 2)
3381Command "nc -h"
3382 exit_status
3383 is expected to eq 0
3385perl interpreter
3386 Command "perl --version"
3387 stderr
3388 is expected to be empty
3389 stdout
3390 is expected to match /perl 5, version \d/
3391 Command "perl -e 'print "Hello Mr Euler!\n"'"
3392 stdout
3393 is expected to match /^Hello Mr Euler!/
3394 stderr
3395 is expected to be empty
3397phantomjs installation
3398 Command "phantomjs -v"
3399 exit_status
3400 is expected to eq 0
3401 stdout
3402 is expected to match /\d/
3403 Command "phantomjs /tmp/packer-templates-20241007-16070-2um28b-rspec/test.js"
3404 stdout
3405 is expected to match "Status: success"
3407nodejs interpreter
3408 Command "node -e "console.log('Konstantin broke all the thingz')""
3409 stdout
3410 is expected to match "Konstantin broke all the thingz"
3411 Command "node -v"
3412 exit_status
3413 is expected to eq 0
3414 stdout
3415 is expected to match /v\d/
3417sysctl installation
3418 Command "sysctl -a"
3419 stdout
3420 is expected to include "kernel.sched_child_runs_first"
3421 Command "sysctl -V"
3422 exit_status
3423 is expected to eq 0
3425perlbrew installation
3426 Command "perlbrew list"
3427 exit_status
3428 is expected to eq 0
3429 Command "perlbrew --version"
3430 stdout
3431 is expected to match /perl5\/perlbrew\/bin\/perlbrew.+App::perlbrew\/\d+\.\d+/
3432 exit_status
3433 is expected to eq 0
3435dictionaries commands
3436 Command "look kid"
3437 stderr
3438 is expected to be empty
3439 stdout
3440 is expected to match /^kidding$/
3441 stdout
3442 is expected to match /^kidney$/
3443 stdout
3444 is expected to match /^kidnappers$/
3446File "/etc/cloud/templates"
3447 is expected to be directory
3449File "/etc/cloud/cloud.cfg"
3450 content
3451 is expected to match /managed by chef/i
3452 content
3453 is expected to match /travis_build_environment/i
3455File "/etc/cloud/templates/sources.list.tmpl"
3456 content
3457 is expected to match /travis_build_environment/i
3458 content
3459 is expected to match /managed by chef/i
3461openssl installation
3462 Command "openssl version"
3463 exit_status
3464 is expected to eq 0
3465 stdout
3466 is expected to match /^OpenSSL/
3467 openssl commands
3468 Command "echo "Konstantin broke all the things." | openssl enc -base64"
3469 stdout
3470************************************************************************************
3471******************************************************************************************
3472 stdout
3473 is expected to match "Konstantin broke all the things."
3475php interpreter
3476 Command "PHPENV_VERSION=system phpenv exec php -r 'foreach(range(1, 5) as $i) echo $i * 2 . " ";'"
3477 stderr
3478 is expected to be empty
3479 stdout
3480 is expected to match /^2 4 6 8 10/
3481 Command "PHPENV_VERSION=system phpenv exec php --version"
3482 stderr
3483 is expected to be empty
3484 stdout
3485 is expected to match /^PHP \d+\.\d+/
3487Command "wget --version"
3488 exit_status
3489 is expected to eq 0
3490 stdout
3491 is expected to include "GNU Wget"
3493Command "iptables --version"
3494 exit_status
3495 is expected to eq 0
3496 stdout
3497 is expected to include "iptables"
3499Command "bats --version"
3500 stdout
3501 is expected to match /^Bats \d/
3503imagemagick installation
3504 imagemagick commands
3505 Command "identify /tmp/packer-templates-20241007-16070-2um28b-rspec/logo.gif"
3506 stdout
3507 is expected to match /logo\.gif GIF/
3508 exit_status
3509 is expected to eq 0
3510 Command "convert --version"
3511 stdout
3512 is expected to match /imagemagick/i
3513 exit_status
3514 is expected to eq 0
3516subversion installation
3517 subversion commands are executed
3518 File "/tmp/packer-templates-20241007-16070-2um28b-rspec/svn-project/README.txt"
3519 content
3520 is expected to match "This is a Subversion repository;"
3521 Command "svn --version"
3522 exit_status
3523 is expected to eq 0
3525python environment
3526 Command "true ; pip --version"
3527 stdout
3528 is expected to match /^pip \d+\.\d+(\.\d+)?/
3529 stderr
3530 is expected to be empty
3531 Command "true ; wheel version"
3532 stdout
3533 is expected to match /^wheel \d+\.\d+\.\d+/ (FAILED - 3)
3534 stderr
3535 is expected to be empty (FAILED - 4)
3536 Command "true ; nosetests --version"
3537 stdout
3538 is expected to match /^nosetests version \d+\.\d+\.\d+/ (FAILED - 5)
3539 stderr
3540 is expected to be empty (FAILED - 6)
3541 Command "true ; python -c 'import sys;from unittest import mock;sys.stdout.write(mock.__version__ + "\n")'"
3542 stderr
3543 is expected to be empty
3544 stdout
3545 is expected to match /^\d+\.\d+/
3546 Command "true ; py.test --version"
3547 stderr
3548 is expected to be empty (FAILED - 7)
3549 stdout
3550 is expected to match /pytest (version )?\d+\.\d+\.\d+/ (FAILED - 8)
3552memcached installation
3553 Package "memcached"
3554 is expected to be installed
3555 memcached commands
3556 Service "memcached"
3557 is expected to be running
3558 Command "echo 'stats' | nc -w 5 127.0.0.1 11211"
3559 stdout
3560 is expected to match "version"
3561 Command "memcached -h"
3562 stdout
3563 is expected to match /^memcached \d/
3564 exit_status
3565 is expected to eq 0
3567Command "heroku version"
3568 stdout
3569 is expected to match /^heroku/
3571Command "lsof -v 2>&1 | head -2 | tail -1"
3572 exit_status
3573 is expected to eq 0
3574 stdout
3575 is expected to match /revision:/
3577Command "packer version"
3578 exit_status
3579 is expected to eq 0
3580 stdout
3581 is expected to match /^Packer v\d/
3583mercurial installation
3584 Command "hg version"
3585 stdout
3586 is expected to match /^Mercurial Distributed SCM \(version \d/
3587 exit_status
3588 is expected to eq 0
3589 mecurial commands are executed
3590 Command "cd /tmp/packer-templates-20241007-16070-2um28b-rspec/hg-project; hg status; hg add .; hg status"
3591 stdout
3592 is expected to match "\\? test-file.txt"
3593 stdout
3594 is expected to match "A test-file.txt"
3596rvm installation
3597 File "/home/travis/.rvmrc"
3598 is expected to exist
3599 is expected to be writable
3600 is expected to be readable
3601 Command "rvm version"
3602 stderr
3603 is expected to be empty
3604 stdout
3605 is expected to match /^rvm /
3606 exit_status
3607 is expected to eq 0
3608 File "/home/travis/.rvm/user/db"
3609 is expected to be writable
3610 is expected to exist
3611 is expected to be readable
3612 rvm commands
3613 Command "rvm default do echo whatever"
3614 stdout
3615 is expected not to include "Warning!"
3616 stdout
3617 is expected to include "whatever"
3618 stderr
3619 is expected not to include "Warning!"
3620 Command "rvm list"
3621 stdout
3622 is expected to match /ruby-2\.[234567]\.\d/
3623 stderr
3624 is expected to be empty
3625 stdout
3626 is expected to include "current"
3628File "/.node-attributes.yml"
3629 is expected to exist
3630 content_as_yaml
3631 is expected to include "__timestamp"
3633File "/etc/cloud/templates/sources.list.ubuntu.tmpl"
3634 content
3635 is expected to match /travis_build_environment/i
3636 content
3637 is expected to match /managed by chef/i
3639git installation
3640 git commands
3641 Command "cd /tmp/packer-templates-20241007-16070-2um28b-rspec/git-project; git status; git add test-file.txt; git status; git add test-file.txt; git rm -f test-file.txt; git status"
3642 stdout
3643 is expected to match /nothing to commit/
3644 stdout
3645 is expected to include "Untracked files:", "test-file.txt", "Changes to be committed:", and "new file: test-file.txt"
3646 Command "git config user.email"
3647 stdout
3648 is expected to match /travis@example\.org/
3649 Package "git"
3650 is expected to be installed
3651 Command "git config user.name"
3652 stdout
3653 is expected to match /travis/i
3654 Command "git --version"
3655 stdout
3656 is expected to match /^git version (2\.|1\.[89])/
3657 exit_status
3658 is expected to eq 0
3660Command "psql --version"
3661 exit_status
3662 is expected to eq 0
3663 stdout
3664 is expected to match /^psql.+(9\.[4-6]+\.[0-9]+|10\.[0-9]{1,2}|11\.[0-9]{1,2}|12\.[0-9]{1,2}|13\.[0-9]{1,2})/ (FAILED - 9)
3666emacs installation
3667 Command "emacs --version"
3668 exit_status
3669 is expected to eq 0
3670 editing
3671 File "/tmp/packer-templates-20241007-16070-2um28b-rspec/test.txt"
3672 content
3673 is expected to match "poof"
3675Command "ldconfig -V"
3676 exit_status
3677 is expected to eq 0
3678 stdout
3679 is expected to include "ldconfig "
3681jq installation
3682 Command "jq -r '.stuff|.[]|select(."@type"=="smarm")|.msg[0]' </tmp/packer-templates-20241007-16070-2um28b-rspec/test.json"
3683 stdout
3684 is expected to match /^Konstantin broke all the things/
3685 Command "jq -V"
3686 exit_status
3687 is expected to eq 0
3689Command "ssh -V"
3690 stderr
3691 is expected to match /OpenSSH/
3693firefox installation
3694 Command "sudo -u travis firefox -v"
3695 stderr
3696 is expected to be empty
3697 exit_status
3698 is expected to eq 0
3699 firefox commands
3700 File "/tmp/packer-templates-20241007-16070-2um28b-rspec/.mozilla/firefox/profiles.ini"
3701 is expected to exist
3702 content
3703 is expected to match /^Name=test/
3705gcc installation
3706 Command "cd /tmp/packer-templates-20241007-16070-2um28b-rspec/empty && gcc"
3707 stderr
3708 is expected to include "no input files"
3709 Command "gcc -v"
3710 stderr
3711 is expected to match /^gcc version/
3712 Command "
3713 cd /tmp/packer-templates-20241007-16070-2um28b-rspec;
3714 gcc -Wall -o hai hai.c;
3715 ./hai there
3717 stdout
3718 is expected to match /^hai 2$/
3720mongodb installation
3721 mongo commands
3722 Command "mongo --eval "var myCursor = db.testData.find( { x: 6 }); myCursor.forEach(printjson);""
3723 stdout
3724 is expected to match /{ "_id" : ObjectId\("\w+"\), "x" : 6 }/
3725 Command "mongo --version"
3726 stdout
3727 is expected to match /MongoDB shell/
3728 exit_status
3729 is expected to eq 0
3730 Service "mongod"
3731 is expected not to be running
3732 is expected not to be enabled
3734Command "sudo -V"
3735 stdout
3736 is expected to match /^Sudo version \d/
3738mysql installation
3739 File "/home/travis/.my.cnf"
3740 is expected to be grouped into "travis"
3741 is expected to be readable
3742 is expected to exist
3743 is expected to be owned by "travis"
3744 mysql commands
3745 Command "echo "SHOW DATABASES" | mysql"
3746 stdout
3747 is expected to match /^travis$/
3748 Command "mysql -u root -e 'select "hai"'"
3749 stdout
3750 is expected to match /hai/
3751 exit_status
3752 is expected to eq 0
3753 stderr
3754 is expected to be empty
3755 Command "echo "SHOW VARIABLES LIKE 'performance_schema'" | mysql"
3756 stdout
3757 is expected to include "performance_schema\tOFF" (FAILED - 10)
3758 Command "mysql -u travis -e 'select "hai"'"
3759 stderr
3760 is expected to be empty
3761 stdout
3762 is expected to match /hai/
3763 exit_status
3764 is expected to eq 0
3765 Command "echo "SELECT id FROM test" | mysql travis"
3766 stdout
3767 is expected to match /^4$/
3768 File "/etc/mysql/conf.d/performance-schema.cnf"
3769 is expected to exist (FAILED - 11)
3770 is expected to be readable (FAILED - 12)
3771 is expected to be grouped into "root" (FAILED - 13)
3772 is expected to be owned by "root" (FAILED - 14)
3774Command "shellcheck --version"
3775 stdout
3776 is expected to match /^version: \d+\.\d+\.\d+/
3778User "travis"
3779 is expected to exist
3780 is expected to have login shell "/bin/bash"
3781 is expected to have home directory "/home/travis"
3783File "/etc/cloud/templates/hosts.ubuntu.tmpl"
3784 is expected to be exist
3785 content
3786 is expected to match /travis_build_environment/i
3787 content
3788 is expected to match /managed by chef/i
3790clang installation
3791 clang command
3792 Command "clang -help"
3793 stdout
3794 is expected to include "OVERVIEW: clang LLVM compiler" and "OPTIONS:"
3795 Command "clang -v"
3796 exit_status
3797 is expected to eq 0
3799File "/etc/cloud/templates/sources.list.debian.tmpl"
3800 content
3801 is expected to match /managed by chef/i
3802 content
3803 is expected to match /travis_build_environment/i
3805File "/home/travis/bin"
3806 is expected to be directory
3807 is expected to be writable
3809Command "mysql --version"
3810 stdout
3811 is expected to match /^mysql /
3812 exit_status
3813 is expected to eq 0
3815Failures:
3817 1) postgresql installation Command " psql --version" stdout is expected to match /^psql.+(9\.[3-6]+\.[0-9]+|10\.[0-9])/
3818 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
3819 expected "psql (PostgreSQL) 16.4 (Ubuntu 16.4-1.pgdg20.04+1)\n" to match /^psql.+(9\.[3-6]+\.[0-9]+|10\.[0-9])/
3820 Diff:
3821 @@ -1,2 +1,2 @@
3822 -/^psql.+(9\.[3-6]+\.[0-9]+|10\.[0-9])/
3823 +psql (PostgreSQL) 16.4 (Ubuntu 16.4-1.pgdg20.04+1)
3826 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/postgresql_spec.rb:7:in `block (3 levels) in <top (required)>'
3828 2) docker-compose installation Command "docker-compose --version" stdout is expected to match /^docker-compose version:?\s+\d+\.\d+\.\d+/
3829 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
3830 expected "Docker Compose version v2.27.1\n" to match /^docker-compose version:?\s+\d+\.\d+\.\d+/
3831 Diff:
3832 @@ -1,2 +1,2 @@
3833 -/^docker-compose version:?\s+\d+\.\d+\.\d+/
3834 +Docker Compose version v2.27.1
3837 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/docker_compose_spec.rb:9:in `block (3 levels) in <top (required)>'
3839 3) python environment Command "true ; wheel version" stdout is expected to match /^wheel \d+\.\d+\.\d+/
3840 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
3841 expected "" to match /^wheel \d+\.\d+\.\d+/
3842 Diff:
3843 @@ -1,2 +1,2 @@
3844 -/^wheel \d+\.\d+\.\d+/
3845 +""
3847 /bin/bash -c true\ \;\ wheel\ version
3849 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb:23:in `block (3 levels) in <top (required)>'
3851 4) python environment Command "true ; wheel version" stderr is expected to be empty
3852 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
3853 expected `"/bin/bash: wheel: command not found\n".empty?` to be truthy, got false
3855 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb:22:in `block (3 levels) in <top (required)>'
3857 5) python environment Command "true ; nosetests --version" stdout is expected to match /^nosetests version \d+\.\d+\.\d+/
3858 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
3859 expected "" to match /^nosetests version \d+\.\d+\.\d+/
3860 Diff:
3861 @@ -1,2 +1,2 @@
3862 -/^nosetests version \d+\.\d+\.\d+/
3863 +""
3865 /bin/bash -c true\ \;\ nosetests\ --version
3867 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb:42:in `block (3 levels) in <top (required)>'
3869 6) python environment Command "true ; nosetests --version" stderr is expected to be empty
3870 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
3871 expected `"/bin/bash: nosetests: command not found\n".empty?` to be truthy, got false
3873 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb:41:in `block (3 levels) in <top (required)>'
3875 7) python environment Command "true ; py.test --version" stderr is expected to be empty
3876 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
3877 expected `"/bin/bash: py.test: command not found\n".empty?` to be truthy, got false
3878 /bin/bash -c true\ \;\ py.test\ --version
3880 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb:35:in `block (3 levels) in <top (required)>'
3882 8) python environment Command "true ; py.test --version" stdout is expected to match /pytest (version )?\d+\.\d+\.\d+/
3883 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
3884 expected "" to match /pytest (version )?\d+\.\d+\.\d+/
3885 Diff:
3886 @@ -1,2 +1,2 @@
3887 -/pytest (version )?\d+\.\d+\.\d+/
3888 +""
3891 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb:36:in `block (3 levels) in <top (required)>'
3893 9) Command "psql --version" stdout is expected to match /^psql.+(9\.[4-6]+\.[0-9]+|10\.[0-9]{1,2}|11\.[0-9]{1,2}|12\.[0-9]{1,2}|13\.[0-9]{1,2})/
3894 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
3895 expected "psql (PostgreSQL) 16.4 (Ubuntu 16.4-1.pgdg20.04+1)\n" to match /^psql.+(9\.[4-6]+\.[0-9]+|10\.[0-9]{1,2}|11\.[0-9]{1,2}|12\.[0-9]{1,2}|13\.[0-9]{1,2})/
3896 Diff:
3897 @@ -1,2 +1,2 @@
3898 -/^psql.+(9\.[4-6]+\.[0-9]+|10\.[0-9]{1,2}|11\.[0-9]{1,2}|12\.[0-9]{1,2}|13\.[0-9]{1,2})/
3899 +psql (PostgreSQL) 16.4 (Ubuntu 16.4-1.pgdg20.04+1)
3902 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/basic_spec.rb:469:in `block (2 levels) in <top (required)>'
3904 10) mysql installation mysql commands Command "echo "SHOW VARIABLES LIKE 'performance_schema'" | mysql" stdout is expected to include "performance_schema\tOFF"
3905 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
3906 expected "Variable_name\tValue\nperformance_schema\tON\n" to include "performance_schema\tOFF"
3907 Diff:
3908 @@ -1,2 +1,3 @@
3909 -performance_schema OFF
3910 +Variable_name Value
3911 +performance_schema ON
3913 /bin/bash -c echo\ \"SHOW\ VARIABLES\ LIKE\ \'performance_schema\'\"\ \|\ mysql
3914 Variable_name Value
3915performance_schema ON
3917 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/mysql_spec.rb:72:in `block (4 levels) in <top (required)>'
3919 11) mysql installation File "/etc/mysql/conf.d/performance-schema.cnf" is expected to exist
3920 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
3921 expected File "/etc/mysql/conf.d/performance-schema.cnf" to exist
3922 /bin/bash -c test\ -e\ /etc/mysql/conf.d/performance-schema.cnf
3924 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/mysql_spec.rb:39:in `block (3 levels) in <top (required)>'
3926 12) mysql installation File "/etc/mysql/conf.d/performance-schema.cnf" is expected to be readable
3927 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
3928 expected File "/etc/mysql/conf.d/performance-schema.cnf" to be readable
3929 /bin/bash -c stat\ -c\ \%a\ /etc/mysql/conf.d/performance-schema.cnf
3931 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/mysql_spec.rb:40:in `block (3 levels) in <top (required)>'
3933 13) mysql installation File "/etc/mysql/conf.d/performance-schema.cnf" is expected to be grouped into "root"
3934 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
3935 expected `File "/etc/mysql/conf.d/performance-schema.cnf".grouped_into?("root")` to be truthy, got false
3936 /bin/bash -c stat\ -c\ \%G\ /etc/mysql/conf.d/performance-schema.cnf\ \|\ grep\ --\ \\\^root\\\$
3938 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/mysql_spec.rb:42:in `block (3 levels) in <top (required)>'
3940 14) mysql installation File "/etc/mysql/conf.d/performance-schema.cnf" is expected to be owned by "root"
3941 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
3942 expected `File "/etc/mysql/conf.d/performance-schema.cnf".owned_by?("root")` to be truthy, got false
3943 /bin/bash -c stat\ -c\ \%U\ /etc/mysql/conf.d/performance-schema.cnf\ \|\ grep\ --\ \\\^root\\\$
3945 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/mysql_spec.rb:41:in `block (3 levels) in <top (required)>'
3947Finished in 1 minute 0.32 seconds (files took 0.933 seconds to load)
3948280 examples, 14 failures
3950Failed examples:
3952rspec /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/postgresql_spec.rb[1:1:1:1] # postgresql installation Command " psql --version" stdout is expected to match /^psql.+(9\.[3-6]+\.[0-9]+|10\.[0-9])/
3953rspec /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/docker_compose_spec.rb[1:1:2:1] # docker-compose installation Command "docker-compose --version" stdout is expected to match /^docker-compose version:?\s+\d+\.\d+\.\d+/
3954rspec /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb[1:2:2:1] # python environment Command "true ; wheel version" stdout is expected to match /^wheel \d+\.\d+\.\d+/
3955rspec /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb[1:2:1:1] # python environment Command "true ; wheel version" stderr is expected to be empty
3956rspec /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb[1:4:2:1] # python environment Command "true ; nosetests --version" stdout is expected to match /^nosetests version \d+\.\d+\.\d+/
3957rspec /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb[1:4:1:1] # python environment Command "true ; nosetests --version" stderr is expected to be empty
3958rspec /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb[1:3:1:1] # python environment Command "true ; py.test --version" stderr is expected to be empty
3959rspec /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb[1:3:2:1] # python environment Command "true ; py.test --version" stdout is expected to match /pytest (version )?\d+\.\d+\.\d+/
3960rspec /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/basic_spec.rb[30:1:1] # Command "psql --version" stdout is expected to match /^psql.+(9\.[4-6]+\.[0-9]+|10\.[0-9]{1,2}|11\.[0-9]{1,2}|12\.[0-9]{1,2}|13\.[0-9]{1,2})/
3961rspec /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/mysql_spec.rb[1:4:5:1:1] # mysql installation mysql commands Command "echo "SHOW VARIABLES LIKE 'performance_schema'" | mysql" stdout is expected to include "performance_schema\tOFF"
3962rspec /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/mysql_spec.rb[1:3:1] # mysql installation File "/etc/mysql/conf.d/performance-schema.cnf" is expected to exist
3963rspec /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/mysql_spec.rb[1:3:2] # mysql installation File "/etc/mysql/conf.d/performance-schema.cnf" is expected to be readable
3964rspec /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/mysql_spec.rb[1:3:4] # mysql installation File "/etc/mysql/conf.d/performance-schema.cnf" is expected to be grouped into "root"
3965rspec /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/mysql_spec.rb[1:3:3] # mysql installation File "/etc/mysql/conf.d/performance-schema.cnf" is expected to be owned by "root"
3967Randomized with seed 525
3969+ local exit_code=1
3970+ [[ 1 != 0 ]]
3971+ echo 'Spec suite exited with 1'
3972Spec suite exited with 1
3973+ [[ -n '' ]]
3974+ exit 1
3976The command "bundle exec bash -xc sudo packer-scripts/run-serverspecs" failed 3 times.
3978The command "travis_retry bundle exec bash -xc 'sudo packer-scripts/run-serverspecs'" exited with 1.
39790.02s$ for f in ~/.*_rspec.json; do echo "checking $f"; jq . < $f &>/dev/null; done
3980checking /home/travis/.travis_packer_templates_rspec.json
3981The command "for f in ~/.*_rspec.json; do echo "checking $f"; jq . < $f &>/dev/null; done" exited with 0.
cache.2
3982store build cache
3983$ bundle clean
39840.00s4.43schanges detected, packing new archive
3985gzip: warning: GZIP environment variable is deprecated; use an alias or script
3986uploading PR.872/cache--linux-focal-cc013414c57ac8c1748cd2de9aad19a7ca10be0189feb0a5adcc2c060b0d138d--rvm-default--gemfile-Gemfile.tgz
3987cache uploaded
3990Done. Your build exited with 1.
Top