Skip to content

Commit

Permalink
[tune] Storage: 🐙 🧠 Tune tests and examples {using RLlib} migration (r…
Browse files Browse the repository at this point in the history
…ay-project#38895)

Signed-off-by: Kai Fricke <[email protected]>
Co-authored-by: matthewdeng <[email protected]>
  • Loading branch information
krfricke and matthewdeng authored Aug 28, 2023
1 parent 312c70c commit ed7186a
Show file tree
Hide file tree
Showing 5 changed files with 225 additions and 289 deletions.
1 change: 0 additions & 1 deletion .buildkite/pipeline.ml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,6 @@
- TUNE_TESTING=1 ./ci/env/install-dependencies.sh
- ./ci/env/env_info.sh
- bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only --test_tag_filters=-gpu_only,rllib
--test_env=RAY_AIR_NEW_PERSISTENCE_MODE=0
python/ray/tune/...

- label: ":octopus: ML library integrations tests and examples."
Expand Down
6 changes: 5 additions & 1 deletion python/ray/tune/analysis/experiment_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,11 @@ def _retrieve_rows(
assert not mode or metric
rows = {}
for path, df in self.trial_dataframes.items():
if mode == "max":
if df.empty:
continue
if metric not in df:
idx = -1
elif mode == "max":
idx = df[metric].idxmax()
elif mode == "min":
idx = df[metric].idxmin()
Expand Down
2 changes: 1 addition & 1 deletion python/ray/tune/experiment/trial.py
Original file line number Diff line number Diff line change
Expand Up @@ -1082,7 +1082,7 @@ def should_checkpoint(self):

def has_checkpoint(self):
if _use_storage_context():
return self.checkpoint.path is not None
return self.checkpoint is not None
return self.checkpoint.dir_or_data is not None

def clear_checkpoint(self):
Expand Down
Loading

0 comments on commit ed7186a

Please sign in to comment.