Public bug reported:

[Impact]

The ruby2.5 DEP-8 tests are failing since ever, so there is no good way
to caught regressions automatically (via autopkgtest). This impacts our
ability to provide updates to this package more reliably.

Below is a list of the failing tests and the reason:

* run-all: This DEP-8 test runs upstream tests. Some tests are failing
because the tzdata package was updated in Bionic, a couple of upstream
patches need to be backported to fix this, they are:

https://github.com/ruby/ruby/commit/2965c2d4df7
https://github.com/ruby/ruby/commit/584b5929f9b7

Take a look at this upstream bug: https://bugs.ruby-
lang.org/issues/14655

* bundled-gems: This DEP-8 test checks if some gems supposed to be
bundled with the interpreter (in our case they are separate packages)
are available in the system with the expected version constraints. Some
gems were shipped in Bionic with versions not expected by the ruby
upstream maintainers, and they are making this test to fail:

  - power_assert: upstream expects version >= 1.1.1. Bionic has version 0.3.0-1 
but actually it contains 0.2.7, look at the gemspec: 
/usr/share/rubygems-integration/all/specifications/power_assert-0.2.7.gemspec
  - test-unit: upstream expects version >= 3.2.7. Bionic has version 3.2.5-1.
  - xmlrpc: upstream expects version >= 0.3.0. This package is not available in 
Bionic, just from Focal onwards.

We should ignore them since there is nothing we can do at this point.
AFAIK there is no severe issue caused by those versions mismatch.

* rubyconfig: This DEP-8 test checks for the ruby config. Currently it
fails because of a call to dpkg-architecture which is printing a warning
to stderr:

$ dpkg-architecture -qDEB_HOST_MULTIARCH
dpkg-architecture: warning: cannot determine CC system type, falling back to 
default (native compilation)
x86_64-linux-gnu

An allow-stderr restriction can be added to fix this.

[Test Case]

At the moment ruby2.5 FTBFS in Bionic, so first apply the fix proposed
in LP #1903902 and then run autopkgtest against it:

$ dget -u 
https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/ruby2.5/2.5.1-1ubuntu1.6/ruby2.5_2.5.1-1ubuntu1.6.dsc
$ cd ruby2.5-2.5.1
# Add tzdata as a build dependency
$ autopkgtest -U . -- lxd ubuntu-daily:bionic

Here is the autopkgtest output: https://paste.ubuntu.com/p/KGxzhhGRxC/

With the fixes proposed above the tests pass successfully.

[Potential Regression]

There is no regression since the tests have been failing. The proposed
changes are all related to tests only, except the TZ patches but they
fix some covered issues with a very specific TZ (Kiritimati). So if
there is room for a regression it will be related to TZ.

** Affects: ruby2.5 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1903905

Title:
  [SRU] ruby2.5 DEP-8 tests are failing in Bionic

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ruby2.5/+bug/1903905/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to