Skip to content

Commit

Permalink
ci: test against ruby 3.3.0 (#3077)
Browse files Browse the repository at this point in the history
**What problem is this PR intended to solve?**

Let's test against Ruby 3.3.0 final.

See also #3079
  • Loading branch information
flavorjones authored Dec 27, 2023
2 parents 84afa8c + 68f9ef5 commit 87d3ac5
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 33 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
rubocop:
runs-on: ubuntu-latest
container:
image: ghcr.io/sparklemotion/nokogiri-test:mri-3.2
image: ghcr.io/sparklemotion/nokogiri-test:mri-3.3
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -69,7 +69,7 @@ jobs:
submodules: true
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
ruby-version: "3.3"
bundler-cache: true
bundler: latest
- run: bundle exec rake gumbo:test
Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:
fail-fast: false
matrix:
sys: ["enable", "disable"]
ruby: ["3.0", "3.1", "3.2", "3.3-rc"]
ruby: ["3.0", "3.1", "3.2", "3.3"]
runs-on: ubuntu-latest
container:
image: ghcr.io/sparklemotion/nokogiri-test:mri-${{matrix.ruby}}
Expand All @@ -122,11 +122,11 @@ jobs:
fail-fast: false
matrix:
sys: ["enable", "disable"]
ruby: ["3.0", "3.1", "3.2"]
ruby: ["3.0", "3.1", "3.2", "3.3"]
mem: ["ruby"]
include:
- sys: "disable"
ruby: "3.2"
ruby: "3.3"
mem: "default"
runs-on: ubuntu-latest
container:
Expand Down Expand Up @@ -188,7 +188,7 @@ jobs:
fail-fast: false
matrix:
sys: ["enable"]
ruby: ["3.2"]
ruby: ["3.3"]
env:
BUNDLE_GEMFILE: "Gemfile-libxml-ruby"
runs-on: ubuntu-latest
Expand All @@ -213,7 +213,7 @@ jobs:
fail-fast: false
matrix:
sys: ["disable"]
ruby: ["3.2"]
ruby: ["3.3"]
env:
BUNDLE_GEMFILE: "Gemfile-libxml-ruby"
runs-on: ubuntu-latest
Expand All @@ -238,7 +238,7 @@ jobs:
fail-fast: false
matrix:
sys: ["enable", "disable"]
ruby: ["3.0", "3.1", "3.2", "3.3.0-rc1"]
ruby: ["3.0", "3.1", "3.2", "3.3"]
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -263,7 +263,7 @@ jobs:
fail-fast: false
matrix:
sys: ["enable", "disable"]
ruby: ["3.0", "3.1", "3.2", "head", "mingw"]
ruby: ["3.0", "3.1", "3.2", "3.3", "mingw"]
runs-on: windows-2022
steps:
- name: configure git crlf
Expand Down Expand Up @@ -364,7 +364,7 @@ jobs:
fail-fast: false
matrix:
sys: ["disable"]
ruby: ["3.2"]
ruby: ["3.3"]
runs-on: ubuntu-latest
container:
image: ghcr.io/sparklemotion/nokogiri-test:mri-${{matrix.ruby}}
Expand All @@ -387,7 +387,7 @@ jobs:
fail-fast: false
matrix:
sys: ["disable"]
ruby: ["3.2"]
ruby: ["3.3"]
runs-on: ubuntu-latest
container:
image: ghcr.io/sparklemotion/nokogiri-test:mri-${{matrix.ruby}}
Expand Down Expand Up @@ -416,7 +416,7 @@ jobs:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
ruby-version: "3.3"
bundler-cache: true
bundler: latest
- id: rcd_image_version
Expand Down Expand Up @@ -452,7 +452,7 @@ jobs:
fail-fast: false
matrix:
sys: ["enable", "disable"]
ruby: ["3.0", "3.1", "3.2", "head"]
ruby: ["3.0", "3.1", "3.2", "3.3"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -474,7 +474,7 @@ jobs:
fail-fast: false
matrix:
sys: ["enable", "disable"]
ruby: ["3.0", "3.1", "3.2", "head"]
ruby: ["3.0", "3.1", "3.2", "3.3"]
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -518,7 +518,7 @@ jobs:
fail-fast: false
matrix:
sys: ["enable", "disable"]
ruby: ["3.1", "3.2", "head"]
ruby: ["3.1", "3.2", "3.3"]
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -577,7 +577,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ["3.0", "3.1", "3.2", "3.3.0-rc1"]
ruby: ["3.0", "3.1", "3.2", "3.3"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -599,7 +599,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ["3.0", "3.1", "3.2", "3.3.0-rc1"]
ruby: ["3.0", "3.1", "3.2", "3.3"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -621,7 +621,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ["3.0", "3.1", "3.2", "3.3.0-rc1"]
ruby: ["3.0", "3.1", "3.2", "3.3"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -643,7 +643,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ["3.0", "3.1", "3.2", "head"]
ruby: ["3.0", "3.1", "3.2", "3.3"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -680,7 +680,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ["3.0", "3.1", "3.2", "head"]
ruby: ["3.0", "3.1", "3.2", "3.3"]
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -721,7 +721,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ["3.1", "3.2", "head"]
ruby: ["3.1", "3.2", "3.3"]
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/generate-ci-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
tag: ["alpine", "mri-3.0", "mri-3.1", "mri-3.2", "mri-3.3-rc", "truffle-nightly", "ubuntu"]
tag: ["alpine", "mri-3.0", "mri-3.1", "mri-3.2", "mri-3.3", "truffle-nightly", "ubuntu"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/upstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
submodules: true
- uses: ruby/setup-ruby-pkgs@v1
with:
ruby-version: "3.2"
ruby-version: "3.3"
apt-get: "autogen libtool shtool"
brew: "automake autogen libtool shtool"
mingw: "autotools"
Expand Down Expand Up @@ -164,15 +164,15 @@ jobs:
html5lib-tests:
runs-on: ubuntu-latest
container:
image: ghcr.io/sparklemotion/nokogiri-test:mri-3.2
image: ghcr.io/sparklemotion/nokogiri-test:mri-3.3
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/cache@v3
with:
path: ports
key: ports-ubuntu-3.2-${{hashFiles('dependencies.yml', 'patches/**/*.patch', 'ext/nokogiri/extconf.rb')}}
key: ports-ubuntu-3.3-${{hashFiles('dependencies.yml', 'patches/**/*.patch', 'ext/nokogiri/extconf.rb')}}
- name: Update html5lib-tests
run: |
cd test/html5lib-tests
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:3.3-rc
FROM ruby:3.3

# include_file debian-prelude.step
# -*- dockerfile -*-
Expand All @@ -9,10 +9,16 @@ RUN apt-get upgrade -y
RUN apt-get install -y apt-utils


# include_file debian-valgrind.step
# include_file valgrind-from-source.step
# -*- dockerfile -*-

RUN apt-get install -y valgrind
RUN apt-get install -y libc6-dbg
RUN wget https://sourceware.org/pub/valgrind/valgrind-3.21.0.tar.bz2 && \
tar -xf valgrind-3.21.0.tar.bz2 && \
cd valgrind-3.21.0 && \
./configure && \
make && \
make install


# include_file debian-libxml-et-al.step
Expand Down
2 changes: 1 addition & 1 deletion oci-images/nokogiri-test/mri.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM ruby:<%= version %>

<%= include_file "debian-prelude.step" %>

<% if version == "3.2" -%>
<% if version >= "3.2" -%>
<%= include_file "valgrind-from-source.step" %>
<% else -%>
<%= include_file "debian-valgrind.step" %>
Expand Down
8 changes: 4 additions & 4 deletions rakelib/docker.rake
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module DockerHelper
IMAGE_DIR = "oci-images/nokogiri-test"
IMAGE_NAME = "ghcr.io/sparklemotion/nokogiri-test"
RUBIES = {
mri: ["3.0", "3.1", "3.2", "3.3-rc"],
mri: ["3.0", "3.1", "3.2", "3.3"],
truffle: ["nightly"],
}

Expand Down Expand Up @@ -74,14 +74,14 @@ module DockerHelper
ruby-version: "3.1"
bundler-cache: true
bundler: latest
- uses: docker/setup-buildx-action@v2
- uses: docker/login-action@v2
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: ${{matrix.tag}}
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: "."
push: true
Expand Down
1 change: 1 addition & 0 deletions test/xml/test_node_set.rb
Original file line number Diff line number Diff line change
Expand Up @@ -805,6 +805,7 @@ def awesome(ns)
it "returns an enumerator given no block" do
skip("enumerators confuse valgrind") if i_am_running_in_valgrind
skip("enumerators confuse ASan") if i_am_running_with_asan
skip("https://bugs.ruby-lang.org/issues/20085") if RUBY_DESCRIPTION.include?("aarch64") && RUBY_VERSION == "3.3.0"

employees = xml.search("//employee")
enum = employees.each
Expand Down

0 comments on commit 87d3ac5

Please sign in to comment.