v0.21.1 Prd ruby upgrade (#49)

* Ruby 3.x support

* ruby upgrade dev (#47)

* ruby up

* rubocop

* tyml:

* Update version.rb

* bumped activerecord version in gemspecs

* Update gh.gemspec

Dominik avatar Dominik

Tag #432 passed

  • Ran for
  • New branch build
AMD64
Ruby: 3.2
Git
Raw log
Scroll to End of Log
0.12s0.09s0.00s0.06s
worker_info
1Worker information
2hostname: 17521f8a-4b02-47d6-814c-2026eac13396@1.worker-n2-com-779d777f7b-hxsb6.gce-production-1
3version: 6.2.22 https://github.com/travis-ci/worker/tree/858cb91994a513269f2fe9782c15fc113e966231
4instance: travis-job-67b830d5-d12e-43d0-8f7b-b7a505bc8222 travis-ci-ubuntu-2004-1707238145-6d1d1b02 (via amqp)
5startup: 6.305598842s
60.37s0.01s0.00s0.01s
system_info
7Build system information
8Build language: ruby
9Build dist: focal
10Build id: 269189467
11Job id: 618507560
12Runtime kernel version: 5.15.0-1049-gcp
13travis-build version: f3de9fb7
14Build image provisioning date and time
15Tue 06 Feb 2024 05:15:48 PM UTC
16Operating System Details
17Distributor ID: Ubuntu
18Description: Ubuntu 20.04.6 LTS
19Release: 20.04
20Codename: focal
21Systemd Version
22systemd 245 (245.4-4ubuntu3.23)
23Cookbooks Version
244a0cff6 https://github.com/travis-ci/travis-cookbooks/tree/4a0cff6
25git version
26git version 2.43.0
27bash version
28GNU bash, version 5.0.17(1)-release (x86_64-pc-linux-gnu)
29gcc version
30gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
31docker version
32Client:
33 Version: 24.0.5
34 API version: 1.43
35 Go version: go1.20.3
36 Git commit: 24.0.5-0ubuntu1~20.04.1
37 Built: Mon Aug 21 19:50:14 2023
38 OS/Arch: linux/amd64
39 Context: default
41Server:
42 Engine:
43 Version: 24.0.5
44 API version: 1.43 (minimum version 1.12)
45 Go version: go1.20.3
46 Git commit: 24.0.5-0ubuntu1~20.04.1
47 Built: Mon Aug 21 19:50:14 2023
48 OS/Arch: linux/amd64
49 Experimental: false
50 containerd:
51 Version: 1.7.2
52 GitCommit:
53 runc:
54 Version: 1.1.7-0ubuntu1~20.04.2
55 GitCommit:
56 docker-init:
57 Version: 0.19.0
58 GitCommit:
59clang version
60clang version 16.0.0
61jq version
62jq-1.7
63bats version
64Bats 0.4.0
65shellcheck version
660.9.0
67shfmt version
68v3.7.0
69ccache version
703.7.7
71cmake version
72cmake version 3.26.3
73heroku version
74heroku/8.7.1 linux-x64 node-v16.19.0
75imagemagick version
76Version: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
77md5deep version
784.4
79mercurial version
80version 6.5.2
81mysql version
82mysql Ver 8.0.36-0ubuntu0.20.04.1 for Linux on x86_64 ((Ubuntu))
83openssl version
84OpenSSL 1.1.1f 31 Mar 2020
85packer version
861.9.4
87postgresql client version
88psql (PostgreSQL) 13.13 (Ubuntu 13.13-1.pgdg20.04+1)
89ragel version
90Ragel State Machine Compiler version 6.10 March 2017
91sudo version
921.8.31
93gzip version
94gzip 1.10
95zip version
96Zip 3.0
97vim version
98VIM - Vi IMproved 8.1 (2018 May 18, compiled Dec 07 2023 15:42:49)
99iptables version
100iptables v1.8.4 (legacy)
101curl version
102curl 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
103wget version
104GNU Wget 1.20.3 built on linux-gnu.
105rsync version
106rsync version 3.1.3 protocol version 31
107gimme version
108v1.5.4
109nvm version
1100.39.7
111perlbrew version
112/home/travis/perl5/perlbrew/bin/perlbrew - App::perlbrew/0.95
113phpenv version
114rbenv 1.2.0
115rvm version
116rvm 1.29.12 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]
117default ruby version
118ruby 2.7.6p219 (2022-04-12 revision c9c2245c0a) [x86_64-linux]
119default python version
120Python 3.7.17
121ElasticSearch version
1227.16.3
123Installed Firefox version
124firefox 99.0
125MongoDB version
126MongoDB 4.4.28
127PhantomJS version
1282.1.1
129Redis version
130redis-server 7.2.4
131Pre-installed Go versions
1321.11.1
133mvn version
134Apache Maven 3.9.4 (dfbb324ad4a7c8fb0bf182e6d91b0ae20e3d2dd9)
135gradle version
136Gradle 8.3!
137lein version
138Leiningen 2.11.1 on Java 11.0.21 OpenJDK 64-Bit Server VM
139Pre-installed Node.js versions
140v10.24.1
141v12.22.12
142v14.21.3
143v16.15
144v16.20.2
145v18.19.0
146v18.4.0
147v20.11.0
148v4.9.1
149v6.17.1
150v8.17.0
151phpenv versions
152 system
153 7.4
154* 7.4.6 (set by /home/travis/.phpenv/version)
155 hhvm-stable
156 hhvm
157composer --version
158Composer version 1.10.6 2020-05-06 10:28:10
159Pre-installed Ruby versions
160ruby-2.5.9
161ruby-2.7.6
162ruby-3.1.2
1640.02s0.01s0.66s0.33s0.06s0.01s0.04s0.00s0.01s0.02s0.04s0.01s0.01s0.00s0.40sOK
1650.00s0.07s0.00s0.02s0.18s0.00s0.00s0.00s0.01s0.00s0.10s0.01s1.01s0.00s0.00s6.04s0.00s3.95s0.00s2.24s
docker_mtu_and_registry_mirrors
resolvconf
git.checkout
1660.01s0.51s$ git clone --depth=50 --branch=v0.21.1 https://github.com/travis-ci/gh.git travis-ci/gh
167Cloning into 'travis-ci/gh'...
168remote: Enumerating objects: 607, done.
169remote: Counting objects: 100% (607/607), done.
170remote: Compressing objects: 100% (332/332), done.
171remote: Total 607 (delta 325), reused 515 (delta 261), pack-reused 0
172Receiving objects: 100% (607/607), 211.73 KiB | 3.47 MiB/s, done.
173Resolving deltas: 100% (325/325), done.
174**************************************************************
176You are in 'detached HEAD' state. You can look around, make experimental
177changes and commit them, and you can discard any commits you make in this
178state without impacting any branches by switching back to a branch.
180If you want to create a new branch to retain commits you create, you may
181do so (now or later) by using -c with the switch command. Example:
183 git switch -c <new-branch-name>
185Or undo this operation with:
187 git switch -
189Turn off this advice by setting config variable advice.detachedHead to false
191$ cd travis-ci/gh
192$ git checkout -qf v0.21.1
1940.01s
rvm
1953.01s$ rvm get head
196Downloading https://get.rvm.io
197Downloading https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer.asc
198Verifying /home/travis/.rvm/archives/rvm-installer.asc
199gpg: Signature made Tue 21 Feb 2023 11:35:16 PM UTC
200gpg: using RSA key 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
201gpg: Good signature from "Piotr Kuczynski <piotr.kuczynski@gmail.com>" [unknown]
202gpg: WARNING: This key is not certified with a trusted signature!
203gpg: There is no indication that the signature belongs to the owner.
204Primary key fingerprint: 7D2B AF1C F37B 13E2 069D 6956 105B D0E7 3949 9BDB
205GPG verified '/home/travis/.rvm/archives/rvm-installer'
206Downloading https://github.com/rvm/rvm/archive/master.tar.gz
207Upgrading the RVM installation in /home/travis/.rvm/
208 RVM PATH line found in /home/travis/.mkshrc /home/travis/.profile /home/travis/.zshrc.
209 RVM PATH line not found for Bash, rerun this command with '--auto-dotfiles' flag to fix it.
210 RVM sourcing line found in /home/travis/.profile /home/travis/.bashrc /home/travis/.zlogin.
211Upgrade of RVM in /home/travis/.rvm/ is complete.
213Thanks for installing RVM 🙏
214Please consider donating to our open collective to help us maintain RVM.
216👉 Donate: https://opencollective.com/rvm/donate
219RVM reloaded!
22021.45s$ rvm use 3.2 --install --binary --fuzzy
221curl: (22) The requested URL returned error: 404
222Required ruby-3.2.2 is not installed - installing.
223curl: (22) The requested URL returned error: 404
224Searching for binary rubies, this might take some time.
225Found remote file https://rubies.travis-ci.org/ubuntu/20.04/x86_64/ruby-3.2.2.tar.bz2
226Checking requirements for ubuntu.
227Requirements installation successful.
228ruby-3.2.2 - #configure
229ruby-3.2.2 - #download
230 % Total % Received % Xferd Average Speed Time Time Time Current
231 Dload Upload Total Spent Left Speed
232 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
233100 32.4M 100 32.4M 0 0 17.9M 0 0:00:01 0:00:01 --:--:-- 17.9M
234No checksum for downloaded archive, recording checksum in user configuration.
235ruby-3.2.2 - #validate archive
236ruby-3.2.2 - #extract
237ruby-3.2.2 - #validate binary
238ruby-3.2.2 - #setup
239ruby-3.2.2 - #gemset created /home/travis/.rvm/gems/ruby-3.2.2@global
240ruby-3.2.2 - #importing gemset /home/travis/.rvm/gemsets/global.gems..................................
241ruby-3.2.2 - #generating global wrappers........
242ruby-3.2.2 - #uninstalling gem rubygems-bundler-1.4.5.
243ruby-3.2.2 - #gemset created /home/travis/.rvm/gems/ruby-3.2.2
244ruby-3.2.2 - #importing gemset /home/travis/.rvm/gemsets/default.gems..............
245ruby-3.2.2 - #generating default wrappers........
246Using /home/travis/.rvm/gems/ruby-3.2.2
248$ export BUNDLE_GEMFILE=$PWD/Gemfile
ruby.versions
249$ ruby --version
250ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-linux]
251$ rvm --version
252rvm 1.29.12-next (master) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]
253$ bundle --version
254Bundler version 2.4.10
255$ gem --version
2563.4.10
install.bundler
25821.53s$ bundle install --jobs=3 --retry=3
259Fetching gem metadata from https://rubygems.org/.........
260Resolving dependencies...
261Fetching concurrent-ruby 1.2.3
262Fetching minitest 5.22.2
263Fetching public_suffix 5.0.4
264Installing minitest 5.22.2
265Fetching ansi 1.5.0
266Installing public_suffix 5.0.4
267Fetching ast 2.4.2
268Installing concurrent-ruby 1.2.3
269Installing ansi 1.5.0
270Installing ast 2.4.2
271Fetching bigdecimal 3.1.6
272Using bundler 2.4.10
273Fetching connection_pool 2.4.1
274Fetching rexml 3.2.6
275Installing connection_pool 2.4.1
276Fetching diff-lcs 1.5.1
277Installing bigdecimal 3.1.6 with native extensions
278Installing rexml 3.2.6
279Fetching docile 1.4.0
280Installing diff-lcs 1.5.1
281Installing docile 1.4.0
282Fetching ffi 1.16.3
283Fetching uri 0.13.0
284Installing uri 0.13.0
285Fetching multi_json 1.15.0
286Installing multi_json 1.15.0
287Installing ffi 1.16.3 with native extensions
288Fetching net-http-pipeline 1.0.1
289Installing net-http-pipeline 1.0.1
290Fetching hashdiff 1.1.0
291Installing hashdiff 1.1.0
292Fetching json 2.7.1
293Installing json 2.7.1 with native extensions
294Fetching language_server-protocol 3.17.0.3
295Installing language_server-protocol 3.17.0.3
296Fetching parallel 1.24.0
297Installing parallel 1.24.0
298Fetching racc 1.7.3
299Installing racc 1.7.3 with native extensions
300Fetching rainbow 3.1.1
301Installing rainbow 3.1.1
302Fetching regexp_parser 2.9.0
303Installing regexp_parser 2.9.0
304Fetching rspec-support 3.13.1
305Installing rspec-support 3.13.1
306Fetching ruby-progressbar 1.13.0
307Installing ruby-progressbar 1.13.0
308Fetching unicode-display_width 2.5.0
309Installing unicode-display_width 2.5.0
310Fetching simplecov-html 0.12.3
311Installing simplecov-html 0.12.3
312Fetching simplecov_json_formatter 0.1.4
313Installing simplecov_json_formatter 0.1.4
314Fetching addressable 2.8.6
315Installing addressable 2.8.6
316Fetching i18n 1.14.1
317Installing i18n 1.14.1
318Fetching tzinfo 2.0.6
319Installing tzinfo 2.0.6
320Fetching net-http-persistent 4.0.2
321Installing net-http-persistent 4.0.2
322Fetching net-http 0.4.1
323Installing net-http 0.4.1
324Fetching parser 3.3.0.5
325Installing parser 3.3.0.5
326Fetching rspec-core 3.13.0
327Installing rspec-core 3.13.0
328Fetching rspec-expectations 3.13.0
329Installing rspec-expectations 3.13.0
330Fetching rspec-mocks 3.13.0
331Installing rspec-mocks 3.13.0
332Fetching terminal-table 3.0.2
333Installing terminal-table 3.0.2
334Fetching simplecov 0.22.0
335Installing simplecov 0.22.0
336Fetching activesupport 7.0.8.1
337Installing activesupport 7.0.8.1
338Fetching faraday-net_http 3.1.0
339Installing faraday-net_http 3.1.0
340Fetching rubocop-ast 1.30.0
341Installing rubocop-ast 1.30.0
342Fetching rspec 3.13.0
343Installing rspec 3.13.0
344Fetching simplecov-console 0.9.1
345Installing simplecov-console 0.9.1
346Fetching faraday 2.9.0
347Installing faraday 2.9.0
348Fetching rubocop 1.60.2
349Installing rubocop 1.60.2
350Fetching faraday-retry 2.2.0
351Installing faraday-retry 2.2.0
352Fetching rubocop-capybara 2.20.0
353Installing rubocop-capybara 2.20.0
354Fetching rubocop-factory_bot 2.25.1
355Installing rubocop-factory_bot 2.25.1
356Fetching rubocop-performance 1.20.2
357Installing rubocop-performance 1.20.2
358Fetching rubocop-rspec 2.26.1
359Installing rubocop-rspec 2.26.1
360Fetching ethon 0.16.0
361Installing ethon 0.16.0
362Fetching typhoeus 1.4.1
363Installing typhoeus 1.4.1
364Fetching faraday-typhoeus 1.1.0
365Installing faraday-typhoeus 1.1.0
366Using gh 0.21.0 from source at `.`
367Fetching crack 1.0.0
368Installing crack 1.0.0
369Fetching webmock 3.23.0
370Installing webmock 3.23.0
371Bundle complete! 8 Gemfile dependencies, 56 gems now installed.
372Use `bundle info [gemname]` to see where a bundled gem is installed.
3741.82s$ bundle exec rspec
376GH::Cache
377 send HTTP requests for uncached resources
378 uses the cache for subsequent requests
379 cache is resettable
381GH::CustomLimit
382 adds client_id and client_secret to a request
384GH::Error
385 wraps connection
386 exposes the original exception
387 keeps the payload around
388 works for long content
389 can be rescued by status code
391GH
392 allows doing requests right from the GH object
393 allows posting to github
394 with
395 returns the GH instance if no block is given
396 returns the block value if block is given
397 propagates options
399GH::Instrumentation
400 instruments http
401 instruments []
402 instruments load
404GH::LazyLoader
405 wraps normalizer by default
406 send http requests for missing fields
407 does not send http requests for existing fields
408 allows traversing into nested structures
409 does not request twice if the field does not exist upstream
410 does not skip an already existing default proc
411 is still loading missing fields, even if a default proc is set
413GH::LinkFollower
414 follows links
415 works with lazy loading
416 does not raise exceptions for unknown fields
418GH::MergeCommit
419 adds merge commits
420 adds base commits
421 adds head commits
422 allows lazy loading on the commit
423 when pull request is draft
424 adds merge commits
426GH::Normalizer
427 is set up properly
428 leaves unknown fields in place
429 allows normalization with #load
430 works for deeply nested fields (PENDING: Not yet implemented)
431 works for lists (PENDING: Not yet implemented)
432 when testing date fields
433 generates date from timestamp (PENDING: Not yet implemented)
434 when renaming
435 renames org to organization
436 renames orgs to organizations
437 renames username to login
438 renames repo to repository
439 renames repos to repositories
440 renames repo_foo to repository_foo
441 renames repos_foo to repository_foo
442 renames foo_repo to foo_repository
443 renames foo_repos to foo_repositories
444 renames commit to sha if value is a sha
445 does not rename commit to sha if value is not a sha
446 renames commit_id to sha if value is a sha
447 does not rename commit_id to sha if value is not a sha
448 renames comments to comment_count if content is a number
449 renames repositories to repository_count if content is a number
450 renames repos to repository_count if content is a number
451 renames forks to fork_count if content is a number
452 does not rename comments to comment_count if content is not a number
453 does not rename repositories to repository_count if content is not a number
454 does not rename repos to repository_count if content is not a number
455 does not rename forks to fork_count if content is not a number
456 renames user to owner if appropriate
457 renames user to author if appropriate
458 leaves user in place if owner exists
459 leaves user in place if author exists
460 leaves user in place if no indication what kind of user
461 copies author to committer
462 copies committer to author
463 does not override committer or author if both exist
464 when testing time
465 transforms timestamps stored in "timestamp" to a date in "date"
466 transforms dates stored in "timestamp" to a date in "date"
467 changes date to UTC
468 changes any time entry to UTC
469 does not choke on empty values
470 when testing links
471 does not normalize config
472 generates link entries from link headers (PENDING: )
473 generates link headers from link entries (PENDING: Not yet implemented)
474 does not discard existing link entires (PENDING: Not yet implemented)
475 does not discard existing link headers (PENDING: Not yet implemented)
476 identifies _url suffix as link
477 identifies blog as link
478 detects avatar links from gravatar_url
479 detects html urls in url field
480 detects self urls in url field
481 passes through true
482 properly detects html links when api is served from same host
483 properly detects self links when api is served from same host
485GH::Pagination
486 paginates
487 paginates with GH::Normalizer
488 paginates on default stack
489 gives random access
490 does not wrap hash responses
492GH::Parallel
493 allows normal requests
494 sets in_parallel?
495 runs requests in parallel
496 runs requests right away if parallelize is set to false
497 works with pagination
498 returns the block value
499 works two times in a row
501GH::Remote
502 loads resources from github
503 sets headers correctly
504 raises an exception for missing resources
505 includes the request payload in errors
506 parses the body
507 sends http calls through the frontend
508 sends request calls through the frontend
509 loads resources from github via API v3
510 when testing path_for
511 is expected to eql "/api/v3/foo"
512 is expected to eql "/api/v3/foo"
513 is expected to eql "/api/v3/foo"
514 is expected to eql "/api/v3/foo"
516GH::Response
517 parses content endpoints correctly
518 handles UTF-8 properly, even if encoded binary
520GH::Stack
521 is specified (PENDING: Not yet implemented)
523GH::TokenCheck
524 adds client_id and client_secret to a request (PENDING: Temporarily skipped with xdescribe)
525 does not swallow other status codes (PENDING: Temporarily skipped with xdescribe)
527GH::Wrapper
528 is specified (PENDING: Not yet implemented)
530Pending: (Failures listed here are expected and do not affect your suite's status)
532 1) GH::Normalizer works for deeply nested fields
533 # Not yet implemented
534 # ./spec/normalizer_spec.rb:39
536 2) GH::Normalizer works for lists
537 # Not yet implemented
538 # ./spec/normalizer_spec.rb:40
540 3) GH::Normalizer when testing date fields generates date from timestamp
541 # Not yet implemented
542 # ./spec/normalizer_spec.rb:43
544 4) GH::Normalizer when testing links generates link entries from link headers
545 #
546 # ./spec/normalizer_spec.rb:244
548 5) GH::Normalizer when testing links generates link headers from link entries
549 # Not yet implemented
550 # ./spec/normalizer_spec.rb:253
552 6) GH::Normalizer when testing links does not discard existing link entires
553 # Not yet implemented
554 # ./spec/normalizer_spec.rb:254
556 7) GH::Normalizer when testing links does not discard existing link headers
557 # Not yet implemented
558 # ./spec/normalizer_spec.rb:255
560 8) GH::Stack is specified
561 # Not yet implemented
562 # ./spec/stack_spec.rb:6
564 9) GH::TokenCheck adds client_id and client_secret to a request
565 # Temporarily skipped with xdescribe
566 # ./spec/token_check_spec.rb:14
568 10) GH::TokenCheck does not swallow other status codes
569 # Temporarily skipped with xdescribe
570 # ./spec/token_check_spec.rb:28
572 11) GH::Wrapper is specified
573 # Not yet implemented
574 # ./spec/wrapper_spec.rb:6
577Finished in 0.86479 seconds (files took 0.55075 seconds to load)
578115 examples, 0 failures, 11 pending
581COVERAGE: 82.56% -- 71/86 lines in 2 files
583+----------+--------------------+-------+--------+----------------------------+
584| coverage | file | lines | missed | missing |
585+----------+--------------------+-------+--------+----------------------------+
586| 78.95% | lib/gh/cache.rb | 38 | 8 | 27-30, 69-71, 73 |
587| 85.42% | lib/gh/response.rb | 48 | 7 | 29, 33, 40, 71, 73, 78, 98 |
588+----------+--------------------+-------+--------+----------------------------+
589Coverage report generated for RSpec to /home/travis/build/travis-ci/gh/coverage. 71 / 86 LOC (82.56%) covered.
590The command "bundle exec rspec" exited with 0.
593Done. Your build exited with 0.
Top