@@ -35,12 +35,14 @@ jobs:
3535 - { name: Ruby 3.2, ruby: ruby-3.2.6, continuous-only: true }
3636 - { name: Ruby 3.3, ruby: ruby-3.3.6, continuous-only: true }
3737 - { name: Ruby 3.4, ruby: ruby-3.4.1, continuous-only: true }
38- # TODO: Remove the image property in the two entries below and update the configuration
39- # used by all the images the next time there is an update to the Dockerfile
40- - { name: Ruby 4.0, ruby: ruby-4.0.0, ffi: NATIVE, image: 'us-docker.pkg.dev/protobuf-build/containers/test/linux/ruby:8.0.1 -ruby-4.0.0-f1c24ed6acfbf6ec709b0de2f702209c9d3ac659 ' }
41- - { name: Ruby 4.0, ruby: ruby-4.0.0 , ffi: FFI, image: 'us-docker.pkg.dev/protobuf-build/containers/test/linux/ruby:8.0.1 -ruby-4.0.0-f1c24ed6acfbf6ec709b0de2f702209c9d3ac659 ' }
38+ - { name: Ruby 4.0, ruby: ruby-4.0.0, ffi: NATIVE }
39+ - { name: Ruby 4.0, ruby: ruby-4.0.0, ffi: FFI }
40+ - { name: Ruby 4.0 bazel 8 , ruby: ruby-4.0.0, ffi: NATIVE, image: 'us-docker.pkg.dev/protobuf-build/containers/test/linux/ruby:8.6.0 -ruby-4.0.0-856ad422dddd3b8fbd85e36129496b37bba174ef ' }
41+ - { name: Ruby 4.0 bazel 8 , ruby: ruby-4.4.4 , ffi: FFI, image: 'us-docker.pkg.dev/protobuf-build/containers/test/linux/ruby:8.6.0 -ruby-4.0.0-856ad422dddd3b8fbd85e36129496b37bba174ef ' }
4242 - { name: JRuby 9.4, ruby: jruby-9.4.9.0, ffi: NATIVE }
4343 - { name: JRuby 9.4, ruby: jruby-9.4.9.0, ffi: FFI }
44+ - { name: JRuby 9.4 bazel 8, ruby: jruby-9.4.9.0, ffi: NATIVE, image: 'us-docker.pkg.dev/protobuf-build/containers/test/linux/ruby:8.6.0-jruby-9.4.9.0-856ad422dddd3b8fbd85e36129496b37bba174ef' }
45+ - { name: JRuby 9.4 bazel 8, ruby: jruby-9.4.9.0, ffi: FFI, image: 'us-docker.pkg.dev/protobuf-build/containers/test/linux/ruby:8.6.0-jruby-9.4.9.0-856ad422dddd3b8fbd85e36129496b37bba174ef' }
4446
4547 name : ${{ matrix.continuous-only && inputs.continuous-prefix || '' }} Linux ${{ matrix.name }} ${{ matrix.ffi == 'FFI' && ' FFI' || '' }}
4648 runs-on : ubuntu-latest
@@ -54,10 +56,10 @@ jobs:
5456 if : ${{ !matrix.continuous-only || inputs.continuous-run }}
5557 uses : protocolbuffers/protobuf-ci/bazel-docker@v5
5658 with :
57- image : ${{ matrix.image || format('us-docker.pkg.dev/protobuf-build/containers/test/linux/ruby:8 .0.1 -{0}-b77fdae6d4771789dfc66a56bf8d806354e8011a ', matrix.ruby) }}
59+ image : ${{ matrix.image || format('us-docker.pkg.dev/protobuf-build/containers/test/linux/ruby:9 .0.0 -{0}-9fc33a0c378b5affd3c85d3f5ae4f330993048f7 ', matrix.ruby) }}
5860 credentials : ${{ secrets.GAR_SERVICE_ACCOUNT }}
5961 bazel-cache : ruby_linux/${{ matrix.ruby }}
60- bazel : test //ruby/... //ruby/tests:ruby_version --test_env=KOKORO_RUBY_VERSION --test_env=BAZEL=true ${{ matrix.ffi == 'FFI' && '--//ruby:ffi=enabled --test_env=PROTOCOL_BUFFERS_RUBY_IMPLEMENTATION=FFI' || '' }}
62+ bazel : test //ruby/... //ruby/tests:ruby_version --action_env=PATH -- test_env=KOKORO_RUBY_VERSION --test_env=BAZEL=true ${{ matrix.ffi == 'FFI' && '--//ruby:ffi=enabled --test_env=PROTOCOL_BUFFERS_RUBY_IMPLEMENTATION=FFI' || '' }}
6163# Useful tool for troubleshooting, but the action introduces flakes as well,
6264# e.g. https://github.com/actions/upload-artifact/issues/569
6365# - name: Archive log artifacts
@@ -172,10 +174,10 @@ jobs:
172174 if : ${{ !matrix.continuous-only || inputs.continuous-run }}
173175 uses : protocolbuffers/protobuf-ci/bazel@v5
174176 with :
175- version : 8 .0.1 # Bazel version
177+ version : 9 .0.0 # Bazel version
176178 credentials : ${{ secrets.GAR_SERVICE_ACCOUNT }}
177179 bazel-cache : ruby_macos/${{ matrix.version }}
178- bazel : test //ruby/... --test_env=KOKORO_RUBY_VERSION=${{ matrix.version }} --test_env=BAZEL=true ${{ matrix.ffi == 'FFI' && '--//ruby:ffi=enabled --test_env=PROTOCOL_BUFFERS_RUBY_IMPLEMENTATION=FFI' || '' }}
180+ bazel : test //ruby/... --test_env=KOKORO_RUBY_VERSION=${{ matrix.version }} --action_env=PATH -- test_env=BAZEL=true ${{ matrix.ffi == 'FFI' && '--//ruby:ffi=enabled --test_env=PROTOCOL_BUFFERS_RUBY_IMPLEMENTATION=FFI' || '' }}
179181
180182 # This test should always be skipped on presubmit
181183 test_ruby_gems :
@@ -187,13 +189,17 @@ jobs:
187189 # Ruby versions for CRuby and JRuby.
188190 - { name: Ruby 3.1, ruby: ruby-3.1.6, ffi: NATIVE }
189191 - { name: Ruby 3.1, ruby: ruby-3.1.6, ffi: FFI }
190- - { name: Ruby 3.2, ruby: ruby-3.2.6, continuous-only: true}
191- - { name: Ruby 3.3, ruby: ruby-3.3.6, continuous-only: true}
192+ - { name: Ruby 3.2, ruby: ruby-3.2.6, continuous-only: true }
193+ - { name: Ruby 3.3, ruby: ruby-3.3.6, continuous-only: true }
192194 - { name: Ruby 3.4, ruby: ruby-3.4.1, continuous-only: true }
193- - { name: Ruby 4.0, ruby: ruby-4.0.0, ffi: NATIVE, image: 'us-docker.pkg.dev/protobuf-build/containers/test/linux/ruby:8.0.1-ruby-4.0.0-f1c24ed6acfbf6ec709b0de2f702209c9d3ac659' }
194- - { name: Ruby 4.0, ruby: ruby-4.0.0, ffi: FFI, image: 'us-docker.pkg.dev/protobuf-build/containers/test/linux/ruby:8.0.1-ruby-4.0.0-f1c24ed6acfbf6ec709b0de2f702209c9d3ac659' }
195+ - { name: Ruby 4.0, ruby: ruby-4.0.0, ffi: NATIVE }
196+ - { name: Ruby 4.0, ruby: ruby-4.0.0, ffi: FFI }
197+ - { name: Ruby 4.0 bazel 8, ruby: ruby-4.0.0, ffi: NATIVE, image: 'us-docker.pkg.dev/protobuf-build/containers/test/linux/ruby:8.6.0-ruby-4.0.0-856ad422dddd3b8fbd85e36129496b37bba174ef' }
198+ - { name: Ruby 4.0 bazel 8, ruby: ruby-4.4.4, ffi: FFI, image: 'us-docker.pkg.dev/protobuf-build/containers/test/linux/ruby:8.6.0-ruby-4.0.0-856ad422dddd3b8fbd85e36129496b37bba174ef' }
195199 - { name: JRuby 9.4, ruby: jruby-9.4.9.0, ffi: NATIVE }
196200 - { name: JRuby 9.4, ruby: jruby-9.4.9.0, ffi: FFI, continuous-only: true }
201+ - { name: JRuby 9.4 bazel 8, ruby: jruby-9.4.9.0, ffi: NATIVE, image: 'us-docker.pkg.dev/protobuf-build/containers/test/linux/ruby:8.6.0-jruby-9.4.9.0-856ad422dddd3b8fbd85e36129496b37bba174ef' }
202+ - { name: JRuby 9.4 bazel 8, ruby: jruby-9.4.9.0, ffi: FFI, image: 'us-docker.pkg.dev/protobuf-build/containers/test/linux/ruby:8.6.0-jruby-9.4.9.0-856ad422dddd3b8fbd85e36129496b37bba174ef' }
197203 name : ${{ matrix.continuous-only && inputs.continuous-prefix || '' }} Install ${{ matrix.name }}${{ matrix.ffi == 'FFI' && ' FFI' || '' }}
198204 runs-on : ubuntu-latest
199205 steps :
@@ -206,14 +212,14 @@ jobs:
206212 if : ${{ !matrix.continuous-only || inputs.continuous-run }}
207213 uses : protocolbuffers/protobuf-ci/bazel-docker@v5
208214 with :
209- image : ${{ matrix.image || format('us-docker.pkg.dev/protobuf-build/containers/test/linux/ruby:8 .0.1 -{0}-b77fdae6d4771789dfc66a56bf8d806354e8011a ', matrix.ruby) }}
215+ image : ${{ matrix.image || format('us-docker.pkg.dev/protobuf-build/containers/test/linux/ruby:9 .0.0 -{0}-9fc33a0c378b5affd3c85d3f5ae4f330993048f7 ', matrix.ruby) }}
210216 credentials : ${{ secrets.GAR_SERVICE_ACCOUNT }}
211217 bazel-cache : ruby_install/${{ matrix.ruby }}_${{ matrix.bazel }}
212218 bash : >
213219 bazel --version;
214220 ruby --version;
215- ./regenerate_stale_files.sh $BAZEL_FLAGS;
216- bazel build //ruby:release //:protoc ${{ matrix.ffi == 'FFI' && '--//ruby:ffi=enabled' || '' }} $BAZEL_FLAGS;
221+ ./regenerate_stale_files.sh --action_env=PATH $BAZEL_FLAGS;
222+ bazel build //ruby:release //:protoc --test_env=KOKORO_RUBY_VERSION ${{ matrix.ffi == 'FFI' && '--//ruby:ffi=enabled' || '' }} --action_env=PATH $BAZEL_FLAGS;
217223 gem install bazel-bin/ruby/google-protobuf-*;
218224 bazel-bin/protoc --proto_path=src --proto_path=ruby/tests --proto_path=ruby --ruby_out=ruby tests/test_import_proto2.proto;
219225 bazel-bin/protoc --proto_path=src --proto_path=ruby/tests --proto_path=ruby --ruby_out=ruby tests/basic_test.proto;
0 commit comments