This repository has been archived by the owner on Apr 15, 2024. It is now read-only.
fix Debian build errors related to 'useradd' #62
Merged
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.
👋 Hi, I'm James, one of the maintainers of
{lightgbm}
.We use the
rhub/debian-clang-devel
image in LightGBM's CI to try to replicate ther-devel-linux-x86_64-debian-clang
CRAN check (code link), and I investigated today why the version of R-devel we're getting in that image is from July 31st, 2022 (2+ months ago).I noticed that this project's Debian builds have been failing since August 1st, with an error like this:
I think that's what #50 is referring to, but not sure.
screenshot (click me)
source: https://github.com/r-hub/rhub-linux-builders/actions/workflows/debian.yml
This PR proposes a fix that I believe will allow them to succeed again.
Impact of this change
As a result of those build failures, the last update of
rhub/debian-clang-devel
on DockerHub was August 1st.screenshot (click me)
source: https://hub.docker.com/r/rhub/debian-clang-devel/tags
That means that CRAN checks are using a version of R-devel that is 2+ months newer than the one in the
rhub/debian*:latest
images.As a result, users of those images (and the R Hub service, if it uses these images?) might find themselves in the situation we are in in
{lightgbm}
, whereR CMD check
passes using these images but fails on CRAN.Changes in this PR
useradd
tousermod -G
for addingdocker
user to thestaff
group in thedebian
imagesHow I tested this
built the images locally, then ran `R CMD check --as-cran` on lightgbm (click for details)
Then, with those images built, I checked LightGBM v3.3.2 (the latest version on CRAN).
That failed with exactly the same error I see on CRAN!
Notes for Reviewers
Recently, we were notified by CRAN that
{lightgbm}
is failing that check on the latest R-devel. That prompted this investigation. Details if you're interested: microsoft/LightGBM#5502I rely so much on these images...I'd be happy to help fix the
UbuntuCentOS builds in a future PR as well, if you're interested.Thanks very much for your time and consideration!