-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Fix the kubernetes test #3101
base: master
Are you sure you want to change the base?
Fix the kubernetes test #3101
Conversation
- When a job fails, it asserts rather than exits - There are other labels besides the custom ones - Need to mock out the verify_job_has_started() - Showing the pods requires access to the cluster
If setting up a custom cluster instead of minikube. Respect the traditional environment variable too.
I noticed there were some much bigger changes done in #3093 These were more for testing the old code, rather than change it |
@abjorkl5 Can I ask you what command(s) are you using to run the tests? Even with the previous generation of tests, I was never able to run the tests successfully for a variety of reasons, and that is delaying the tests on my big MR upgrading the k8s library of Luigi. And/or, can you maybe jump into my MR and help me fix up all the tests and make some new ones? I want to test every failure condition ideally, and I'm not good at pytest, having never really used it before. |
I was using this command:
But I didn't want to change the example instructions in this PR (for the test) And for the unit test, I used:
I had to comment out some unsupported
This was on Ubuntu 20.04 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If closed, you may revisit when your time allows and reopen! Thank you for your contributions. |
I was trying to run the kubernetes test, but it didn't pass.
With these changes, it was able to pass using minikube.
When a job fails, it asserts rather than exits
There are other labels besides the custom ones
Need to mock out the verify_job_has_started()
Showing the pods requires access to the cluster