ci: install libuv1-dev to unblock R languageserver build on ubuntu-24.04#1420
Merged
MischaPanch merged 1 commit intooraios:mainfrom Apr 26, 2026
Merged
Conversation
The `Install R language server` step started failing on the new
`ubuntu-24.04` runner image (`ubuntu-latest`) because the R `fs`
package falls back to a source build and its `configure` step calls
`pkg-config --exists libuv`, which fails with:
Package libuv was not found in the pkg-config search path.
fatal error: uv.h: No such file or directory
ERROR: configuration failed for package 'fs'
That cascades through `pkgload` -> `roxygen2` -> `languageserver`,
making `test/solidlsp/r/test_r_basic.py` error out at setup with
`RuntimeError: R languageserver package is not installed`.
Verified locally on a clean `ubuntu:24.04` container: `libuv1-dev`
is not preinstalled but is available in the `noble` apt repo
(version `1.48.0-1.1build1`). Installing it makes
`pkg-config --exists libuv` succeed (`pkg-config --modversion libuv`
returns `1.48.0`), which is exactly what the `fs` configure script
needs.
Linux-only via `if: runner.os == 'Linux'` so the step is a no-op
on macOS and Windows runners (libuv is bundled differently there
and `fs` is delivered as a binary).
Refs: oraios#1419
Contributor
|
Thank you, merging |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Install R sysdepsstep in.github/workflows/pytest.ymlthat runsapt-get install -y libuv1-devbefore the existingInstall R language serverstep.fspackage can no longer build from source on the latestubuntu-24.04runner image (libuv1-devis not preinstalled and there is no binary build offsfor this R/Ubuntu combo).Refs: #1419
Why
pytest.ymlusesruns-on: ubuntu-latest, which now resolves toubuntu-24.04. On that image:This cascades through
pkgload→roxygen2→languageserver, and the 5 R tests intest/solidlsp/r/test_r_basic.pyfail at setup withRuntimeError: R languageserver package is not installed. Full breakdown in #1419.Local verification
Reproduced and verified on
docker.io/library/ubuntu:24.04via podman:Before:
(Identical to the CI failure wording.)
After
apt-get install -y libuv1-dev:The
fsconfigure check now passes.Test plan
Tests on ubuntu-latest— should now pass (Rfsbuilds,languageserverinstalls,test/solidlsp/r/test_r_basic.pyruns).Tests on macos-latest— unaffected (step is gated byrunner.os == 'Linux').Tests on windows-latest— unaffected (same gate).Notes
libuv1-dev, no other sysdeps. If other R packages later need more system libraries, the cleaner long-term fix would be to switch tor-lib/actions/setup-r-dependencies@v2, which auto-resolves CRAN sysdeps. Out of scope here.r-lib/actions/setup-r@v2is showing a Node.js 20 deprecation warning in current runs — not addressed in this PR (worth a follow-up before September 2026).