Skip to content

Ubuntu Build Pipeline fails in netcoreapp3.1 #1654

Open
@linkdotnet

Description

@linkdotnet

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions