-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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] unit test failures don't cause MSVC CI jobs to fail #5439
Comments
I tried to reproduce the relevant code on my Mac tonight. LightGBM/.ci/test_r_package_windows.ps1 Lines 23 to 29 in ef006b7
LightGBM/.ci/test_r_package_windows.ps1 Lines 283 to 287 in ef006b7
Like this: cd R-package/tests
Rscript \
--vanilla \
-e "out_file <- file(tempfile(), open = 'wt'); sink(out_file, type = 'message'); source('testthat.R'); sink()" And saw that a non-0 exit code was raised as expected echo $?
# 1 That is evidence that this might be something specific to Windows, and not a generic problem with the pattern of using Will open a draft PR to test some approaches. |
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. |
Description
The R-package CI jobs which compile the library with
CMake
+MSVC
do not fail if the R package's unit tests fail.r-package (windows-2019, MSVC, R 3.6, cmake)
r-package (windows-2022, MSVC, R 4.1, cmake)
Reproducible example
I noticed this while looking at test failures on #5437 (build link), but I suspect that this would happen for any change that causes the R unit tests to fail.
For example, I suspect (haven't confirmed) that adding something like that following anywhere in an R test case would reproduce this issue.
stop("intentionally failing")
But at the end of the tests, I see logs like the following.
Additional Comments
I haven't investigated this much yet, just creating this issue so it isn't forgotten.
The text was updated successfully, but these errors were encountered: