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

[R-package] [ci] update to R 4.0.2 for Windows CI jobs (fixes #3191) #3193

Merged
merged 4 commits into from
Jun 27, 2020

Conversation

jameslamb
Copy link
Collaborator

This PR attempts to fix #3191 , and issue that is blocking other PRs. I'm not sure why, but updating to R 4.0.2 and changing the output redirection strategy from builds seems to be enough to fix the issues documented there.

The R 4.0.2 release notes are here, if you're curious: https://cran.r-project.org/doc/manuals/r-devel/NEWS.html

I tried this on my fork, and got 3 successful builds of R 4.0 + MSVC and 3 successful builds of R 4.0 + MINGW: https://github.com/jameslamb/LightGBM/pull/32/checks?check_run_id=813328837

Copy link
Collaborator

@StrikerRUS StrikerRUS left a comment

Choose a reason for hiding this comment

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

I'm happy because CI is happy :-)

Thanks a lot for the quick fix!

@StrikerRUS StrikerRUS merged commit 068a67d into microsoft:master Jun 27, 2020
@@ -165,7 +165,7 @@ if ($env:COMPILER -ne "MSVC") {
} else {
$env:TMPDIR = $env:USERPROFILE # to avoid warnings about incremental builds inside a temp directory
$INSTALL_LOG_FILE_NAME = "$env:BUILD_SOURCESDIRECTORY\00install_out.txt"
Run-R-Code-Redirect-Stderr "source('build_r.R')" *> $INSTALL_LOG_FILE_NAME ; $install_succeeded = $?
Run-R-Code-Redirect-Stderr "source('build_r.R')" 1> $INSTALL_LOG_FILE_NAME ; $install_succeeded = $?
Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh, wait, does it mean that we lose all not success logs that are written not to stdout?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We already lost any of them by the changes from #3168 , I think. This step will still break if something is broken, but to get better logs we'd have to re-run with this set to Rscript build_r.R instead of using Run-R-Code-Redirect-Stderr.

I know that's bad, but the main thing is that we know the build will fail if a chance breaks the R package. I hope that PowerShell/PowerShell#12823 will get resolved and GitHub Actions will be updated soon, then maybe we can remove the workaround to suppress stderr

@github-actions
Copy link

This pull request 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 locked as resolved and limited conversation to collaborators Aug 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[R-package] Windows R 4.0 jobs fail after "Building R Package"
2 participants