You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "LuciferYang (via GitHub)" <gi...@apache.org> on 2026/04/21 06:58:47 UTC

[PR] [SPARK-56540][INFRA][4.1] Add libuv1-dev to CI Docker images to fix R package fs build failure [spark]

LuciferYang opened a new pull request, #55438:
URL: https://github.com/apache/spark/pull/55438

   ### What changes were proposed in this pull request?
   Add `libuv1-dev` to the `apt-get install` list in all five CI Dockerfiles that install R packages:
   
   - `dev/spark-test-image/sparkr/Dockerfile`
   - `dev/spark-test-image/lint/Dockerfile`
   - `dev/spark-test-image/docs/Dockerfile`
   - `dev/infra/Dockerfile`
   - `dev/create-release/spark-rm/Dockerfile.base`
   
   
   ### Why are the changes needed?
   The R package `fs` now requires system library `libuv` (`uv.h`). `fs` is a transitive dependency of both `rmarkdown` (via `sass` → `bslib`) and `testthat` (via `pkgload`).
   
   When the Docker layer cache is valid, the pre-built R packages are reused and everything works fine. But when the cache is invalidated (e.g. base image digest changes), the R packages are compiled from source. Without `libuv1-dev` installed, `fs` fails to configure:
   
   ```
   Configuration failed because libuv was not found. Try installing:
    * deb: libuv1-dev (Debian, Ubuntu, etc)
   ...
   <stdin>:1:10: fatal error: uv.h: No such file or directory
   ERROR: configuration failed for package 'fs'
   ```
   
   This triggers a cascade:
   
   ```
   fs (missing libuv) → FAIL
     └→ sass → FAIL
          └→ bslib → FAIL
               └→ rmarkdown → FAIL
     └→ pkgload → FAIL
          └→ testthat → FAIL
   ```
   
   The image build itself still "succeeds" because `install.packages()` in R does not return a non-zero exit code when individual packages fail to install -- it logs warnings but continues. So the Docker image gets pushed with `rmarkdown` and `testthat` missing, and the SparkR job fails at test time:
   
   ```
   Error in library(testthat) : there is no package called 'testthat'
   ```
   
   ```
   Error: processing vignette 'sparkr-vignettes.Rmd' failed with diagnostics:
   there is no package called 'rmarkdown'
   ```
   
   Example failure: https://github.com/LuciferYang/spark/actions/runs/24612026450/job/71969572946
   
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   
   ### How was this patch tested?
   - Pass Github Actions
   
   
   ### Was this patch authored or co-authored using generative AI tooling?
   Generated-by: Claude Code
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-56540][INFRA][4.1] Add libuv1-dev to CI Docker images to fix R package fs build failure [spark]

Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 closed pull request #55438: [SPARK-56540][INFRA][4.1] Add libuv1-dev to CI Docker images to fix R package fs build failure
URL: https://github.com/apache/spark/pull/55438


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-56540][INFRA][4.1] Add libuv1-dev to CI Docker images to fix R package fs build failure [spark]

Posted by "LuciferYang (via GitHub)" <gi...@apache.org>.
LuciferYang commented on PR #55438:
URL: https://github.com/apache/spark/pull/55438#issuecomment-4286516515

   cc @sarutak 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-56540][INFRA][4.1] Add libuv1-dev to CI Docker images to fix R package fs build failure [spark]

Posted by "LuciferYang (via GitHub)" <gi...@apache.org>.
LuciferYang commented on PR #55438:
URL: https://github.com/apache/spark/pull/55438#issuecomment-4293122702

   Thank you @pan3793 @sarutak @yaooqinn and @HyukjinKwon 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-56540][INFRA][4.1] Add libuv1-dev to CI Docker images to fix R package fs build failure [spark]

Posted by "pan3793 (via GitHub)" <gi...@apache.org>.
pan3793 commented on PR #55438:
URL: https://github.com/apache/spark/pull/55438#issuecomment-4288735875

   thanks, merged to branch-4.1


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org