Repository navigation
ci: install tzdata in the Alpine CI image - #5818
Merged
jamescrosswell merged 2 commits intoOct 27, 2026
Merged
Conversation
The linux-musl CI image has no time zone database, so only UTC resolves and tests that need a real IANA zone are skipped on musl. Refs getsentry#5756 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
schalkpienaar
marked this pull request as ready for review
October 27, 2026 03:45
schalkpienaar
requested review from
jamescrosswell and
ric-oliv
as code owners
October 27, 2026 03:45
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5818 +/- ##
=======================================
Coverage 76.12% 76.12%
=======================================
Files 528 528
Lines 19579 19579
Branches 3829 3829
=======================================
+ Hits 14904 14905 +1
Misses 3792 3792
+ Partials 883 882 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
jamescrosswell
self-requested a review
October 27, 2026 08:15
jamescrosswell
approved these changes
Oct 27, 2026
jamescrosswell
left a comment
Collaborator
There was a problem hiding this comment.
LGTM - thank you!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Installs
tzdatain the Alpine image thelinux-muslCI jobs run in (ghcr.io/getsentry/sentry-dotnet-alpine:3.21). Without it,/usr/share/zoneinfodoesn't exist, only UTC resolves, and tests that need a real IANA zone are skipped on musl viaTestEnvironment.HasTimeZone.This is the first of two PRs for the issue.
alpine.ymlonly rebuilds and pushes the image after a change to.github/alpine/*lands onmain, so CI on this PR still runs against the old image. A follow-up PR will remove theHasTimeZoneskips once the new image is published.Refs #5756
Testing
Built the image locally and checked the zone database is present:
docker build --build-arg BASE=alpine:3.21 -t sentry-dotnet-alpine:tzdata .github/alpine docker run --rm sentry-dotnet-alpine:tzdata -c 'ls /usr/share/zoneinfo/America/New_York && TZ=America/New_York date'Then ran
Sentry.Hangfire.Tests(net10.0,NO_MOBILE=true) inside the image: 59 passed, 0 skipped. That includes the tests currently skipped on musl:HangfireTests.ExecuteRecurringJob_SendMonitorConfigEnabled_CapturesCheckInWithMonitorConfigServerFilterTests.OnPerforming_RecurringJobWithSendMonitorConfigEnabled_SendsMonitorConfig(Europe/Berlin)ServerFilterTests.ToIanaTimeZoneId_HangfireTimeZoneId_ReturnsIanaIdOrNull(Europe/Berlin,W. Europe Standard Time)#skip-changelog
🤖 Generated with Claude Code