Skip to content

Commit

Permalink
GH-15839: move explain related tests to one stage (#15844)
Browse files Browse the repository at this point in the history
* Move explain related tests

* Increase the explain stages timeoutValue

* Skip NOPASS in the explain stage

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.

* Fix lookup for cases when there are no tests
  • Loading branch information
tomasfryda authored Nov 1, 2023
1 parent cd38506 commit b3dfc37
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 7 deletions.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
setwd(normalizePath(dirname(R.utils::commandArgs(asValues = TRUE)$"f")))
source("../../scripts/h2o-r-test-setup.R")
source("../../../scripts/h2o-r-test-setup.R")


ALGOS <- c("deeplearning", "drf", "gbm", "glm", "stackedensemble", "xgboost")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
setwd(normalizePath(dirname(R.utils::commandArgs(asValues = TRUE)$"f")))
source("../../scripts/h2o-r-test-setup.R")
source("../../../scripts/h2o-r-test-setup.R")

expect_ggplot <- function(gg) {
p <- force(gg)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
setwd(normalizePath(dirname(R.utils::commandArgs(asValues = TRUE)$"f")))
source("../../scripts/h2o-r-test-setup.R")
source("../../../scripts/h2o-r-test-setup.R")

test_make_leaderboard_without_leaderboard_frame <- function() {
train <- h2o.uploadFile(locate("smalldata/titanic/titanic_expanded.csv"))
Expand Down
4 changes: 2 additions & 2 deletions scripts/jenkins/Makefile.jenkins
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ lookup-fault-tolerance-tests: init-lookup
find h2o-py/tests -name '*fault_tolerance*.py' -exec basename {} \; >>h2o-py/tests/.lookup.txt

lookup-explain-tests: init-lookup
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 -path '*testdir_misc/explain*' -name '*.R' -not -name '*NOPASS*' -exec basename {} \; >>h2o-r/tests/.lookup.txt
find h2o-py/tests -path '*testdir_misc/explain*' -name '*.py' -not -name '*NOPASS*' -exec basename {} \; >>h2o-py/tests/.lookup.txt

lookup-mojo-to-assembly-tests: init-lookup
find h2o-r/tests -name '*h2oassembly_download_mojo*.R' -exec basename {} \; >>h2o-r/tests/.lookup.txt
Expand Down
4 changes: 2 additions & 2 deletions scripts/jenkins/groovy/defineTestStages.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ def call(final pipelineContext) {
],
[
stageName: 'Py3.7 Explain', target: 'test-pyunit-explain', pythonVersion: '3.7',
timeoutValue: 90, component: pipelineContext.getBuildConfig().COMPONENT_PY
timeoutValue: 180, component: pipelineContext.getBuildConfig().COMPONENT_PY
],
[
stageName: 'Py3.11 Single Node', target: 'test-pyunit-single-node', pythonVersion: '3.11',
Expand Down Expand Up @@ -559,7 +559,7 @@ def call(final pipelineContext) {
],
[
stageName: 'R4.0 Explain', target: 'test-r-explain', rVersion: '4.0.2',
timeoutValue: 125, component: pipelineContext.getBuildConfig().COMPONENT_R
timeoutValue: 180, component: pipelineContext.getBuildConfig().COMPONENT_R
],
]

Expand Down

0 comments on commit b3dfc37

Please sign in to comment.