Skip to content

[tune] Storage: 🐙 🧠 Tune tests and examples {using RLlib} migration #38895

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

Merged
merged 23 commits into from
Aug 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .buildkite/pipeline.ml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,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