Description
I tried adding a test leg for Ubuntu 24.10 in #110476. It failed due to UCT
not being found. I didn't even know what UCT
was! I do now, it's just another timezone alias.
This is due to: https://discourse.ubuntu.com/t/ubuntu-24-04-lts-noble-numbat-release-notes/39890#p-99950-tzdata-package-split
Related:
- https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
- Could not find file '/usr/share/zoneinfo/Europe/Kiev'. dotnet-docker#6072
I propose that we change our tests to only rely on time zones in tzdata
. tzdata-legacy
seems like an OS compat shim that we have no responsibility to test while we do have a responsibility to validate correct behavior when only tzdata
is installed.
This is also evidence that we never integrated 24.04 into our CI. tzdata-legacy
is not installed in our test image for that version: https://github.com/dotnet/dotnet-buildtools-prereqs-docker/blob/98df6254f2637235a711add92d17286e8c44fd59/src/ubuntu/24.04/helix/Dockerfile#L59.
What I observed:
root@142a317ad02d:/# cat /etc/os-release | head -n 1
PRETTY_NAME="Ubuntu 24.10"
root@142a317ad02d:/# apt update && apt install -y tzdata
root@142a317ad02d:/# ls /usr/share/zoneinfo/
Africa Australia Etc MET WET tzdata.zi
America CET Europe MST iso3166.tab zone.tab
Antarctica CST6CDT Factory MST7MDT leap-seconds.list zone1970.tab
Arctic EET GMT PST8PDT leapseconds zonenow.tab
Asia EST HST Pacific localtime
Atlantic EST5EDT Indian UTC posixrules
root@142a317ad02d:/# apt install -y tzdata-legacy
Installing:
tzdata-legacy
root@142a317ad02d:/# ls /usr/share/zoneinfo/
Africa Cuba GMT+0 Kwajalein Poland Zulu
America EET GMT-0 Libya Portugal iso3166.tab
Antarctica EST GMT0 MET ROC leap-seconds.list
Arctic EST5EDT Greenwich MST ROK leapseconds
Asia Egypt HST MST7MDT Singapore localtime
Atlantic Eire Hongkong Mexico Turkey posixrules
Australia Etc Iceland NZ UCT right
Brazil Europe Indian NZ-CHAT US tzdata.zi
CET Factory Iran Navajo UTC zone.tab
CST6CDT GB Israel PRC Universal zone1970.tab
Canada GB-Eire Jamaica PST8PDT W-SU zonenow.tab
Chile GMT Japan Pacific WET