Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 858809 - dev-ruby/stringex-2.8.5-r2 fails tests (I18n::InvalidLocale: :en is not a valid locale)
Summary: dev-ruby/stringex-2.8.5-r2 fails tests (I18n::InvalidLocale: :en is not a val...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2022-07-18 14:35 UTC by Agostino Sarubbo
Modified: 2023-06-12 18:20 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,118.99 KB, text/plain)
2022-07-18 14:35 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-07-18 14:35:27 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-ruby/stringex-2.8.5-r2 fails tests.
Discovered on: amd64 (internal ref: ci)
Comment 1 Agostino Sarubbo gentoo-dev 2022-07-18 14:35:29 UTC
Created attachment 792158 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-07-18 14:35:30 UTC
Error(s) that match a know pattern:


Error: test_apostrophes(BasicLatinTest): I18n::InvalidLocale: :en is not a valid locale
Error: test_asterisks(BasicLatinTest): I18n::InvalidLocale: :en is not a valid locale
Error: test_bars(BasicLatinTest): I18n::InvalidLocale: :en is not a valid locale
Error: test_circumflexes(BasicLatinTest): I18n::InvalidLocale: :en is not a valid locale
Error: test_colons(BasicLatinTest): I18n::InvalidLocale: :en is not a valid locale
Error: test_commas(BasicLatinTest): I18n::InvalidLocale: :en is not a valid locale
Error: test_dotleader(BasicLatinTest): I18n::InvalidLocale: :en is not a valid locale
Error: test_ellipsis(BasicLatinTest): I18n::InvalidLocale: :en is not a valid locale
Error: test_emdash(BasicLatinTest): I18n::InvalidLocale: :en is not a valid locale
Error: test_endash(BasicLatinTest): I18n::InvalidLocale: :en is not a valid locale
Error: test_equals(BasicLatinTest): I18n::InvalidLocale: :en is not a valid locale
Error: test_exclamation_marks(BasicLatinTest): I18n::InvalidLocale: :en is not a valid locale
Error: test_grave_accents(BasicLatinTest): I18n::InvalidLocale: :en is not a valid locale
Error: test_greater_thans(BasicLatinTest): I18n::InvalidLocale: :en is not a valid locale
Error: test_greek_letters(BasicGreekTest): I18n::InvalidLocale: :en is not a valid locale
Error: test_greek_words(BasicGreekTest): I18n::InvalidLocale: :en is not a valid locale
Error: test_hyphens(BasicLatinTest): I18n::InvalidLocale: :en is not a valid locale
Error: test_less_thans(BasicLatinTest): I18n::InvalidLocale: :en is not a valid locale
Error: test_periods(BasicLatinTest): I18n::InvalidLocale: :en is not a valid locale
Error: test_question_marks(BasicLatinTest): I18n::InvalidLocale: :en is not a valid locale
Error: test_quotation_marks(BasicLatinTest): I18n::InvalidLocale: :en is not a valid locale
Error: test_related_letters(BasicLatinTest): I18n::InvalidLocale: :en is not a valid locale
Error: test_semicolons(BasicLatinTest): I18n::InvalidLocale: :en is not a valid locale
Error: test_slashes(BasicLatinTest): I18n::InvalidLocale: :en is not a valid locale
Error: test_spaces(BasicLatinTest): I18n::InvalidLocale: :en is not a valid locale
Error: test_tildes(BasicLatinTest): I18n::InvalidLocale: :en is not a valid locale
Error: test_underscores(BasicLatinTest): I18n::InvalidLocale: :en is not a valid locale
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-02 00:52:27 UTC
I can't for the life of me understand what's going on here. It picks up all the *other* locales fine, just not en.
Comment 4 Larry the Git Cow gentoo-dev 2023-04-02 01:51:32 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=858ed927ac580d6310674e158ca35010eb7daa74

commit 858ed927ac580d6310674e158ca35010eb7daa74
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-04-02 01:47:16 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-04-02 01:50:31 +0000

    dev-ruby/stringex: install locales
    
    Noticed when investigating the test failure bug, although this
    *does not* fix it.
    
    Bug: https://bugs.gentoo.org/858809
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-ruby/stringex/stringex-2.8.5-r3.ebuild | 36 ++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-12 02:31:11 UTC
I'm still completely beat on this. I spent a while trying again and I don't get it.

I feel like it's got to be something to do with our layout for gem installation? Maybe?
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-12 02:31:34 UTC
(In reply to Sam James from comment #5)
> I'm still completely beat on this. I spent a while trying again and I don't
> get it.
> 
> I feel like it's got to be something to do with our layout for gem
> installation? Maybe?

btw: it'd be very helpful to know if this does pass in some environments, so please comment if it does
Comment 7 Hans de Graaff gentoo-dev Security 2023-06-12 16:33:57 UTC
(In reply to Sam James from comment #6)

> btw: it'd be very helpful to know if this does pass in some environments, so
> please comment if it does

It only fails for me for ruby32.
Comment 8 Hans de Graaff gentoo-dev Security 2023-06-12 17:24:34 UTC
(In reply to Hans de Graaff from comment #7)
> (In reply to Sam James from comment #6)
> 
> > btw: it'd be very helpful to know if this does pass in some environments, so
> > please comment if it does
> 
> It only fails for me for ruby32.

It looks to be related to test/unit/acts_as_url_integration_test.rb being removed or not. Possibly that affects i18n loading somehow? Rather than trying to track this down further I think we should just remove those failing tests when activerecord is not available.
Comment 9 Larry the Git Cow gentoo-dev 2023-06-12 18:20:58 UTC
The bug has been closed via the following commit(s):

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

commit d7891c4717199b13d7ed61ac96599f47ab25b9d8
Author:     Hans de Graaff <graaff@gentoo.org>
AuthorDate: 2023-06-12 18:20:03 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2023-06-12 18:20:55 +0000

    dev-ruby/stringex: fix tests failing without activerecord
    
    Closes: https://bugs.gentoo.org/858809
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>

 dev-ruby/stringex/stringex-2.8.6.ebuild | 3 +++
 1 file changed, 3 insertions(+)