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

Bug 827212

Summary: dev-java/icu4j-70.1: fails tests on jdk-1.8
Product: Gentoo Linux Reporter: Sam James <sam>
Component: Current packagesAssignee: Java team <java>
Status: CONFIRMED ---    
Severity: normal Keywords: PullRequest, TESTFAILURE
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/23075
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 825746    
Attachments: build.log

Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-25 02:12:04 UTC
Created attachment 756136 [details]
build.log

There were 21 failures:
1) TestICUEquivalent(com.ibm.icu.dev.test.localespi.BreakIteratorTest)
java.lang.AssertionError: FAIL: Different boundaries (jdk=85,icu=81direction=forward) for text:
International Components for Unicode (ICU) is an open source project of mature C/C++ and Java libraries for Unicode support, software internationalization and software globalization. ICU is widely portable to many operating systems and environments. It gives applications the same results on all platforms and between C/C++ and Java software. The ICU project is an open source development project that is sponsored, supported and used by IBM and many other companies.
	at org.junit.Assert.fail(Assert.java:89)
	at com.ibm.icu.dev.test.AbstractTestLog.errln(AbstractTestLog.java:80)
	at com.ibm.icu.dev.test.localespi.BreakIteratorTest.compareBreaks(BreakIteratorTest.java:205)
	at com.ibm.icu.dev.test.localespi.BreakIteratorTest.TestICUEquivalent(BreakIteratorTest.java:185)
2) TestGetInstance(com.ibm.icu.dev.test.localespi.BreakIteratorTest)
java.lang.AssertionError: FAIL: getCharacterInstance returned JDK BreakIterator for locale ar_AE_ICU4J
	at org.junit.Assert.fail(Assert.java:89)
	at com.ibm.icu.dev.test.AbstractTestLog.errln(AbstractTestLog.java:80)
	at com.ibm.icu.dev.test.localespi.BreakIteratorTest.checkGetInstance(BreakIteratorTest.java:105)
	at com.ibm.icu.dev.test.localespi.BreakIteratorTest.TestGetInstance(BreakIteratorTest.java:37)
3) TestCollationKeyword(com.ibm.icu.dev.test.localespi.CollatorTest)
java.lang.AssertionError: FAIL: The collation type is not phonebook
	at org.junit.Assert.fail(Assert.java:89)
	at com.ibm.icu.dev.test.AbstractTestLog.errln(AbstractTestLog.java:80)
	at com.ibm.icu.dev.test.localespi.CollatorTest.TestCollationKeyword(CollatorTest.java:154)
4) TestICUEquivalent(com.ibm.icu.dev.test.localespi.CollatorTest)
java.lang.AssertionError: FAIL: Different results for [text1=がふぇ,text2=カフェ) for locale en_US with strength TERITIARY - Result (jdk=-1,icu=1)
	at org.junit.Assert.fail(Assert.java:89)
	at com.ibm.icu.dev.test.AbstractTestLog.errln(AbstractTestLog.java:80)
	at com.ibm.icu.dev.test.localespi.CollatorTest.checkCollation(CollatorTest.java:117)
	at com.ibm.icu.dev.test.localespi.CollatorTest.TestICUEquivalent(CollatorTest.java:95)
5) TestGetInstance(com.ibm.icu.dev.test.localespi.CollatorTest)
java.lang.AssertionError: FAIL: getInstance returned JDK Collator for locale ar_AE_ICU4J
	at org.junit.Assert.fail(Assert.java:89)
	at com.ibm.icu.dev.test.AbstractTestLog.errln(AbstractTestLog.java:80)
	at com.ibm.icu.dev.test.localespi.CollatorTest.TestGetInstance(CollatorTest.java:57)
6) TestCurrencySymbols(com.ibm.icu.dev.test.localespi.CurrencyNameTest)
java.lang.AssertionError: FAIL: Currency symbol for DOP by ICU is RD$, but got $ in locale es_DO_ICU4J
	at org.junit.Assert.fail(Assert.java:89)
	at com.ibm.icu.dev.test.AbstractTestLog.errln(AbstractTestLog.java:80)
	at com.ibm.icu.dev.test.localespi.CurrencyNameTest.TestCurrencySymbols(CurrencyNameTest.java:99)
7) TestCurrencyDisplayNames(com.ibm.icu.dev.test.localespi.CurrencyNameTest)
java.lang.AssertionError: FAIL: Currency display name for DOP by ICU is dominikanske pesos, but got dominikansk peso in locale nn__ICU4J
	at org.junit.Assert.fail(Assert.java:89)
	at com.ibm.icu.dev.test.AbstractTestLog.errln(AbstractTestLog.java:80)
	at com.ibm.icu.dev.test.localespi.CurrencyNameTest.TestCurrencyDisplayNames(CurrencyNameTest.java:161)
8) TestNynorsk(com.ibm.icu.dev.test.localespi.DateFormatSymbolsTest)
java.lang.AssertionError: FAIL: Different weekday name - index=2, nn_NO:måndag, no_NO_NY_ICU:måndag
	at org.junit.Assert.fail(Assert.java:89)
	at com.ibm.icu.dev.test.AbstractTestLog.errln(AbstractTestLog.java:80)
	at com.ibm.icu.dev.test.localespi.DateFormatSymbolsTest.TestNynorsk(DateFormatSymbolsTest.java:177)
9) TestICUEquivalent(com.ibm.icu.dev.test.localespi.DateFormatSymbolsTest)
java.lang.AssertionError: FAIL: Different array size returned by getMonthsfor locale en_US(jdksize=13,icusize=12)
	at org.junit.Assert.fail(Assert.java:89)
	at com.ibm.icu.dev.test.AbstractTestLog.errln(AbstractTestLog.java:80)
	at com.ibm.icu.dev.test.localespi.DateFormatSymbolsTest.compareArrays(DateFormatSymbolsTest.java:137)
	at com.ibm.icu.dev.test.localespi.DateFormatSymbolsTest.TestICUEquivalent(DateFormatSymbolsTest.java:73)
10) TestCalendarKeyword(com.ibm.icu.dev.test.localespi.DateFormatSymbolsTest)
java.lang.AssertionError: FAIL: Calendar keyword was ignored
	at org.junit.Assert.fail(Assert.java:89)
	at com.ibm.icu.dev.test.AbstractTestLog.errln(AbstractTestLog.java:80)
	at com.ibm.icu.dev.test.localespi.DateFormatSymbolsTest.TestCalendarKeyword(DateFormatSymbolsTest.java:193)
11) TestICUEquivalent(com.ibm.icu.dev.test.localespi.DateFormatTest)
java.lang.AssertionError: FAIL: Different format results for locale en_US (dstyle=0,tstyle=0) at time 1199499330543 - JDK:Friday, January 4, 2008 6:15:30 PM Pacific Standard Time ICU:Friday, January 4, 2008 at 6:15:30 PM Pacific Standard Time
	at org.junit.Assert.fail(Assert.java:89)
	at com.ibm.icu.dev.test.AbstractTestLog.errln(AbstractTestLog.java:80)
	at com.ibm.icu.dev.test.localespi.DateFormatTest.TestICUEquivalent(DateFormatTest.java:139)
12) TestCalendarKeyword(com.ibm.icu.dev.test.localespi.DateFormatTest)
java.lang.AssertionError: FAIL: Calendar types is not Buddhist
	at org.junit.Assert.fail(Assert.java:89)
	at com.ibm.icu.dev.test.AbstractTestLog.errln(AbstractTestLog.java:80)
	at com.ibm.icu.dev.test.localespi.DateFormatTest.TestCalendarKeyword(DateFormatTest.java:210)
13) TestThaiDigit(com.ibm.icu.dev.test.localespi.DateFormatTest)
java.lang.AssertionError: FAIL: ICU DateFormat returned a result different from JDK for th_TH_TH
	at org.junit.Assert.fail(Assert.java:89)
	at com.ibm.icu.dev.test.AbstractTestLog.errln(AbstractTestLog.java:80)
	at com.ibm.icu.dev.test.localespi.DateFormatTest.TestThaiDigit(DateFormatTest.java:193)
14) TestKeywords(com.ibm.icu.dev.test.localespi.DecimalFormatSymbolsTest)
java.lang.AssertionError: FAIL: Different currency code - via JDK: USD, with ICU: EUR
	at org.junit.Assert.fail(Assert.java:89)
	at com.ibm.icu.dev.test.AbstractTestLog.errln(AbstractTestLog.java:80)
	at com.ibm.icu.dev.test.localespi.DecimalFormatSymbolsTest.TestKeywords(DecimalFormatSymbolsTest.java:174)
15) TestScriptNames(com.ibm.icu.dev.test.localespi.LocaleNameTest)
java.lang.AssertionError: FAIL: Script name by ICU is bengalsk, but got bengali for locale mni__#Beng in locale nn__ICU4J
	at org.junit.Assert.fail(Assert.java:89)
	at com.ibm.icu.dev.test.AbstractTestLog.errln(AbstractTestLog.java:80)
	at com.ibm.icu.dev.test.localespi.LocaleNameTest.TestScriptNames(LocaleNameTest.java:152)
16) TestLanguageNames(com.ibm.icu.dev.test.localespi.LocaleNameTest)
java.lang.AssertionError: FAIL: Language name by ICU is norsk nynorsk, but got nynorsk for locale nn in locale nn__ICU4J
	at org.junit.Assert.fail(Assert.java:89)
	at com.ibm.icu.dev.test.AbstractTestLog.errln(AbstractTestLog.java:80)
	at com.ibm.icu.dev.test.localespi.LocaleNameTest.TestLanguageNames(LocaleNameTest.java:90)
17) TestCountryNames(com.ibm.icu.dev.test.localespi.LocaleNameTest)
java.lang.AssertionError: FAIL: Country name by ICU is Saudi-Arabia, but got Saudi Arabia for locale ar_SA in locale nn__ICU4J
	at org.junit.Assert.fail(Assert.java:89)
	at com.ibm.icu.dev.test.AbstractTestLog.errln(AbstractTestLog.java:80)
	at com.ibm.icu.dev.test.localespi.LocaleNameTest.TestCountryNames(LocaleNameTest.java:198)
18) TestICUEquivalent(com.ibm.icu.dev.test.localespi.NumberFormatTest)
java.lang.AssertionError: FAIL: Different results for parsing double 0.0451 by NumberFormat(getInstance) in locale en_US - JDK:0.045 ICU:0.045
	at org.junit.Assert.fail(Assert.java:89)
	at com.ibm.icu.dev.test.AbstractTestLog.errln(AbstractTestLog.java:80)
	at com.ibm.icu.dev.test.localespi.NumberFormatTest.TestICUEquivalent(NumberFormatTest.java:243)
19) TestKeywords(com.ibm.icu.dev.test.localespi.NumberFormatTest)
java.lang.AssertionError: FAIL: JDK number format with Locale en_US_ICU4J_#u-cu-eur-nu-arab is $١٢٬٣٤٥٫٦٧, expected: ١٢٬٣٤٥٫٦٧ €
	at org.junit.Assert.fail(Assert.java:89)
	at com.ibm.icu.dev.test.AbstractTestLog.errln(AbstractTestLog.java:80)
	at com.ibm.icu.dev.test.localespi.NumberFormatTest.TestKeywords(NumberFormatTest.java:302)
20) TestTimeZoneNames(com.ibm.icu.dev.test.localespi.TimeZoneNameTest)
java.lang.AssertionError: FAIL: TimeZone name by ICU is normaltid for Hawaii og Aleutene, but got Hawaii-Aleutian Standard Time for time zone America/Adak in locale nn__ICU4J (daylight=false, style=LONG)
	at org.junit.Assert.fail(Assert.java:89)
	at com.ibm.icu.dev.test.AbstractTestLog.errln(AbstractTestLog.java:80)
	at com.ibm.icu.dev.test.localespi.TimeZoneNameTest.checkDisplayName(TimeZoneNameTest.java:154)
	at com.ibm.icu.dev.test.localespi.TimeZoneNameTest.checkDisplayNamePair(TimeZoneNameTest.java:92)
	at com.ibm.icu.dev.test.localespi.TimeZoneNameTest.TestTimeZoneNames(TimeZoneNameTest.java:67)
21) TestDataDrivenJDK(com.ibm.icu.dev.test.format.NumberFormatDataDrivenTest)
java.lang.AssertionError: line 696: Expected failure, but passed
test nan and infinity with multiplication
NaN	NaN	K
	at org.junit.Assert.fail(Assert.java:89)
	at com.ibm.icu.dev.test.AbstractTestLog.errln(AbstractTestLog.java:80)
	at com.ibm.icu.dev.test.format.DataDrivenNumberFormatTestUtility.showError(DataDrivenNumberFormatTestUtility.java:326)
	at com.ibm.icu.dev.test.format.DataDrivenNumberFormatTestUtility.run(DataDrivenNumberFormatTestUtility.java:254)
	at com.ibm.icu.dev.test.format.DataDrivenNumberFormatTestUtility.runFormatSuiteIncludingKnownFailures(DataDrivenNumberFormatTestUtility.java:137)
	at com.ibm.icu.dev.test.format.NumberFormatDataDrivenTest.TestDataDrivenJDK(NumberFormatDataDrivenTest.java:724)

FAILURES!!!
Tests run: 5439,  Failures: 21

----
# emerge --info
Portage 3.0.28 (python 3.9.8-final-0, default/linux/ppc64/17.0, gcc-11.2.0, glibc-2.33-r7, 5.10.78-gentoo-dist-hardened ppc64)
=================================================================
System uname: Linux-5.10.78-gentoo-dist-hardened-ppc64-POWER9_-architected-,_altivec_supported-with-glibc2.33
KiB Mem:    32931440 total,  10700524 free
KiB Swap:   67108860 total,  66091588 free
Timestamp of repository gentoo: Thu, 25 Nov 2021 01:21:28 +0000
sh bash 5.1_p8
ld GNU ld (Gentoo 2.37_p1 p0) 2.37
app-shells/bash:          5.1_p8::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.34.0-r3::gentoo
dev-lang/python:          3.9.8::gentoo
dev-lang/rust-bin:        1.56.1::gentoo
dev-util/cmake:           3.20.5::gentoo
sys-apps/baselayout:      2.7-r3::gentoo
sys-apps/openrc:          0.44.8::gentoo
sys-apps/sandbox:         2.25::gentoo
sys-devel/autoconf:       2.71-r1::gentoo
sys-devel/automake:       1.16.4::gentoo
sys-devel/binutils:       2.37_p1::gentoo
sys-devel/gcc:            11.2.0::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1

ACCEPT_KEYWORDS="ppc64"
ACCEPT_LICENSE="@FREE"
CBUILD="powerpc64-unknown-linux-gnu"
CFLAGS="-O2 -pipe -frecord-gcc-switches -fdiagnostics-show-option -fdiagnostics-color=always"
CHOST="powerpc64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -frecord-gcc-switches -fdiagnostics-show-option -fdiagnostics-color=always"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner --ask-enter-invalid --jobs=4 --load-average 10 --quiet-build --keep-going --with-bdeps=y --complete-graph --deep"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe -frecord-gcc-switches -fdiagnostics-show-option -fdiagnostics-color=always"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -frecord-gcc-switches -fdiagnostics-show-option -fdiagnostics-color=always"
GENTOO_MIRRORS="https://gentoo.osuosl.org/"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0"
MAKEOPTS="-j12 -l10"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl big-endian bzip2 cli crypt dbus dri elogind fortran gdbm ibm iconv ipv6 libglvnd ncurses nls nptl openmp pam pcre ppc64 readline seccomp split-usr ssl unicode xattr zlib" ABI_PPC="64" ADA_TARGET="gnat_2019" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="fbdev mga nv r128 radeon dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-25 04:17:37 UTC
Same failures everywhere and the previous ICU wasn't any better so went ahead w/ stabilisation.
Comment 2 Larry the Git Cow gentoo-dev 2021-12-01 19:00:41 UTC
The bug has been referenced in the following commit(s):

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

commit ccc1dd0c0cb6ddb51fe30e366e1a9de4a5679c99
Author:     Volkmar W. Pogatzki <gentoo@pogatzki.net>
AuthorDate: 2021-11-25 11:04:07 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-12-01 19:00:31 +0000

    dev-java/icu4j: restrict tests for jdk-1.8
    
    Bug: https://bugs.gentoo.org/827212
    There were test failures which seem to be specific
    for jdk-1.8 and seem not to happen on jdk-11 or jdk-17
    
    Package-Manager: Portage-3.0.28, Repoman-3.0.3
    Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
    Closes: https://github.com/gentoo/gentoo/pull/23075
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-java/icu4j/icu4j-70.1.ebuild | 8 ++++++++
 1 file changed, 8 insertions(+)