-
Notifications
You must be signed in to change notification settings - Fork 264
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
TAS: add e2e tests for rank ordering for Job #3584
TAS: add e2e tests for rank ordering for Job #3584
Conversation
✅ Deploy Preview for kubernetes-sigs-kueue canceled.
|
9dab065
to
9168e65
Compare
/test pull-kueue-test-tas-e2e-main |
9168e65
to
985b955
Compare
LGTM, good job! I'll hold for @tenzen-y to take a look |
LGTM label has been added. Git tree hash: d52ed29323337d92ac431c26372b19e1b6982709
|
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.
Thanks!
/lgtm
/approve
I was also thinking about an alternative assert that rack(pod0)==rack(pod1) and rack(pod2)==rack(pod3), but I think it will be harder to debug when the assert fails. With the exact assignment check we can easily see the full assignment.
Do we have integration testing for this situation? I guess that we can easily simulate this situation in the case of integration-testing.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mimowo, tenzen-y The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/hold cancel |
no, but we have unit testing which is quite useful here, because it is relatively high-level (for the exported function), which makes it similar to TestSchedule which proved to be very useful over time. So, personally I'm using unit tests for debugging, the e2e tests are useful to confirm the feature works. I considered adding integration tests, but they are actually tricky, because TopologyUngater operates on pods, but we don't enable the k8s Job controller in the integaration tests (no kube-controller-manager, only API server). So, we would need to create the pods ourselves, just like in unit tests, so I don't see much gain. |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Which issue(s) this PR fixes:
Part of #3450
Part of #3533
Special notes for your reviewer:
rack(pod0)==rack(pod1)
andrack(pod2)==rack(pod3)
, but I think it will be harder to debug when the assert fails. With the exact assignment check we can easily see the full assignment.I ran it a 4 times and it failed all repeats.
Does this PR introduce a user-facing change?