Skip to content

[Test][RayCluster] Add envtests for RayCluster conditions #2283

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

Conversation

MortalHappiness
Copy link
Member

@MortalHappiness MortalHappiness commented Aug 3, 2024

Why are these changes needed?

Currently, RayCluster conditions only have unit tests. This PR adds envtests for RayCluster conditions.

Note that this PR needs #2282 to work properly, otherwise the tests will fail.

Related issue number

N/A

Checks

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

@MortalHappiness MortalHappiness force-pushed the feature/raycluster-condition-tests branch 2 times, most recently from 669bd96 to 587af6f Compare August 3, 2024 14:29
}
return meta.IsStatusConditionPresentAndEqual(rayCluster.Status.Conditions, string(rayv1.RayClusterReady), metav1.ConditionTrue)
},
time.Second*3, time.Millisecond*500).Should(BeTrue())
Copy link
Member

Choose a reason for hiding this comment

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

Can you check the following cases:

  1. Update a worker pod to become unready; the RayClusterReady status should still be true.
  2. Update the head pod to become unready; the RayClusterReady status should be false.

@kevin85421 kevin85421 self-assigned this Aug 3, 2024
@MortalHappiness MortalHappiness force-pushed the feature/raycluster-condition-tests branch 2 times, most recently from e3824a2 to a0d6a44 Compare August 4, 2024 06:56
Signed-off-by: Chi-Sheng Liu <chishengliu@chishengliu.com>
@MortalHappiness MortalHappiness force-pushed the feature/raycluster-condition-tests branch from a0d6a44 to d839e33 Compare August 4, 2024 07:05
@kevin85421 kevin85421 merged commit e3ee985 into ray-project:master Aug 4, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants