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

Ubuntu Build Pipeline fails in netcoreapp3.1 #1654

Open
linkdotnet opened this issue Jan 15, 2025 · 3 comments
Open

Ubuntu Build Pipeline fails in netcoreapp3.1 #1654

linkdotnet opened this issue Jan 15, 2025 · 3 comments

Comments

@linkdotnet
Copy link
Collaborator

The CI fails with:

Couldn't find a valid ICU package installed on the system

Testhost process for source(s) '/home/runner/work/bUnit/bUnit/tests/bunit.web.tests/bin/Release/netcoreapp3.1/Bunit.Web.Tests.dll' exited with error: Process terminated. Couldn't find a valid ICU package installed on the system. Set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support.
   at System.Environment.FailFast(System.String)
   at System.Globalization.GlobalizationMode.GetGlobalizationInvariantMode()
   at System.Globalization.GlobalizationMode..cctor()
   at System.Globalization.CultureData.CreateCultureWithInvariantData()
   at System.Globalization.CultureData.get_Invariant()
   at System.Globalization.CultureInfo..cctor()
   at System.String.ToUpperInvariant()
   at System.Diagnostics.Tracing.EventSource.GetGuid(System.Type)
   at System.Diagnostics.Tracing.EventSource..ctor(System.Diagnostics.Tracing.EventSourceSettings, System.String[])
   at System.Diagnostics.Tracing.EventSource..ctor()
   at Microsoft.VisualStudio.TestPlatform.CoreUtilities.Tracing.TestPlatformEventSource..ctor()
   at Microsoft.VisualStudio.TestPlatform.CoreUtilities.Tracing.TestPlatformEventSource..cctor()
   at Microsoft.VisualStudio.TestPlatform.CoreUtilities.Tracing.TestPlatformEventSource.get_Instance()
   at Microsoft.VisualStudio.TestPlatform.TestHost.Program.Main(System.String[])
. Please check the diagnostic logs for more information.

Only onnetcoreapp3.1. For example here: https://github.com/bUnit-dev/bUnit/actions/runs/12791740053/job/35660541818?pr=1653

All other target frameworks are working just fine. This happens only on Ubuntu.

The solution might be

export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1

For the ubuntu runner.

Source: https://stackoverflow.com/a/64370938/1892523

@egil
Copy link
Member

egil commented Jan 15, 2025

yeah saw that. perhaps we should make a v2 release that just cuts old out of support versions out and get ourselves out of all the troubles. then our perpetual v2 branch can be renamend to big-vnext instead :)

@linkdotnet
Copy link
Collaborator Author

If we keep that branch name then yes, otherwise no :)

we even might wanna keep all „old“ if NET6-0-AND-Older so we don’t have 24244227 merge conflicts

@egil
Copy link
Member

egil commented Jan 15, 2025

Lets look at this on friday and see what makes sense :)

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

No branches or pull requests

2 participants