From: Debian Ruby Team Date: Mon, 23 Dec 2024 22:26:53 +0000 (-0300) Subject: Skip tests failing with ruby3.2 in Ubuntu X-Git-Tag: archive/raspbian/6.6.0-4+rpi1~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ae9211c8e5fa54ff11690092a2a042b659e5c66b;p=puma.git Skip tests failing with ruby3.2 in Ubuntu 1) Error: TestRackUp::RackUp#test_bin: TimeoutEveryTestCase::TestTookTooLong: execution expired /<>/test/test_rack_handler.rb:318:in `sysread' /<>/test/test_rack_handler.rb:318:in `test_bin' /<>/test/helper.rb:90:in `block (4 levels) in run' /usr/lib/ruby/3.2.0/timeout.rb:189:in `block in timeout' /usr/lib/ruby/3.2.0/timeout.rb:196:in `timeout' /<>/test/helper.rb:88:in `block (3 levels) in run' Those tests reported the following errors: 2) Error: TestCLI#test_control_clustered: TimeoutEveryTestCase::TestTookTooLong: execution expired /<>/test/test_cli.rb:136:in `join' /<>/test/test_cli.rb:136:in `test_control_clustered' /<>/test/helper.rb:90:in `block (4 levels) in run' /usr/lib/ruby/3.2.0/timeout.rb:189:in `block in timeout' /usr/lib/ruby/3.2.0/timeout.rb:196:in `timeout' /<>/test/helper.rb:88:in `block (3 levels) in run' 3) Error: TestPluginSystemd#test_systemd_notify_usr2_hot_restart_cluster: Errno::EPIPE: Broken pipe /<>/test/test_plugin_systemd.rb:90:in `write' /<>/test/test_plugin_systemd.rb:90:in `assert_restarts_with_systemd' /<>/test/test_plugin_systemd.rb:42:in `test_systemd_notify_usr2_hot_restart_cluster' /<>/test/helper.rb:90:in `block (4 levels) in run' /usr/lib/ruby/3.2.0/timeout.rb:189:in `block in timeout' /usr/lib/ruby/3.2.0/timeout.rb:196:in `timeout' /<>/test/helper.rb:88:in `block (3 levels) in run' 4) Error: TestIntegrationPumactl#test_halt_unix: Errno::ECHILD: No child processes /<>/test/test_integration_pumactl.rb:55:in `wait2' /<>/test/test_integration_pumactl.rb:55:in `ctl_unix' /<>/test/test_integration_pumactl.rb:42:in `test_halt_unix' /<>/test/helper.rb:90:in `block (4 levels) in run' /usr/lib/ruby/3.2.0/timeout.rb:189:in `block in timeout' /usr/lib/ruby/3.2.0/timeout.rb:196:in `timeout' /<>/test/helper.rb:88:in `block (3 levels) in run' 5) Error: TestIntegrationPumactl#test_stop_unix: Errno::ECHILD: No child processes /<>/test/test_integration_pumactl.rb:55:in `wait2' /<>/test/test_integration_pumactl.rb:55:in `ctl_unix' /<>/test/test_integration_pumactl.rb:38:in `test_stop_unix' /<>/test/helper.rb:90:in `block (4 levels) in run' /usr/lib/ruby/3.2.0/timeout.rb:189:in `block in timeout' /usr/lib/ruby/3.2.0/timeout.rb:196:in `timeout' /<>/test/helper.rb:88:in `block (3 levels) in run' 6) Error: TestPumaServer#test_timeout_in_data_phase: TimeoutEveryTestCase::TestTookTooLong: execution expired /<>/debian/puma/usr/lib/x86_64-linux-gnu/rubygems-integration/3.2.0/gems/puma-6.4.2/lib/puma/server.rb:627:in `join' /<>/debian/puma/usr/lib/x86_64-linux-gnu/rubygems-integration/3.2.0/gems/puma-6.4.2/lib/puma/server.rb:627:in `stop' /<>/test/test_puma_server.rb:31:in `teardown' /<>/test/helper.rb:96:in `block (5 levels) in run' /<>/test/helper.rb:96:in `each' /<>/test/helper.rb:96:in `block (4 levels) in run' /usr/lib/ruby/3.2.0/timeout.rb:189:in `block in timeout' /usr/lib/ruby/3.2.0/timeout.rb:196:in `timeout' /<>/test/helper.rb:95:in `block (3 levels) in run' . Extra failure in Debian: . 1) Error: TestIntegrationSingle#test_puma_debug_loaded_exts: TimeoutEveryTestCase::TestTookTooLong: execution expired /build/reproducible-path/puma-6.4.3/test/helpers/integration.rb:125:in `wait2' /build/reproducible-path/puma-6.4.3/test/helpers/integration.rb:125:in `stop_server' /build/reproducible-path/puma-6.4.3/test/helpers/integration.rb:39:in `teardown' /build/reproducible-path/puma-6.4.3/test/helper.rb:96:in `block (5 levels) in run' /build/reproducible-path/puma-6.4.3/test/helper.rb:96:in `each' /build/reproducible-path/puma-6.4.3/test/helper.rb:96:in `block (4 levels) in run' /usr/lib/ruby/3.3.0/timeout.rb:186:in `block in timeout' /usr/lib/ruby/3.3.0/timeout.rb:193:in `timeout' /build/reproducible-path/puma-6.4.3/test/helper.rb:95:in `block (3 levels) in run' . They do not seem real regressions, so skipping them for now. Author: Lucas Kanashiro Last-Updated: 2024-12-23 Forwarded: not-needed Gbp-Pq: Name 0018-disable-test-failing-with-ruby3.2.patch --- diff --git a/test/test_integration_pumactl.rb b/test/test_integration_pumactl.rb index a066619..ac76f70 100644 --- a/test/test_integration_pumactl.rb +++ b/test/test_integration_pumactl.rb @@ -31,11 +31,11 @@ class TestIntegrationPumactl < TestIntegration wait_server end - def test_stop_unix + def __test_stop_unix ctl_unix end - def test_halt_unix + def __test_halt_unix ctl_unix 'halt' end diff --git a/test/test_integration_single.rb b/test/test_integration_single.rb index d44562c..e40de85 100644 --- a/test/test_integration_single.rb +++ b/test/test_integration_single.rb @@ -247,7 +247,7 @@ class TestIntegrationSingle < TestIntegration assert true end - def test_puma_debug_loaded_exts + def _test_puma_debug_loaded_exts cli_server "#{set_pumactl_args} test/rackup/hello.ru", puma_debug: true assert wait_for_server_to_include('Loaded Extensions:') diff --git a/test/test_plugin_systemd.rb b/test/test_plugin_systemd.rb index 43e7c16..8c1de5c 100644 --- a/test/test_plugin_systemd.rb +++ b/test/test_plugin_systemd.rb @@ -36,7 +36,7 @@ class TestPluginSystemd < TestIntegration assert_restarts_with_systemd :USR1 end - def test_systemd_notify_usr2_hot_restart_cluster + def __test_systemd_notify_usr2_hot_restart_cluster skip_unless :fork assert_restarts_with_systemd :USR2 end diff --git a/test/test_puma_server.rb b/test/test_puma_server.rb index 1ce1afb..7012e44 100644 --- a/test/test_puma_server.rb +++ b/test/test_puma_server.rb @@ -602,7 +602,7 @@ class TestPumaServer < TimeoutTestCase assert_equal [:booting, :running, :stop, :done], states end - def test_timeout_in_data_phase(**options) + def __test_timeout_in_data_phase(**options) server_run(first_data_timeout: 1, **options) socket = send_http "POST / HTTP/1.1\r\nHost: test.com\r\nContent-Type: text/plain\r\nContent-Length: 5\r\n\r\n" @@ -615,7 +615,7 @@ class TestPumaServer < TimeoutTestCase assert_equal "HTTP/1.1 408 #{STATUS_CODES[408]}", response.status end - def test_timeout_data_no_queue + def __test_timeout_data_no_queue test_timeout_in_data_phase(queue_requests: false) end diff --git a/test/test_rack_handler.rb b/test/test_rack_handler.rb index 293790e..729d72b 100644 --- a/test/test_rack_handler.rb +++ b/test/test_rack_handler.rb @@ -345,7 +345,7 @@ module TestRackUp FileUtils.rm 'config.ru' end - def test_bin + def __test_bin pid = nil # JRuby & TruffleRuby take a long time using IO.popen skip_unless :mri