master 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

Push event #435 passed

  • Ran for
AMD64
Ruby: 3.2
Git
Raw log
Scroll to End of Log
0.11s0.09s0.00s0.06s
worker_info
1Worker information
2hostname: 9e45e8a6-6b36-42ab-95cf-e43e415bb385@1.worker-n2-com-779d777f7b-hxsb6.gce-production-1
3version: 6.2.22 https://github.com/travis-ci/worker/tree/858cb91994a513269f2fe9782c15fc113e966231
4instance: travis-job-dd7bfdd6-1554-416b-bffe-ad2fe3ea73ca travis-ci-ubuntu-2004-1707238145-6d1d1b02 (via amqp)
5startup: 6.430259623s
60.33s0.01s0.00s0.01s
system_info
7Build system information
8Build language: ruby
9Build dist: focal
10Build id: 269190067
11Job id: 618508923
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.55s0.31s0.06s0.02s0.04s0.00s0.01s0.01s0.05s0.01s0.01s0.00s0.41sOK
1650.00s0.09s0.00s0.01s0.19s0.00s0.00s0.00s0.01s0.00s0.10s0.01s0.95s0.00s0.00s6.04s0.00s3.90s0.00s2.11s
docker_mtu_and_registry_mirrors
resolvconf
git.checkout
1660.01s0.50s$ git clone --depth=50 --branch=master 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% (350/350), done.
171remote: Total 607 (delta 324), reused 500 (delta 243), pack-reused 0
172Receiving objects: 100% (607/607), 215.66 KiB | 3.48 MiB/s, done.
173Resolving deltas: 100% (324/324), done.
174$ cd travis-ci/gh
175$ git checkout -qf e1fcd75786ffa75667e47d3d824b54d1bd0017fe
1770.01s
rvm
1782.93s$ rvm get head
179Downloading https://get.rvm.io
180Downloading https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer.asc
181Verifying /home/travis/.rvm/archives/rvm-installer.asc
182gpg: Signature made Tue 21 Feb 2023 11:35:16 PM UTC
183gpg: using RSA key 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
184gpg: Good signature from "Piotr Kuczynski <piotr.kuczynski@gmail.com>" [unknown]
185gpg: WARNING: This key is not certified with a trusted signature!
186gpg: There is no indication that the signature belongs to the owner.
187Primary key fingerprint: 7D2B AF1C F37B 13E2 069D 6956 105B D0E7 3949 9BDB
188GPG verified '/home/travis/.rvm/archives/rvm-installer'
189Downloading https://github.com/rvm/rvm/archive/master.tar.gz
190Upgrading the RVM installation in /home/travis/.rvm/
191 RVM PATH line found in /home/travis/.mkshrc /home/travis/.profile /home/travis/.zshrc.
192 RVM PATH line not found for Bash, rerun this command with '--auto-dotfiles' flag to fix it.
193 RVM sourcing line found in /home/travis/.profile /home/travis/.bashrc /home/travis/.zlogin.
194Upgrade of RVM in /home/travis/.rvm/ is complete.
196Thanks for installing RVM 🙏
197Please consider donating to our open collective to help us maintain RVM.
199👉 Donate: https://opencollective.com/rvm/donate
202RVM reloaded!
20320.71s$ rvm use 3.2 --install --binary --fuzzy
204curl: (22) The requested URL returned error: 404
205Required ruby-3.2.2 is not installed - installing.
206curl: (22) The requested URL returned error: 404
207Searching for binary rubies, this might take some time.
208Found remote file https://rubies.travis-ci.org/ubuntu/20.04/x86_64/ruby-3.2.2.tar.bz2
209Checking requirements for ubuntu.
210Requirements installation successful.
211ruby-3.2.2 - #configure
212ruby-3.2.2 - #download
213 % Total % Received % Xferd Average Speed Time Time Time Current
214 Dload Upload Total Spent Left Speed
215 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
216100 32.4M 100 32.4M 0 0 18.4M 0 0:00:01 0:00:01 --:--:-- 18.4M
217No checksum for downloaded archive, recording checksum in user configuration.
218ruby-3.2.2 - #validate archive
219ruby-3.2.2 - #extract
220ruby-3.2.2 - #validate binary
221ruby-3.2.2 - #setup
222ruby-3.2.2 - #gemset created /home/travis/.rvm/gems/ruby-3.2.2@global
223ruby-3.2.2 - #importing gemset /home/travis/.rvm/gemsets/global.gems..................................
224ruby-3.2.2 - #generating global wrappers........
225ruby-3.2.2 - #uninstalling gem rubygems-bundler-1.4.5.
226ruby-3.2.2 - #gemset created /home/travis/.rvm/gems/ruby-3.2.2
227ruby-3.2.2 - #importing gemset /home/travis/.rvm/gemsets/default.gems..............
228ruby-3.2.2 - #generating default wrappers........
229Using /home/travis/.rvm/gems/ruby-3.2.2
231$ export BUNDLE_GEMFILE=$PWD/Gemfile
ruby.versions
232$ ruby --version
233ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-linux]
234$ rvm --version
235rvm 1.29.12-next (master) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]
236$ bundle --version
237Bundler version 2.4.10
238$ gem --version
2393.4.10
install.bundler
24120.94s$ bundle install --jobs=3 --retry=3
242Fetching gem metadata from https://rubygems.org/.........
243Resolving dependencies...
244Fetching concurrent-ruby 1.2.3
245Fetching minitest 5.22.2
246Fetching public_suffix 5.0.4
247Installing minitest 5.22.2
248Fetching ansi 1.5.0
249Installing public_suffix 5.0.4
250Fetching ast 2.4.2
251Installing concurrent-ruby 1.2.3
252Installing ansi 1.5.0
253Installing ast 2.4.2
254Fetching bigdecimal 3.1.6
255Using bundler 2.4.10
256Fetching connection_pool 2.4.1
257Fetching rexml 3.2.6
258Installing bigdecimal 3.1.6 with native extensions
259Installing rexml 3.2.6
260Installing connection_pool 2.4.1
261Fetching diff-lcs 1.5.1
262Fetching docile 1.4.0
263Installing diff-lcs 1.5.1
264Installing docile 1.4.0
265Fetching ffi 1.16.3
266Fetching uri 0.13.0
267Installing uri 0.13.0
268Fetching multi_json 1.15.0
269Installing ffi 1.16.3 with native extensions
270Installing multi_json 1.15.0
271Fetching net-http-pipeline 1.0.1
272Installing net-http-pipeline 1.0.1
273Fetching hashdiff 1.1.0
274Installing hashdiff 1.1.0
275Fetching json 2.7.1
276Installing json 2.7.1 with native extensions
277Fetching language_server-protocol 3.17.0.3
278Installing language_server-protocol 3.17.0.3
279Fetching parallel 1.24.0
280Installing parallel 1.24.0
281Fetching racc 1.7.3
282Installing racc 1.7.3 with native extensions
283Fetching rainbow 3.1.1
284Installing rainbow 3.1.1
285Fetching regexp_parser 2.9.0
286Installing regexp_parser 2.9.0
287Fetching rspec-support 3.13.1
288Installing rspec-support 3.13.1
289Fetching ruby-progressbar 1.13.0
290Installing ruby-progressbar 1.13.0
291Fetching unicode-display_width 2.5.0
292Installing unicode-display_width 2.5.0
293Fetching simplecov-html 0.12.3
294Installing simplecov-html 0.12.3
295Fetching simplecov_json_formatter 0.1.4
296Installing simplecov_json_formatter 0.1.4
297Fetching addressable 2.8.6
298Installing addressable 2.8.6
299Fetching i18n 1.14.1
300Installing i18n 1.14.1
301Fetching tzinfo 2.0.6
302Installing tzinfo 2.0.6
303Fetching net-http-persistent 4.0.2
304Installing net-http-persistent 4.0.2
305Fetching net-http 0.4.1
306Installing net-http 0.4.1
307Fetching parser 3.3.0.5
308Installing parser 3.3.0.5
309Fetching rspec-core 3.13.0
310Installing rspec-core 3.13.0
311Fetching rspec-expectations 3.13.0
312Installing rspec-expectations 3.13.0
313Fetching rspec-mocks 3.13.0
314Installing rspec-mocks 3.13.0
315Fetching terminal-table 3.0.2
316Installing terminal-table 3.0.2
317Fetching simplecov 0.22.0
318Installing simplecov 0.22.0
319Fetching activesupport 7.0.8.1
320Installing activesupport 7.0.8.1
321Fetching faraday-net_http 3.1.0
322Installing faraday-net_http 3.1.0
323Fetching rubocop-ast 1.30.0
324Installing rubocop-ast 1.30.0
325Fetching rspec 3.13.0
326Installing rspec 3.13.0
327Fetching simplecov-console 0.9.1
328Installing simplecov-console 0.9.1
329Fetching faraday 2.9.0
330Installing faraday 2.9.0
331Fetching rubocop 1.60.2
332Installing rubocop 1.60.2
333Fetching faraday-retry 2.2.0
334Installing faraday-retry 2.2.0
335Fetching rubocop-capybara 2.20.0
336Installing rubocop-capybara 2.20.0
337Fetching rubocop-factory_bot 2.25.1
338Installing rubocop-factory_bot 2.25.1
339Fetching rubocop-performance 1.20.2
340Installing rubocop-performance 1.20.2
341Fetching rubocop-rspec 2.26.1
342Installing rubocop-rspec 2.26.1
343Fetching ethon 0.16.0
344Installing ethon 0.16.0
345Fetching typhoeus 1.4.1
346Installing typhoeus 1.4.1
347Fetching faraday-typhoeus 1.1.0
348Installing faraday-typhoeus 1.1.0
349Using gh 0.21.0 from source at `.`
350Fetching crack 1.0.0
351Installing crack 1.0.0
352Fetching webmock 3.23.0
353Installing webmock 3.23.0
354Bundle complete! 8 Gemfile dependencies, 56 gems now installed.
355Use `bundle info [gemname]` to see where a bundled gem is installed.
3571.70s$ bundle exec rspec
359GH::Cache
360 send HTTP requests for uncached resources
361 uses the cache for subsequent requests
362 cache is resettable
364GH::CustomLimit
365 adds client_id and client_secret to a request
367GH::Error
368 wraps connection
369 exposes the original exception
370 keeps the payload around
371 works for long content
372 can be rescued by status code
374GH
375 allows doing requests right from the GH object
376 allows posting to github
377 with
378 returns the GH instance if no block is given
379 returns the block value if block is given
380 propagates options
382GH::Instrumentation
383 instruments http
384 instruments []
385 instruments load
387GH::LazyLoader
388 wraps normalizer by default
389 send http requests for missing fields
390 does not send http requests for existing fields
391 allows traversing into nested structures
392 does not request twice if the field does not exist upstream
393 does not skip an already existing default proc
394 is still loading missing fields, even if a default proc is set
396GH::LinkFollower
397 follows links
398 works with lazy loading
399 does not raise exceptions for unknown fields
401GH::MergeCommit
402 adds merge commits
403 adds base commits
404 adds head commits
405 allows lazy loading on the commit
406 when pull request is draft
407 adds merge commits
409GH::Normalizer
410 is set up properly
411 leaves unknown fields in place
412 allows normalization with #load
413 works for deeply nested fields (PENDING: Not yet implemented)
414 works for lists (PENDING: Not yet implemented)
415 when testing date fields
416 generates date from timestamp (PENDING: Not yet implemented)
417 when renaming
418 renames org to organization
419 renames orgs to organizations
420 renames username to login
421 renames repo to repository
422 renames repos to repositories
423 renames repo_foo to repository_foo
424 renames repos_foo to repository_foo
425 renames foo_repo to foo_repository
426 renames foo_repos to foo_repositories
427 renames commit to sha if value is a sha
428 does not rename commit to sha if value is not a sha
429 renames commit_id to sha if value is a sha
430 does not rename commit_id to sha if value is not a sha
431 renames comments to comment_count if content is a number
432 renames repositories to repository_count if content is a number
433 renames repos to repository_count if content is a number
434 renames forks to fork_count if content is a number
435 does not rename comments to comment_count if content is not a number
436 does not rename repositories to repository_count if content is not a number
437 does not rename repos to repository_count if content is not a number
438 does not rename forks to fork_count if content is not a number
439 renames user to owner if appropriate
440 renames user to author if appropriate
441 leaves user in place if owner exists
442 leaves user in place if author exists
443 leaves user in place if no indication what kind of user
444 copies author to committer
445 copies committer to author
446 does not override committer or author if both exist
447 when testing time
448 transforms timestamps stored in "timestamp" to a date in "date"
449 transforms dates stored in "timestamp" to a date in "date"
450 changes date to UTC
451 changes any time entry to UTC
452 does not choke on empty values
453 when testing links
454 does not normalize config
455 generates link entries from link headers (PENDING: )
456 generates link headers from link entries (PENDING: Not yet implemented)
457 does not discard existing link entires (PENDING: Not yet implemented)
458 does not discard existing link headers (PENDING: Not yet implemented)
459 identifies _url suffix as link
460 identifies blog as link
461 detects avatar links from gravatar_url
462 detects html urls in url field
463 detects self urls in url field
464 passes through true
465 properly detects html links when api is served from same host
466 properly detects self links when api is served from same host
468GH::Pagination
469 paginates
470 paginates with GH::Normalizer
471 paginates on default stack
472 gives random access
473 does not wrap hash responses
475GH::Parallel
476 allows normal requests
477 sets in_parallel?
478 runs requests in parallel
479 runs requests right away if parallelize is set to false
480 works with pagination
481 returns the block value
482 works two times in a row
484GH::Remote
485 loads resources from github
486 sets headers correctly
487 raises an exception for missing resources
488 includes the request payload in errors
489 parses the body
490 sends http calls through the frontend
491 sends request calls through the frontend
492 loads resources from github via API v3
493 when testing path_for
494 is expected to eql "/api/v3/foo"
495 is expected to eql "/api/v3/foo"
496 is expected to eql "/api/v3/foo"
497 is expected to eql "/api/v3/foo"
499GH::Response
500 parses content endpoints correctly
501 handles UTF-8 properly, even if encoded binary
503GH::Stack
504 is specified (PENDING: Not yet implemented)
506GH::TokenCheck
507 adds client_id and client_secret to a request (PENDING: Temporarily skipped with xdescribe)
508 does not swallow other status codes (PENDING: Temporarily skipped with xdescribe)
510GH::Wrapper
511 is specified (PENDING: Not yet implemented)
513Pending: (Failures listed here are expected and do not affect your suite's status)
515 1) GH::Normalizer works for deeply nested fields
516 # Not yet implemented
517 # ./spec/normalizer_spec.rb:39
519 2) GH::Normalizer works for lists
520 # Not yet implemented
521 # ./spec/normalizer_spec.rb:40
523 3) GH::Normalizer when testing date fields generates date from timestamp
524 # Not yet implemented
525 # ./spec/normalizer_spec.rb:43
527 4) GH::Normalizer when testing links generates link entries from link headers
528 #
529 # ./spec/normalizer_spec.rb:244
531 5) GH::Normalizer when testing links generates link headers from link entries
532 # Not yet implemented
533 # ./spec/normalizer_spec.rb:253
535 6) GH::Normalizer when testing links does not discard existing link entires
536 # Not yet implemented
537 # ./spec/normalizer_spec.rb:254
539 7) GH::Normalizer when testing links does not discard existing link headers
540 # Not yet implemented
541 # ./spec/normalizer_spec.rb:255
543 8) GH::Stack is specified
544 # Not yet implemented
545 # ./spec/stack_spec.rb:6
547 9) GH::TokenCheck adds client_id and client_secret to a request
548 # Temporarily skipped with xdescribe
549 # ./spec/token_check_spec.rb:14
551 10) GH::TokenCheck does not swallow other status codes
552 # Temporarily skipped with xdescribe
553 # ./spec/token_check_spec.rb:28
555 11) GH::Wrapper is specified
556 # Not yet implemented
557 # ./spec/wrapper_spec.rb:6
560Finished in 0.78871 seconds (files took 0.52562 seconds to load)
561115 examples, 0 failures, 11 pending
564COVERAGE: 82.56% -- 71/86 lines in 2 files
566+----------+--------------------+-------+--------+----------------------------+
567| coverage | file | lines | missed | missing |
568+----------+--------------------+-------+--------+----------------------------+
569| 78.95% | lib/gh/cache.rb | 38 | 8 | 27-30, 69-71, 73 |
570| 85.42% | lib/gh/response.rb | 48 | 7 | 29, 33, 40, 71, 73, 78, 98 |
571+----------+--------------------+-------+--------+----------------------------+
572Coverage report generated for RSpec to /home/travis/build/travis-ci/gh/coverage. 71 / 86 LOC (82.56%) covered.
573The command "bundle exec rspec" exited with 0.
576Done. Your build exited with 0.
Top