Skip to content

Commit 0c6b47b

Browse files
authored
GH-55113: [CI][R] Install tzdata-legacy if available so tests are able to find required timezones (#55114)
### Rationale for this change GH runner upgrade from Ubuntu 24.04 to 26.04 made some R tests fail due to missing timezone. (Rhub) ### What changes are included in this PR? Install `tzdata-legacy` package if available to have the required timezone. ### Are these changes tested? Yes on CI ### Are there any user-facing changes? No ### Was AI used for this PR? In accordance to the [AI generation guidelines](https://arrow.apache.org/docs/dev/developers/overview.html#ai-generated-code), please disclose below whether and how AI was used in this PR. **PR code and description written by:** - [x] Human - [x] AI **Reviewed before submission by:** - [x] Human - [ ] AI - [ ] Not reviewed * GitHub Issue: #55113 Authored-by: Raúl Cumplido <[email protected]> Signed-off-by: Raúl Cumplido <[email protected]>
1 parent 2db0340 commit 0c6b47b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎ci/scripts/r_docker_configure.sh‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ else
8585
"$PACKAGE_MANAGER" install -y rsync cmake curl
8686
fi
8787

88+
# Newer Debian/Ubuntu require tzdata-legacy for our tests, install it if available.
89+
if [ "$PACKAGE_MANAGER" = "apt-get" ] && apt-cache show tzdata-legacy > /dev/null 2>&1; then
90+
apt-get install -y tzdata-legacy
91+
fi
92+
8893

8994
# Update clang version to latest available.
9095
# The rhub/ubuntu-clang image ships clang-15 but CRAN's debian-clang now uses

0 commit comments

Comments
 (0)