-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ci] [R-package] remove code for 'rchk' checks #6545
Conversation
This is not working. Running it locally, I see the same thing I'm seeing in CI. Built the package locally, from this branch, which should result in significant stack-protection errors because I removed many rm -rf ./packages
mkdir -p ./packages
sh build-cran-package.sh --no-build-vignettes
cp lightgbm*.tar.gz ./packages Followed the docker run \
--rm \
--platform linux/amd64 \
-v "$(pwd)/packages":/check \
ghcr.io/r-hub/containers/rchk:latest \
r-check Saw this:
note: image digest from Followed CRAN's instructions (docs link, linked from https://cran.r-project.org/web/checks/check_issue_kinds.html) and using the docker run \
--rm \
--platform linux/amd64 \
-v $(pwd)/packages:/rchk/packages \
kalibera/rchk:latest \
/rchk/packages/lightgbm_4.5.0.99.tar.gz Saw the same results:
Repeated both of those with with the latest release of rm -rf ./packages
mkdir -p ./packages
wget \
-O ./packages/lightgbm_4.5.0.tar.gz \
https://cran.r-project.org/src/contrib/lightgbm_4.5.0.tar.gz Saw the exact same results with both the r-hub approach/images and the CRAN/kalibera approach/images. Some other notes:
|
Given all of what's written in #6545 (comment) ... I really think that CRAN is just not running It does say at https://raw.githubusercontent.com/kalibera/cran-checks/master/rchk/README.txt (which CRAN links to) that
@StrikerRUS I think we should do the following:
What do you think? |
@jameslamb Thanks a lot for your investigation! Totally support your plan. Last commit in |
Thanks! I noticed that a recent issue got a timely response on I'll update this PR's code and description tomorrow to just remove |
I've updated the title and description to reflect the comments above. This is ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you very much for connecting with rchk
developer and asking questions!
Replaces #6332
#6266 and related PRs made this project's shell scripts stricter, so they now exit with a non-0 exit code the first time anything goes wrong (e.g. some variable they require isn't set or some command they run fails).
That work revealed that the CI job supposed to be checking the R package with
rchck
has not actually been working, for maybe the last year.That job currently prints this:
And then just exits "successfully" with an exit code of 0 🙃
I suspect that that's been silently broken for over a year... since #5638. That PR moved all of the Linux R-package jobs inside of containers, but the
ubuntu:latest
image doesn't havedocker
in it and isn't set up for docker-in-docker by default. Following the docs in https://github.com/kalibera/rchk/blob/master/doc/DOCKER.md, that job expects to build the R package on the host, thendocker run
a container withrchk
in it and that package mounted in.In addition, it seems that since then R-devel / LLVM / LightGBM / CRAN have all changed in ways that mean that
rchk
can no longer be run on{lightgbm}
. See kalibera/rchk#35.This PR proposes removing the
rchk
CI check here.Benefits of these changes
How I tested this
See #6545 (comment) and the history of commits on this PR.
References
The
rchk
job was first added here in #4449.CRAN
rchk
check description: https://raw.githubusercontent.com/kalibera/cran-checks/master/rchk/README.txt (linked from https://cran.r-project.org/web/checks/check_issue_kinds.html).