Skip to content

Commit 8551960

Browse files
committed
[SPARK-56025][INFRA] Install remotes R package for spark-test-image/(lint|docs|sparkr)/Dockerfile
This PR aims to recover the CI by installing `remotes` R package for the following Dockerfiles. - dev/spark-test-image/lint/Dockerfile - dev/spark-test-image/docs/Dockerfile - dev/spark-test-image/sparkr/Dockerfile Currently, `master` branch is broken due to the new `devtools` 2.5.0 release. This PR aims to installation `remotes` package explicitly because we cannot pin `devtools` itself. - https://github.com/r-lib/devtools/releases/tag/v2.5.0 (2026-03-16) <img width="754" height="263" alt="Screenshot 2026-03-16 at 23 57 25" src="https://github.com/user-attachments/assets/c5b927a4-fe02-490a-866d-1f43460499f2" /> https://github.com/apache/spark/actions/runs/23180660599/job/67352803326 ``` 801.6 Error in devtools::install_version("pkgdown", version = "2.0.1", repos = "https://cloud.r-project.org/") : 801.6 The package "remotes" is required. ``` No. Recover the CIs. Generated-by: Claude Code (claude-opus-4-6) Closes #54853 from dongjoon-hyun/SPARK-56025. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Kousuke Saruta <[email protected]> (cherry picked from commit 54164e9) Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent 021c4a5 commit 8551960

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

dev/spark-test-image/docs/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ LABEL org.opencontainers.image.ref.name="Apache Spark Infra Image for Documentat
2424
# Overwrite this label to avoid exposing the underlying Ubuntu OS version label
2525
LABEL org.opencontainers.image.version=""
2626

27-
ENV FULL_REFRESH_DATE=20250616
27+
ENV FULL_REFRESH_DATE=20260316
2828

2929
ENV DEBIAN_FRONTEND=noninteractive
3030
ENV DEBCONF_NONINTERACTIVE_SEEN=true
@@ -68,7 +68,7 @@ RUN apt-get update && apt-get install -y \
6868

6969

7070
# See more in SPARK-39959, roxygen2 < 7.2.1
71-
RUN Rscript -e "install.packages(c('devtools', 'knitr', 'markdown', 'rmarkdown', 'testthat'), repos='https://cloud.r-project.org/')" && \
71+
RUN Rscript -e "install.packages(c('devtools', 'knitr', 'markdown', 'rmarkdown', 'testthat', 'remotes'), repos='https://cloud.r-project.org/')" && \
7272
Rscript -e "devtools::install_version('roxygen2', version='7.2.0', repos='https://cloud.r-project.org')" && \
7373
Rscript -e "devtools::install_version('pkgdown', version='2.0.1', repos='https://cloud.r-project.org')" && \
7474
Rscript -e "devtools::install_version('preferably', version='0.4', repos='https://cloud.r-project.org')"

dev/spark-test-image/lint/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ LABEL org.opencontainers.image.ref.name="Apache Spark Infra Image for Linter"
2424
# Overwrite this label to avoid exposing the underlying Ubuntu OS version label
2525
LABEL org.opencontainers.image.version=""
2626

27-
ENV FULL_REFRESH_DATE=20250618
27+
ENV FULL_REFRESH_DATE=20260316
2828

2929
ENV DEBIAN_FRONTEND=noninteractive
3030
ENV DEBCONF_NONINTERACTIVE_SEEN=true
@@ -59,7 +59,7 @@ RUN apt-get update && apt-get install -y \
5959
zlib1g-dev \
6060
&& rm -rf /var/lib/apt/lists/*
6161

62-
RUN Rscript -e "install.packages(c('devtools', 'knitr', 'markdown', 'rmarkdown', 'testthat'), repos='https://cloud.r-project.org/')" \
62+
RUN Rscript -e "install.packages(c('devtools', 'knitr', 'markdown', 'rmarkdown', 'testthat', 'remotes'), repos='https://cloud.r-project.org/')" \
6363
&& Rscript -e "devtools::install_version('pkgdown', version='2.0.1', repos='https://cloud.r-project.org')" \
6464
&& Rscript -e "devtools::install_version('preferably', version='0.4', repos='https://cloud.r-project.org')" \
6565
&& Rscript -e "devtools::install_version('lintr', version='2.0.1', repos='https://cloud.r-project.org')"

dev/spark-test-image/sparkr/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ LABEL org.opencontainers.image.ref.name="Apache Spark Infra Image for SparkR"
2424
# Overwrite this label to avoid exposing the underlying Ubuntu OS version label
2525
LABEL org.opencontainers.image.version=""
2626

27-
ENV FULL_REFRESH_DATE=20241114
27+
ENV FULL_REFRESH_DATE=20260316
2828

2929
ENV DEBIAN_FRONTEND=noninteractive
3030
ENV DEBCONF_NONINTERACTIVE_SEEN=true
@@ -68,7 +68,7 @@ RUN add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu jammy-c
6868
# See more in SPARK-39959, roxygen2 < 7.2.1
6969
RUN Rscript -e "install.packages(c('devtools', 'knitr', 'markdown', \
7070
'rmarkdown', 'testthat', 'devtools', 'e1071', 'survival', 'arrow', \
71-
'ggplot2', 'mvtnorm', 'statmod', 'xml2'), repos='https://cloud.r-project.org/')" && \
71+
'ggplot2', 'mvtnorm', 'statmod', 'xml2', 'remotes'), repos='https://cloud.r-project.org/')" && \
7272
Rscript -e "devtools::install_version('roxygen2', version='7.2.0', repos='https://cloud.r-project.org')" && \
7373
Rscript -e "devtools::install_version('lintr', version='2.0.1', repos='https://cloud.r-project.org')" && \
7474
Rscript -e "devtools::install_version('pkgdown', version='2.0.1', repos='https://cloud.r-project.org')" && \

0 commit comments

Comments
 (0)