gem2deb-test-runner failures with ruby-defaults 1:3.3~ubuntu3

Bug #2077617 reported by Pushkar Kulkarni
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
camping (Ubuntu)
New
Undecided
Unassigned
origami-pdf (Ubuntu)
New
Undecided
Pushkar Kulkarni
ruby-archive-zip (Ubuntu)
New
Undecided
Pushkar Kulkarni
ruby-attr-encrypted (Ubuntu)
Fix Released
Undecided
Pushkar Kulkarni
ruby-barby (Ubuntu)
New
Undecided
Unassigned
ruby-chronic (Ubuntu)
Fix Released
Undecided
Pushkar Kulkarni
ruby-clockwork (Ubuntu)
Fix Released
Undecided
Pushkar Kulkarni
ruby-crass (Ubuntu)
Fix Released
Undecided
Pushkar Kulkarni
ruby-declarative-option (Ubuntu)
Fix Released
Undecided
Pushkar Kulkarni
ruby-default-value-for (Ubuntu)
Fix Released
Undecided
Pushkar Kulkarni
ruby-html2haml (Ubuntu)
Fix Released
Undecided
Pushkar Kulkarni
ruby-jsonpath (Ubuntu)
Fix Released
Undecided
Pushkar Kulkarni
ruby-launchy-shim (Ubuntu)
New
Undecided
Pushkar Kulkarni
ruby-memory-profiler (Ubuntu)
New
Undecided
Pushkar Kulkarni
ruby-representable (Ubuntu)
Fix Released
Undecided
Pushkar Kulkarni
ruby-safely-block (Ubuntu)
Fix Released
Undecided
Pushkar Kulkarni
ruby-slim (Ubuntu)
Fix Released
Undecided
Pushkar Kulkarni
ruby-toml (Ubuntu)
New
Undecided
Pushkar Kulkarni
ruby-uber (Ubuntu)
Fix Released
Undecided
Pushkar Kulkarni
rubygems-integration (Ubuntu)
New
Undecided
Pushkar Kulkarni

Bug Description

The autopkgtests of ruby-attr-encrypted that are run by the gem2deb-test-runner fail (e.g: [1]) with ruby-defaults 1:3.3~ubuntu3 due to a change in the behavior of the MiniTest gem. Ruby 3.3 comes with minitest 5.20.00. Startung version 5.19.0, the MiniTest class is no longer loaded by default. Either the use of "MiniTest" needs to be replaced by "Minitest" or env var MT_COMPAT needs to be defined.

-----

1088s /tmp/autopkgtest.MBvPc8/build.mV3/src/test/test_helper.rb:5:in `<top (required)>': uninitialized constant MiniTest (NameError)
1088s
1088s MiniTest::Test = MiniTest::Unit::TestCase
1088s ^^^^^^^^
1088s Did you mean? Minitest

----

[1] https://objectstorage.prodstack5.canonical.com/swift/v1/AUTH_0f9aae918d5b4744bf7b827671c86842/autopkgtest-oracular/oracular/amd64/r/ruby-attr-encrypted/20240820_142215_b81be@/log.gz

[2] https://docs.seattlerb.org/minitest/History_rdoc.html#label-5.19.0+-2F+2023-07-26

Related branches

Changed in ruby-attr-encrypted (Ubuntu):
assignee: nobody → Pushkar Kulkarni (pushkarnk)
Changed in ruby-archive-zip (Ubuntu):
assignee: nobody → Pushkar Kulkarni (pushkarnk)
summary: - autopkgtest failures with ruby-defaults 1:3.3~ubuntu3
+ gem2deb-test-runner failures with ruby-defaults 1:3.3~ubuntu3
description: updated
Revision history for this message
Pushkar Kulkarni (pushkarnk) wrote :

For now, we could wait for upstream projects to switch to using Minitest (instead of MiniTest) while using the MT_COMPAT solution.

description: updated
Changed in origami-pdf (Ubuntu):
assignee: nobody → Pushkar Kulkarni (pushkarnk)
tags: added: update-excuse
Changed in ruby-chronic (Ubuntu):
assignee: nobody → Pushkar Kulkarni (pushkarnk)
Changed in ruby-clockwork (Ubuntu):
assignee: nobody → Pushkar Kulkarni (pushkarnk)
Changed in ruby-crass (Ubuntu):
assignee: nobody → Pushkar Kulkarni (pushkarnk)
Changed in ruby-declarative-option (Ubuntu):
assignee: nobody → Pushkar Kulkarni (pushkarnk)
Changed in ruby-default-value-for (Ubuntu):
assignee: nobody → Pushkar Kulkarni (pushkarnk)
Changed in ruby-html2haml (Ubuntu):
assignee: nobody → Pushkar Kulkarni (pushkarnk)
Changed in ruby-jsonpath (Ubuntu):
assignee: nobody → Pushkar Kulkarni (pushkarnk)
Changed in ruby-launchy-shim (Ubuntu):
assignee: nobody → Pushkar Kulkarni (pushkarnk)
Changed in ruby-memory-profiler (Ubuntu):
assignee: nobody → Pushkar Kulkarni (pushkarnk)
Changed in ruby-representable (Ubuntu):
assignee: nobody → Pushkar Kulkarni (pushkarnk)
Changed in ruby-safely-block (Ubuntu):
assignee: nobody → Pushkar Kulkarni (pushkarnk)
Changed in ruby-slim (Ubuntu):
assignee: nobody → Pushkar Kulkarni (pushkarnk)
Changed in ruby-toml (Ubuntu):
assignee: nobody → Pushkar Kulkarni (pushkarnk)
Changed in ruby-uber (Ubuntu):
assignee: nobody → Pushkar Kulkarni (pushkarnk)
Changed in rubygems-integration (Ubuntu):
assignee: nobody → Pushkar Kulkarni (pushkarnk)
Revision history for this message
Athos Ribeiro (athos-ribeiro) wrote :

I wonder if this should be done in the upper layer instead (e.g., gem2deb or gem2deb-test-runner). At least during the transition. Thoughts?

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ruby-crass - 1.0.2-3ubuntu1

---------------
ruby-crass (1.0.2-3ubuntu1) oracular; urgency=medium

  * d/ruby-tests.rake: Define env var MT_COMPAT for compatibility
    with minitest 5.20.0 in Ruby 3.3 (LP: #2077617)

 -- Pushkar Kulkarni <email address hidden> Thu, 22 Aug 2024 13:04:35 +0530

Changed in ruby-crass (Ubuntu):
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ruby-chronic - 0.10.5-2ubuntu1

---------------
ruby-chronic (0.10.5-2ubuntu1) oracular; urgency=medium

  * d/ruby-tests.rb: Define env var MT_COMPAT for compatibility
    with Minitest 5.20.0 in Ruby 3.3 (LP: #2077617)

 -- Pushkar Kulkarni <email address hidden> Thu, 22 Aug 2024 12:54:15 +0530

Changed in ruby-chronic (Ubuntu):
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ruby-jsonpath - 1.1.0-1ubuntu1

---------------
ruby-jsonpath (1.1.0-1ubuntu1) oracular; urgency=medium

  * d/ruby-tests.rake: Define env var MT_COMPAT for compatibility
    with Minitest 5.20.0 in Ruby 3.3 (LP: #2077617)

 -- Pushkar Kulkarni <email address hidden> Thu, 22 Aug 2024 14:06:04 +0530

Changed in ruby-jsonpath (Ubuntu):
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ruby-clockwork - 3.0.1-1ubuntu1

---------------
ruby-clockwork (3.0.1-1ubuntu1) oracular; urgency=medium

  * d/ruby-tests.rake: Define env var MT_COMPAT for compatibility
    with Minitest 5.20.0 in Ruby 3.3 (LP: #2077617)

 -- Pushkar Kulkarni <email address hidden> Thu, 22 Aug 2024 13:00:35 +0530

Changed in ruby-clockwork (Ubuntu):
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ruby-safely-block - 0.2.1-2ubuntu1

---------------
ruby-safely-block (0.2.1-2ubuntu1) oracular; urgency=medium

  * d/ruby-tests.rake: Define env var MT_COMPAT for compatibility
    with Minitest 5.20.0 in Ruby 3.3 (LP: #2077617)

 -- Pushkar Kulkarni <email address hidden> Thu, 22 Aug 2024 14:18:45 +0530

Changed in ruby-safely-block (Ubuntu):
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ruby-default-value-for - 3.4.0-2ubuntu1

---------------
ruby-default-value-for (3.4.0-2ubuntu1) oracular; urgency=medium

  * d/ruby-tests.rake: Define env var MT_COMPAT for compatibility
    with Minitest 5.20.0 in Ruby 3.3 (LP: #2077617)

 -- Pushkar Kulkarni <email address hidden> Thu, 22 Aug 2024 13:56:07 +0530

Changed in ruby-default-value-for (Ubuntu):
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ruby-html2haml - 2.3.0-1ubuntu1

---------------
ruby-html2haml (2.3.0-1ubuntu1) oracular; urgency=medium

  * d/ruby-tests.rake: Define env var MT_COMPAT for compatibility
    with Minitest 5.20.0 in Ruby 3.3 (LP: #2077617)

 -- Pushkar Kulkarni <email address hidden> Thu, 22 Aug 2024 14:01:27 +0530

Changed in ruby-html2haml (Ubuntu):
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ruby-attr-encrypted - 3.1.0-4ubuntu1

---------------
ruby-attr-encrypted (3.1.0-4ubuntu1) oracular; urgency=medium

  * d/ruby-tests.rake: Define env var MT_COMPAT for compatibility
    with Minitest 5.20.0 in Ruby 3.3 (LP: #2077617)

 -- Pushkar Kulkarni <email address hidden> Thu, 22 Aug 2024 12:49:08 +0530

Changed in ruby-attr-encrypted (Ubuntu):
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ruby-declarative-option - 0.1.0-1.1ubuntu1

---------------
ruby-declarative-option (0.1.0-1.1ubuntu1) oracular; urgency=medium

  * d/ruby-tests.rake: Define env var MT_COMPAT for compatibility
    with Minitest 5.20.0 in Ruby 3.3 (LP: #2077617)

 -- Pushkar Kulkarni <email address hidden> Thu, 22 Aug 2024 13:17:04 +0530

Changed in ruby-declarative-option (Ubuntu):
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ruby-representable - 3.0.4-1.1ubuntu1

---------------
ruby-representable (3.0.4-1.1ubuntu1) oracular; urgency=medium

  * d/ruby-tests.rake: Define env var MT_COMPAT for compatibility
    with Minitest 5.20.0 in Ruby 3.3 (LP: #2077617)

 -- Pushkar Kulkarni <email address hidden> Thu, 22 Aug 2024 14:15:40 +0530

Changed in ruby-representable (Ubuntu):
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ruby-slim - 4.1.0-3ubuntu1

---------------
ruby-slim (4.1.0-3ubuntu1) oracular; urgency=medium

  * d/ruby-tests.rb: Define env var MT_COMPAT for compatibility
    with Minitest 5.20.0 in Ruby 3.3 (LP: #2077617)

 -- Pushkar Kulkarni <email address hidden> Thu, 22 Aug 2024 14:21:46 +0530

Changed in ruby-slim (Ubuntu):
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ruby-uber - 0.1.0-1.1ubuntu1

---------------
ruby-uber (0.1.0-1.1ubuntu1) oracular; urgency=medium

  * d/ruby-tests.rake: Define env var MT_COMPAT for compatibility
    with Minitest 5.20.0 in Ruby 3.3 (LP: #2077617)

 -- Pushkar Kulkarni <email address hidden> Thu, 22 Aug 2024 14:45:53 +0530

Changed in ruby-uber (Ubuntu):
status: New → Fix Released
Revision history for this message
Lucas Kanashiro (lucaskanashiro) wrote :

Regarding comment #2 from Athos: I wouldn't change gem2deb to add this temporary flag (to add retro-compatibility of Minitest) since 1) I'd say more than 1k packages uses gem2deb and 20 or so are facing this issue; and 2) this will be removed in the near future from upstream and gem2deb can start to produce some noise (or even a failure depending on how it is implemented), moreover, those packages will become FTBFS. This is more maintenance work for whoever is maintaining the ruby stack in Ubuntu.

The approach adopted in the Debian side and what I did in some of the package that I added a delta in Ubuntu is to actually patch the code to support the newer Minitest version (which is quite simple). With this solution, we can update Minitest to whatever version and the packages will keep building fine. Setting the flag for retro-compatibility is a solution that works from now until we update Minitest to a version which removes this flag.

With all that said, since we are late in the cycle I am welcoming all the help and happy to accept the retro-compatibility flag solution. Thanks Pushkar for submitting the patches, and Athos for sponsoring some of them. I'll check where Athos stopped and I will sponsor the rest.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.