[xgb] re-enable xgboost_ray tests (#13416)

* re-enable

* fix

* update xgb_ray version
This commit is contained in:
Amog Kamsetty 2021-01-14 13:14:44 -08:00 committed by GitHub
parent 7ba87b8abe
commit 07e97fe4c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 26 additions and 24 deletions

View file

@ -389,7 +389,6 @@ matrix:
# - ./ci/keep_alive bazel test --config=ci $(./scripts/bazel_export_options) --build_tests_only --test_tag_filters=-tf,-pytorch,-py37 python/ray/util/sgd/...
- ./ci/keep_alive bazel test --config=ci $(./scripts/bazel_export_options) --build_tests_only --test_tag_filters=tf,-pytorch,-py37 python/ray/util/sgd/...
- ./ci/keep_alive bazel test --config=ci $(./scripts/bazel_export_options) --build_tests_only --test_tag_filters=-tf,pytorch,-py37 python/ray/util/sgd/...
# - ./ci/keep_alive bazel test --config=ci $(./scripts/bazel_export_options) --build_tests_only python/ray/util/xgboost/...
# Docs: Tests and examples.
- os: linux
@ -418,6 +417,7 @@ matrix:
- . ./ci/travis/ci.sh build
script:
- ./ci/keep_alive bazel test --config=ci $(./scripts/bazel_export_options) --build_tests_only --test_tag_filters=py37 python/ray/tune/...
- ./ci/keep_alive bazel test --config=ci $(./scripts/bazel_export_options) --build_tests_only python/ray/util/xgboost/...
# There are no python 3.7 tests for RaySGD at the moment
# - ./ci/keep_alive bazel test --config=ci --build_tests_only --test_tag_filters=py37 python/ray/util/sgd/...
# - ./ci/keep_alive bazel test --config=ci --build_tests_only --test_tag_filters=py37 doc/...

View file

@ -1,26 +1,28 @@
# --------------------------------------------------------------------
# Tests from the python/ray/util/sgd/tests directory.
# Tests from the python/ray/util/xgboost directory.
# Please keep these sorted alphabetically.
# --------------------------------------------------------------------
# py_test(
# name = "simple_example",
# size = "small",
# srcs = ["simple_example.py"],
# deps = [":xgb_lib"],
# tags = ["exclusive"],
# )
py_test(
name = "simple_example",
size = "small",
srcs = ["simple_example.py"],
deps = [":xgb_lib"],
tags = ["exclusive"],
)
py_test(
name = "simple_tune",
size="small",
srcs = ["simple_tune.py"],
deps = [":xgb_lib"],
tags = ["exclusive"]
)
# This is a dummy test dependency that causes the above tests to be
# re-run if any of these files changes.
py_library(
name = "xgb_lib",
srcs = glob(["**/*.py"]),
)
# py_test(
# name = "simple_tune",
# size="small",
# srcs = ["simple_tune.py"],
# deps = [":xgb_lib"],
# tags = ["exlcusive"]
# )
# # This is a dummy test dependency that causes the above tests to be
# # re-run if any of these files changes.
# py_library(
# name = "xgb_lib",
# srcs = glob(["**/*.py"], exclude=["tests/*.py"]),
# )

View file

@ -31,7 +31,7 @@ def main():
train_set,
evals=[(test_set, "eval")],
evals_result=evals_result,
ray_params=RayParams(max_actor_restarts=1),
ray_params=RayParams(max_actor_restarts=1, num_actors=1),
verbose_eval=False)
bst.save_model("simple.xgb")

View file

@ -3,4 +3,4 @@
# So we separate its own requirements file.
tune-sklearn==0.2.1
xgboost_ray==0.0.1
xgboost_ray==0.0.2