-
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] 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.
|
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.
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.