Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels