This is an automated email from the ASF dual-hosted git repository.

thisisnic pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/main by this push:
     new 907f6c1a3c3 GH-55332: [CI][R] Remove clang-22 install from 
test-r-linux-as-cran (#55336)
907f6c1a3c3 is described below

commit 907f6c1a3c3863f5c6c9b9d6f64a2945e40ebd9c
Author: Nic Crane <[email protected]>
AuthorDate: Tue Nov 3 15:54:51 2026 +0000

    GH-55332: [CI][R] Remove clang-22 install from test-r-linux-as-cran (#55336)
    
    ### Rationale for this change
    
    Workaround to install clang-22 no longer relevant, breaks CI
    
    ### What changes are included in this PR?
    
    Remove it
    
    ### Are these changes tested?
    
    Will run CI
    
    ### Are there any user-facing changes?
    
    ### 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
    - [x] AI
    - [ ] Not reviewed
    
    * GitHub Issue: #55332
    
    Lead-authored-by: Nic Crane <[email protected]>
    Co-authored-by: Jonathan Keane <[email protected]>
    Signed-off-by: Nic Crane <[email protected]>
---
 ci/docker/linux-r.dockerfile      |  3 ---
 ci/scripts/r_docker_configure.sh  | 18 ------------------
 compose.yaml                      |  1 -
 dev/tasks/r/github.linux.cran.yml |  5 ++---
 4 files changed, 2 insertions(+), 25 deletions(-)

diff --git a/ci/docker/linux-r.dockerfile b/ci/docker/linux-r.dockerfile
index c0d5a69a94e..da378eac430 100644
--- a/ci/docker/linux-r.dockerfile
+++ b/ci/docker/linux-r.dockerfile
@@ -33,9 +33,6 @@ ENV R_PRUNE_DEPS=${r_prune_deps}
 ARG r_custom_ccache=false
 ENV R_CUSTOM_CCACHE=${r_custom_ccache}
 
-ARG r_update_clang=false
-ENV R_UPDATE_CLANG=${r_update_clang}
-
 ARG tz="UTC"
 ENV TZ=${tz}
 
diff --git a/ci/scripts/r_docker_configure.sh b/ci/scripts/r_docker_configure.sh
index 7c8a7c17196..3bc16a69a05 100755
--- a/ci/scripts/r_docker_configure.sh
+++ b/ci/scripts/r_docker_configure.sh
@@ -90,23 +90,5 @@ if [ "$PACKAGE_MANAGER" = "apt-get" ] && apt-cache show 
tzdata-legacy > /dev/nul
   apt-get install -y tzdata-legacy
 fi
 
-
-# Update clang version to latest available.
-# The rhub/ubuntu-clang image ships clang-15 but CRAN's debian-clang now uses
-# clang 22. Install clang-22 from LLVM's apt repos to match.
-if [ "$R_UPDATE_CLANG" = true ]; then
-  apt-get update -y --allow-releaseinfo-change
-  apt-get install -y gnupg
-  curl -fsSL https://apt.llvm.org/llvm-snapshot.gpg.key | gpg --dearmor -o 
/etc/apt/trusted.gpg.d/llvm.gpg
-  echo "deb https://apt.llvm.org/jammy/ llvm-toolchain-jammy-22 main" > 
/etc/apt/sources.list.d/llvm22.list
-  apt-get update -y --allow-releaseinfo-change
-  apt-get install -y clang-22 lld-22
-  # The rhub image hardcodes clang-15/clang++-15 in R's Makeconf, so installing
-  # clang-22 alone isn't enough: point R at the new compilers.
-  sed -i 's/clang++-15/clang++-22/g; s/clang-15/clang-22/g' "$(R 
RHOME)/etc/Makeconf"
-  echo "R is now using CC=$(R CMD config CC) CXX=$(R CMD config CXX)"
-  clang-22 --version
-fi
-
 # Workaround for html help install failure; see 
https://github.com/r-lib/devtools/issues/2084#issuecomment-530912786
 Rscript -e 'x <- file.path(R.home("doc"), "html"); if (!file.exists(x)) 
{dir.create(x, recursive=TRUE); file.copy(system.file("html/R.css", 
package="stats"), x)}'
diff --git a/compose.yaml b/compose.yaml
index 512fb8a5396..a3a65c4c2d0 100644
--- a/compose.yaml
+++ b/compose.yaml
@@ -1686,7 +1686,6 @@ services:
         tz: ${TZ}
         r_prune_deps: ${R_PRUNE_DEPS}
         r_custom_ccache: ${R_CUSTOM_CCACHE}
-        r_update_clang: ${R_UPDATE_CLANG}
     shm_size: *shm-size
     environment:
       <<: [*common, *sccache]
diff --git a/dev/tasks/r/github.linux.cran.yml 
b/dev/tasks/r/github.linux.cran.yml
index dace061111f..2e5528ff3fc 100644
--- a/dev/tasks/r/github.linux.cran.yml
+++ b/dev/tasks/r/github.linux.cran.yml
@@ -35,16 +35,15 @@ jobs:
         config:
           # See https://r-hub.github.io/containers/
           - { r_image: "ubuntu-gcc12" }  # ~ r-devel-linux-x86_64-debian-gcc
-          - { r_image: "ubuntu-clang", r_update_clang: true }  # ~ 
r-devel-linux-x86_64-debian-clang
+          - { r_image: "ubuntu-clang" }  # ~ r-devel-linux-x86_64-debian-clang
           - { r_image: "ubuntu-next" }  # ~ r-patched-linux-x86_64
           - { r_image: "ubuntu-release" }  # ~ r-release-linux-x86_64
-          - { r_image: "clang22", skip_vignettes: true }  # ~ 
r-devel-linux-x86_64-fedora-clang
+          - { r_image: "clang23", skip_vignettes: true }  # ~ 
r-devel-linux-x86_64-fedora-clang
     env:
       R_ORG: "rhub"
       R_IMAGE: {{ '${{ matrix.config.r_image }}' }}
       R_TAG: "latest"
       ARROW_R_DEV: "FALSE"
-      R_UPDATE_CLANG: {{ '${{ matrix.config.r_update_clang }}' }}
     steps:
       {{ macros.github_checkout_arrow()|indent }}
       {{ macros.github_install_archery()|indent }}

Reply via email to