Skip tests failing with ruby3.2 in Ubuntu
authorDebian Ruby Team <pkg-ruby-extras-maintainers@lists.alioth.debian.org>
Mon, 23 Dec 2024 22:26:53 +0000 (19:26 -0300)
committerLucas Kanashiro <kanashiro@debian.org>
Mon, 23 Dec 2024 22:07:19 +0000 (19:07 -0300)
  1) Error:
TestRackUp::RackUp#test_bin:
TimeoutEveryTestCase::TestTookTooLong: execution expired
    /<<PKGBUILDDIR>>/test/test_rack_handler.rb:318:in `sysread'
    /<<PKGBUILDDIR>>/test/test_rack_handler.rb:318:in `test_bin'
    /<<PKGBUILDDIR>>/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'
    /<<PKGBUILDDIR>>/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
    /<<PKGBUILDDIR>>/test/test_cli.rb:136:in `join'
    /<<PKGBUILDDIR>>/test/test_cli.rb:136:in `test_control_clustered'
    /<<PKGBUILDDIR>>/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'
    /<<PKGBUILDDIR>>/test/helper.rb:88:in `block (3 levels) in run'

  3) Error:
TestPluginSystemd#test_systemd_notify_usr2_hot_restart_cluster:
Errno::EPIPE: Broken pipe
    /<<PKGBUILDDIR>>/test/test_plugin_systemd.rb:90:in `write'
    /<<PKGBUILDDIR>>/test/test_plugin_systemd.rb:90:in `assert_restarts_with_systemd'
    /<<PKGBUILDDIR>>/test/test_plugin_systemd.rb:42:in `test_systemd_notify_usr2_hot_restart_cluster'
    /<<PKGBUILDDIR>>/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'
    /<<PKGBUILDDIR>>/test/helper.rb:88:in `block (3 levels) in run'

  4) Error:
TestIntegrationPumactl#test_halt_unix:
Errno::ECHILD: No child processes
    /<<PKGBUILDDIR>>/test/test_integration_pumactl.rb:55:in `wait2'
    /<<PKGBUILDDIR>>/test/test_integration_pumactl.rb:55:in `ctl_unix'
    /<<PKGBUILDDIR>>/test/test_integration_pumactl.rb:42:in `test_halt_unix'
    /<<PKGBUILDDIR>>/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'
    /<<PKGBUILDDIR>>/test/helper.rb:88:in `block (3 levels) in run'

  5) Error:
TestIntegrationPumactl#test_stop_unix:
Errno::ECHILD: No child processes
    /<<PKGBUILDDIR>>/test/test_integration_pumactl.rb:55:in `wait2'
    /<<PKGBUILDDIR>>/test/test_integration_pumactl.rb:55:in `ctl_unix'
    /<<PKGBUILDDIR>>/test/test_integration_pumactl.rb:38:in `test_stop_unix'
    /<<PKGBUILDDIR>>/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'
    /<<PKGBUILDDIR>>/test/helper.rb:88:in `block (3 levels) in run'

  6) Error:
TestPumaServer#test_timeout_in_data_phase:
TimeoutEveryTestCase::TestTookTooLong: execution expired
    /<<PKGBUILDDIR>>/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'
    /<<PKGBUILDDIR>>/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'
    /<<PKGBUILDDIR>>/test/test_puma_server.rb:31:in `teardown'
    /<<PKGBUILDDIR>>/test/helper.rb:96:in `block (5 levels) in run'
    /<<PKGBUILDDIR>>/test/helper.rb:96:in `each'
    /<<PKGBUILDDIR>>/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'
    /<<PKGBUILDDIR>>/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 <lucas.kanashiro@canonical.com>
Last-Updated: 2024-12-23
Forwarded: not-needed

Gbp-Pq: Name 0018-disable-test-failing-with-ruby3.2.patch

test/test_cli.rb
test/test_integration_pumactl.rb
test/test_integration_single.rb
test/test_plugin_systemd.rb
test/test_puma_server.rb
test/test_rack_handler.rb

index 686f2ecc643f9c97b2ca0c93ec3e347cd1e84bef..b20a9e50eb41e8582992b29a2badb6f8d4c84de6 100644 (file)
@@ -101,7 +101,7 @@ class TestCLI < Minitest::Test
     t&.join
   end
 
-  def test_control_clustered
+  def __test_control_clustered
     skip_unless :fork
     skip_unless :unix
     url = "unix://#{@tmp_path}"
index e383764af836f8401406e64c2ab3c8a627606db3..fc4fdd49a4e90d52e938beffda922e18a1248629 100644 (file)
@@ -34,11 +34,11 @@ class TestIntegrationPumactl < TestIntegration
     @server = nil
   end
 
-  def test_stop_unix
+  def __test_stop_unix
     ctl_unix
   end
 
-  def test_halt_unix
+  def __test_halt_unix
     ctl_unix 'halt'
   end
 
index 226e8f46d8ea7c148a9cf8652cea3d4e7b417754..a57cd730030ddb7d6ab11a6b538e801375f6c08a 100644 (file)
@@ -246,7 +246,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:')
index b9ded19b8a6d4a97100a447dc7177707174d1a3a..e813da0243d7e4525f30412c414b4a5b6e356939 100644 (file)
@@ -37,7 +37,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
index 8c6f3f668d6420ab6eb4dbe50c7f63fddf7a24c4..9ea0c47e6f0ad6941d6e7102b35357d413155dc4 100644 (file)
@@ -593,7 +593,7 @@ class TestPumaServer < Minitest::Test
     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"
@@ -606,7 +606,7 @@ class TestPumaServer < Minitest::Test
     assert_equal "HTTP/1.1 408 #{STATUS_CODES[408]}\r\n", data
   end
 
-  def test_timeout_data_no_queue
+  def __test_timeout_data_no_queue
     test_timeout_in_data_phase(queue_requests: false)
   end
 
index 59fbcd3af495360c64ed4bee2d0251c812e84b59..e93d41cececfb2223798154faddaea41e84e19fc 100644 (file)
@@ -308,7 +308,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