Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 723920

Summary: dev-ruby/rack-cache-1.13.0 fails tests
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Gentoo Ruby Team <ruby>
Status: RESOLVED FIXED    
Severity: normal CC: kingjon3377
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/rack/rack-cache/pull/14
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2020-05-19 07:01:47 UTC
This is an auto-filed bug because dev-ruby/rack-cache fails tests.
The issue was originally discovered on amd64, but it may be reproducible on other arches as well.
If you think that a different summary clarifies the issue better, feel free to change it.
Attached build log and emerge --info.

NOTE:
If you need further logs, feel free to ask.
Comment 1 Agostino Sarubbo gentoo-dev 2020-05-19 07:01:55 UTC
Created attachment 640290 [details]
build.log

build log and emerge --info
Comment 2 Jonathan Lovelace 2020-09-24 22:57:32 UTC
To save others the effort of reading the log to see if they have the same issue, the relevant segment of the build log is:

------
  1) Error:
Rack::Cache::Context#test_0078_passes if there was a metastore exception:
NameError: uninitialized constant Timeout
    test/context_test.rb:981:in `block (3 levels) in <top (required)>'
    test/test_helper.rb:170:in `request'
    test/test_helper.rb:177:in `get'
    test/context_test.rb:980:in `block (2 levels) in <top (required)>'

296 runs, 1408 assertions, 0 failures, 1 errors, 0 skips

Focus on failing tests:
mtest test/context_test.rb:970
------

For me, this is rack-cache-1.12.0, and this failure only occurs for ruby26, passing for ruby25.
Comment 3 Agostino Sarubbo gentoo-dev 2022-08-31 05:12:52 UTC
tinderbox_musl has reproduced this issue with version 1.13.0 - Updating summary.
Comment 4 Hans de Graaff gentoo-dev Security 2022-09-03 08:33:19 UTC
I can't reproduce this.
Comment 5 Larry the Git Cow gentoo-dev 2023-04-03 03:03:43 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=873608c1ca25d045b7068ab2a25063d920be3001

commit 873608c1ca25d045b7068ab2a25063d920be3001
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-04-03 02:35:10 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-04-03 03:02:58 +0000

    dev-ruby/rack-cache: enable ruby32, fix tests, use modern mocha
    
    - Enable ruby32
    - Fix test failure which shows up for some folks (missing timeout require)
    - Update mocha dep & patch mocha require accordingly (upstream patch)
    
    Closes: https://bugs.gentoo.org/723920
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/rack-cache-1.13.0-mocha2.patch           | 20 +++++++++
 .../files/rack-cache-1.13.0-test-require.patch     | 28 ++++++++++++
 dev-ruby/rack-cache/rack-cache-1.13.0-r1.ebuild    | 51 ++++++++++++++++++++++
 3 files changed, 99 insertions(+)