Skip to content

Conversation

@SeungjinYang
Copy link
Collaborator

@SeungjinYang SeungjinYang commented Oct 24, 2025

Fix #7683

For sky api logs and sky api cancel, error out if the user supplied request prefix matches multiple requests.

For sky api status, return all requests with prefix if the user supplied request prefix matches multiple requests.

Tested (run the relevant ones):

  • Code formatting: install pre-commit (auto-check on commit) or bash format.sh
  • Any manual or new tests for this PR (please specify below)
  • All smoke tests: /smoke-test (CI) or pytest tests/test_smoke.py (local)
  • Relevant individual tests: /smoke-test -k test_name (CI) or pytest tests/test_smoke.py::test_name (local)
  • Backward compatibility: /quicktest-core (CI) or pytest tests/smoke_tests/test_backward_compat.py (local)

@SeungjinYang SeungjinYang force-pushed the request-prefix-handling branch from 1224839 to 50f2889 Compare October 24, 2025 22:19
@SeungjinYang SeungjinYang marked this pull request as ready for review October 24, 2025 22:59
@kevinmingtarja
Copy link
Collaborator

/smoke-test

Copy link
Collaborator

@kevinmingtarja kevinmingtarja left a comment

Choose a reason for hiding this comment

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

Minor comments, otherwise LGTM, thanks @SeungjinYang !

@SeungjinYang SeungjinYang force-pushed the request-prefix-handling branch from 2d8cb54 to 04e2740 Compare October 26, 2025 23:55
@SeungjinYang SeungjinYang force-pushed the request-prefix-handling branch from 04e2740 to 4f0b5d7 Compare October 27, 2025 00:12
@SeungjinYang
Copy link
Collaborator Author

/smoke-test -k test_cancel_launch_and_exec_async

@SeungjinYang SeungjinYang force-pushed the request-prefix-handling branch from bdcdc7f to 4f0b5d7 Compare October 27, 2025 00:51
@SeungjinYang
Copy link
Collaborator Author

/smoke-test -k test_cancel_launch_and_exec_async

@SeungjinYang SeungjinYang force-pushed the request-prefix-handling branch from 00709ad to 1c598f0 Compare October 27, 2025 01:11
@SeungjinYang
Copy link
Collaborator Author

/smoke-test -k test_cancel_launch_and_exec_async

@SeungjinYang
Copy link
Collaborator Author

/smoke-test

@SeungjinYang SeungjinYang merged commit 3da17b6 into master Oct 27, 2025
21 checks passed
@SeungjinYang SeungjinYang deleted the request-prefix-handling branch October 27, 2025 02:30
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.

sky api cancel may select a request matching prefix at random if request prefix matches multiple requests

2 participants