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

[Test][RayJob] Kueue happy-path scenario #1809

Merged
merged 2 commits into from
Jan 8, 2024

Conversation

kevin85421
Copy link
Member

@kevin85421 kevin85421 commented Jan 6, 2024

Why are these changes needed?

This PR provides an end-to-end test covering the happy-path scenario for Kueue. Specifically, it creates a suspended RayJob with .spec.suspend = true at creation time (achieved by Kueue using a webhook), resumes it manually, and checks for successful completion.

Related issue number

Closes #1800

Checks

  • I've made sure the tests are passing.
  • Testing Strategy
    • Unit tests
    • Manual tests
    • This PR is not tested :(


test.T().Logf("Resume the RayJob by updating `suspend` to false.")
rayJob.Spec.Suspend = false
// TODO (kevin85421): We may need to retry `Update` if 409 conflict makes the test flaky.
Copy link
Member Author

Choose a reason for hiding this comment

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

I might use patch instead, as mentioned in this discussion, after I acquire sufficient related knowledge (e.g., server-side apply).

Copy link
Contributor

Choose a reason for hiding this comment

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

I've created #1811 that's related to server-side apply.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks! Would you be interested in contributing to #1811?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, I should be able to work on it soon.

@kevin85421 kevin85421 changed the title [WIP] [Test][RayJob] Kueue happy-path scenario Jan 6, 2024
@kevin85421 kevin85421 marked this pull request as ready for review January 6, 2024 07:37
Copy link
Contributor

@astefanutti astefanutti left a comment

Choose a reason for hiding this comment

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

LGTM

@kevin85421 kevin85421 merged commit e23ba33 into ray-project:master Jan 8, 2024
24 checks passed
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.

[Test][RayJob] Suspend operation
4 participants