Skip to content
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] macOS builds failing to install R #4988

Closed
jameslamb opened this issue Jan 30, 2022 · 3 comments · Fixed by #4989
Closed

[ci] [R-package] macOS builds failing to install R #4988

jameslamb opened this issue Jan 30, 2022 · 3 comments · Fixed by #4989

Comments

@jameslamb
Copy link
Collaborator

jameslamb commented Jan 30, 2022

Description

Starting some time in the last few days, R-package CI jobs on macOS have been failing with errors like the following.

Error seen on R 3.6.x builds

installer: Package name is R 3.6.3 for Mac OS X 10.11 or higher (El Capitan build)
/Users/runner/work/LightGBM/LightGBM/.ci/test_r_package.sh: line 108: Rscript: command not found

Error seen on R 4.1.x builds

installer: Error - the package path specified was invalid: '/Users/runner/work/LightGBM/LightGBM/R.pkg'.

All R jobs on macOS are failing with this error, so it doesn't seem limited to specific R versions or compiler.

Reproducible example

See, for example, https://github.com/microsoft/LightGBM/runs/4994115921?check_suite_focus=true.

This doesn't seem related to the changes on any specific PR, as these jobs are failing this way across multiple PRs which are not changing anything about how R is set up. For example, #4953, #4970, #4977.

See https://github.com/microsoft/LightGBM/actions/workflows/r_package.yml.

Notes

See https://cran.r-project.org/doc/manuals/r-release/R-admin.html#Installing-R-under-macOS for guidance from CRAN on how to install R on Mac. Maybe the tips there could help in identifying the issue here.

@jameslamb
Copy link
Collaborator Author

aha! Look at this: actions/runner-images#4060

Screen Shot 2022-01-29 at 10 41 41 PM

R was not available for Big Sur when we prepared the image for the first time. Please use standard tool request process if the tool needs to be added

I suspect that this means the existing R binary installers for R 4.1.x cannot be used on macOS-latest in GitHub Actions.

Some related discussions:

jameslamb added a commit that referenced this issue Feb 1, 2022
…uilds (fixes #4988) (#4989)

* [ci] manually create symlinks to R entrypoints on macOS (fixes #4988)

* exclude non-R CI jobs

* upgrade to R 4.1.2

* get logs for R install

* pin R 4.1.x jobs to macOS-10.15

* update to R 4.1.2 on Windows

* allow for non-latest macOS builds in GHA configuration

* fix prefix check

* fix config check

* more direct check for mac version

* uncomment other CIs

* update R version in CI job names
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity since it was closed.
To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues
including a reference to this.

@github-actions github-actions bot removed the blocking label Aug 16, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
1 participant