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

[RayCluster][CI] add e2e tests for the RayClusterSuspended status condition #2686

Merged

Conversation

rueian
Copy link
Contributor

@rueian rueian commented Dec 25, 2024

Why are these changes needed?

Continue #2661, add e2e tests for the RayClusterSuspended status condition to sampleyaml tests.

Related issue number

Checks

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

@rueian rueian force-pushed the e2e-raycluster-status-condition-suspend branch 2 times, most recently from 942653f to 1940441 Compare December 25, 2024 15:22
sema := make(chan struct{}, 3)
for i := 0; i < cap(sema); i++ {
sema <- struct{}{}
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This e2e test now takes too long (~30min) and timeouts the CI. So we parallelize the sub-tests with a semaphore to allow 3 parallelism.

@rueian rueian marked this pull request as ready for review December 25, 2024 17:03
Copy link
Member

@kevin85421 kevin85421 left a comment

Choose a reason for hiding this comment

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

Suspending every sample YAML file seems to be overkill. Could you create a dedicated test for suspend instead?

@kevin85421 kevin85421 self-assigned this Dec 25, 2024
@rueian rueian force-pushed the e2e-raycluster-status-condition-suspend branch 4 times, most recently from 0b77dcb to ca6c370 Compare December 27, 2024 03:55
@rueian rueian force-pushed the e2e-raycluster-status-condition-suspend branch from ca6c370 to 4fa9409 Compare December 27, 2024 17:01
name string
}{
{
name: "ray-cluster.complete.yaml",
Copy link
Member

Choose a reason for hiding this comment

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

Construct the RayCluster with ApplyConfiguration like this. I prefer to avoid relying on external YAML files as much as possible.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @kevin85421, this is ready.

@rueian rueian force-pushed the e2e-raycluster-status-condition-suspend branch from 9690d80 to 540308b Compare December 28, 2024 03:08
@rueian rueian force-pushed the e2e-raycluster-status-condition-suspend branch from 540308b to 34484bd Compare December 28, 2024 03:11
@kevin85421 kevin85421 merged commit c62910f into ray-project:master Dec 28, 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.

2 participants