-
Notifications
You must be signed in to change notification settings - Fork 480
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
[Bug] Re-enable flaky kubectl plugin e2e test in kubectl_ray_job_submit_test.go #3124
[Bug] Re-enable flaky kubectl plugin e2e test in kubectl_ray_job_submit_test.go #3124
Conversation
bcef3f7
to
a2256b1
Compare
Signed-off-by: You-Cheng <mses010108@gmail.com>
Signed-off-by: You-Cheng <mses010108@gmail.com>
Signed-off-by: You-Cheng <mses010108@gmail.com>
Signed-off-by: You-Cheng <mses010108@gmail.com>
372bf59
to
5b9ae41
Compare
Signed-off-by: You-Cheng <mses010108@gmail.com>
707f82b
to
4108c51
Compare
Signed-off-by: You-Cheng <mses010108@gmail.com>
Signed-off-by: You-Cheng <mses010108@gmail.com>
@MortalHappiness |
.buildkite/setup-env.sh
Outdated
apt-get install -y python3.11 python3-pip | ||
|
||
# Install requirements | ||
pip install --break-system-packages ray==2.41.0 ray\[default\]==2.41.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pip install --break-system-packages ray==2.41.0 ray\[default\]==2.41.0 | |
pip install --break-system-packages ray[default]==2.41.0 |
killKubectlCmd := exec.Command("pkill", "-9", "kubectl") | ||
_ = killKubectlCmd.Run() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are these changes needed?
There are 2 reason make the test fail.
- There are some kubectl process occupied the 8265 port that is required by the kubectl job submit. But for the independence of tests, we should not expect the test cause this problem to kill the process properly every time, so added the pkill kubectl before running kubectl job submit test.
- The ray is not installed on build kite env, so modified the setup-env.sh to install.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should also example which tests occupy this port. This can be done in follow-up PRs. Once we find the test, we need to kill the kubectl
process at the end of the test.
Could you also create another "[DO NOT MERGE]" draft PR and run it more than 5 times and make sure all tests pass? Just like what I did in #3116 (review) |
Signed-off-by: You-Cheng <mses010108@gmail.com>
https://buildkite.com/ray-project/ray-ecosystem-ci-kuberay-ci/builds?branch=owenowenisme%3Apr%2F3124%2Fci-test |
Signed-off-by: You-Cheng <mses010108@gmail.com>
Why are these changes needed?
There are 2 reason make the test fail.
Related issue number
Closes #2801
Checks