Skip to content

Commit

Permalink
[xgboost] Fix flaky train_small test (ray-project#20529)
Browse files Browse the repository at this point in the history
Xgboosts train_small timed out because of a CPU borrowing feature related to placement groups. The root bug will be fixed in the coming weeks, but this PR makes the release test consistently pass by requesting 0 CPUs for the remote wrapper script.
  • Loading branch information
rkooo567 authored Nov 18, 2021
1 parent 65a023e commit 140a180
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion release/lightgbm_tests/workloads/train_small.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

start = time.time()

@ray.remote
@ray.remote(num_cpus=0)
def train():
os.environ["TEST_OUTPUT_JSON"] = output
os.environ["TEST_STATE_JSON"] = state
Expand Down
2 changes: 1 addition & 1 deletion release/xgboost_tests/workloads/train_small.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

start = time.time()

@ray.remote
@ray.remote(num_cpus=0)
def train():
os.environ["TEST_OUTPUT_JSON"] = output
os.environ["TEST_STATE_JSON"] = state
Expand Down

0 comments on commit 140a180

Please sign in to comment.