-
Notifications
You must be signed in to change notification settings - Fork 2k
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
GH-15839: move explain related tests to one stage #15844
GH-15839: move explain related tests to one stage #15844
Conversation
The run.py when provided with a test list runs everything on the test list so we need to exclude NOPASS from the testlist. When running the other tests the list .lookup is used as exclude list and the NOPASS tests are excluded while searching for the tests.
scripts/jenkins/Makefile.jenkins
Outdated
find h2o-r/tests -name '*explain*.R' -exec basename {} \; >>h2o-r/tests/.lookup.txt | ||
find h2o-py/tests -name '*explain*.py' -exec basename {} \; >>h2o-py/tests/.lookup.txt | ||
find h2o-r/tests/testdir_misc/explain -name '*.R' -exec basename {} \; | grep -v NOPASS >>h2o-r/tests/.lookup.txt | ||
find h2o-py/tests/testdir_misc/explain -name '*.py' -exec basename {} \; | grep -v NOPASS >>h2o-py/tests/.lookup.txt |
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.
The .lookup.txt
serves as test list in the run.py
. When the test is in the test list we run it even if it is NOPASS
. Since the SHAP_NOPASS
can take a day to finish I skip it here.
When we run pyunit-small
etc. the .lookup.txt
serves as exclude list - run.py
excludes those tests and then finds the remaining tests while skipping the NOPASS
tests. (
Lines 1344 to 1347 in 1e4e8ca
if is_nopass and not nopass: | |
# skip all NOPASS tests for regular runs but still count the number of NOPASS tests | |
self.nopass_counter += 1 | |
continue |
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.
This is great, thank you!
Not so great, we apparently call lookup even when there are no tests (I think before we checkout the repo). Hopefully, I fixed that. I will ask you for review again once I'm sure everything is ok. Sorry for wasting your time @mn-mikke. |
58f6d53
to
7f35c6d
Compare
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.
LGTM, thank you!
#15839