Skip to content

Conversation

@tommysor
Copy link
Contributor

This change is to allow running of tests for System.Runtime in newly created codespace.

Current behavior when creating new codespace with configuration Libraries/Runtime development (prebuilt)

cd /workspaces/runtime/src/libraries/System.Runtime/tests/System.Runtime.Tests
# /workspaces/runtime/docs/workflow/building/libraries/README.md (Quick Start ; Iterating on System.Private.CoreLib changes)
/workspaces/runtime/build.sh clr+libs -rc Release
/workspaces/runtime/build.sh clr.corelib+clr.nativecorelib+libs.pretest -rc Release
dotnet build /t:test

Gives test result with 100 failures similar to

<test name="System.Tests.TimeZoneInfoTests.TimeZoneDisplayNames_Unix" type="System.Tests.TimeZoneInfoTests" method="TimeZoneDisplayNames_Unix" time="0" result="Fail">
  <failure exception-type="System.TypeInitializationException">
    <message><![CDATA[System.TypeInitializationException : The type initializer for 'System.Tests.TimeZoneInfoTests' threw an exception.\n---- System.TimeZoneNotFoundException : The time zone ID 'Europe/London' was not found on the local computer.\n-------- System.IO.DirectoryNotFoundException : Could not find a part of the path '/usr/share/zoneinfo/Europe/London'.]]></message>

Workaround

sudo apt-get update; sudo DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata

@ghost
Copy link

ghost commented Feb 25, 2024

Tagging subscribers to this area: @dotnet/area-infrastructure-libraries
See info in area-owners.md if you want to be subscribed.

Issue Details

This change is to allow running of tests for System.Runtime in newly created codespace.

Current behavior when creating new codespace with configuration Libraries/Runtime development (prebuilt)

cd /workspaces/runtime/src/libraries/System.Runtime/tests/System.Runtime.Tests
# /workspaces/runtime/docs/workflow/building/libraries/README.md (Quick Start ; Iterating on System.Private.CoreLib changes)
/workspaces/runtime/build.sh clr+libs -rc Release
/workspaces/runtime/build.sh clr.corelib+clr.nativecorelib+libs.pretest -rc Release
dotnet build /t:test

Gives test result with 100 failures similar to

<test name="System.Tests.TimeZoneInfoTests.TimeZoneDisplayNames_Unix" type="System.Tests.TimeZoneInfoTests" method="TimeZoneDisplayNames_Unix" time="0" result="Fail">
  <failure exception-type="System.TypeInitializationException">
    <message><![CDATA[System.TypeInitializationException : The type initializer for 'System.Tests.TimeZoneInfoTests' threw an exception.\n---- System.TimeZoneNotFoundException : The time zone ID 'Europe/London' was not found on the local computer.\n-------- System.IO.DirectoryNotFoundException : Could not find a part of the path '/usr/share/zoneinfo/Europe/London'.]]></message>

Workaround

sudo apt-get update; sudo DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata
Author: tommysor
Assignees: -
Labels:

area-Infrastructure-libraries

Milestone: -

Copy link
Member

@danmoseley danmoseley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@danmoseley danmoseley merged commit 1a0e610 into dotnet:main Feb 25, 2024
@tommysor tommysor deleted the codespace_timezone branch February 25, 2024 22:18
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants