[ci] [R-package] ensure that MSVC jobs fail when tests fail (fixes #5439)#5448
[ci] [R-package] ensure that MSVC jobs fail when tests fail (fixes #5439)#5448
Conversation
|
In b9eebb3, I tried intentionally causing a unit test failure, and this change: # before
Run-R-Code-Redirect-Stderr "source('testthat.R')" ; Check-Output $?
# after
Rscript.exe --vanilla "testthat.R" ; Check-Output $?Saw that both CI jobs failed and reported test failures in logs (build link). Then, in 7ce18e2, tried reverting the intentional test failure. Interestingly, the
I'll investigate this more tomorrow. |
|
iiiiinterresting! commenting out all of the |
|
Alright, this is ready for review! I believe the root cause of the original issue (#5439) is something in the intersection between:
This PR proposes two changes to ensure that MSVC R-package CI jobs actually fail when the tests fail:
Why I think it's ok to skip that one test only on that one job
Evidence that the jobs will fail as of these changesSee the results from this commit which intentionally made one R unit test fail: aff9acf.
|
StrikerRUS
left a comment
There was a problem hiding this comment.
Thanks for working on this!
LGTM except two minor suggestions below:
|
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. |
Fixes #5439.