Pull request event #7687 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: 00815f25-30ed-4af4-b483-2cd0ea153155@1.worker-n2-com-f8c4bb956-vwsbv.gce-production-1
3version: deploy_2024.10.02-2-gc32b553 https://github.com/travis-ci/worker/tree/c32b553e81363378d09787f52103ea9bcadf253c
4instance: travis-job-3b3da989-b801-411a-898b-7331bba81d70 travis-ci-ubuntu-2004-1726220016-655c8cb5 (via amqp)
5startup: 5.917562995s
60.22s0.01s0.00s0.01s
system_info
7Build system information
8Build language: ruby
9Build group: stable
10Build dist: focal
11Build id: 272754968
12Job id: 627169211
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.83s0.29s0.05s0.01s0.04s0.00s0.03s0.01s0.01s0.01s0.01s0.00s0.42sOK
1660.00s0.03s0.00s0.01s0.14s0.00s0.00s0.00s0.01s0.00s0.15s0.00s1.15s0.00s0.00s6.04s0.00s613.48scurl: (56) OpenSSL SSL_read: Connection timed out, errno 110
167xz: (stdin): Unexpected end of input
168tar: Unexpected EOF in archive
169tar: Unexpected EOF in archive
170tar: Error is not recoverable: exiting now
171Failed to update Heroku CLI
1720.00s1.07s
docker_mtu_and_registry_mirrors
Docker
resolvconf
services
1735.98s$ travis_setup_postgresql
174Starting PostgreSQL v13
175sudo systemctl start postgresql@13-main
git.checkout
1760.01s0.49s$ git clone --depth=50 https://github.com/travis-ci/packer-templates.git travis-ci/packer-templates
177Cloning into 'travis-ci/packer-templates'...
178remote: Enumerating objects: 1806, done.
179remote: Counting objects: 100% (1806/1806), done.
180remote: Compressing objects: 100% (901/901), done.
181remote: Total 1806 (delta 1132), reused 1229 (delta 742), pack-reused 0 (from 0)
182Receiving objects: 100% (1806/1806), 356.70 KiB | 6.04 MiB/s, done.
183Resolving deltas: 100% (1132/1132), done.
184$ cd travis-ci/packer-templates
1850.26s$ git fetch origin +refs/pull/873/merge: --depth=50
186remote: Enumerating objects: 55, done.
187remote: Counting objects: 100% (53/53), done.
188remote: Compressing objects: 100% (10/10), done.
189remote: Total 25 (delta 15), reused 20 (delta 11), pack-reused 0 (from 0)
190Unpacking objects: 100% (25/25), 3.01 KiB | 342.00 KiB/s, done.
191From https://github.com/travis-ci/packer-templates
192 * branch refs/pull/873/merge -> FETCH_HEAD
193$ git checkout -qf FETCH_HEAD
1950.01s
196Setting environment variables from repository settings
197$ export DOCKER_LOGIN_EMAIL=[secure]
198$ export DOCKER_LOGIN_PASSWORD=[secure]
199$ export DOCKER_LOGIN_SERVER=[secure]
200$ export DOCKER_LOGIN_USERNAME=[secure]
201$ export GCE_PROJECT_ID=[secure]
202$ export JOB_BOARD_IMAGES_URL=[secure]
203$ export GCE_ACCOUNT_FILE=[secure]
204$ export GCE_ACCOUNT_FILE_B64_BZ2=[secure]
205$ export GCR_LOGIN_SERVER=[secure]
206$ export GCR_AUTH_TOKEN=[secure]
207$ export QUAY_DOCKER_LOGIN_EMAIL=[secure]
208$ export QUAY_DOCKER_LOGIN_PASSWORD=[secure]
209$ export QUAY_DOCKER_LOGIN_SERVER=[secure]
210$ export QUAY_DOCKER_LOGIN_USERNAME=[secure]
211$ export TRAVIS_WORKER_VERSION=[secure]
212$ export GCE_ACCOUNT_ID=[secure]
213$ export GCE_SERVICE_ACCOUNT_ID=[secure]
214$ export GCE_SERVICE_ACCOUNT_FILE_BZ2_B64=[secure]
215$ export GITHUB_API_TOKEN=[secure]
217Setting environment variables from .travis.yml
218$ export DPKG_MANIFEST_JSON="${TRAVIS_BUILD_DIR}/.example-dpkg-manifest.json"
219$ export LANG=en_US.UTF-8
220$ export NODE_ATTRIBUTES_YML="${TRAVIS_BUILD_DIR}/.example-node-attributes.yml"
221$ export PACKER_CHEF_PREFIX="${TRAVIS_BUILD_DIR}/tmp"
222$ export PATH="/opt/chef-workstation/bin:/opt/chef-workstation/embedded/bin:/opt/chef/bin:${HOME}/bin:${PATH}"
223$ export REQUEST_INTERVAL=5
224$ export SKIP_CHEF_REMOVAL='1'
225$ export SPEC_ARGS='--tag ~dev'
226$ export SPEC_RUNNER='bash -lc'
227$ export SPEC_SUITES='travis_packer_templates'
228$ export SYSTEM_INFO_JSON="${TRAVIS_BUILD_DIR}/.example_system_info.json"
229$ export TRAVIS_SOURCE_AMI="ami-01eefcaf0edcc4cf0"
230$ export TRAVIS_JOB_BOARD_REGISTER_YML="${TRAVIS_BUILD_DIR}/.example-job-board-register-sardonyx.yml"
rvm
2320.71s$ rvm use default
233Using /home/travis/.rvm/gems/ruby-3.3.5
235$ export BUNDLE_GEMFILE=$PWD/Gemfile
cache.1
236Setting up build cache
237$ export CASHER_DIR=${TRAVIS_HOME}/.casher
2380.16s$ Installing caching utilities
2390.00s1.49sattempting to download cache archive
240fetching PR.873/cache--linux-focal-cc013414c57ac8c1748cd2de9aad19a7ca10be0189feb0a5adcc2c060b0d138d--rvm-default--gemfile-Gemfile.tgz
241fetching PR.873/cache-linux-focal-cc013414c57ac8c1748cd2de9aad19a7ca10be0189feb0a5adcc2c060b0d138d--rvm-default--gemfile-Gemfile.tgz
242fetching PR.873/cache--rvm-default--gemfile-Gemfile.tgz
243fetching master/cache--linux-focal-cc013414c57ac8c1748cd2de9aad19a7ca10be0189feb0a5adcc2c060b0d138d--rvm-default--gemfile-Gemfile.tgz
244fetching master/cache-linux-focal-cc013414c57ac8c1748cd2de9aad19a7ca10be0189feb0a5adcc2c060b0d138d--rvm-default--gemfile-Gemfile.tgz
245fetching master/cache--rvm-default--gemfile-Gemfile.tgz
246could not download cache
2470.00s1.14sadding /home/travis/bin to cache
cache.bundler
2500.00s1.13sadding /home/travis/build/travis-ci/packer-templates/vendor/bundle to cache
251creating directory /home/travis/build/travis-ci/packer-templates/vendor/bundle
ruby.versions
252$ ruby --version
253ruby 3.3.5 (2024-09-03 revision ef084cc8f4) [x86_64-linux]
254$ rvm --version
255rvm 1.29.12 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]
256$ bundle --version
257Bundler version 2.5.16
258$ gem --version
2593.5.16
install.1
2610.00s$ if [[ -f .test-branch ]]; then export TRAVIS_COOKBOOKS_TEST_BRANCH="$(cat .test-branch 2>/dev/null)"; fi
install.2
2620.01s$ export GIT_DESC="$(git describe --always --dirty --tags)"
install.3
2630.69s$ rvm use 3.3.5 --install --binary --fuzzy
264Using /home/travis/.rvm/gems/ruby-3.3.5
install.4
2650.68s$ gem install bundler:2.5.21
266Fetching bundler-2.5.21.gem
267GemWrappers: Can not wrap not executable file: /home/travis/.rvm/gems/ruby-3.3.5/bin/bundler.lock
268GemWrappers: Can not wrap not executable file: /home/travis/.rvm/gems/ruby-3.3.5/bin/bundle.lock
269Successfully installed bundler-2.5.21
2701 gem installed
install.5
27122.35s$ bundle install --jobs=3 --retry=2 --path=vendor/bundle
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
273Bundler 2.5.21 is running, but your lockfile was generated with 2.5.13. Installing Bundler 2.5.13 and restarting using that version.
274Fetching gem metadata from https://rubygems.org/.
275Fetching bundler 2.5.13
276Installing bundler 2.5.13
277[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
278Fetching https://github.com/travis-ci/travis-packer-build
279Fetching gem metadata from https://rubygems.org/.........
280Fetching https://github.com/travis-ci/travis-packer-build
281Fetching rake 13.2.1
282Installing rake 13.2.1
283Fetching concurrent-ruby 1.3.4
284Fetching minitest 5.25.1
285Fetching thread_safe 0.3.6
286Installing concurrent-ruby 1.3.4
287Installing minitest 5.25.1
288Installing thread_safe 0.3.6
289Fetching public_suffix 6.0.1
290Installing public_suffix 6.0.1
291Fetching ast 2.4.2
292Fetching coderay 1.1.3
293Installing ast 2.4.2
294Fetching diff-lcs 1.5.1
295Installing coderay 1.1.3
296Installing diff-lcs 1.5.1
297Fetching docile 1.4.1
298Installing docile 1.4.1
299Fetching erubis 2.7.0
300Fetching multipart-post 2.4.1
301Fetching libyajl2 2.1.0
302Installing erubis 2.7.0
303Installing multipart-post 2.4.1
304Installing libyajl2 2.1.0 with native extensions
305Fetching racc 1.8.1
306Installing racc 1.8.1 with native extensions
307Fetching rufus-lru 1.1.0
308Installing rufus-lru 1.1.0
309Fetching polyglot 0.3.5
310Installing polyglot 0.3.5
311Fetching multi_json 1.15.0
312Installing multi_json 1.15.0
313Fetching net-http-persistent 2.9.4
314Installing net-http-persistent 2.9.4
315Fetching net-http-pipeline 1.0.1
316Installing net-http-pipeline 1.0.1
317Fetching rchardet 1.8.0
318Installing rchardet 1.8.0
319Fetching json 2.7.2
320Installing json 2.7.2 with native extensions
321Fetching language_server-protocol 3.17.0.3
322Installing language_server-protocol 3.17.0.3
323Fetching method_source 1.1.0
324Installing method_source 1.1.0
325Fetching parallel 1.26.3
326Installing parallel 1.26.3
327Fetching rainbow 3.1.1
328Installing rainbow 3.1.1
329Fetching regexp_parser 2.9.2
330Installing regexp_parser 2.9.2
331Fetching strscan 3.1.0
332Installing strscan 3.1.0 with native extensions
333Fetching rspec-support 3.13.1
334Installing rspec-support 3.13.1
335Fetching ruby-progressbar 1.13.0
336Installing ruby-progressbar 1.13.0
337Fetching unicode-display_width 2.5.0
338Installing unicode-display_width 2.5.0
339Fetching simplecov-html 0.12.3
340Installing simplecov-html 0.12.3
341Fetching simplecov_json_formatter 0.1.4
342Installing simplecov_json_formatter 0.1.4
343Fetching uri 0.13.1
344Installing uri 0.13.1
345Fetching tzinfo 1.2.11
346Installing tzinfo 1.2.11
347Fetching addressable 2.8.7
348Installing addressable 2.8.7
349Fetching i18n 1.14.5
350Installing i18n 1.14.5
351Fetching faraday 0.17.6
352Installing faraday 0.17.6
353Fetching treetop 1.6.12
354Installing treetop 1.6.12
355Fetching nokogiri 1.16.7 (x86_64-linux)
356Installing nokogiri 1.16.7 (x86_64-linux)
357Fetching parser 3.3.4.2
358Installing parser 3.3.4.2
359Fetching pry 0.14.2
360Installing pry 0.14.2
361Fetching ffi-yajl 2.6.0
362Installing ffi-yajl 2.6.0 with native extensions
363Fetching rspec-core 3.13.0
364Installing rspec-core 3.13.0
365Fetching rspec-expectations 3.13.2
366Installing rspec-expectations 3.13.2
367Fetching rspec-mocks 3.13.1
368Installing rspec-mocks 3.13.1
369Fetching simplecov 0.22.0
370Installing simplecov 0.22.0
371Fetching git 1.19.1
372Installing git 1.19.1
373Fetching activesupport 5.2.8.1
374Installing activesupport 5.2.8.1
375Fetching faraday_middleware 0.14.0
376Installing faraday_middleware 0.14.0
377Fetching rubocop-ast 1.32.1
378Installing rubocop-ast 1.32.1
379Fetching rexml 3.3.6
380Installing rexml 3.3.6
381Fetching rspec 3.13.0
382Installing rspec 3.13.0
383Fetching gh 0.16.0
384Installing gh 0.16.0
385Fetching rubocop 1.65.1
386Installing rubocop 1.65.1
387Fetching foodcritic 16.3.0
388Installing foodcritic 16.3.0
389Bundle complete! 7 Gemfile dependencies, 56 gems now installed.
390Bundled gems are installed into `./vendor/bundle`
install.6
3911.43s$ ./bin/packer-build-install
392curl -sSLo tmp/packer.zip 'https://releases.hashicorp.com/packer/1.3.3/packer_1.3.3_linux_amd64.zip'
393mkdir -p ~/bin
394unzip -o -d ~/bin tmp/packer.zip
395Archive: tmp/packer.zip
396 inflating: /home/travis/bin/packer
397chmod +x ~/bin/packer
install.7
3980.00s$ ln -sv "${TRAVIS_BUILD_DIR}" "${TRAVIS_BUILD_DIR}/tmp/packer-chef-local"
399'/home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local' -> '/home/travis/build/travis-ci/packer-templates'
4000.05s$ make
401./bin/dump-git-meta ./tmp/git-meta
402HEAD
40321b0674
404./bin/write-envdir /home/travis/build/travis-ci/packer-templates/tmp/docker-meta 'DOCKER_LOGIN_(USERNAME|PASSWORD|SERVER)'
405./bin/write-envdir /home/travis/build/travis-ci/packer-templates/tmp/job-board-env 'JOB_BOARD'
406The command "make" exited with 0.
4073.61s$ bundle exec make test
408./runtests --env .example.env
409Running isolated with env .example.env
410.example-job-board-register-sardonyx.yml ✓
411.example-node-attributes.yml ✓
412.packer-build-pull-request-false-tmpl.yml ✓
413.packer-build-pull-request-tmpl.yml ✓
414.rubocop.yml ✓
415.rubocop_todo.yml ✓
416.travis.yml ✓
417ci-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)
418 from /home/travis/.rvm/gems/ruby-3.3.5/gems/bundler-2.5.13/lib/bundler/runtime.rb:25:in `block in setup'
419 from /home/travis/.rvm/gems/ruby-3.3.5/gems/bundler-2.5.13/lib/bundler/spec_set.rb:191:in `each'
420 from /home/travis/.rvm/gems/ruby-3.3.5/gems/bundler-2.5.13/lib/bundler/spec_set.rb:191:in `each'
421 from /home/travis/.rvm/gems/ruby-3.3.5/gems/bundler-2.5.13/lib/bundler/runtime.rb:24:in `map'
422 from /home/travis/.rvm/gems/ruby-3.3.5/gems/bundler-2.5.13/lib/bundler/runtime.rb:24:in `setup'
423 from /home/travis/.rvm/gems/ruby-3.3.5/gems/bundler-2.5.13/lib/bundler.rb:164:in `setup'
424 from /home/travis/.rvm/gems/ruby-3.3.5/gems/bundler-2.5.13/lib/bundler/setup.rb:16:in `block in <top (required)>'
425 from /home/travis/.rvm/gems/ruby-3.3.5/gems/bundler-2.5.13/lib/bundler/ui/shell.rb:159:in `with_level'
426 from /home/travis/.rvm/gems/ruby-3.3.5/gems/bundler-2.5.13/lib/bundler/ui/shell.rb:111:in `silence'
427 from /home/travis/.rvm/gems/ruby-3.3.5/gems/bundler-2.5.13/lib/bundler/setup.rb:16:in `<top (required)>'
428 from <internal:/home/travis/.rvm/rubies/ruby-3.3.5/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:136:in `require'
429 from <internal:/home/travis/.rvm/rubies/ruby-3.3.5/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:136:in `require'
430make: *** [Makefile:68: test] Error 1
431The command "bundle exec make test" exited with 2.
4323.60s$ make update-gce-images
433bin/gce-image-update $(git grep -lE 'source_image: ubuntu' *.yml)
434ERROR: (gcloud.compute.images.list) You do not currently have an active account selected.
435Please run:
437 $ gcloud auth login
439to obtain new credentials.
441If you have already logged in with a different account, run:
443 $ gcloud config set account ACCOUNT
445to select an already authenticated account to use.
446ERROR: (gcloud.compute.images.list) You do not currently have an active account selected.
447Please run:
449 $ gcloud auth login
451to obtain new credentials.
453If you have already logged in with a different account, run:
455 $ gcloud config set account ACCOUNT
457to select an already authenticated account to use.
458ERROR: (gcloud.compute.images.list) You do not currently have an active account selected.
459Please run:
461 $ gcloud auth login
463to obtain new credentials.
465If you have already logged in with a different account, run:
467 $ gcloud config set account ACCOUNT
469to select an already authenticated account to use.
470The command "make update-gce-images" exited with 0.
4710.01s$ git diff --exit-code
472The command "git diff --exit-code" exited with 0.
4730.01s$ git diff --cached --exit-code
474The command "git diff --cached --exit-code" exited with 0.
4750.15s$ sudo lsof | grep dpkg || true
476The command "sudo lsof | grep dpkg || true" exited with 0.
477254.59s$ travis_retry bundle exec bash -xc 'sudo packer-scripts/run-serverspecs'
478+sudo packer-scripts/run-serverspecs
479+ shopt -s nullglob
480+ export CHEF_PATH=/opt/chef-workstation/bin:/opt/chef-workstation/embedded/bin:/opt/chef/bin
481+ CHEF_PATH=/opt/chef-workstation/bin:/opt/chef-workstation/embedded/bin:/opt/chef/bin
482+ export CHEF_LICENSE=accept-silent
483+ CHEF_LICENSE=accept-silent
484+ 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
485+ 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
486+ export DEBIAN_FRONTEND=noninteractive
487+ DEBIAN_FRONTEND=noninteractive
488+ export RUBYOPT=-W0
489+ RUBYOPT=-W0
490+ : /home/travis/build/travis-ci/packer-templates/tmp
491+ : 'bash -lc'
492+ : docker
493+ [[ docker == \d\o\c\k\e\r ]]
494+ export 'SPEC_ARGS=--tag ~dev --tag ~docker:false'
495+ SPEC_ARGS='--tag ~dev --tag ~docker:false'
496++ uname -m
497+ [[ x86_64 =~ aarch64 ]]
498++ uname -m
499+ [[ x86_64 =~ ppc64 ]]
500+ __install_chef /home/travis/build/travis-ci/packer-templates/tmp
501+ [[ -f /opt/chef-workstation/embedded/bin/rspec ]]
502+ curl -sSL https://omnitruck.chef.io/install.sh
503+ sudo bash -s -- -P chef-workstation -v 22.5.923
504ubuntu 20.04 x86_64
505Getting information for chef-workstation stable 22.5.923 for ubuntu...
506downloading https://omnitruck.chef.io/stable/chef-workstation/metadata?v=22.5.923&p=ubuntu&pv=20.04&m=x86_64
507 to file /tmp/install.sh.6515/metadata.txt
508trying wget...
509sha1 b8c582336804d5986f0f6d3dddeb9bf300d2d2bd
510sha256 b9d73fa16a3f4008e2f4cd2a4d96d482bc8f0fea77c06a3754382e0d940b8d0c
511url https://packages.chef.io/files/stable/chef-workstation/22.5.923/ubuntu/20.04/chef-workstation_22.5.923-1_amd64.deb
512version 22.5.923
513downloaded metadata file looks valid...
514downloading https://packages.chef.io/files/stable/chef-workstation/22.5.923/ubuntu/20.04/chef-workstation_22.5.923-1_amd64.deb
515 to file /tmp/install.sh.6515/chef-workstation_22.5.923-1_amd64.deb
516trying wget...
517Comparing checksum with sha256sum...
518Installing chef-workstation 22.5.923
519installing with dpkg...
520Selecting previously unselected package chef-workstation.
521(Reading database ... 154608 files and directories currently installed.)
522Preparing to unpack .../chef-workstation_22.5.923-1_amd64.deb ...
523Unpacking chef-workstation (22.5.923-1) ...
524Setting up chef-workstation (22.5.923-1) ...
526The Chef Workstation App is available.
528Launch the App by running 'chef-workstation-app'.
529The App will then be available in the system tray.
531Thank you for installing Chef Workstation!
532You can find some tips on getting started at https://docs.chef.io/workstation/getting_started/
534+ __run_retry 2 30 apt-get update -y
535+ local retries=2
536+ shift
537+ local retry_delay=30
538+ shift
539+ cmd=("${@}")
540+ local cmd
541+ local i=0
542+ true
543+ [[ 0 -gt 2 ]]
544+ apt-get update -y
545Get:1 http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease [129 kB]
546Get:2 http://security.ubuntu.com/ubuntu focal-security InRelease [128 kB]
547Ign:3 http://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 InRelease
548Get:4 http://package.perforce.com/apt/ubuntu focal InRelease [7,646 B]
549Get:5 https://download.docker.com/linux/ubuntu focal InRelease [57.7 kB]
550Get:6 http://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 Release [3,094 B]
551Get:7 https://packages.redis.io/deb focal InRelease [3,821 B]
552Get:8 https://ppa1.novemberain.com/rabbitmq/rabbitmq-erlang/deb/ubuntu focal InRelease [5,185 B]
553Get:9 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal InRelease [265 kB]
554Hit:10 https://public.dhe.ibm.com/software/server/POWER/Linux/toolchain/at/ubuntu focal InRelease
555Get:11 https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu focal InRelease [5,182 B]
556Get:12 http://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 Release.gpg [866 B]
557Get:13 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 Packages [570 kB]
558Get:14 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates InRelease [128 kB]
559Get:15 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-backports InRelease [128 kB]
560Get:16 http://package.perforce.com/apt/ubuntu focal/release amd64 Packages [45.1 kB]
561Get:17 https://download.docker.com/linux/ubuntu focal/stable amd64 Packages [61.9 kB]
562Get:18 https://ppa2.novemberain.com/rabbitmq/rabbitmq-erlang/deb/ubuntu focal InRelease [5,185 B]
563Get:19 http://package.perforce.com/apt/ubuntu focal/release i386 Packages [4,730 B]
564Get:20 https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu focal InRelease [5,182 B]
565Ign:21 https://ppa1.novemberain.com/rabbitmq/rabbitmq-erlang/deb/ubuntu focal/main amd64 Packages
566Get:21 https://ppa1.novemberain.com/rabbitmq/rabbitmq-erlang/deb/ubuntu focal/main amd64 Packages [120 kB]
567Get:22 https://packages.redis.io/deb focal/main all Packages [6,199 B]
568Get:23 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [4,027 kB]
569Get:24 https://packages.redis.io/deb focal/main amd64 Packages [29.6 kB]
570Get:25 http://security.ubuntu.com/ubuntu focal-security/main i386 Packages [1,011 kB]
571Get:26 http://security.ubuntu.com/ubuntu focal-security/main Translation-en [711 kB]
572Get:27 https://packages.redis.io/deb focal/main i386 Packages [6,094 B]
573Get:28 http://security.ubuntu.com/ubuntu focal-security/main amd64 c-n-f Metadata [14.3 kB]
574Get:29 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [4,036 kB]
575Get:30 http://security.ubuntu.com/ubuntu focal-security/restricted Translation-en [560 kB]
576Get:31 http://security.ubuntu.com/ubuntu focal-security/universe i386 Packages [843 kB]
577Get:32 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [1,274 kB]
578Ign:33 https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu focal/main amd64 Packages
579Get:33 https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu focal/main amd64 Packages [18.0 kB]
580Get:34 http://security.ubuntu.com/ubuntu focal-security/universe Translation-en [294 kB]
581Get:35 http://security.ubuntu.com/ubuntu focal-security/universe amd64 c-n-f Metadata [21.4 kB]
582Get:36 http://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4/multiverse amd64 Packages [86.8 kB]
583Get:37 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/main amd64 Packages [1,275 kB]
584Get:38 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/main i386 Packages [930 kB]
585Get:39 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/main Translation-en [709 kB]
586Get:40 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/main amd64 c-n-f Metadata [29.5 kB]
587Get:41 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/restricted amd64 Packages [33.4 kB]
588Get:42 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/restricted i386 Packages [10.1 kB]
589Get:43 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/restricted Translation-en [6,851 B]
590Get:44 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/restricted amd64 c-n-f Metadata [392 B]
591Get:45 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB]
592Get:46 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/universe i386 Packages [5,999 kB]
593Ign:47 https://ppa2.novemberain.com/rabbitmq/rabbitmq-erlang/deb/ubuntu focal/main amd64 Packages
594Get:47 https://ppa2.novemberain.com/rabbitmq/rabbitmq-erlang/deb/ubuntu focal/main amd64 Packages [120 kB]
595Get:48 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/universe Translation-en [7,220 kB]
596Get:49 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/universe amd64 c-n-f Metadata [265 kB]
597Get:50 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [177 kB]
598Get:51 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/multiverse i386 Packages [88.9 kB]
599Get:52 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/multiverse Translation-en [128 kB]
600Get:53 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/multiverse amd64 c-n-f Metadata [9,136 B]
601Get:54 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/main i386 Packages [1,294 kB]
602Get:55 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [4,527 kB]
603Get:56 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/main Translation-en [829 kB]
604Get:57 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/main amd64 c-n-f Metadata [17.8 kB]
605Get:58 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/restricted i386 Packages [48.0 kB]
606Get:59 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [4,235 kB]
607Ign:60 https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu focal/main amd64 Packages
608Get:60 https://ppa2.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu focal/main amd64 Packages [18.0 kB]
609Get:61 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/restricted Translation-en [587 kB]
610Get:62 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/restricted amd64 c-n-f Metadata [548 B]
611Get:63 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1,566 kB]
612Get:64 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/universe i386 Packages [1,005 kB]
613Get:65 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/universe Translation-en [415 kB]
614Get:66 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f Metadata [28.3 kB]
615Get:67 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/multiverse i386 Packages [9,592 B]
616Get:68 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [33.5 kB]
617Get:69 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/multiverse Translation-en [8,589 B]
618Get:70 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 c-n-f Metadata [616 B]
619Get:71 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-backports/main i386 Packages [43.4 kB]
620Get:72 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages [55.2 kB]
621Get:73 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-backports/main Translation-en [18.8 kB]
622Get:74 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-backports/main amd64 c-n-f Metadata [1,420 B]
623Get:75 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-backports/restricted amd64 c-n-f Metadata [116 B]
624Get:76 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [28.6 kB]
625Get:77 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-backports/universe i386 Packages [15.4 kB]
626Get:78 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-backports/universe Translation-en [17.6 kB]
627Get:79 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-backports/universe amd64 c-n-f Metadata [880 B]
628Get:80 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-backports/multiverse amd64 c-n-f Metadata [116 B]
629Fetched 57.8 MB in 5s (12.6 MB/s)
630Reading package lists... Done
631N: 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'
632+ return
633+ __run_retry 2 30 apt-get install libc-client2007e-dev mysql-client
634+ local retries=2
635+ shift
636+ local retry_delay=30
637+ shift
638+ cmd=("${@}")
639+ local cmd
640+ local i=0
641+ true
642+ [[ 0 -gt 2 ]]
643+ apt-get install libc-client2007e-dev mysql-client
644Reading package lists... Done
645Building dependency tree
646Reading state information... Done
647libc-client2007e-dev is already the newest version (8:2007f~dfsg-7).
648mysql-client is already the newest version (8.0.39-0ubuntu0.20.04.1).
649The following packages were automatically installed and are no longer required:
650 amd64-microcode intel-microcode iucode-tool libglu1-mesa
651 libjs-jquery-metadata libjs-jquery-tablesorter libnotify4 libwxbase3.0-0v5
652 libwxgtk3.0-gtk3-0v5 linux-modules-5.4.0-195-generic postgresql-client-12
653Use 'sudo apt autoremove' to remove them.
6540 upgraded, 0 newly installed, 0 to remove and 86 not upgraded.
655+ return
656+ __create_sudo_bash
657+ cat
658+ chmod 0755 /tmp/sudo-bash
659+ __chown_travis_dirs /home/travis/build/travis-ci/packer-templates/tmp
660+ chown -R travis:travis /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local /var/tmp
661+ for suite in ${SPEC_SUITES/,/ }
662+ __run_suite travis_packer_templates /home/travis/build/travis-ci/packer-templates/tmp 'bash -lc'
663+ local suite=travis_packer_templates
664+ local chef_prefix=/home/travis/build/travis-ci/packer-templates/tmp
665+ local 'runner=bash -lc'
666+ local cookbook_dir
667++ __suite_cookbook_dir travis_packer_templates /home/travis/build/travis-ci/packer-templates/tmp
668++ local suite=travis_packer_templates
669++ local chef_prefix=/home/travis/build/travis-ci/packer-templates/tmp
670++ local spec_dir
671+++ head -1
672+++ 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
673++ spec_dir=/home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates/spec
674++ dirname /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates/spec
675+ cookbook_dir=/home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates
676+ pushd /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates
677+ __run_suite_as_travis travis_packer_templates /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates 'bash -lc'
678+ local suite=travis_packer_templates
679+ local cookbook_dir=/home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates
680+ local 'runner=bash -lc'
681+ set +o errexit
682++ uname -m
683++ uname -m
684+ bash -lc '
685set -o xtrace
686export PATH="/opt/chef-workstation/bin:/opt/chef-workstation/embedded/bin:/opt/chef/bin:$PATH"
687export TERM=xterm
688export PACKER_BUILDER_TYPE=docker
689export RUBYOPT=-W0
690if [[ x86_64 =~ ppc64 ]]; then
691 gem install serverspec
692else
693 chef gem install serverspec
694fi
695unset GEM_PATH
696cd /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates
697sudo systemctl start xvfb.service
698set -o errexit
699if [[ x86_64 =~ ppc64 ]]; then
700 rspec --tag ~dev --tag ~docker:false \
701 --format documentation \
702 --format json \
703 --out /home/travis/.travis_packer_templates_rspec.json
704else
705 chef exec rspec --tag ~dev --tag ~docker:false \
706 --format documentation \
707 --format json \
708 --out /home/travis/.travis_packer_templates_rspec.json
709fi
711+ 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
712+ 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
713+ export TERM=xterm
714+ TERM=xterm
715+ export PACKER_BUILDER_TYPE=docker
716+ PACKER_BUILDER_TYPE=docker
717+ export RUBYOPT=-W0
718+ RUBYOPT=-W0
719+ [[ x86_64 =~ ppc64 ]]
720+ chef gem install serverspec
721Fetching serverspec-2.42.3.gem
722WARNING: You don't have /home/travis/.chefdk/gem/ruby/3.0.0/bin in your PATH,
723 gem executables will not run.
724Successfully installed serverspec-2.42.3
7251 gem installed
726+ unset GEM_PATH
727+ cd /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates
728+ sudo systemctl start xvfb.service
729+ set -o errexit
730+ [[ x86_64 =~ ppc64 ]]
731+ chef exec rspec --tag '~dev' --tag '~docker:false' --format documentation --format json --out /home/travis/.travis_packer_templates_rspec.json
732Run options: exclude {:dev=>true, :docker=>false}
734Randomized with seed 33043
736File "/.node-attributes.yml"
737 is expected to exist
738 content_as_yaml
739 is expected to include "__timestamp"
741perlbrew installation
742 Command "perlbrew --version"
743 exit_status
744 is expected to eq 0
745 stdout
746 is expected to match /perl5\/perlbrew\/bin\/perlbrew.+App::perlbrew\/\d+\.\d+/
747 Command "perlbrew list"
748 exit_status
749 is expected to eq 0
751File "/etc/cloud/templates/sources.list.tmpl"
752 content
753 is expected to match /travis_build_environment/i
754 content
755 is expected to match /managed by chef/i
757File "/etc/cloud/templates/sources.list.debian.tmpl"
758 content
759 is expected to match /travis_build_environment/i
760 content
761 is expected to match /managed by chef/i
763File "/etc/cloud/templates/hosts.debian.tmpl"
764 is expected to be exist
765 content
766 is expected to match /travis_build_environment/i
767 content
768 is expected to match /managed by chef/i
770Command "rsync --version"
771 stdout
772 is expected to match /rsync.+version/
773 exit_status
774 is expected to eq 0
776php environment
777 Command "PHPENV_VERSION=system phpenv exec php -m --version"
778 stdout
779 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"
780 Command "PHPENV_VERSION=system phpenv exec php-fpm --version"
781 stdout
782 is expected to match /^PHP \d+\.\d+\.\d+.+fpm-fcgi/
783 exit_status
784 is expected to eq 0
785 File "/home/travis/.pearrc"
786 is expected not to exist
788dictionaries installation
789 Package "wamerican"
790 is expected to be installed
792mongodb installation
793 Service "mongod"
794 is expected not to be enabled
795 is expected not to be running
796 mongo commands
797 Command "mongo --eval "var myCursor = db.testData.find( { x: 6 }); myCursor.forEach(printjson);""
798 stdout
799 is expected to match /{ "_id" : ObjectId\("\w+"\), "x" : 6 }/
800 Command "mongo --version"
801 stdout
802 is expected to match /MongoDB shell/
803 exit_status
804 is expected to eq 0
806File "/opt"
807 is expected to be writable
808 is expected to be directory
810python3 interpreter
811 python3 --version
812 is expected to match /^Python \d+\.\d+\.\d+/
813 Command "python3 -m this"
814 stdout
815 is expected to match /Readability counts\./
816 stderr
817 is expected to be empty
819gimme installation
820 Command "eval "$(HOME=/tmp/packer-templates-20241016-8139-d0hig4-rspec gimme 1.6.3)" 2>&1"
821 stdout
822 is expected to match "go version go1.6.3"
823 Command "gimme --version"
824 exit_status
825 is expected to eq 0
827redis installation
828 Command "redis-server --version"
829 exit_status
830 is expected to eq 0
831 stdout
832 is expected to match /^Redis /
833 redis commands
834 Command "redis-cli -p 16379 PING"
835 stdout
836 is expected to match /^PONG$/
837 Command "redis-cli -p 16379 GET test_key | cat"
838 stdout
839 is expected to match /^test_value$/
841gcc installation
842 Command "cd /tmp/packer-templates-20241016-8139-d0hig4-rspec/empty && gcc"
843 stderr
844 is expected to include "no input files"
845 Command "gcc -v"
846 stderr
847 is expected to match /^gcc version/
848 Command "
849 cd /tmp/packer-templates-20241016-8139-d0hig4-rspec;
850 gcc -Wall -o hai hai.c;
851 ./hai there
852 "
853 stdout
854 is expected to match /^hai 2$/
856go installation
857 Command "gimme -l"
858 stdout
859 is expected not to be empty
861ccache installation
862 Command "ccache -V"
863 exit_status
864 is expected to eq 0
865 ccache commands are executed
866 Command "ccache -M 0.5"
867 stdout
868 is expected to match /Set cache size limit to (512\.0 Mbytes|500\.0 MB)/
869 Command "ccache -s"
870 stdout
871 is expected to include "cache directory", "cache hit", "cache miss", "files in cache", and "max cache size"
873subversion installation
874 Command "svn --version"
875 exit_status
876 is expected to eq 0
877 subversion commands are executed
878 File "/tmp/packer-templates-20241016-8139-d0hig4-rspec/svn-project/README.txt"
879 content
880 is expected to match "This is a Subversion repository;"
882Command "iptables --version"
883 stdout
884 is expected to include "iptables"
885 exit_status
886 is expected to eq 0
888go toolchain installation
889 Command "go env GOROOT"
890 stdout
891 is expected to match /\/\.gimme\//
892 compiling something
893 Command "go run /tmp/packer-templates-20241016-8139-d0hig4-rspec/example.go"
894 stdout
895 is expected to match /Good morrow, 14198/
896 Command "go version"
897 stdout
898 is expected to match /^go version go/
900Command "lsof -v 2>&1 | head -2 | tail -1"
901 exit_status
902 is expected to eq 0
903 stdout
904 is expected to match /revision:/
906Command "curl --version | head -1"
907 exit_status
908 is expected to eq 0
909 stdout
910 is expected to include "curl"
912Command "cmake --version"
913 exit_status
914 is expected to eq 0
915 stdout
916 is expected to match /^cmake version [23]/
918Command "psql --version"
919 exit_status
920 is expected to eq 0
921 stdout
922 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 - 1)
924mercurial installation
925 mecurial commands are executed
926 Command "cd /tmp/packer-templates-20241016-8139-d0hig4-rspec/hg-project; hg status; hg add .; hg status"
927 stdout
928 is expected to match "A test-file.txt"
929 stdout
930 is expected to match "\\? test-file.txt"
931 Command "hg version"
932 stdout
933 is expected to match /^Mercurial Distributed SCM \(version \d/
934 exit_status
935 is expected to eq 0
937Command "ldconfig -p | grep libldap"
938 exit_status
939 is expected to eq 0
940 stdout
941 is expected to match /libldap_r/
943nodejs interpreter
944 Command "node -e "console.log('Konstantin broke all the thingz')""
945 stdout
946 is expected to match "Konstantin broke all the thingz"
947 Command "node -v"
948 stdout
949 is expected to match /v\d/
950 exit_status
951 is expected to eq 0
953firefox installation
954 Command "sudo -u travis firefox -v"
955 exit_status
956 is expected to eq 0
957 stderr
958 is expected to be empty
959 firefox commands
960 File "/tmp/packer-templates-20241016-8139-d0hig4-rspec/.mozilla/firefox/profiles.ini"
961 is expected to exist
962 content
963 is expected to match /^Name=test/
965google-chrome installation
966 Command "google-chrome --version"
967 exit_status
968 is expected to eq 0
969 Package "google-chrome-stable"
970 is expected to be installed
972imagemagick installation
973 Command "convert --version"
974 stdout
975 is expected to match /imagemagick/i
976 exit_status
977 is expected to eq 0
978 imagemagick commands
979 Command "identify /tmp/packer-templates-20241016-8139-d0hig4-rspec/logo.gif"
980 stdout
981 is expected to match /logo\.gif GIF/
982 exit_status
983 is expected to eq 0
985bazaar installation
986 Command "bzr version"
987 exit_status
988 is expected to eq 0
989 stdout
990 is expected to match /Bazaar \(bzr\)|Breezy \(brz\)/
991 bazaar commands
992 Command "
993 cd /tmp/packer-templates-20241016-8139-d0hig4-rspec/bzr-project;
994 bzr status;
995 bzr add test.txt;
996 bzr status;
997 "
998 stdout
999 is expected to match /^added:/
1000 stdout
1001 is expected to match /^adding test\.txt/
1002 stdout
1003 is expected to match /^unknown:/
1004 stdout
1005 is expected to match /^ test\.txt/
1006 stdout
1007 is expected to match /^ test\.txt/
1009python2 interpreter
1010 python --version
1011 is expected to match /^Python \d+\.\d+\.\d+/
1012 Command "python -m this"
1013 stdout
1014 is expected to match /Readability counts\./
1015 stderr
1016 is expected to be empty
1018sqlite installation
1019 sqlite commands are executed
1020 Command "
1021 sqlite3 /tmp/packer-templates-20241016-8139-d0hig4-rspec/test.db "
1022 CREATE TABLE hats (
1023 id INTEGER PRIMARY KEY,
1024 name TEXT,
1025 style INTEGER
1026 );
1027 INSERT INTO hats VALUES(1, 'floppy', 9001);
1028 SELECT * FROM hats;
1031 stdout
1032 is expected to match "1|floppy|9001"
1033 Command "sqlite3 -version"
1034 stdout
1035 is expected to match /^\d\.\d/
1036 exit_status
1037 is expected to eq 0
1039git installation
1040 git commands
1041 Command "cd /tmp/packer-templates-20241016-8139-d0hig4-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"
1042 stdout
1043 is expected to include "Untracked files:", "test-file.txt", "Changes to be committed:", and "new file: test-file.txt"
1044 stdout
1045 is expected to match /nothing to commit/
1046 Package "git"
1047 is expected to be installed
1048 Command "git --version"
1049 stdout
1050 is expected to match /^git version (2\.|1\.[89])/
1051 exit_status
1052 is expected to eq 0
1053 Command "git config user.email"
1054 stdout
1055 is expected to match /travis@example\.org/
1056 Command "git config user.name"
1057 stdout
1058 is expected to match /travis/i
1060Command "mysql --version"
1061 exit_status
1062 is expected to eq 0
1063 stdout
1064 is expected to match /^mysql /
1066ruby interpreter
1067 Command "ruby -e 'puts "Konstanin broke all the things!"'"
1068 stdout
1069 is expected to match /^Konstanin broke all the things!$/
1070 Command "ruby -e 'puts RUBY_ENGINE'"
1071 stdout
1072 is expected to match /^ruby/
1073 Command "ruby --version"
1074 stderr
1075 is expected to be empty
1076 stdout
1077 is expected to match /^ruby 3\.\d+\.\d+/
1079jq installation
1080 Command "jq -V"
1081 exit_status
1082 is expected to eq 0
1083 Command "jq -r '.stuff|.[]|select(."@type"=="smarm")|.msg[0]' </tmp/packer-templates-20241016-8139-d0hig4-rspec/test.json"
1084 stdout
1085 is expected to match /^Konstantin broke all the things/
1087openssl installation
1088 openssl commands
1089 Command "echo "S29uc3RhbnRpbiBicm9rZSBhbGwgdGhlIHRoaW5ncy4K" | openssl enc -base64 -d"
1090 stdout
1091 is expected to match "Konstantin broke all the things."
1092 Command "echo "Konstantin broke all the things." | openssl enc -base64"
1093 stdout
1094 is expected to match "S29uc3RhbnRpbiBicm9rZSBhbGwgdGhlIHRoaW5ncy4K"
1095 Command "openssl version"
1096 stdout
1097 is expected to match /^OpenSSL/
1098 exit_status
1099 is expected to eq 0
1101User "travis"
1102 is expected to have home directory "/home/travis"
1103 is expected to have login shell "/bin/bash"
1104 is expected to exist
1106perl interpreter
1107 Command "perl --version"
1108 stdout
1109 is expected to match /perl 5, version \d/
1110 stderr
1111 is expected to be empty
1112 Command "perl -e 'print "Hello Mr Euler!\n"'"
1113 stdout
1114 is expected to match /^Hello Mr Euler!/
1115 stderr
1116 is expected to be empty
1118File "/etc/cloud/cloud.cfg"
1119 content
1120 is expected to match /managed by chef/i
1121 content
1122 is expected to match /travis_build_environment/i
1124xserver installation
1125 Command "DISPLAY=:99.0 xset -q"
1126 stderr
1127 is expected to be empty
1128 stdout
1129 is expected to match /^Keyboard Control:/
1130 exit_status
1131 is expected to eq 0
1132 Command "xvfb-run -a xdpyinfo"
1133 stdout
1134 is expected to match /^\s+GLX$/
1135 exit_status
1136 is expected to eq 0
1137 stderr
1138 is expected to be empty
1139 Command "Xorg -version"
1140 exit_status
1141 is expected to eq 0
1143Command "nc -h"
1144 exit_status
1145 is expected to eq 0
1147vim installation
1148 File "/tmp/packer-templates-20241016-8139-d0hig4-rspec/test.txt"
1149 content
1150 is expected to match /there/
1151 Command "vim --version"
1152 stdout
1153 is expected not to be empty
1154 stderr
1155 is expected to be empty
1156 exit_status
1157 is expected to eq 0
1159Command "ldconfig -V"
1160 exit_status
1161 is expected to eq 0
1162 stdout
1163 is expected to include "ldconfig "
1165Command "bats --version"
1166 stdout
1167 is expected to match /^Bats \d/
1169ruby installation
1170 Command "rspec --version"
1171 stderr
1172 is expected to be empty
1173 stdout
1174 is expected to match /^RSpec \d+\.\d+/
1175 Command "gem --version"
1176 stderr
1177 is expected to be empty
1178 stdout
1179 is expected to match /^\d+\.\d+\.\d+/
1181postgresql installation
1182 Command " psql --version"
1183 stdout
1184 is expected to match /^psql.+(9\.[3-6]+\.[0-9]+|10\.[0-9])/ (FAILED - 2)
1185 exit_status
1186 is expected to eq 0
1187 psql commands
1188 with a test table
1189 Command " psql -U travis -tA -c '\dt' test_db"
1190 stderr
1191 is expected to be empty
1192 stdout
1193 is expected to match /^public\|test_table\|/
1194 Command " psql -U travis -ltA"
1195 stdout
1196 is expected to match /^test_db\|/
1198md5deep installation
1199 Command "md5deep /tmp/packer-templates-20241016-8139-d0hig4-rspec/md5deep.txt"
1200 stdout
1201 is expected to match /^29c04665afa6ef18edc38824ceaff6ab\b/
1202 Command "md5deep -V"
1203 stdout
1204 is expected to match "This program is a work of the US Government."
1205 Command "md5deep -v"
1206 exit_status
1207 is expected to eq 0
1209sysctl installation
1210 Command "sysctl -V"
1211 exit_status
1212 is expected to eq 0
1213 Command "sysctl -a"
1214 stdout
1215 is expected to include "kernel.sched_child_runs_first"
1217Command "wget --version"
1218 exit_status
1219 is expected to eq 0
1220 stdout
1221 is expected to include "GNU Wget"
1223File "/etc/cloud/templates/hosts.ubuntu.tmpl"
1224 is expected to be exist
1225 content
1226 is expected to match /travis_build_environment/i
1227 content
1228 is expected to match /managed by chef/i
1230File "/etc/cloud/templates/sources.list.ubuntu.tmpl"
1231 content
1232 is expected to match /managed by chef/i
1233 content
1234 is expected to match /travis_build_environment/i
1236mysql installation
1237 File "/home/travis/.my.cnf"
1238 is expected to be readable
1239 is expected to be owned by "travis"
1240 is expected to be grouped into "travis"
1241 is expected to exist
1242 mysql commands
1243 Command "echo "SHOW DATABASES" | mysql"
1244 stdout
1245 is expected to match /^travis$/
1246 Command "echo "SHOW VARIABLES LIKE 'performance_schema'" | mysql"
1247 stdout
1248 is expected to include "performance_schema\tOFF" (FAILED - 3)
1249 Command "mysql -u root -e 'select "hai"'"
1250 stderr
1251 is expected to be empty
1252 stdout
1253 is expected to match /hai/
1254 exit_status
1255 is expected to eq 0
1256 Command "mysql -u travis -e 'select "hai"'"
1257 exit_status
1258 is expected to eq 0
1259 stderr
1260 is expected to be empty
1261 stdout
1262 is expected to match /hai/
1263 Command "echo "SELECT id FROM test" | mysql travis"
1264 stdout
1265 is expected to match /^4$/
1266 File "/etc/mysql/conf.d/performance-schema.cnf"
1267 is expected to exist (FAILED - 4)
1268 is expected to be grouped into "root" (FAILED - 5)
1269 is expected to be readable (FAILED - 6)
1270 is expected to be owned by "root" (FAILED - 7)
1272php interpreter
1273 Command "PHPENV_VERSION=system phpenv exec php -r 'foreach(range(1, 5) as $i) echo $i * 2 . " ";'"
1274 stderr
1275 is expected to be empty
1276 stdout
1277 is expected to match /^2 4 6 8 10/
1278 Command "PHPENV_VERSION=system phpenv exec php --version"
1279 stderr
1280 is expected to be empty
1281 stdout
1282 is expected to match /^PHP \d+\.\d+/
1284Command "sudo -V"
1285 stdout
1286 is expected to match /^Sudo version \d/
1288Command "shellcheck --version"
1289 stdout
1290 is expected to match /^version: \d+\.\d+\.\d+/
1292File "/etc/cloud/templates"
1293 is expected to be directory
1295memcached installation
1296 Package "memcached"
1297 is expected to be installed
1298 memcached commands
1299 Command "echo 'stats' | nc -w 5 127.0.0.1 11211"
1300 stdout
1301 is expected to match "version"
1302 Service "memcached"
1303 is expected to be running
1304 Command "memcached -h"
1305 exit_status
1306 is expected to eq 0
1307 stdout
1308 is expected to match /^memcached \d/
1310jdk installation
1311 should have JAVA_HOME defined
1312 Command "java -version"
1313 exit_status
1314 is expected to eq 0
1315 stderr
1316 is expected to match /^(java|openjdk)/
1317 java command
1318 Command "cd /tmp/packer-templates-20241016-8139-d0hig4-rspec && java Hello"
1319 stdout
1320 is expected to match "Hello World!"
1322phantomjs installation
1323 Command "phantomjs -v"
1324 stdout
1325 is expected to match /\d/
1326 exit_status
1327 is expected to eq 0
1328 Command "phantomjs /tmp/packer-templates-20241016-8139-d0hig4-rspec/test.js"
1329 stdout
1330 is expected to match "Status: success"
1332File "/etc/cloud/templates/hosts.tmpl"
1333 is expected to be exist
1334 content
1335 is expected to match /travis_build_environment/i
1336 content
1337 is expected to match /managed by chef/i
1339dictionaries commands
1340 Command "look kid"
1341 stdout
1342 is expected to match /^kidding$/
1343 stderr
1344 is expected to be empty
1345 stdout
1346 is expected to match /^kidney$/
1347 stdout
1348 is expected to match /^kidnappers$/
1350Command "packer version"
1351 exit_status
1352 is expected to eq 0
1353 stdout
1354 is expected to match /^Packer v\d/
1356sudoers setup
1357 File "/etc/sudoers"
1358 is expected to be mode 440
1359 is expected to be file
1360 is expected to be owned by "root"
1361 is expected to exist
1362 content
1363 is expected to match /^#includedir \/etc\/sudoers\.d$/
1364 File "/etc/sudoers.d/travis"
1365 is expected to be owned by "root"
1366 is expected to exist
1367 is expected to be mode 440
1368 is expected to be file
1369 content
1370 is expected to match /^Defaults !mail_badpass$/
1371 content
1372 is expected to match /^Defaults !authenticate$/
1373 content
1374 is expected to match /^travis ALL=\(ALL\) NOPASSWD:ALL$/
1375 content
1376 is expected to match /^Defaults !env_reset$/
1378ssh access
1379 File "/home/travis/.ssh/authorized_keys"
1380 is expected to be readable
1381 is expected to be writable
1382 is expected to exist
1383 size
1384 is expected to be positive
1385 File "/home/travis/.ssh/known_hosts"
1386 is expected to be writable
1387 is expected to be readable
1388 is expected to exist
1389 size
1390 is expected to be positive
1392unarchivers installation
1393 Command "
1394 cd /tmp/packer-templates-20241016-8139-d0hig4-rspec;
1395 zip test.zip test.txt;
1396 rm test.txt;
1397 ls /tmp/packer-templates-20241016-8139-d0hig4-rspec;
1398 unzip test.zip;
1399 cat test.txt
1401 stdout
1402 is expected to include "test.zip"
1403 stdout
1404 is expected to match "Konstantin broke all the things."
1405 Command "
1406 gzip /tmp/packer-templates-20241016-8139-d0hig4-rspec/test.txt;
1407 rm /tmp/packer-templates-20241016-8139-d0hig4-rspec/test.txt;
1408 ls /tmp/packer-templates-20241016-8139-d0hig4-rspec;
1409 gzip -d /tmp/packer-templates-20241016-8139-d0hig4-rspec/test.txt.gz;
1410 cat /tmp/packer-templates-20241016-8139-d0hig4-rspec/test.txt
1412 stdout
1413 is expected to include "test.txt.gz"
1414 stdout
1415 is expected to match "Konstantin broke all the things."
1416 Command "gzip --version"
1417 exit_status
1418 is expected to eq 0
1419 stdout
1420 is expected to match /^gzip \d/
1421 Command "zip --version"
1422 exit_status
1423 is expected to eq 0
1424 stdout
1425 is expected to match /Zip \d/
1426 Command "unzip -version"
1427 stdout
1428 is expected to match /^UnZip \d/
1429 exit_status
1430 is expected to eq 0
1431 Command "
1432 bzip2 -z /tmp/packer-templates-20241016-8139-d0hig4-rspec/test.txt;
1433 rm /tmp/packer-templates-20241016-8139-d0hig4-rspec/test.txt;
1434 ls /tmp/packer-templates-20241016-8139-d0hig4-rspec;
1435 bzip2 -d /tmp/packer-templates-20241016-8139-d0hig4-rspec/test.txt.bz2;
1436 cat /tmp/packer-templates-20241016-8139-d0hig4-rspec/test.txt
1438 stdout
1439 is expected to match "Konstantin broke all the things."
1440 stdout
1441 is expected to include "test.txt.bz2"
1442 Command "dpkg -s libbz2-dev"
1443 stdout
1444 is expected to match "Status: install ok installed"
1446File "/usr/share/travis/system_info"
1447 is expected to exist
1448 size
1449 is expected to be positive
1451docker-compose installation
1452 Command "docker-compose --version"
1453 stdout
1454 is expected to match /^docker-compose version:?\s+\d+\.\d+\.\d+/ (FAILED - 8)
1455 exit_status
1456 is expected to eq 0
1458clang installation
1459 Command "clang -v"
1460 exit_status
1461 is expected to eq 0
1462 clang command
1463 Command "clang -help"
1464 stdout
1465 is expected to include "OVERVIEW: clang LLVM compiler" and "OPTIONS:"
1467Command "ssh -V"
1468 stderr
1469 is expected to match /OpenSSH/
1471File "/home/travis/bin"
1472 is expected to be writable
1473 is expected to be directory
1475rvm installation
1476 Command "rvm version"
1477 stdout
1478 is expected to match /^rvm /
1479 exit_status
1480 is expected to eq 0
1481 stderr
1482 is expected to be empty
1483 rvm commands
1484 Command "rvm list"
1485 stdout
1486 is expected to include "current"
1487 stderr
1488 is expected to be empty
1489 stdout
1490 is expected to match /ruby-2\.[234567]\.\d/
1491 Command "rvm default do echo whatever"
1492 stdout
1493 is expected to include "whatever"
1494 stdout
1495 is expected not to include "Warning!"
1496 stderr
1497 is expected not to include "Warning!"
1498 File "/home/travis/.rvm/user/db"
1499 is expected to exist
1500 is expected to be readable
1501 is expected to be writable
1502 File "/home/travis/.rvmrc"
1503 is expected to be writable
1504 is expected to be readable
1505 is expected to exist
1507ragel installation
1508 ragel commands
1509 add a ragel file and execute a ragel command
1510 File "/tmp/packer-templates-20241016-8139-d0hig4-rspec/hello_world.rb"
1511 content
1512 is expected to match /^puts "Hello World"/
1513 Command "ragel -v"
1514 exit_status
1515 is expected to eq 0
1516 stdout
1517 is expected to match /^Ragel /
1518 Package "ragel"
1519 is expected to be installed
1521apt installation
1522 Command "apt-cache search ubuntu-restricted-extras"
1523 stdout
1524 is expected not to be empty
1525 apt architecture
1526 Command "dpkg --print-architecture"
1527 stdout
1528 is expected to match /amd64/
1529 Command "dpkg --print-foreign-architectures"
1530 stdout
1531 is expected to match /i386/
1532 apt commands
1533 Command "sudo apt-get update -y"
1534 stdout
1535 is expected to match /http/
1536 Command "sudo apt-get install -y language-pack-pt"
1537 stdout
1538 is expected to match /Reading state/
1539 File "/var/lib/apt/lists"
1540 is expected to be directory
1541 Command "apt-get -v"
1542 exit_status
1543 is expected to eq 0
1544 /var/lib/apt/lists/*Packages*
1545 is non-empty
1547emacs installation
1548 editing
1549 File "/tmp/packer-templates-20241016-8139-d0hig4-rspec/test.txt"
1550 content
1551 is expected to match "poof"
1552 Command "emacs --version"
1553 exit_status
1554 is expected to eq 0
1556Command "shfmt -version"
1557 stdout
1558 is expected to match /^v\d+\.\d+\.\d+/
1560python environment
1561 Command "true ; nosetests --version"
1562 stdout
1563 is expected to match /^nosetests version \d+\.\d+\.\d+/ (FAILED - 9)
1564 stderr
1565 is expected to be empty (FAILED - 10)
1566 Command "true ; py.test --version"
1567 stderr
1568 is expected to be empty (FAILED - 11)
1569 stdout
1570 is expected to match /pytest (version )?\d+\.\d+\.\d+/ (FAILED - 12)
1571 Command "true ; wheel version"
1572 stderr
1573 is expected to be empty (FAILED - 13)
1574 stdout
1575 is expected to match /^wheel \d+\.\d+\.\d+/ (FAILED - 14)
1576 Command "true ; python -c 'import sys;from unittest import mock;sys.stdout.write(mock.__version__ + "\n")'"
1577 stderr
1578 is expected to be empty
1579 stdout
1580 is expected to match /^\d+\.\d+/
1581 Command "true ; pip --version"
1582 stderr
1583 is expected to be empty
1584 stdout
1585 is expected to match /^pip \d+\.\d+(\.\d+)?/
1587Command "heroku version"
1588 stdout
1589 is expected to match /^heroku/
1591Failures:
1593 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})/
1594 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
1595 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})/
1596 Diff:
1597 @@ -1,2 +1,2 @@
1598 -/^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})/
1599 +psql (PostgreSQL) 16.4 (Ubuntu 16.4-1.pgdg20.04+1)
1602 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/basic_spec.rb:469:in `block (2 levels) in <top (required)>'
1604 2) postgresql installation Command " psql --version" stdout is expected to match /^psql.+(9\.[3-6]+\.[0-9]+|10\.[0-9])/
1605 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
1606 expected "psql (PostgreSQL) 16.4 (Ubuntu 16.4-1.pgdg20.04+1)\n" to match /^psql.+(9\.[3-6]+\.[0-9]+|10\.[0-9])/
1607 Diff:
1608 @@ -1,2 +1,2 @@
1609 -/^psql.+(9\.[3-6]+\.[0-9]+|10\.[0-9])/
1610 +psql (PostgreSQL) 16.4 (Ubuntu 16.4-1.pgdg20.04+1)
1612 bash -c \ psql\ --version
1613 psql (PostgreSQL) 16.4 (Ubuntu 16.4-1.pgdg20.04+1)
1615 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/postgresql_spec.rb:7:in `block (3 levels) in <top (required)>'
1617 3) mysql installation mysql commands Command "echo "SHOW VARIABLES LIKE 'performance_schema'" | mysql" stdout is expected to include "performance_schema\tOFF"
1618 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
1619 expected "Variable_name\tValue\nperformance_schema\tON\n" to include "performance_schema\tOFF"
1620 Diff:
1621 @@ -1,2 +1,3 @@
1622 -performance_schema OFF
1623 +Variable_name Value
1624 +performance_schema ON
1626 bash -c echo\ \"SHOW\ VARIABLES\ LIKE\ \'performance_schema\'\"\ \|\ mysql
1627 Variable_name Value
1628performance_schema ON
1630 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/mysql_spec.rb:72:in `block (4 levels) in <top (required)>'
1632 4) mysql installation File "/etc/mysql/conf.d/performance-schema.cnf" is expected to exist
1633 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
1634 expected File "/etc/mysql/conf.d/performance-schema.cnf" to exist
1635 bash -c test\ -e\ /etc/mysql/conf.d/performance-schema.cnf
1637 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/mysql_spec.rb:39:in `block (3 levels) in <top (required)>'
1639 5) mysql installation File "/etc/mysql/conf.d/performance-schema.cnf" is expected to be grouped into "root"
1640 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
1641 expected `File "/etc/mysql/conf.d/performance-schema.cnf".grouped_into?("root")` to be truthy, got false
1642 bash -c stat\ -c\ \%G\ /etc/mysql/conf.d/performance-schema.cnf\ \|\ grep\ --\ \\\^root\\\$
1644 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/mysql_spec.rb:42:in `block (3 levels) in <top (required)>'
1646 6) mysql installation File "/etc/mysql/conf.d/performance-schema.cnf" is expected to be readable
1647 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
1648 expected File "/etc/mysql/conf.d/performance-schema.cnf" to be readable
1649 bash -c stat\ -c\ \%a\ /etc/mysql/conf.d/performance-schema.cnf
1651 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/mysql_spec.rb:40:in `block (3 levels) in <top (required)>'
1653 7) mysql installation File "/etc/mysql/conf.d/performance-schema.cnf" is expected to be owned by "root"
1654 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
1655 expected `File "/etc/mysql/conf.d/performance-schema.cnf".owned_by?("root")` to be truthy, got false
1656 bash -c stat\ -c\ \%U\ /etc/mysql/conf.d/performance-schema.cnf\ \|\ grep\ --\ \\\^root\\\$
1658 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/mysql_spec.rb:41:in `block (3 levels) in <top (required)>'
1660 8) docker-compose installation Command "docker-compose --version" stdout is expected to match /^docker-compose version:?\s+\d+\.\d+\.\d+/
1661 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
1662 expected "Docker Compose version v2.27.1\n" to match /^docker-compose version:?\s+\d+\.\d+\.\d+/
1663 Diff:
1664 @@ -1,2 +1,2 @@
1665 -/^docker-compose version:?\s+\d+\.\d+\.\d+/
1666 +Docker Compose version v2.27.1
1668 /bin/bash -c docker-compose\ --version
1669 Docker Compose version v2.27.1
1671 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/docker_compose_spec.rb:9:in `block (3 levels) in <top (required)>'
1673 9) python environment Command "true ; nosetests --version" stdout is expected to match /^nosetests version \d+\.\d+\.\d+/
1674 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
1675 expected "" to match /^nosetests version \d+\.\d+\.\d+/
1676 Diff:
1677 @@ -1,2 +1,2 @@
1678 -/^nosetests version \d+\.\d+\.\d+/
1679 +""
1681 /bin/bash -c true\ \;\ nosetests\ --version
1683 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb:42:in `block (3 levels) in <top (required)>'
1685 10) python environment Command "true ; nosetests --version" stderr is expected to be empty
1686 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
1687 expected `"/bin/bash: nosetests: command not found\n".empty?` to be truthy, got false
1689 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb:41:in `block (3 levels) in <top (required)>'
1691 11) python environment Command "true ; py.test --version" stderr is expected to be empty
1692 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
1693 expected `"/bin/bash: py.test: command not found\n".empty?` to be truthy, got false
1694 /bin/bash -c true\ \;\ py.test\ --version
1696 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb:35:in `block (3 levels) in <top (required)>'
1698 12) python environment Command "true ; py.test --version" stdout is expected to match /pytest (version )?\d+\.\d+\.\d+/
1699 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
1700 expected "" to match /pytest (version )?\d+\.\d+\.\d+/
1701 Diff:
1702 @@ -1,2 +1,2 @@
1703 -/pytest (version )?\d+\.\d+\.\d+/
1704 +""
1707 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb:36:in `block (3 levels) in <top (required)>'
1709 13) python environment Command "true ; wheel version" stderr is expected to be empty
1710 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
1711 expected `"/bin/bash: wheel: command not found\n".empty?` to be truthy, got false
1712 /bin/bash -c true\ \;\ wheel\ version
1714 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb:22:in `block (3 levels) in <top (required)>'
1716 14) python environment Command "true ; wheel version" stdout is expected to match /^wheel \d+\.\d+\.\d+/
1717 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
1718 expected "" to match /^wheel \d+\.\d+\.\d+/
1719 Diff:
1720 @@ -1,2 +1,2 @@
1721 -/^wheel \d+\.\d+\.\d+/
1722 +""
1725 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb:23:in `block (3 levels) in <top (required)>'
1727Finished in 1 minute 9.67 seconds (files took 1.12 seconds to load)
1728282 examples, 14 failures
1730Failed examples:
1732rspec /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})/
1733rspec /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])/
1734rspec /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"
1735rspec /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
1736rspec /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"
1737rspec /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
1738rspec /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"
1739rspec /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+/
1740rspec /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+/
1741rspec /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
1742rspec /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
1743rspec /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+/
1744rspec /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
1745rspec /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+/
1747Randomized with seed 33043
1749+ local exit_code=1
1750+ [[ 1 != 0 ]]
1751+ echo 'Spec suite exited with 1'
1752Spec suite exited with 1
1753+ [[ -n '' ]]
1754+ exit 1
1756The command "bundle exec bash -xc sudo packer-scripts/run-serverspecs" failed. Retrying, 2 of 3.
1758+sudo packer-scripts/run-serverspecs
1759+ shopt -s nullglob
1760+ export CHEF_PATH=/opt/chef-workstation/bin:/opt/chef-workstation/embedded/bin:/opt/chef/bin
1761+ CHEF_PATH=/opt/chef-workstation/bin:/opt/chef-workstation/embedded/bin:/opt/chef/bin
1762+ export CHEF_LICENSE=accept-silent
1763+ CHEF_LICENSE=accept-silent
1764+ 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
1765+ 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
1766+ export DEBIAN_FRONTEND=noninteractive
1767+ DEBIAN_FRONTEND=noninteractive
1768+ export RUBYOPT=-W0
1769+ RUBYOPT=-W0
1770+ : /home/travis/build/travis-ci/packer-templates/tmp
1771+ : 'bash -lc'
1772+ : docker
1773+ [[ docker == \d\o\c\k\e\r ]]
1774+ export 'SPEC_ARGS=--tag ~dev --tag ~docker:false'
1775+ SPEC_ARGS='--tag ~dev --tag ~docker:false'
1776++ uname -m
1777+ [[ x86_64 =~ aarch64 ]]
1778++ uname -m
1779+ [[ x86_64 =~ ppc64 ]]
1780+ __install_chef /home/travis/build/travis-ci/packer-templates/tmp
1781+ [[ -f /opt/chef-workstation/embedded/bin/rspec ]]
1782+ return
1783+ __create_sudo_bash
1784+ cat
1785+ chmod 0755 /tmp/sudo-bash
1786+ __chown_travis_dirs /home/travis/build/travis-ci/packer-templates/tmp
1787+ chown -R travis:travis /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local /var/tmp
1788+ for suite in ${SPEC_SUITES/,/ }
1789+ __run_suite travis_packer_templates /home/travis/build/travis-ci/packer-templates/tmp 'bash -lc'
1790+ local suite=travis_packer_templates
1791+ local chef_prefix=/home/travis/build/travis-ci/packer-templates/tmp
1792+ local 'runner=bash -lc'
1793+ local cookbook_dir
1794++ __suite_cookbook_dir travis_packer_templates /home/travis/build/travis-ci/packer-templates/tmp
1795++ local suite=travis_packer_templates
1796++ local chef_prefix=/home/travis/build/travis-ci/packer-templates/tmp
1797++ local spec_dir
1798+++ head -1
1799+++ 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
1800++ spec_dir=/home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates/spec
1801++ dirname /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates/spec
1802+ cookbook_dir=/home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates
1803+ pushd /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates
1804+ __run_suite_as_travis travis_packer_templates /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates 'bash -lc'
1805+ local suite=travis_packer_templates
1806+ local cookbook_dir=/home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates
1807+ local 'runner=bash -lc'
1808+ set +o errexit
1809++ uname -m
1810++ uname -m
1811+ bash -lc '
1812set -o xtrace
1813export PATH="/opt/chef-workstation/bin:/opt/chef-workstation/embedded/bin:/opt/chef/bin:$PATH"
1814export TERM=xterm
1815export PACKER_BUILDER_TYPE=docker
1816export RUBYOPT=-W0
1817if [[ x86_64 =~ ppc64 ]]; then
1818 gem install serverspec
1819else
1820 chef gem install serverspec
1822unset GEM_PATH
1823cd /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates
1824sudo systemctl start xvfb.service
1825set -o errexit
1826if [[ x86_64 =~ ppc64 ]]; then
1827 rspec --tag ~dev --tag ~docker:false \
1828 --format documentation \
1829 --format json \
1830 --out /home/travis/.travis_packer_templates_rspec.json
1831else
1832 chef exec rspec --tag ~dev --tag ~docker:false \
1833 --format documentation \
1834 --format json \
1835 --out /home/travis/.travis_packer_templates_rspec.json
1838+ 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
1839+ 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
1840+ export TERM=xterm
1841+ TERM=xterm
1842+ export PACKER_BUILDER_TYPE=docker
1843+ PACKER_BUILDER_TYPE=docker
1844+ export RUBYOPT=-W0
1845+ RUBYOPT=-W0
1846+ [[ x86_64 =~ ppc64 ]]
1847+ chef gem install serverspec
1848WARNING: You don't have /home/travis/.chefdk/gem/ruby/3.0.0/bin in your PATH,
1849 gem executables will not run.
1850Successfully installed serverspec-2.42.3
18511 gem installed
1852+ unset GEM_PATH
1853+ cd /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates
1854+ sudo systemctl start xvfb.service
1855+ set -o errexit
1856+ [[ x86_64 =~ ppc64 ]]
1857+ chef exec rspec --tag '~dev' --tag '~docker:false' --format documentation --format json --out /home/travis/.travis_packer_templates_rspec.json
1858Run options: exclude {:dev=>true, :docker=>false}
1860Randomized with seed 60511
1862sqlite installation
1863 Command "sqlite3 -version"
1864 stdout
1865 is expected to match /^\d\.\d/
1866 exit_status
1867 is expected to eq 0
1868 sqlite commands are executed
1869 Command "
1870 sqlite3 /tmp/packer-templates-20241016-12266-snnm4o-rspec/test.db "
1871 CREATE TABLE hats (
1872 id INTEGER PRIMARY KEY,
1873 name TEXT,
1874 style INTEGER
1875 );
1876 INSERT INTO hats VALUES(1, 'floppy', 9001);
1877 SELECT * FROM hats;
1880 stdout
1881 is expected to match "1|floppy|9001"
1883Command "nc -h"
1884 exit_status
1885 is expected to eq 0
1887ruby installation
1888 Command "rspec --version"
1889 stderr
1890 is expected to be empty
1891 stdout
1892 is expected to match /^RSpec \d+\.\d+/
1893 Command "gem --version"
1894 stderr
1895 is expected to be empty
1896 stdout
1897 is expected to match /^\d+\.\d+\.\d+/
1899subversion installation
1900 Command "svn --version"
1901 exit_status
1902 is expected to eq 0
1903 subversion commands are executed
1904 File "/tmp/packer-templates-20241016-12266-snnm4o-rspec/svn-project/README.txt"
1905 content
1906 is expected to match "This is a Subversion repository;"
1908Command "bats --version"
1909 stdout
1910 is expected to match /^Bats \d/
1912File "/usr/share/travis/system_info"
1913 is expected to exist
1914 size
1915 is expected to be positive
1917Command "lsof -v 2>&1 | head -2 | tail -1"
1918 exit_status
1919 is expected to eq 0
1920 stdout
1921 is expected to match /revision:/
1923File "/etc/cloud/templates/hosts.ubuntu.tmpl"
1924 is expected to be exist
1925 content
1926 is expected to match /managed by chef/i
1927 content
1928 is expected to match /travis_build_environment/i
1930Command "shellcheck --version"
1931 stdout
1932 is expected to match /^version: \d+\.\d+\.\d+/
1934File "/home/travis/bin"
1935 is expected to be writable
1936 is expected to be directory
1938emacs installation
1939 Command "emacs --version"
1940 exit_status
1941 is expected to eq 0
1942 editing
1943 File "/tmp/packer-templates-20241016-12266-snnm4o-rspec/test.txt"
1944 content
1945 is expected to match "poof"
1947Command "heroku version"
1948 stdout
1949 is expected to match /^heroku/
1951imagemagick installation
1952 Command "convert --version"
1953 stdout
1954 is expected to match /imagemagick/i
1955 exit_status
1956 is expected to eq 0
1957 imagemagick commands
1958 Command "identify /tmp/packer-templates-20241016-12266-snnm4o-rspec/logo.gif"
1959 exit_status
1960 is expected to eq 0
1961 stdout
1962 is expected to match /logo\.gif GIF/
1964docker-compose installation
1965 Command "docker-compose --version"
1966 stdout
1967 is expected to match /^docker-compose version:?\s+\d+\.\d+\.\d+/ (FAILED - 1)
1968 exit_status
1969 is expected to eq 0
1971sysctl installation
1972 Command "sysctl -a"
1973 stdout
1974 is expected to include "kernel.sched_child_runs_first"
1975 Command "sysctl -V"
1976 exit_status
1977 is expected to eq 0
1979Command "psql --version"
1980 exit_status
1981 is expected to eq 0
1982 stdout
1983 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 - 2)
1985redis installation
1986 Command "redis-server --version"
1987 stdout
1988 is expected to match /^Redis /
1989 exit_status
1990 is expected to eq 0
1991 redis commands
1992 Command "redis-cli -p 16379 PING"
1993 stdout
1994 is expected to match /^PONG$/
1995 Command "redis-cli -p 16379 GET test_key | cat"
1996 stdout
1997 is expected to match /^test_value$/
1999xserver installation
2000 Command "Xorg -version"
2001 exit_status
2002 is expected to eq 0
2003 Command "xvfb-run -a xdpyinfo"
2004 exit_status
2005 is expected to eq 0
2006 stdout
2007 is expected to match /^\s+GLX$/
2008 stderr
2009 is expected to be empty
2010 Command "DISPLAY=:99.0 xset -q"
2011 stdout
2012 is expected to match /^Keyboard Control:/
2013 exit_status
2014 is expected to eq 0
2015 stderr
2016 is expected to be empty
2018go toolchain installation
2019 compiling something
2020 Command "go run /tmp/packer-templates-20241016-12266-snnm4o-rspec/example.go"
2021 stdout
2022 is expected to match /Good morrow, 17359/
2023 Command "go version"
2024 stdout
2025 is expected to match /^go version go/
2026 Command "go env GOROOT"
2027 stdout
2028 is expected to match /\/\.gimme\//
2030Command "packer version"
2031 exit_status
2032 is expected to eq 0
2033 stdout
2034 is expected to match /^Packer v\d/
2036md5deep installation
2037 Command "md5deep /tmp/packer-templates-20241016-12266-snnm4o-rspec/md5deep.txt"
2038 stdout
2039 is expected to match /^29c04665afa6ef18edc38824ceaff6ab\b/
2040 Command "md5deep -V"
2041 stdout
2042 is expected to match "This program is a work of the US Government."
2043 Command "md5deep -v"
2044 exit_status
2045 is expected to eq 0
2047ssh access
2048 File "/home/travis/.ssh/authorized_keys"
2049 is expected to be writable
2050 is expected to exist
2051 is expected to be readable
2052 size
2053 is expected to be positive
2054 File "/home/travis/.ssh/known_hosts"
2055 is expected to exist
2056 is expected to be readable
2057 is expected to be writable
2058 size
2059 is expected to be positive
2061User "travis"
2062 is expected to have login shell "/bin/bash"
2063 is expected to exist
2064 is expected to have home directory "/home/travis"
2066sudoers setup
2067 File "/etc/sudoers"
2068 is expected to be file
2069 is expected to be mode 440
2070 is expected to be owned by "root"
2071 is expected to exist
2072 content
2073 is expected to match /^#includedir \/etc\/sudoers\.d$/
2074 File "/etc/sudoers.d/travis"
2075 is expected to be file
2076 is expected to be owned by "root"
2077 is expected to be mode 440
2078 is expected to exist
2079 content
2080 is expected to match /^Defaults !authenticate$/
2081 content
2082 is expected to match /^travis ALL=\(ALL\) NOPASSWD:ALL$/
2083 content
2084 is expected to match /^Defaults !env_reset$/
2085 content
2086 is expected to match /^Defaults !mail_badpass$/
2088go installation
2089 Command "gimme -l"
2090 stdout
2091 is expected not to be empty
2093python3 interpreter
2094 Command "python3 -m this"
2095 stderr
2096 is expected to be empty
2097 stdout
2098 is expected to match /Readability counts\./
2099 python3 --version
2100 is expected to match /^Python \d+\.\d+\.\d+/
2102php interpreter
2103 Command "PHPENV_VERSION=system phpenv exec php -r 'foreach(range(1, 5) as $i) echo $i * 2 . " ";'"
2104 stderr
2105 is expected to be empty
2106 stdout
2107 is expected to match /^2 4 6 8 10/
2108 Command "PHPENV_VERSION=system phpenv exec php --version"
2109 stdout
2110 is expected to match /^PHP \d+\.\d+/
2111 stderr
2112 is expected to be empty
2114rvm installation
2115 File "/home/travis/.rvmrc"
2116 is expected to be readable
2117 is expected to exist
2118 is expected to be writable
2119 Command "rvm version"
2120 stderr
2121 is expected to be empty
2122 exit_status
2123 is expected to eq 0
2124 stdout
2125 is expected to match /^rvm /
2126 File "/home/travis/.rvm/user/db"
2127 is expected to exist
2128 is expected to be readable
2129 is expected to be writable
2130 rvm commands
2131 Command "rvm default do echo whatever"
2132 stderr
2133 is expected not to include "Warning!"
2134 stdout
2135 is expected to include "whatever"
2136 stdout
2137 is expected not to include "Warning!"
2138 Command "rvm list"
2139 stdout
2140 is expected to include "current"
2141 stderr
2142 is expected to be empty
2143 stdout
2144 is expected to match /ruby-2\.[234567]\.\d/
2146google-chrome installation
2147 Command "google-chrome --version"
2148 exit_status
2149 is expected to eq 0
2150 Package "google-chrome-stable"
2151 is expected to be installed
2153perlbrew installation
2154 Command "perlbrew list"
2155 exit_status
2156 is expected to eq 0
2157 Command "perlbrew --version"
2158 exit_status
2159 is expected to eq 0
2160 stdout
2161 is expected to match /perl5\/perlbrew\/bin\/perlbrew.+App::perlbrew\/\d+\.\d+/
2163openssl installation
2164 openssl commands
2165 Command "echo "Konstantin broke all the things." | openssl enc -base64"
2166 stdout
2167 is expected to match "S29uc3RhbnRpbiBicm9rZSBhbGwgdGhlIHRoaW5ncy4K"
2168 Command "echo "S29uc3RhbnRpbiBicm9rZSBhbGwgdGhlIHRoaW5ncy4K" | openssl enc -base64 -d"
2169 stdout
2170 is expected to match "Konstantin broke all the things."
2171 Command "openssl version"
2172 stdout
2173 is expected to match /^OpenSSL/
2174 exit_status
2175 is expected to eq 0
2177File "/.node-attributes.yml"
2178 is expected to exist
2179 content_as_yaml
2180 is expected to include "__timestamp"
2182File "/opt"
2183 is expected to be writable
2184 is expected to be directory
2186mysql installation
2187 mysql commands
2188 Command "echo "SHOW VARIABLES LIKE 'performance_schema'" | mysql"
2189 stdout
2190 is expected to include "performance_schema\tOFF" (FAILED - 3)
2191 Command "mysql -u root -e 'select "hai"'"
2192 stdout
2193 is expected to match /hai/
2194 stderr
2195 is expected to be empty
2196 exit_status
2197 is expected to eq 0
2198 Command "echo "SHOW DATABASES" | mysql"
2199 stdout
2200 is expected to match /^travis$/
2201 Command "mysql -u travis -e 'select "hai"'"
2202 exit_status
2203 is expected to eq 0
2204 stdout
2205 is expected to match /hai/
2206 stderr
2207 is expected to be empty
2208 Command "echo "SELECT id FROM test" | mysql travis"
2209 stdout
2210 is expected to match /^4$/
2211 File "/etc/mysql/conf.d/performance-schema.cnf"
2212 is expected to be readable (FAILED - 4)
2213 is expected to exist (FAILED - 5)
2214 is expected to be grouped into "root" (FAILED - 6)
2215 is expected to be owned by "root" (FAILED - 7)
2216 File "/home/travis/.my.cnf"
2217 is expected to exist
2218 is expected to be readable
2219 is expected to be grouped into "travis"
2220 is expected to be owned by "travis"
2222python2 interpreter
2223 python --version
2224 is expected to match /^Python \d+\.\d+\.\d+/
2225 Command "python -m this"
2226 stderr
2227 is expected to be empty
2228 stdout
2229 is expected to match /Readability counts\./
2231Command "wget --version"
2232 stdout
2233 is expected to include "GNU Wget"
2234 exit_status
2235 is expected to eq 0
2237vim installation
2238 Command "vim --version"
2239 stderr
2240 is expected to be empty
2241 exit_status
2242 is expected to eq 0
2243 stdout
2244 is expected not to be empty
2245 File "/tmp/packer-templates-20241016-12266-snnm4o-rspec/test.txt"
2246 content
2247 is expected to match /there/
2249Command "mysql --version"
2250 exit_status
2251 is expected to eq 0
2252 stdout
2253 is expected to match /^mysql /
2255php environment
2256 File "/home/travis/.pearrc"
2257 is expected not to exist
2258 Command "PHPENV_VERSION=system phpenv exec php-fpm --version"
2259 stdout
2260 is expected to match /^PHP \d+\.\d+\.\d+.+fpm-fcgi/
2261 exit_status
2262 is expected to eq 0
2263 Command "PHPENV_VERSION=system phpenv exec php -m --version"
2264 stdout
2265 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"
2267File "/etc/cloud/templates/sources.list.tmpl"
2268 content
2269 is expected to match /managed by chef/i
2270 content
2271 is expected to match /travis_build_environment/i
2273jdk installation
2274 should have JAVA_HOME defined
2275 Command "java -version"
2276 stderr
2277 is expected to match /^(java|openjdk)/
2278 exit_status
2279 is expected to eq 0
2280 java command
2281 Command "cd /tmp/packer-templates-20241016-12266-snnm4o-rspec && java Hello"
2282 stdout
2283 is expected to match "Hello World!"
2285File "/etc/cloud/templates/sources.list.debian.tmpl"
2286 content
2287 is expected to match /managed by chef/i
2288 content
2289 is expected to match /travis_build_environment/i
2291git installation
2292 Package "git"
2293 is expected to be installed
2294 Command "git config user.email"
2295 stdout
2296 is expected to match /travis@example\.org/
2297 git commands
2298 Command "cd /tmp/packer-templates-20241016-12266-snnm4o-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"
2299 stdout
2300 is expected to match /nothing to commit/
2301 stdout
2302 is expected to include "Untracked files:", "test-file.txt", "Changes to be committed:", and "new file: test-file.txt"
2303 Command "git --version"
2304 stdout
2305 is expected to match /^git version (2\.|1\.[89])/
2306 exit_status
2307 is expected to eq 0
2308 Command "git config user.name"
2309 stdout
2310 is expected to match /travis/i
2312clang installation
2313 clang command
2314 Command "clang -help"
2315 stdout
2316 is expected to include "OVERVIEW: clang LLVM compiler" and "OPTIONS:"
2317 Command "clang -v"
2318 exit_status
2319 is expected to eq 0
2321dictionaries commands
2322 Command "look kid"
2323 stdout
2324 is expected to match /^kidney$/
2325 stdout
2326 is expected to match /^kidnappers$/
2327 stdout
2328 is expected to match /^kidding$/
2329 stderr
2330 is expected to be empty
2332Command "shfmt -version"
2333 stdout
2334 is expected to match /^v\d+\.\d+\.\d+/
2336jq installation
2337 Command "jq -V"
2338 exit_status
2339 is expected to eq 0
2340 Command "jq -r '.stuff|.[]|select(."@type"=="smarm")|.msg[0]' </tmp/packer-templates-20241016-12266-snnm4o-rspec/test.json"
2341 stdout
2342 is expected to match /^Konstantin broke all the things/
2344ccache installation
2345 ccache commands are executed
2346 Command "ccache -M 0.5"
2347 stdout
2348 is expected to match /Set cache size limit to (512\.0 Mbytes|500\.0 MB)/
2349 Command "ccache -s"
2350 stdout
2351 is expected to include "cache directory", "cache hit", "cache miss", "files in cache", and "max cache size"
2352 Command "ccache -V"
2353 exit_status
2354 is expected to eq 0
2356Command "cmake --version"
2357 exit_status
2358 is expected to eq 0
2359 stdout
2360 is expected to match /^cmake version [23]/
2362ruby interpreter
2363 Command "ruby -e 'puts "Konstanin broke all the things!"'"
2364 stdout
2365 is expected to match /^Konstanin broke all the things!$/
2366 Command "ruby -e 'puts RUBY_ENGINE'"
2367 stdout
2368 is expected to match /^ruby/
2369 Command "ruby --version"
2370 stdout
2371 is expected to match /^ruby 3\.\d+\.\d+/
2372 stderr
2373 is expected to be empty
2375mercurial installation
2376 mecurial commands are executed
2377 Command "cd /tmp/packer-templates-20241016-12266-snnm4o-rspec/hg-project; hg status; hg add .; hg status"
2378 stdout
2379 is expected to match "\\? test-file.txt"
2380 stdout
2381 is expected to match "A test-file.txt"
2382 Command "hg version"
2383 stdout
2384 is expected to match /^Mercurial Distributed SCM \(version \d/
2385 exit_status
2386 is expected to eq 0
2388memcached installation
2389 Command "memcached -h"
2390 exit_status
2391 is expected to eq 0
2392 stdout
2393 is expected to match /^memcached \d/
2394 memcached commands
2395 Command "echo 'stats' | nc -w 5 127.0.0.1 11211"
2396 stdout
2397 is expected to match "version"
2398 Service "memcached"
2399 is expected to be running
2400 Package "memcached"
2401 is expected to be installed
2403mongodb installation
2404 mongo commands
2405 Command "mongo --eval "var myCursor = db.testData.find( { x: 6 }); myCursor.forEach(printjson);""
2406 stdout
2407 is expected to match /{ "_id" : ObjectId\("\w+"\), "x" : 6 }/
2408 Service "mongod"
2409 is expected not to be running
2410 is expected not to be enabled
2411 Command "mongo --version"
2412 stdout
2413 is expected to match /MongoDB shell/
2414 exit_status
2415 is expected to eq 0
2417gimme installation
2418 Command "gimme --version"
2419 exit_status
2420 is expected to eq 0
2421 Command "eval "$(HOME=/tmp/packer-templates-20241016-12266-snnm4o-rspec gimme 1.6.3)" 2>&1"
2422 stdout
2423 is expected to match "go version go1.6.3"
2425File "/etc/cloud/templates"
2426 is expected to be directory
2428gcc installation
2429 Command "gcc -v"
2430 stderr
2431 is expected to match /^gcc version/
2432 Command "
2433 cd /tmp/packer-templates-20241016-12266-snnm4o-rspec;
2434 gcc -Wall -o hai hai.c;
2435 ./hai there
2437 stdout
2438 is expected to match /^hai 2$/
2439 Command "cd /tmp/packer-templates-20241016-12266-snnm4o-rspec/empty && gcc"
2440 stderr
2441 is expected to include "no input files"
2443Command "ssh -V"
2444 stderr
2445 is expected to match /OpenSSH/
2447perl interpreter
2448 Command "perl -e 'print "Hello Mr Euler!\n"'"
2449 stderr
2450 is expected to be empty
2451 stdout
2452 is expected to match /^Hello Mr Euler!/
2453 Command "perl --version"
2454 stdout
2455 is expected to match /perl 5, version \d/
2456 stderr
2457 is expected to be empty
2459bazaar installation
2460 Command "bzr version"
2461 exit_status
2462 is expected to eq 0
2463 stdout
2464 is expected to match /Bazaar \(bzr\)|Breezy \(brz\)/
2465 bazaar commands
2466 Command "
2467 cd /tmp/packer-templates-20241016-12266-snnm4o-rspec/bzr-project;
2468 bzr status;
2469 bzr add test.txt;
2470 bzr status;
2472 stdout
2473 is expected to match /^added:/
2474 stdout
2475 is expected to match /^ test\.txt/
2476 stdout
2477 is expected to match /^ test\.txt/
2478 stdout
2479 is expected to match /^adding test\.txt/
2480 stdout
2481 is expected to match /^unknown:/
2483Command "sudo -V"
2484 stdout
2485 is expected to match /^Sudo version \d/
2487apt installation
2488 apt commands
2489 Command "sudo apt-get install -y language-pack-pt"
2490 stdout
2491 is expected to match /Reading state/
2492 Command "sudo apt-get update -y"
2493 stdout
2494 is expected to match /http/
2495 Command "apt-cache search ubuntu-restricted-extras"
2496 stdout
2497 is expected not to be empty
2498 /var/lib/apt/lists/*Packages*
2499 is non-empty
2500 apt architecture
2501 Command "dpkg --print-architecture"
2502 stdout
2503 is expected to match /amd64/
2504 Command "dpkg --print-foreign-architectures"
2505 stdout
2506 is expected to match /i386/
2507 Command "apt-get -v"
2508 exit_status
2509 is expected to eq 0
2510 File "/var/lib/apt/lists"
2511 is expected to be directory
2513Command "curl --version | head -1"
2514 stdout
2515 is expected to include "curl"
2516 exit_status
2517 is expected to eq 0
2519File "/etc/cloud/templates/hosts.tmpl"
2520 is expected to be exist
2521 content
2522 is expected to match /managed by chef/i
2523 content
2524 is expected to match /travis_build_environment/i
2526phantomjs installation
2527 Command "phantomjs -v"
2528 stdout
2529 is expected to match /\d/
2530 exit_status
2531 is expected to eq 0
2532 Command "phantomjs /tmp/packer-templates-20241016-12266-snnm4o-rspec/test.js"
2533 stdout
2534 is expected to match "Status: success"
2536unarchivers installation
2537 Command "dpkg -s libbz2-dev"
2538 stdout
2539 is expected to match "Status: install ok installed"
2540 Command "gzip --version"
2541 stdout
2542 is expected to match /^gzip \d/
2543 exit_status
2544 is expected to eq 0
2545 Command "unzip -version"
2546 exit_status
2547 is expected to eq 0
2548 stdout
2549 is expected to match /^UnZip \d/
2550 Command "
2551 cd /tmp/packer-templates-20241016-12266-snnm4o-rspec;
2552 zip test.zip test.txt;
2553 rm test.txt;
2554 ls /tmp/packer-templates-20241016-12266-snnm4o-rspec;
2555 unzip test.zip;
2556 cat test.txt
2558 stdout
2559 is expected to match "Konstantin broke all the things."
2560 stdout
2561 is expected to include "test.zip"
2562 Command "
2563 bzip2 -z /tmp/packer-templates-20241016-12266-snnm4o-rspec/test.txt;
2564 rm /tmp/packer-templates-20241016-12266-snnm4o-rspec/test.txt;
2565 ls /tmp/packer-templates-20241016-12266-snnm4o-rspec;
2566 bzip2 -d /tmp/packer-templates-20241016-12266-snnm4o-rspec/test.txt.bz2;
2567 cat /tmp/packer-templates-20241016-12266-snnm4o-rspec/test.txt
2569 stdout
2570 is expected to match "Konstantin broke all the things."
2571 stdout
2572 is expected to include "test.txt.bz2"
2573 Command "
2574 gzip /tmp/packer-templates-20241016-12266-snnm4o-rspec/test.txt;
2575 rm /tmp/packer-templates-20241016-12266-snnm4o-rspec/test.txt;
2576 ls /tmp/packer-templates-20241016-12266-snnm4o-rspec;
2577 gzip -d /tmp/packer-templates-20241016-12266-snnm4o-rspec/test.txt.gz;
2578 cat /tmp/packer-templates-20241016-12266-snnm4o-rspec/test.txt
2580 stdout
2581 is expected to include "test.txt.gz"
2582 stdout
2583 is expected to match "Konstantin broke all the things."
2584 Command "zip --version"
2585 exit_status
2586 is expected to eq 0
2587 stdout
2588 is expected to match /Zip \d/
2590Command "rsync --version"
2591 exit_status
2592 is expected to eq 0
2593 stdout
2594 is expected to match /rsync.+version/
2596postgresql installation
2597 psql commands
2598 with a test table
2599 Command " psql -U travis -tA -c '\dt' test_db"
2600 stdout
2601 is expected to match /^public\|test_table\|/
2602 stderr
2603 is expected to be empty
2604 Command " psql -U travis -ltA"
2605 stdout
2606 is expected to match /^test_db\|/
2607 Command " psql --version"
2608 exit_status
2609 is expected to eq 0
2610 stdout
2611 is expected to match /^psql.+(9\.[3-6]+\.[0-9]+|10\.[0-9])/ (FAILED - 8)
2613Command "ldconfig -V"
2614 exit_status
2615 is expected to eq 0
2616 stdout
2617 is expected to include "ldconfig "
2619nodejs interpreter
2620 Command "node -v"
2621 exit_status
2622 is expected to eq 0
2623 stdout
2624 is expected to match /v\d/
2625 Command "node -e "console.log('Konstantin broke all the thingz')""
2626 stdout
2627 is expected to match "Konstantin broke all the thingz"
2629File "/etc/cloud/templates/hosts.debian.tmpl"
2630 is expected to be exist
2631 content
2632 is expected to match /travis_build_environment/i
2633 content
2634 is expected to match /managed by chef/i
2636python environment
2637 Command "true ; python -c 'import sys;from unittest import mock;sys.stdout.write(mock.__version__ + "\n")'"
2638 stderr
2639 is expected to be empty
2640 stdout
2641 is expected to match /^\d+\.\d+/
2642 Command "true ; pip --version"
2643 stdout
2644 is expected to match /^pip \d+\.\d+(\.\d+)?/
2645 stderr
2646 is expected to be empty
2647 Command "true ; wheel version"
2648 stderr
2649 is expected to be empty (FAILED - 9)
2650 stdout
2651 is expected to match /^wheel \d+\.\d+\.\d+/ (FAILED - 10)
2652 Command "true ; nosetests --version"
2653 stderr
2654 is expected to be empty (FAILED - 11)
2655 stdout
2656 is expected to match /^nosetests version \d+\.\d+\.\d+/ (FAILED - 12)
2657 Command "true ; py.test --version"
2658 stderr
2659 is expected to be empty (FAILED - 13)
2660 stdout
2661 is expected to match /pytest (version )?\d+\.\d+\.\d+/ (FAILED - 14)
2663Command "ldconfig -p | grep libldap"
2664 stdout
2665 is expected to match /libldap_r/
2666 exit_status
2667 is expected to eq 0
2669Command "iptables --version"
2670 stdout
2671 is expected to include "iptables"
2672 exit_status
2673 is expected to eq 0
2675File "/etc/cloud/templates/sources.list.ubuntu.tmpl"
2676 content
2677 is expected to match /travis_build_environment/i
2678 content
2679 is expected to match /managed by chef/i
2681File "/etc/cloud/cloud.cfg"
2682 content
2683 is expected to match /managed by chef/i
2684 content
2685 is expected to match /travis_build_environment/i
2687ragel installation
2688 Package "ragel"
2689 is expected to be installed
2690 Command "ragel -v"
2691 stdout
2692 is expected to match /^Ragel /
2693 exit_status
2694 is expected to eq 0
2695 ragel commands
2696 add a ragel file and execute a ragel command
2697 File "/tmp/packer-templates-20241016-12266-snnm4o-rspec/hello_world.rb"
2698 content
2699 is expected to match /^puts "Hello World"/
2701firefox installation
2702 Command "sudo -u travis firefox -v"
2703 stderr
2704 is expected to be empty
2705 exit_status
2706 is expected to eq 0
2707 firefox commands
2708 File "/tmp/packer-templates-20241016-12266-snnm4o-rspec/.mozilla/firefox/profiles.ini"
2709 is expected to exist
2710 content
2711 is expected to match /^Name=test/
2713dictionaries installation
2714 Package "wamerican"
2715 is expected to be installed
2717Failures:
2719 1) docker-compose installation Command "docker-compose --version" stdout is expected to match /^docker-compose version:?\s+\d+\.\d+\.\d+/
2720 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
2721 expected "Docker Compose version v2.27.1\n" to match /^docker-compose version:?\s+\d+\.\d+\.\d+/
2722 Diff:
2723 @@ -1,2 +1,2 @@
2724 -/^docker-compose version:?\s+\d+\.\d+\.\d+/
2725 +Docker Compose version v2.27.1
2727 bash -c docker-compose\ --version
2728 Docker Compose version v2.27.1
2730 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/docker_compose_spec.rb:9:in `block (3 levels) in <top (required)>'
2732 2) 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})/
2733 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
2734 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})/
2735 Diff:
2736 @@ -1,2 +1,2 @@
2737 -/^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})/
2738 +psql (PostgreSQL) 16.4 (Ubuntu 16.4-1.pgdg20.04+1)
2741 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/basic_spec.rb:469:in `block (2 levels) in <top (required)>'
2743 3) mysql installation mysql commands Command "echo "SHOW VARIABLES LIKE 'performance_schema'" | mysql" stdout is expected to include "performance_schema\tOFF"
2744 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
2745 expected "Variable_name\tValue\nperformance_schema\tON\n" to include "performance_schema\tOFF"
2746 Diff:
2747 @@ -1,2 +1,3 @@
2748 -performance_schema OFF
2749 +Variable_name Value
2750 +performance_schema ON
2752 /bin/bash -c echo\ \"SHOW\ VARIABLES\ LIKE\ \'performance_schema\'\"\ \|\ mysql
2753 Variable_name Value
2754performance_schema ON
2756 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/mysql_spec.rb:72:in `block (4 levels) in <top (required)>'
2758 4) mysql installation File "/etc/mysql/conf.d/performance-schema.cnf" is expected to be readable
2759 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
2760 expected File "/etc/mysql/conf.d/performance-schema.cnf" to be readable
2761 /bin/bash -c stat\ -c\ \%a\ /etc/mysql/conf.d/performance-schema.cnf
2763 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/mysql_spec.rb:40:in `block (3 levels) in <top (required)>'
2765 5) mysql installation File "/etc/mysql/conf.d/performance-schema.cnf" is expected to exist
2766 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
2767 expected File "/etc/mysql/conf.d/performance-schema.cnf" to exist
2768 /bin/bash -c test\ -e\ /etc/mysql/conf.d/performance-schema.cnf
2770 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/mysql_spec.rb:39:in `block (3 levels) in <top (required)>'
2772 6) mysql installation File "/etc/mysql/conf.d/performance-schema.cnf" is expected to be grouped into "root"
2773 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
2774 expected `File "/etc/mysql/conf.d/performance-schema.cnf".grouped_into?("root")` to be truthy, got false
2775 /bin/bash -c stat\ -c\ \%G\ /etc/mysql/conf.d/performance-schema.cnf\ \|\ grep\ --\ \\\^root\\\$
2777 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/mysql_spec.rb:42:in `block (3 levels) in <top (required)>'
2779 7) mysql installation File "/etc/mysql/conf.d/performance-schema.cnf" is expected to be owned by "root"
2780 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
2781 expected `File "/etc/mysql/conf.d/performance-schema.cnf".owned_by?("root")` to be truthy, got false
2782 /bin/bash -c stat\ -c\ \%U\ /etc/mysql/conf.d/performance-schema.cnf\ \|\ grep\ --\ \\\^root\\\$
2784 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/mysql_spec.rb:41:in `block (3 levels) in <top (required)>'
2786 8) postgresql installation Command " psql --version" stdout is expected to match /^psql.+(9\.[3-6]+\.[0-9]+|10\.[0-9])/
2787 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
2788 expected "psql (PostgreSQL) 16.4 (Ubuntu 16.4-1.pgdg20.04+1)\n" to match /^psql.+(9\.[3-6]+\.[0-9]+|10\.[0-9])/
2789 Diff:
2790 @@ -1,2 +1,2 @@
2791 -/^psql.+(9\.[3-6]+\.[0-9]+|10\.[0-9])/
2792 +psql (PostgreSQL) 16.4 (Ubuntu 16.4-1.pgdg20.04+1)
2795 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/postgresql_spec.rb:7:in `block (3 levels) in <top (required)>'
2797 9) python environment Command "true ; wheel version" stderr is expected to be empty
2798 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
2799 expected `"/bin/bash: wheel: command not found\n".empty?` to be truthy, got false
2800 /bin/bash -c true\ \;\ wheel\ version
2802 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb:22:in `block (3 levels) in <top (required)>'
2804 10) python environment Command "true ; wheel version" stdout is expected to match /^wheel \d+\.\d+\.\d+/
2805 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
2806 expected "" to match /^wheel \d+\.\d+\.\d+/
2807 Diff:
2808 @@ -1,2 +1,2 @@
2809 -/^wheel \d+\.\d+\.\d+/
2810 +""
2813 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb:23:in `block (3 levels) in <top (required)>'
2815 11) python environment Command "true ; nosetests --version" stderr is expected to be empty
2816 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
2817 expected `"/bin/bash: nosetests: command not found\n".empty?` to be truthy, got false
2818 /bin/bash -c true\ \;\ nosetests\ --version
2820 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb:41:in `block (3 levels) in <top (required)>'
2822 12) python environment Command "true ; nosetests --version" stdout is expected to match /^nosetests version \d+\.\d+\.\d+/
2823 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
2824 expected "" to match /^nosetests version \d+\.\d+\.\d+/
2825 Diff:
2826 @@ -1,2 +1,2 @@
2827 -/^nosetests version \d+\.\d+\.\d+/
2828 +""
2831 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb:42:in `block (3 levels) in <top (required)>'
2833 13) python environment Command "true ; py.test --version" stderr is expected to be empty
2834 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
2835 expected `"/bin/bash: py.test: command not found\n".empty?` to be truthy, got false
2836 /bin/bash -c true\ \;\ py.test\ --version
2838 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb:35:in `block (3 levels) in <top (required)>'
2840 14) python environment Command "true ; py.test --version" stdout is expected to match /pytest (version )?\d+\.\d+\.\d+/
2841 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
2842 expected "" to match /pytest (version )?\d+\.\d+\.\d+/
2843 Diff:
2844 @@ -1,2 +1,2 @@
2845 -/pytest (version )?\d+\.\d+\.\d+/
2846 +""
2849 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb:36:in `block (3 levels) in <top (required)>'
2851Finished in 59.09 seconds (files took 0.92731 seconds to load)
2852282 examples, 14 failures
2854Failed examples:
2856rspec /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+/
2857rspec /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})/
2858rspec /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"
2859rspec /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
2860rspec /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
2861rspec /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"
2862rspec /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"
2863rspec /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])/
2864rspec /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
2865rspec /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+/
2866rspec /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
2867rspec /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+/
2868rspec /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
2869rspec /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+/
2871Randomized with seed 60511
2873+ local exit_code=1
2874+ [[ 1 != 0 ]]
2875+ echo 'Spec suite exited with 1'
2876Spec suite exited with 1
2877+ [[ -n '' ]]
2878+ exit 1
2880The command "bundle exec bash -xc sudo packer-scripts/run-serverspecs" failed. Retrying, 3 of 3.
2882+sudo packer-scripts/run-serverspecs
2883+ shopt -s nullglob
2884+ export CHEF_PATH=/opt/chef-workstation/bin:/opt/chef-workstation/embedded/bin:/opt/chef/bin
2885+ CHEF_PATH=/opt/chef-workstation/bin:/opt/chef-workstation/embedded/bin:/opt/chef/bin
2886+ export CHEF_LICENSE=accept-silent
2887+ CHEF_LICENSE=accept-silent
2888+ 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
2889+ 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
2890+ export DEBIAN_FRONTEND=noninteractive
2891+ DEBIAN_FRONTEND=noninteractive
2892+ export RUBYOPT=-W0
2893+ RUBYOPT=-W0
2894+ : /home/travis/build/travis-ci/packer-templates/tmp
2895+ : 'bash -lc'
2896+ : docker
2897+ [[ docker == \d\o\c\k\e\r ]]
2898+ export 'SPEC_ARGS=--tag ~dev --tag ~docker:false'
2899+ SPEC_ARGS='--tag ~dev --tag ~docker:false'
2900++ uname -m
2901+ [[ x86_64 =~ aarch64 ]]
2902++ uname -m
2903+ [[ x86_64 =~ ppc64 ]]
2904+ __install_chef /home/travis/build/travis-ci/packer-templates/tmp
2905+ [[ -f /opt/chef-workstation/embedded/bin/rspec ]]
2906+ return
2907+ __create_sudo_bash
2908+ cat
2909+ chmod 0755 /tmp/sudo-bash
2910+ __chown_travis_dirs /home/travis/build/travis-ci/packer-templates/tmp
2911+ chown -R travis:travis /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local /var/tmp
2912+ for suite in ${SPEC_SUITES/,/ }
2913+ __run_suite travis_packer_templates /home/travis/build/travis-ci/packer-templates/tmp 'bash -lc'
2914+ local suite=travis_packer_templates
2915+ local chef_prefix=/home/travis/build/travis-ci/packer-templates/tmp
2916+ local 'runner=bash -lc'
2917+ local cookbook_dir
2918++ __suite_cookbook_dir travis_packer_templates /home/travis/build/travis-ci/packer-templates/tmp
2919++ local suite=travis_packer_templates
2920++ local chef_prefix=/home/travis/build/travis-ci/packer-templates/tmp
2921++ local spec_dir
2922+++ 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
2923+++ head -1
2924++ spec_dir=/home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates/spec
2925++ dirname /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates/spec
2926+ cookbook_dir=/home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates
2927+ pushd /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates
2928+ __run_suite_as_travis travis_packer_templates /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates 'bash -lc'
2929+ local suite=travis_packer_templates
2930+ local cookbook_dir=/home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates
2931+ local 'runner=bash -lc'
2932+ set +o errexit
2933++ uname -m
2934++ uname -m
2935+ bash -lc '
2936set -o xtrace
2937export PATH="/opt/chef-workstation/bin:/opt/chef-workstation/embedded/bin:/opt/chef/bin:$PATH"
2938export TERM=xterm
2939export PACKER_BUILDER_TYPE=docker
2940export RUBYOPT=-W0
2941if [[ x86_64 =~ ppc64 ]]; then
2942 gem install serverspec
2943else
2944 chef gem install serverspec
2946unset GEM_PATH
2947cd /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates
2948sudo systemctl start xvfb.service
2949set -o errexit
2950if [[ x86_64 =~ ppc64 ]]; then
2951 rspec --tag ~dev --tag ~docker:false \
2952 --format documentation \
2953 --format json \
2954 --out /home/travis/.travis_packer_templates_rspec.json
2955else
2956 chef exec rspec --tag ~dev --tag ~docker:false \
2957 --format documentation \
2958 --format json \
2959 --out /home/travis/.travis_packer_templates_rspec.json
2962+ 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
2963+ 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
2964+ export TERM=xterm
2965+ TERM=xterm
2966+ export PACKER_BUILDER_TYPE=docker
2967+ PACKER_BUILDER_TYPE=docker
2968+ export RUBYOPT=-W0
2969+ RUBYOPT=-W0
2970+ [[ x86_64 =~ ppc64 ]]
2971+ chef gem install serverspec
2972WARNING: You don't have /home/travis/.chefdk/gem/ruby/3.0.0/bin in your PATH,
2973 gem executables will not run.
2974Successfully installed serverspec-2.42.3
29751 gem installed
2976+ unset GEM_PATH
2977+ cd /home/travis/build/travis-ci/packer-templates/tmp/packer-chef-local/cookbooks/travis_packer_templates
2978+ sudo systemctl start xvfb.service
2979+ set -o errexit
2980+ [[ x86_64 =~ ppc64 ]]
2981+ chef exec rspec --tag '~dev' --tag '~docker:false' --format documentation --format json --out /home/travis/.travis_packer_templates_rspec.json
2982Run options: exclude {:dev=>true, :docker=>false}
2984Randomized with seed 4455
2986User "travis"
2987 is expected to have login shell "/bin/bash"
2988 is expected to exist
2989 is expected to have home directory "/home/travis"
2991sudoers setup
2992 File "/etc/sudoers"
2993 is expected to be owned by "root"
2994 is expected to be file
2995 is expected to exist
2996 is expected to be mode 440
2997 content
2998 is expected to match /^#includedir \/etc\/sudoers\.d$/
2999 File "/etc/sudoers.d/travis"
3000 is expected to be file
3001 is expected to exist
3002 is expected to be owned by "root"
3003 is expected to be mode 440
3004 content
3005 is expected to match /^Defaults !mail_badpass$/
3006 content
3007 is expected to match /^Defaults !authenticate$/
3008 content
3009 is expected to match /^Defaults !env_reset$/
3010 content
3011 is expected to match /^travis ALL=\(ALL\) NOPASSWD:ALL$/
3013dictionaries commands
3014 Command "look kid"
3015 stdout
3016 is expected to match /^kidnappers$/
3017 stderr
3018 is expected to be empty
3019 stdout
3020 is expected to match /^kidding$/
3021 stdout
3022 is expected to match /^kidney$/
3024apt installation
3025 apt architecture
3026 Command "dpkg --print-architecture"
3027 stdout
3028 is expected to match /amd64/
3029 Command "dpkg --print-foreign-architectures"
3030 stdout
3031 is expected to match /i386/
3032 apt commands
3033 Command "sudo apt-get install -y language-pack-pt"
3034 stdout
3035 is expected to match /Reading state/
3036 Command "sudo apt-get update -y"
3037 stdout
3038 is expected to match /http/
3039 Command "apt-cache search ubuntu-restricted-extras"
3040 stdout
3041 is expected not to be empty
3042 Command "apt-get -v"
3043 exit_status
3044 is expected to eq 0
3045 /var/lib/apt/lists/*Packages*
3046 is non-empty
3047 File "/var/lib/apt/lists"
3048 is expected to be directory
3050Command "wget --version"
3051 stdout
3052 is expected to include "GNU Wget"
3053 exit_status
3054 is expected to eq 0
3056dictionaries installation
3057 Package "wamerican"
3058 is expected to be installed
3060git installation
3061 git commands
3062 Command "cd /tmp/packer-templates-20241016-16295-r1gv4p-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"
3063 stdout
3064 is expected to include "Untracked files:", "test-file.txt", "Changes to be committed:", and "new file: test-file.txt"
3065 stdout
3066 is expected to match /nothing to commit/
3067 Command "git --version"
3068 stdout
3069 is expected to match /^git version (2\.|1\.[89])/
3070 exit_status
3071 is expected to eq 0
3072 Command "git config user.email"
3073 stdout
3074 is expected to match /travis@example\.org/
3075 Package "git"
3076 is expected to be installed
3077 Command "git config user.name"
3078 stdout
3079 is expected to match /travis/i
3081Command "ldconfig -p | grep libldap"
3082 stdout
3083 is expected to match /libldap_r/
3084 exit_status
3085 is expected to eq 0
3087Command "shfmt -version"
3088 stdout
3089 is expected to match /^v\d+\.\d+\.\d+/
3091rvm installation
3092 rvm commands
3093 Command "rvm default do echo whatever"
3094 stdout
3095 is expected to include "whatever"
3096 stdout
3097 is expected not to include "Warning!"
3098 stderr
3099 is expected not to include "Warning!"
3100 Command "rvm list"
3101 stdout
3102 is expected to match /ruby-2\.[234567]\.\d/
3103 stdout
3104 is expected to include "current"
3105 stderr
3106 is expected to be empty
3107 File "/home/travis/.rvm/user/db"
3108 is expected to be readable
3109 is expected to exist
3110 is expected to be writable
3111 File "/home/travis/.rvmrc"
3112 is expected to be readable
3113 is expected to be writable
3114 is expected to exist
3115 Command "rvm version"
3116 stderr
3117 is expected to be empty
3118 stdout
3119 is expected to match /^rvm /
3120 exit_status
3121 is expected to eq 0
3123nodejs interpreter
3124 Command "node -e "console.log('Konstantin broke all the thingz')""
3125 stdout
3126 is expected to match "Konstantin broke all the thingz"
3127 Command "node -v"
3128 exit_status
3129 is expected to eq 0
3130 stdout
3131 is expected to match /v\d/
3133Command "rsync --version"
3134 exit_status
3135 is expected to eq 0
3136 stdout
3137 is expected to match /rsync.+version/
3139Command "cmake --version"
3140 exit_status
3141 is expected to eq 0
3142 stdout
3143 is expected to match /^cmake version [23]/
3145bazaar installation
3146 Command "bzr version"
3147 stdout
3148 is expected to match /Bazaar \(bzr\)|Breezy \(brz\)/
3149 exit_status
3150 is expected to eq 0
3151 bazaar commands
3152 Command "
3153 cd /tmp/packer-templates-20241016-16295-r1gv4p-rspec/bzr-project;
3154 bzr status;
3155 bzr add test.txt;
3156 bzr status;
3158 stdout
3159 is expected to match /^unknown:/
3160 stdout
3161 is expected to match /^ test\.txt/
3162 stdout
3163 is expected to match /^adding test\.txt/
3164 stdout
3165 is expected to match /^ test\.txt/
3166 stdout
3167 is expected to match /^added:/
3169ragel installation
3170 Package "ragel"
3171 is expected to be installed
3172 Command "ragel -v"
3173 stdout
3174 is expected to match /^Ragel /
3175 exit_status
3176 is expected to eq 0
3177 ragel commands
3178 add a ragel file and execute a ragel command
3179 File "/tmp/packer-templates-20241016-16295-r1gv4p-rspec/hello_world.rb"
3180 content
3181 is expected to match /^puts "Hello World"/
3183postgresql installation
3184 psql commands
3185 with a test table
3186 Command " psql -U travis -tA -c '\dt' test_db"
3187 stderr
3188 is expected to be empty
3189 stdout
3190 is expected to match /^public\|test_table\|/
3191 Command " psql -U travis -ltA"
3192 stdout
3193 is expected to match /^test_db\|/
3194 Command " psql --version"
3195 stdout
3196 is expected to match /^psql.+(9\.[3-6]+\.[0-9]+|10\.[0-9])/ (FAILED - 1)
3197 exit_status
3198 is expected to eq 0
3200File "/etc/cloud/templates/sources.list.tmpl"
3201 content
3202 is expected to match /managed by chef/i
3203 content
3204 is expected to match /travis_build_environment/i
3206ssh access
3207 File "/home/travis/.ssh/authorized_keys"
3208 is expected to exist
3209 is expected to be readable
3210 is expected to be writable
3211 size
3212 is expected to be positive
3213 File "/home/travis/.ssh/known_hosts"
3214 is expected to be readable
3215 is expected to exist
3216 is expected to be writable
3217 size
3218 is expected to be positive
3220Command "psql --version"
3221 stdout
3222 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 - 2)
3223 exit_status
3224 is expected to eq 0
3226File "/etc/cloud/templates/hosts.tmpl"
3227 is expected to be exist
3228 content
3229 is expected to match /travis_build_environment/i
3230 content
3231 is expected to match /managed by chef/i
3233sysctl installation
3234 Command "sysctl -V"
3235 exit_status
3236 is expected to eq 0
3237 Command "sysctl -a"
3238 stdout
3239 is expected to include "kernel.sched_child_runs_first"
3241File "/etc/cloud/templates/sources.list.debian.tmpl"
3242 content
3243 is expected to match /managed by chef/i
3244 content
3245 is expected to match /travis_build_environment/i
3247File "/etc/cloud/templates"
3248 is expected to be directory
3250File "/etc/cloud/cloud.cfg"
3251 content
3252 is expected to match /managed by chef/i
3253 content
3254 is expected to match /travis_build_environment/i
3256google-chrome installation
3257 Command "google-chrome --version"
3258 exit_status
3259 is expected to eq 0
3260 Package "google-chrome-stable"
3261 is expected to be installed
3263md5deep installation
3264 Command "md5deep -V"
3265 stdout
3266 is expected to match "This program is a work of the US Government."
3267 Command "md5deep /tmp/packer-templates-20241016-16295-r1gv4p-rspec/md5deep.txt"
3268 stdout
3269 is expected to match /^29c04665afa6ef18edc38824ceaff6ab\b/
3270 Command "md5deep -v"
3271 exit_status
3272 is expected to eq 0
3274go toolchain installation
3275 Command "go version"
3276 stdout
3277 is expected to match /^go version go/
3278 Command "go env GOROOT"
3279 stdout
3280 is expected to match /\/\.gimme\//
3281 compiling something
3282 Command "go run /tmp/packer-templates-20241016-16295-r1gv4p-rspec/example.go"
3283 stdout
3284 is expected to match /Good morrow, 14820/
3286redis installation
3287 redis commands
3288 Command "redis-cli -p 16379 PING"
3289 stdout
3290 is expected to match /^PONG$/
3291 Command "redis-cli -p 16379 GET test_key | cat"
3292 stdout
3293 is expected to match /^test_value$/
3294 Command "redis-server --version"
3295 exit_status
3296 is expected to eq 0
3297 stdout
3298 is expected to match /^Redis /
3300phantomjs installation
3301 Command "phantomjs /tmp/packer-templates-20241016-16295-r1gv4p-rspec/test.js"
3302 stdout
3303 is expected to match "Status: success"
3304 Command "phantomjs -v"
3305 exit_status
3306 is expected to eq 0
3307 stdout
3308 is expected to match /\d/
3310jdk installation
3311 should have JAVA_HOME defined
3312 Command "java -version"
3313 exit_status
3314 is expected to eq 0
3315 stderr
3316 is expected to match /^(java|openjdk)/
3317 java command
3318 Command "cd /tmp/packer-templates-20241016-16295-r1gv4p-rspec && java Hello"
3319 stdout
3320 is expected to match "Hello World!"
3322ruby installation
3323 Command "gem --version"
3324 stderr
3325 is expected to be empty
3326 stdout
3327 is expected to match /^\d+\.\d+\.\d+/
3328 Command "rspec --version"
3329 stderr
3330 is expected to be empty
3331 stdout
3332 is expected to match /^RSpec \d+\.\d+/
3334unarchivers installation
3335 Command "
3336 cd /tmp/packer-templates-20241016-16295-r1gv4p-rspec;
3337 zip test.zip test.txt;
3338 rm test.txt;
3339 ls /tmp/packer-templates-20241016-16295-r1gv4p-rspec;
3340 unzip test.zip;
3341 cat test.txt
3343 stdout
3344 is expected to include "test.zip"
3345 stdout
3346 is expected to match "Konstantin broke all the things."
3347 Command "gzip --version"
3348 stdout
3349 is expected to match /^gzip \d/
3350 exit_status
3351 is expected to eq 0
3352 Command "
3353 bzip2 -z /tmp/packer-templates-20241016-16295-r1gv4p-rspec/test.txt;
3354 rm /tmp/packer-templates-20241016-16295-r1gv4p-rspec/test.txt;
3355 ls /tmp/packer-templates-20241016-16295-r1gv4p-rspec;
3356 bzip2 -d /tmp/packer-templates-20241016-16295-r1gv4p-rspec/test.txt.bz2;
3357 cat /tmp/packer-templates-20241016-16295-r1gv4p-rspec/test.txt
3359 stdout
3360 is expected to match "Konstantin broke all the things."
3361 stdout
3362 is expected to include "test.txt.bz2"
3363 Command "zip --version"
3364 exit_status
3365 is expected to eq 0
3366 stdout
3367 is expected to match /Zip \d/
3368 Command "unzip -version"
3369 exit_status
3370 is expected to eq 0
3371 stdout
3372 is expected to match /^UnZip \d/
3373 Command "
3374 gzip /tmp/packer-templates-20241016-16295-r1gv4p-rspec/test.txt;
3375 rm /tmp/packer-templates-20241016-16295-r1gv4p-rspec/test.txt;
3376 ls /tmp/packer-templates-20241016-16295-r1gv4p-rspec;
3377 gzip -d /tmp/packer-templates-20241016-16295-r1gv4p-rspec/test.txt.gz;
3378 cat /tmp/packer-templates-20241016-16295-r1gv4p-rspec/test.txt
3380 stdout
3381 is expected to include "test.txt.gz"
3382 stdout
3383 is expected to match "Konstantin broke all the things."
3384 Command "dpkg -s libbz2-dev"
3385 stdout
3386 is expected to match "Status: install ok installed"
3388python3 interpreter
3389 python3 --version
3390 is expected to match /^Python \d+\.\d+\.\d+/
3391 Command "python3 -m this"
3392 stdout
3393 is expected to match /Readability counts\./
3394 stderr
3395 is expected to be empty
3397jq installation
3398 Command "jq -r '.stuff|.[]|select(."@type"=="smarm")|.msg[0]' </tmp/packer-templates-20241016-16295-r1gv4p-rspec/test.json"
3399 stdout
3400 is expected to match /^Konstantin broke all the things/
3401 Command "jq -V"
3402 exit_status
3403 is expected to eq 0
3405emacs installation
3406 Command "emacs --version"
3407 exit_status
3408 is expected to eq 0
3409 editing
3410 File "/tmp/packer-templates-20241016-16295-r1gv4p-rspec/test.txt"
3411 content
3412 is expected to match "poof"
3414File "/usr/share/travis/system_info"
3415 is expected to exist
3416 size
3417 is expected to be positive
3419Command "heroku version"
3420 stdout
3421 is expected to match /^heroku/
3423gimme installation
3424 Command "gimme --version"
3425 exit_status
3426 is expected to eq 0
3427 Command "eval "$(HOME=/tmp/packer-templates-20241016-16295-r1gv4p-rspec gimme 1.6.3)" 2>&1"
3428 stdout
3429 is expected to match "go version go1.6.3"
3431File "/home/travis/bin"
3432 is expected to be writable
3433 is expected to be directory
3435php environment
3436 File "/home/travis/.pearrc"
3437 is expected not to exist
3438 Command "PHPENV_VERSION=system phpenv exec php-fpm --version"
3439 exit_status
3440 is expected to eq 0
3441 stdout
3442 is expected to match /^PHP \d+\.\d+\.\d+.+fpm-fcgi/
3443 Command "PHPENV_VERSION=system phpenv exec php -m --version"
3444 stdout
3445 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"
3447Command "mysql --version"
3448 stdout
3449 is expected to match /^mysql /
3450 exit_status
3451 is expected to eq 0
3453subversion installation
3454 Command "svn --version"
3455 exit_status
3456 is expected to eq 0
3457 subversion commands are executed
3458 File "/tmp/packer-templates-20241016-16295-r1gv4p-rspec/svn-project/README.txt"
3459 content
3460 is expected to match "This is a Subversion repository;"
3462mercurial installation
3463 Command "hg version"
3464 stdout
3465 is expected to match /^Mercurial Distributed SCM \(version \d/
3466 exit_status
3467 is expected to eq 0
3468 mecurial commands are executed
3469 Command "cd /tmp/packer-templates-20241016-16295-r1gv4p-rspec/hg-project; hg status; hg add .; hg status"
3470 stdout
3471 is expected to match "\\? test-file.txt"
3472 stdout
3473 is expected to match "A test-file.txt"
3475xserver installation
3476 Command "xvfb-run -a xdpyinfo"
3477 exit_status
3478 is expected to eq 0
3479 stderr
3480 is expected to be empty
3481 stdout
3482 is expected to match /^\s+GLX$/
3483 Command "Xorg -version"
3484 exit_status
3485 is expected to eq 0
3486 Command "DISPLAY=:99.0 xset -q"
3487 stdout
3488 is expected to match /^Keyboard Control:/
3489 stderr
3490 is expected to be empty
3491 exit_status
3492 is expected to eq 0
3494gcc installation
3495 Command "
3496 cd /tmp/packer-templates-20241016-16295-r1gv4p-rspec;
3497 gcc -Wall -o hai hai.c;
3498 ./hai there
3500 stdout
3501 is expected to match /^hai 2$/
3502 Command "cd /tmp/packer-templates-20241016-16295-r1gv4p-rspec/empty && gcc"
3503 stderr
3504 is expected to include "no input files"
3505 Command "gcc -v"
3506 stderr
3507 is expected to match /^gcc version/
3509Command "bats --version"
3510 stdout
3511 is expected to match /^Bats \d/
3513ruby interpreter
3514 Command "ruby -e 'puts "Konstanin broke all the things!"'"
3515 stdout
3516 is expected to match /^Konstanin broke all the things!$/
3517 Command "ruby --version"
3518 stderr
3519 is expected to be empty
3520 stdout
3521 is expected to match /^ruby 3\.\d+\.\d+/
3522 Command "ruby -e 'puts RUBY_ENGINE'"
3523 stdout
3524 is expected to match /^ruby/
3526Command "ldconfig -V"
3527 exit_status
3528 is expected to eq 0
3529 stdout
3530 is expected to include "ldconfig "
3532File "/etc/cloud/templates/hosts.debian.tmpl"
3533 is expected to be exist
3534 content
3535 is expected to match /travis_build_environment/i
3536 content
3537 is expected to match /managed by chef/i
3539File "/.node-attributes.yml"
3540 is expected to exist
3541 content_as_yaml
3542 is expected to include "__timestamp"
3544clang installation
3545 clang command
3546 Command "clang -help"
3547 stdout
3548 is expected to include "OVERVIEW: clang LLVM compiler" and "OPTIONS:"
3549 Command "clang -v"
3550 exit_status
3551 is expected to eq 0
3553vim installation
3554 Command "vim --version"
3555 stderr
3556 is expected to be empty
3557 stdout
3558 is expected not to be empty
3559 exit_status
3560 is expected to eq 0
3561 File "/tmp/packer-templates-20241016-16295-r1gv4p-rspec/test.txt"
3562 content
3563 is expected to match /there/
3565perl interpreter
3566 Command "perl --version"
3567 stderr
3568 is expected to be empty
3569 stdout
3570 is expected to match /perl 5, version \d/
3571 Command "perl -e 'print "Hello Mr Euler!\n"'"
3572 stdout
3573 is expected to match /^Hello Mr Euler!/
3574 stderr
3575 is expected to be empty
3577sqlite installation
3578 sqlite commands are executed
3579 Command "
3580 sqlite3 /tmp/packer-templates-20241016-16295-r1gv4p-rspec/test.db "
3581 CREATE TABLE hats (
3582 id INTEGER PRIMARY KEY,
3583 name TEXT,
3584 style INTEGER
3585 );
3586 INSERT INTO hats VALUES(1, 'floppy', 9001);
3587 SELECT * FROM hats;
3590 stdout
3591 is expected to match "1|floppy|9001"
3592 Command "sqlite3 -version"
3593 stdout
3594 is expected to match /^\d\.\d/
3595 exit_status
3596 is expected to eq 0
3598Command "ssh -V"
3599 stderr
3600 is expected to match /OpenSSH/
3602python2 interpreter
3603 python --version
3604 is expected to match /^Python \d+\.\d+\.\d+/
3605 Command "python -m this"
3606 stdout
3607 is expected to match /Readability counts\./
3608 stderr
3609 is expected to be empty
3611File "/opt"
3612 is expected to be directory
3613 is expected to be writable
3615imagemagick installation
3616 Command "convert --version"
3617 exit_status
3618 is expected to eq 0
3619 stdout
3620 is expected to match /imagemagick/i
3621 imagemagick commands
3622 Command "identify /tmp/packer-templates-20241016-16295-r1gv4p-rspec/logo.gif"
3623 exit_status
3624 is expected to eq 0
3625 stdout
3626 is expected to match /logo\.gif GIF/
3628perlbrew installation
3629 Command "perlbrew list"
3630 exit_status
3631 is expected to eq 0
3632 Command "perlbrew --version"
3633 exit_status
3634 is expected to eq 0
3635 stdout
3636 is expected to match /perl5\/perlbrew\/bin\/perlbrew.+App::perlbrew\/\d+\.\d+/
3638mongodb installation
3639 Service "mongod"
3640 is expected not to be running
3641 is expected not to be enabled
3642 Command "mongo --version"
3643 exit_status
3644 is expected to eq 0
3645 stdout
3646 is expected to match /MongoDB shell/
3647 mongo commands
3648 Command "mongo --eval "var myCursor = db.testData.find( { x: 6 }); myCursor.forEach(printjson);""
3649 stdout
3650 is expected to match /{ "_id" : ObjectId\("\w+"\), "x" : 6 }/
3652docker-compose installation
3653 Command "docker-compose --version"
3654 stdout
3655 is expected to match /^docker-compose version:?\s+\d+\.\d+\.\d+/ (FAILED - 3)
3656 exit_status
3657 is expected to eq 0
3659memcached installation
3660 Command "memcached -h"
3661 exit_status
3662 is expected to eq 0
3663 stdout
3664 is expected to match /^memcached \d/
3665 memcached commands
3666 Command "echo 'stats' | nc -w 5 127.0.0.1 11211"
3667 stdout
3668 is expected to match "version"
3669 Service "memcached"
3670 is expected to be running
3671 Package "memcached"
3672 is expected to be installed
3674mysql installation
3675 mysql commands
3676 Command "mysql -u root -e 'select "hai"'"
3677 stderr
3678 is expected to be empty
3679 stdout
3680 is expected to match /hai/
3681 exit_status
3682 is expected to eq 0
3683 Command "mysql -u travis -e 'select "hai"'"
3684 stdout
3685 is expected to match /hai/
3686 stderr
3687 is expected to be empty
3688 exit_status
3689 is expected to eq 0
3690 Command "echo "SELECT id FROM test" | mysql travis"
3691 stdout
3692 is expected to match /^4$/
3693 Command "echo "SHOW DATABASES" | mysql"
3694 stdout
3695 is expected to match /^travis$/
3696 Command "echo "SHOW VARIABLES LIKE 'performance_schema'" | mysql"
3697 stdout
3698 is expected to include "performance_schema\tOFF" (FAILED - 4)
3699 File "/home/travis/.my.cnf"
3700 is expected to be grouped into "travis"
3701 is expected to be readable
3702 is expected to exist
3703 is expected to be owned by "travis"
3704 File "/etc/mysql/conf.d/performance-schema.cnf"
3705 is expected to be readable (FAILED - 5)
3706 is expected to be owned by "root" (FAILED - 6)
3707 is expected to be grouped into "root" (FAILED - 7)
3708 is expected to exist (FAILED - 8)
3710Command "sudo -V"
3711 stdout
3712 is expected to match /^Sudo version \d/
3714firefox installation
3715 firefox commands
3716 File "/tmp/packer-templates-20241016-16295-r1gv4p-rspec/.mozilla/firefox/profiles.ini"
3717 is expected to exist
3718 content
3719 is expected to match /^Name=test/
3720 Command "sudo -u travis firefox -v"
3721 stderr
3722 is expected to be empty
3723 exit_status
3724 is expected to eq 0
3726Command "lsof -v 2>&1 | head -2 | tail -1"
3727 exit_status
3728 is expected to eq 0
3729 stdout
3730 is expected to match /revision:/
3732openssl installation
3733 Command "openssl version"
3734 exit_status
3735 is expected to eq 0
3736 stdout
3737 is expected to match /^OpenSSL/
3738 openssl commands
3739 Command "echo "S29uc3RhbnRpbiBicm9rZSBhbGwgdGhlIHRoaW5ncy4K" | openssl enc -base64 -d"
3740 stdout
3741 is expected to match "Konstantin broke all the things."
3742 Command "echo "Konstantin broke all the things." | openssl enc -base64"
3743 stdout
3744 is expected to match "S29uc3RhbnRpbiBicm9rZSBhbGwgdGhlIHRoaW5ncy4K"
3746python environment
3747 Command "true ; nosetests --version"
3748 stdout
3749 is expected to match /^nosetests version \d+\.\d+\.\d+/ (FAILED - 9)
3750 stderr
3751 is expected to be empty (FAILED - 10)
3752 Command "true ; wheel version"
3753 stdout
3754 is expected to match /^wheel \d+\.\d+\.\d+/ (FAILED - 11)
3755 stderr
3756 is expected to be empty (FAILED - 12)
3757 Command "true ; py.test --version"
3758 stderr
3759 is expected to be empty (FAILED - 13)
3760 stdout
3761 is expected to match /pytest (version )?\d+\.\d+\.\d+/ (FAILED - 14)
3762 Command "true ; pip --version"
3763 stderr
3764 is expected to be empty
3765 stdout
3766 is expected to match /^pip \d+\.\d+(\.\d+)?/
3767 Command "true ; python -c 'import sys;from unittest import mock;sys.stdout.write(mock.__version__ + "\n")'"
3768 stdout
3769 is expected to match /^\d+\.\d+/
3770 stderr
3771 is expected to be empty
3773File "/etc/cloud/templates/hosts.ubuntu.tmpl"
3774 is expected to be exist
3775 content
3776 is expected to match /managed by chef/i
3777 content
3778 is expected to match /travis_build_environment/i
3780go installation
3781 Command "gimme -l"
3782 stdout
3783 is expected not to be empty
3785Command "packer version"
3786 stdout
3787 is expected to match /^Packer v\d/
3788 exit_status
3789 is expected to eq 0
3791Command "nc -h"
3792 exit_status
3793 is expected to eq 0
3795ccache installation
3796 ccache commands are executed
3797 Command "ccache -s"
3798 stdout
3799 is expected to include "cache directory", "cache hit", "cache miss", "files in cache", and "max cache size"
3800 Command "ccache -M 0.5"
3801 stdout
3802 is expected to match /Set cache size limit to (512\.0 Mbytes|500\.0 MB)/
3803 Command "ccache -V"
3804 exit_status
3805 is expected to eq 0
3807php interpreter
3808 Command "PHPENV_VERSION=system phpenv exec php -r 'foreach(range(1, 5) as $i) echo $i * 2 . " ";'"
3809 stdout
3810 is expected to match /^2 4 6 8 10/
3811 stderr
3812 is expected to be empty
3813 Command "PHPENV_VERSION=system phpenv exec php --version"
3814 stdout
3815 is expected to match /^PHP \d+\.\d+/
3816 stderr
3817 is expected to be empty
3819Command "curl --version | head -1"
3820 stdout
3821 is expected to include "curl"
3822 exit_status
3823 is expected to eq 0
3825Command "shellcheck --version"
3826 stdout
3827 is expected to match /^version: \d+\.\d+\.\d+/
3829File "/etc/cloud/templates/sources.list.ubuntu.tmpl"
3830 content
3831 is expected to match /travis_build_environment/i
3832 content
3833 is expected to match /managed by chef/i
3835Command "iptables --version"
3836 exit_status
3837 is expected to eq 0
3838 stdout
3839 is expected to include "iptables"
3841Failures:
3843 1) postgresql installation Command " psql --version" stdout is expected to match /^psql.+(9\.[3-6]+\.[0-9]+|10\.[0-9])/
3844 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
3845 expected "psql (PostgreSQL) 16.4 (Ubuntu 16.4-1.pgdg20.04+1)\n" to match /^psql.+(9\.[3-6]+\.[0-9]+|10\.[0-9])/
3846 Diff:
3847 @@ -1,2 +1,2 @@
3848 -/^psql.+(9\.[3-6]+\.[0-9]+|10\.[0-9])/
3849 +psql (PostgreSQL) 16.4 (Ubuntu 16.4-1.pgdg20.04+1)
3851 /bin/bash -c \ psql\ --version
3852 psql (PostgreSQL) 16.4 (Ubuntu 16.4-1.pgdg20.04+1)
3854 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/postgresql_spec.rb:7:in `block (3 levels) in <top (required)>'
3856 2) 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})/
3857 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
3858 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})/
3859 Diff:
3860 @@ -1,2 +1,2 @@
3861 -/^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})/
3862 +psql (PostgreSQL) 16.4 (Ubuntu 16.4-1.pgdg20.04+1)
3864 /bin/bash -c psql\ --version
3865 psql (PostgreSQL) 16.4 (Ubuntu 16.4-1.pgdg20.04+1)
3867 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/basic_spec.rb:469:in `block (2 levels) in <top (required)>'
3869 3) docker-compose installation Command "docker-compose --version" stdout is expected to match /^docker-compose version:?\s+\d+\.\d+\.\d+/
3870 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
3871 expected "Docker Compose version v2.27.1\n" to match /^docker-compose version:?\s+\d+\.\d+\.\d+/
3872 Diff:
3873 @@ -1,2 +1,2 @@
3874 -/^docker-compose version:?\s+\d+\.\d+\.\d+/
3875 +Docker Compose version v2.27.1
3877 /bin/bash -c docker-compose\ --version
3878 Docker Compose version v2.27.1
3880 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/docker_compose_spec.rb:9:in `block (3 levels) in <top (required)>'
3882 4) mysql installation mysql commands Command "echo "SHOW VARIABLES LIKE 'performance_schema'" | mysql" stdout is expected to include "performance_schema\tOFF"
3883 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
3884 expected "Variable_name\tValue\nperformance_schema\tON\n" to include "performance_schema\tOFF"
3885 Diff:
3886 @@ -1,2 +1,3 @@
3887 -performance_schema OFF
3888 +Variable_name Value
3889 +performance_schema ON
3891 /bin/bash -c echo\ \"SHOW\ VARIABLES\ LIKE\ \'performance_schema\'\"\ \|\ mysql
3892 Variable_name Value
3893performance_schema ON
3895 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/mysql_spec.rb:72:in `block (4 levels) in <top (required)>'
3897 5) mysql installation File "/etc/mysql/conf.d/performance-schema.cnf" is expected to be readable
3898 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
3899 expected File "/etc/mysql/conf.d/performance-schema.cnf" to be readable
3900 /bin/bash -c stat\ -c\ \%a\ /etc/mysql/conf.d/performance-schema.cnf
3902 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/mysql_spec.rb:40:in `block (3 levels) in <top (required)>'
3904 6) mysql installation File "/etc/mysql/conf.d/performance-schema.cnf" is expected to be owned by "root"
3905 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
3906 expected `File "/etc/mysql/conf.d/performance-schema.cnf".owned_by?("root")` to be truthy, got false
3907 /bin/bash -c stat\ -c\ \%U\ /etc/mysql/conf.d/performance-schema.cnf\ \|\ grep\ --\ \\\^root\\\$
3909 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/mysql_spec.rb:41:in `block (3 levels) in <top (required)>'
3911 7) mysql installation File "/etc/mysql/conf.d/performance-schema.cnf" is expected to be grouped into "root"
3912 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
3913 expected `File "/etc/mysql/conf.d/performance-schema.cnf".grouped_into?("root")` to be truthy, got false
3914 /bin/bash -c stat\ -c\ \%G\ /etc/mysql/conf.d/performance-schema.cnf\ \|\ grep\ --\ \\\^root\\\$
3916 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/mysql_spec.rb:42:in `block (3 levels) in <top (required)>'
3918 8) mysql installation File "/etc/mysql/conf.d/performance-schema.cnf" is expected to exist
3919 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
3920 expected File "/etc/mysql/conf.d/performance-schema.cnf" to exist
3921 /bin/bash -c test\ -e\ /etc/mysql/conf.d/performance-schema.cnf
3923 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/features/mysql_spec.rb:39:in `block (3 levels) in <top (required)>'
3925 9) python environment Command "true ; nosetests --version" stdout is expected to match /^nosetests version \d+\.\d+\.\d+/
3926 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
3927 expected "" to match /^nosetests version \d+\.\d+\.\d+/
3928 Diff:
3929 @@ -1,2 +1,2 @@
3930 -/^nosetests version \d+\.\d+\.\d+/
3931 +""
3933 /bin/bash -c true\ \;\ nosetests\ --version
3935 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb:42:in `block (3 levels) in <top (required)>'
3937 10) python environment Command "true ; nosetests --version" stderr is expected to be empty
3938 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
3939 expected `"/bin/bash: nosetests: command not found\n".empty?` to be truthy, got false
3941 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb:41:in `block (3 levels) in <top (required)>'
3943 11) python environment Command "true ; wheel version" stdout is expected to match /^wheel \d+\.\d+\.\d+/
3944 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
3945 expected "" to match /^wheel \d+\.\d+\.\d+/
3946 Diff:
3947 @@ -1,2 +1,2 @@
3948 -/^wheel \d+\.\d+\.\d+/
3949 +""
3951 /bin/bash -c true\ \;\ wheel\ version
3953 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb:23:in `block (3 levels) in <top (required)>'
3955 12) python environment Command "true ; wheel version" stderr is expected to be empty
3956 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
3957 expected `"/bin/bash: wheel: command not found\n".empty?` to be truthy, got false
3959 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb:22:in `block (3 levels) in <top (required)>'
3961 13) python environment Command "true ; py.test --version" stderr is expected to be empty
3962 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
3963 expected `"/bin/bash: py.test: command not found\n".empty?` to be truthy, got false
3964 /bin/bash -c true\ \;\ py.test\ --version
3966 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb:35:in `block (3 levels) in <top (required)>'
3968 14) python environment Command "true ; py.test --version" stdout is expected to match /pytest (version )?\d+\.\d+\.\d+/
3969 Failure/Error: DEFAULT_FAILURE_NOTIFIER = lambda { |failure, _opts| raise failure }
3970 expected "" to match /pytest (version )?\d+\.\d+\.\d+/
3971 Diff:
3972 @@ -1,2 +1,2 @@
3973 -/pytest (version )?\d+\.\d+\.\d+/
3974 +""
3977 # /home/travis/build/travis-ci/packer-templates/cookbooks/lib/languages/python_spec.rb:36:in `block (3 levels) in <top (required)>'
3979Finished in 1 minute 0.19 seconds (files took 0.94367 seconds to load)
3980282 examples, 14 failures
3982Failed examples:
3984rspec /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])/
3985rspec /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})/
3986rspec /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+/
3987rspec /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"
3988rspec /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
3989rspec /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"
3990rspec /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"
3991rspec /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
3992rspec /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+/
3993rspec /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
3994rspec /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+/
3995rspec /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
3996rspec /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
3997rspec /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+/
3999Randomized with seed 4455
4001+ local exit_code=1
4002+ [[ 1 != 0 ]]
4003+ echo 'Spec suite exited with 1'
4004Spec suite exited with 1
4005+ [[ -n '' ]]
4006+ exit 1
4008The command "bundle exec bash -xc sudo packer-scripts/run-serverspecs" failed 3 times.
4010The command "travis_retry bundle exec bash -xc 'sudo packer-scripts/run-serverspecs'" exited with 1.
40110.02s$ for f in ~/.*_rspec.json; do echo "checking $f"; jq . < $f &>/dev/null; done
4012checking /home/travis/.travis_packer_templates_rspec.json
4013The command "for f in ~/.*_rspec.json; do echo "checking $f"; jq . < $f &>/dev/null; done" exited with 0.
cache.2
4014store build cache
4015$ bundle clean
40160.00s4.37schanges detected, packing new archive
4017gzip: warning: GZIP environment variable is deprecated; use an alias or script
4018uploading PR.873/cache--linux-focal-cc013414c57ac8c1748cd2de9aad19a7ca10be0189feb0a5adcc2c060b0d138d--rvm-default--gemfile-Gemfile.tgz
4019cache uploaded
4022Done. Your build exited with 1.
Top