Skip to content

[SPARK-56372][INFRA] Add cmake to CI Docker images for R fs package compilation#55233

Closed
zhengruifeng wants to merge 2 commits intoapache:masterfrom
zhengruifeng:fix_imsage
Closed

[SPARK-56372][INFRA] Add cmake to CI Docker images for R fs package compilation#55233
zhengruifeng wants to merge 2 commits intoapache:masterfrom
zhengruifeng:fix_imsage

Conversation

@zhengruifeng
Copy link
Copy Markdown
Contributor

@zhengruifeng zhengruifeng commented Apr 7, 2026

What changes were proposed in this pull request?

Add cmake to the apt-get install list in CI Docker images (docs, lint, sparkr).

Why are the changes needed?

The R fs package (a transitive dependency of devtools, testthat, rmarkdown) now bundles libuv v1.52.0, which requires cmake to build. This causes the "Base image build" job to fail with:

/bin/bash: line 2: cmake: command not found
make: *** [Makevars:44: libuv] Error 127
ERROR: compilation failed for package 'fs'

The fs compilation failure cascades into: sassbslibshinyrmarkdowndevtoolstestthat, breaking the entire R package installation.

See https://github.com/apache/spark/actions/runs/24067715329/job/70197367201

Does this PR introduce any user-facing change?

No.

How was this patch tested?

CI should pass with the updated Docker images.

Was this patch authored or co-authored using generative AI tooling?

Co-authored-by: Claude code (Opus 4.6)

…ompilation

The R `fs` package now bundles libuv v1.52.0 which requires cmake to build. This caused the base image build to fail in CI.

Co-authored-by: Isaac
@zhengruifeng zhengruifeng marked this pull request as draft April 7, 2026 09:40
'pytest==7.1.3' \
'scipy>=1.8.0' \
'scipy-stubs' \
'types-protobuf==6.32.1.20260221' \
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the refresh of image will upgrade types-protobuf to 7.34.1.20260403 and fails linter https://github.com/zhengruifeng/spark/actions/runs/24069019701/job/70214055939

@zhengruifeng zhengruifeng marked this pull request as ready for review April 7, 2026 11:36
@HyukjinKwon
Copy link
Copy Markdown
Member

Merged to master.

Can we create backports to other branches?

@zhengruifeng zhengruifeng deleted the fix_imsage branch April 7, 2026 23:56
zhengruifeng added a commit to zhengruifeng/spark that referenced this pull request Apr 8, 2026
…ompilation

Add `cmake` to the `apt-get install` list in CI Docker images (`docs`, `lint`, `sparkr`).

The R `fs` package (a transitive dependency of `devtools`, `testthat`, `rmarkdown`) now bundles `libuv v1.52.0`, which requires `cmake` to build. This causes the "Base image build" job to fail with:

```
/bin/bash: line 2: cmake: command not found
make: *** [Makevars:44: libuv] Error 127
ERROR: compilation failed for package 'fs'
```

The `fs` compilation failure cascades into: `sass` → `bslib` → `shiny` → `rmarkdown` → `devtools` → `testthat`, breaking the entire R package installation.

See https://github.com/apache/spark/actions/runs/24067715329/job/70197367201

No.

CI should pass with the updated Docker images.

Co-authored-by: Claude code (Opus 4.6)

Closes apache#55233 from zhengruifeng/fix_imsage.

Authored-by: Ruifeng Zheng <ruifengz@apache.org>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
zhengruifeng added a commit to zhengruifeng/spark that referenced this pull request Apr 8, 2026
…ompilation

Add `cmake` to the `apt-get install` list in CI Docker images (`docs`, `lint`, `sparkr`).

The R `fs` package (a transitive dependency of `devtools`, `testthat`, `rmarkdown`) now bundles `libuv v1.52.0`, which requires `cmake` to build. This causes the "Base image build" job to fail with:

```
/bin/bash: line 2: cmake: command not found
make: *** [Makevars:44: libuv] Error 127
ERROR: compilation failed for package 'fs'
```

The `fs` compilation failure cascades into: `sass` → `bslib` → `shiny` → `rmarkdown` → `devtools` → `testthat`, breaking the entire R package installation.

See https://github.com/apache/spark/actions/runs/24067715329/job/70197367201

No.

CI should pass with the updated Docker images.

Co-authored-by: Claude code (Opus 4.6)

Closes apache#55233 from zhengruifeng/fix_imsage.

Authored-by: Ruifeng Zheng <ruifengz@apache.org>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
HyukjinKwon added a commit that referenced this pull request Apr 16, 2026
### What changes were proposed in this pull request?

Replaces `devtools` to `remotes` which is lighter.
It does not fix CRAN related because we don't release on CRAN anymore.

### Why are the changes needed?

- A lot of usages of `devtools` in our repo is actually deprecated.
- Causes many issues like #55216 #55233 #55245
- It fails again because it requires another dependency.

### Does this PR introduce _any_ user-facing change?

No, dev-only.

### How was this patch tested?

Will minotior the CI.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes #55362 from HyukjinKwon/SPARK-56500.

Authored-by: Hyukjin Kwon <gurwls223@apache.org>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
HyukjinKwon added a commit that referenced this pull request Apr 16, 2026
Replaces `devtools` to `remotes` which is lighter.
It does not fix CRAN related because we don't release on CRAN anymore.

- A lot of usages of `devtools` in our repo is actually deprecated.
- Causes many issues like #55216 #55233 #55245
- It fails again because it requires another dependency.

No, dev-only.

Will minotior the CI.

No.

Closes #55362 from HyukjinKwon/SPARK-56500.

Authored-by: Hyukjin Kwon <gurwls223@apache.org>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
HyukjinKwon added a commit that referenced this pull request Apr 16, 2026
Replaces `devtools` to `remotes` which is lighter.
It does not fix CRAN related because we don't release on CRAN anymore.

- A lot of usages of `devtools` in our repo is actually deprecated.
- Causes many issues like #55216 #55233 #55245
- It fails again because it requires another dependency.

No, dev-only.

Will minotior the CI.

No.

Closes #55362 from HyukjinKwon/SPARK-56500.

Authored-by: Hyukjin Kwon <gurwls223@apache.org>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
(cherry picked from commit 84e6954)
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
HyukjinKwon added a commit that referenced this pull request Apr 16, 2026
Replaces `devtools` to `remotes` which is lighter.
It does not fix CRAN related because we don't release on CRAN anymore.

- A lot of usages of `devtools` in our repo is actually deprecated.
- Causes many issues like #55216 #55233 #55245
- It fails again because it requires another dependency.

No, dev-only.

Will minotior the CI.

No.

Closes #55362 from HyukjinKwon/SPARK-56500.

Authored-by: Hyukjin Kwon <gurwls223@apache.org>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
(cherry picked from commit 84e6954)
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants