From 758d687084b0edc51b08e8da2bf9ce746a8288e5 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 18 Oct 2025 17:41:20 +0900 Subject: [PATCH 1/4] Totally disable the DFLTCC extension before tests --- Rakefile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Rakefile b/Rakefile index fdab5bb..fa6f9da 100644 --- a/Rakefile +++ b/Rakefile @@ -1,16 +1,15 @@ require "bundler/gem_tasks" require "rake/testtask" -desc "Run tests" -task :test do +if RUBY_PLATFORM.include?("s390x") # Avoid possible test failures with the zlib applying the following patch on # s390x CPU architecture. # https://github.com/madler/zlib/pull/410 - ENV["DFLTCC"] = "0" if RUBY_PLATFORM =~ /s390x/ - Rake::Task["test_internal"].invoke + ENV["DFLTCC"] = "0" end -Rake::TestTask.new(:test_internal) do |t| +desc "Run tests" +Rake::TestTask.new do |t| t.libs << "test/lib" t.ruby_opts << "-rhelper" t.test_files = FileList["test/**/test_*.rb"] From 1f491376cabeccde523b37ccaf162a19f8adc226 Mon Sep 17 00:00:00 2001 From: Jun Aruga Date: Mon, 20 Oct 2025 16:59:21 +0100 Subject: [PATCH 2/4] [DEBUG] Enable DFLTCC --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index fa6f9da..27ed130 100644 --- a/Rakefile +++ b/Rakefile @@ -5,7 +5,7 @@ if RUBY_PLATFORM.include?("s390x") # Avoid possible test failures with the zlib applying the following patch on # s390x CPU architecture. # https://github.com/madler/zlib/pull/410 - ENV["DFLTCC"] = "0" + # ENV["DFLTCC"] = "0" end desc "Run tests" From a0c6c0121922c3e4c85c3ef46d98d974dd74ac01 Mon Sep 17 00:00:00 2001 From: Jun Aruga Date: Mon, 20 Oct 2025 17:01:00 +0100 Subject: [PATCH 3/4] [DEBUG] Comment out unused cases --- .github/workflows/test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b8ed397..a4d5b3e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,7 +17,8 @@ jobs: fail-fast: false matrix: ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }} - os: [ ubuntu-latest, macos-latest, windows-latest ] + # os: [ ubuntu-latest, macos-latest, windows-latest ] + os: [ ubuntu-latest ] include: - ruby: mswin os: windows-latest From de80586408d59ac67193a976e2398b3572753eea Mon Sep 17 00:00:00 2001 From: Jun Aruga Date: Mon, 20 Oct 2025 17:14:34 +0100 Subject: [PATCH 4/4] Revert "[DEBUG] Enable DFLTCC" This reverts commit 1f491376cabeccde523b37ccaf162a19f8adc226. --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 27ed130..fa6f9da 100644 --- a/Rakefile +++ b/Rakefile @@ -5,7 +5,7 @@ if RUBY_PLATFORM.include?("s390x") # Avoid possible test failures with the zlib applying the following patch on # s390x CPU architecture. # https://github.com/madler/zlib/pull/410 - # ENV["DFLTCC"] = "0" + ENV["DFLTCC"] = "0" end desc "Run tests"