Skip to content
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

UX: Fix spot launch hint. #2630

Merged
merged 2 commits into from
Sep 30, 2023
Merged

UX: Fix spot launch hint. #2630

merged 2 commits into from
Sep 30, 2023

Conversation

concretevitamin
Copy link
Collaborator

Fixes #2591. This is an alternative that hopefully is clearer.

Tested (run the relevant ones):

  • Code formatting: bash format.sh
  • Any manual or new tests for this PR (please specify below)
  • All smoke tests: pytest tests/test_smoke.py
  • Relevant individual smoke tests: pytest tests/test_smoke.py::test_fill_in_the_name
  • Backward compatibility tests: bash tests/backward_comaptibility_tests.sh

Copy link
Collaborator

@cblmemo cblmemo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for the fix 🫡

@@ -772,8 +772,7 @@ def format_number(x):

num_tasks = len(ordered_node_to_cost_map)
for task, v in ordered_node_to_cost_map.items():
task_str = (f'for task_lib.Task {repr(task)!r}'
if num_tasks > 1 else '')
task_str = (f'for task {repr(task)!r} ' if num_tasks > 1 else '')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
task_str = (f'for task {repr(task)!r} ' if num_tasks > 1 else '')
task_str = (f'for task {repr(task)!r}' if num_tasks > 1 else '')

nit: seems like there is an extra space?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previous to this change, it looks like

…Task ‘train’(1 node)

@concretevitamin concretevitamin merged commit a33c9dc into master Sep 30, 2023
18 checks passed
@concretevitamin concretevitamin deleted the fix-spot-hint branch September 30, 2023 18:35
jc9123 pushed a commit to jc9123/skypilot that referenced this pull request Oct 11, 2023
* UX: Fix spot launch hint.

* lint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UX: confusing ValueError: Cannot specify spot_recovery without use_spot set to True.
2 participants