Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NumberFormatter: Disable test for currencyPlural that breaks on Ubuntu 14.04 #1537

Merged
merged 1 commit into from May 7, 2018

Conversation

spevans
Copy link
Collaborator

@spevans spevans commented Apr 25, 2018

  • Cause could be ICU issues.

This looks to be causing the build to fail here https://ci.swift.org/job/oss-swift-package-linux-ubuntu-14_04/1594/console

@spevans
Copy link
Collaborator Author

spevans commented Apr 25, 2018

cc @shahmishal @itaiferber

@itaiferber
Copy link
Contributor

itaiferber commented Apr 25, 2018

@spevans Does the whole test need to be commented out? This sounds bizarre to me but I do see other .currency and .currencyPlural tests whose contents are commented out referencing SR-250. (I guess the tests are so old the value was called .CurrencyPluralStyle.) Even then, though — why would this be causing 27993 Illegal instruction (core dumped) "$@"?

This is in running the test, not compiling it. Wouldn't surprise me then if this is due to ICU mismatch.

@spevans
Copy link
Collaborator Author

spevans commented Apr 25, 2018

TBH its hard to tell but I can't really think of another way of testing it unless we could get ubuntu-14.04 CI added to the normal swift-corelibs-foundation swift-ci test on jenkins. (I don't have access to 14.04 locally)

@spevans
Copy link
Collaborator Author

spevans commented Apr 25, 2018

I was just guessing at ICU but I believe the version shipped with 14.04 is quite old and has had issues in the past as you have noted above.

@parkera
Copy link
Member

parkera commented May 4, 2018

Do we have a way to continue to run this on newer ICU versions?

@spevans
Copy link
Collaborator Author

spevans commented May 4, 2018

Swift on Linux can be built whilst compiling a newer version of ICU using the --libicu options to swift-build-impl. I have also had success building swift against Apple's version of ICU (available at https://opensource.apple.com/tarballs/ICU/ICU-59152.0.1.tar.gz) which also fixed the issues in https://bugs.swift.org/browse/SR-250. One of these is probably the only solution to carry on supporting Ubuntu 14.04. Personally I would aim to use Apple's version and always build it as part of the swift build since it would mean the same version is used on all platforms.

@alblue
Copy link
Contributor

alblue commented May 4, 2018

You could modify the implementation of the test function to look for a line DISTRIB_CODENAME=trusty in /etc/lsb-release and then just skip the contents of the test. That way it would continue to run for other platforms and other versions of Ubuntu.

@parkera
Copy link
Member

parkera commented May 4, 2018

@spevans A long term goal I have is to get that Apple ICU imported into the swift tree, so that on Linux we can all use the same one regardless of which platform we're on. The stdlib could also depend on it.

@shahmishal
Copy link
Member

@parkera @itaiferber Can we merge this PR? We have not been able to release new toolchain since April 25th.

@shahmishal
Copy link
Member

@swift-ci test

@itaiferber
Copy link
Contributor

@shahmishal We should merge this once CI passes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants