-
Notifications
You must be signed in to change notification settings - Fork 262
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
[kueuectl] Add EXEC TIME column on list workload command. #2977
[kueuectl] Add EXEC TIME column on list workload command. #2977
Conversation
✅ Deploy Preview for kubernetes-sigs-kueue canceled.
|
wantOut: `NAME JOB TYPE JOB NAME LOCALQUEUE CLUSTERQUEUE STATUS POSITION IN QUEUE AGE | ||
wl1 j1 lq1 cq1 FINISHED 60m | ||
wantOut: `NAME JOB TYPE JOB NAME LOCALQUEUE CLUSTERQUEUE STATUS POSITION IN QUEUE DURATION AGE | ||
wl1 j1 lq1 cq1 FINISHED 60m 60m |
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.
Add a test cases / or modify the exiting ones to cover the two scenarios:
- the workload is re-admitted
- the workload finished in the past (last transition time < now)
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.
the workload finished in the past (last transition time < now)
We have a few tests with this condition. For example:
kueue/cmd/kueuectl/app/list/list_workload_test.go
Lines 223 to 227 in 94319f9
wantOut: `NAME JOB TYPE JOB NAME LOCALQUEUE CLUSTERQUEUE STATUS POSITION IN QUEUE DURATION AGE | |
wl1 j1 lq1 cq1 PENDING 60m | |
wl2 j2 lq2 cq2 ADMITTED 60m 120m | |
wl3 j3 lq3 cq3 FINISHED 60m 3h | |
`, |
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.
Awesome, i missed that
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.
the workload is re-admitted
I'm not clear on the difference between admitted
and re-admitted
, especially in the context of conditions. Are you asking if we should test with Admitted=false?
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.
Yeah, I think we don't need to test re-admission actually. My intention was to just test when lastTransitionTime for Admitted > creation time. Do we have that covered already too?
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.
Are you asking if we should test with Admitted=false?
This test cases I missed. Thanks!
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.
My intention was to just test when lastTransitionTime for Admitted > creation time.
I thought that it can't be possible... But I think we can add this case.
What should we need to print on this way? WDYT? Just empty line?
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.
I just want to make sure the very basic scenario is covered, when Admitted=True, and the lastTransitionTime is later than creation time of the workload. This would be in practice almost all the time, but since we mock the timer, I'm not clear if this is tested.
/cc @trasc |
I'm still thinking about a potentially better name for the column. Alternative names that come to my mind:
I would be leaning towards EXECUTION TIME as more descriptive of the semantics, but the downside is that it is longer. Any preferences @alculquicondor @mwielgus @tenzen-y ? EDIT: or maybe EXEC TIME? |
I'm for EXEC TIME. RUNTIME is confusing (should it be "docker") and EXECUTION TIME unnecessarily long. |
+1 on EXEC TIME |
/lgtm |
LGTM label has been added. Git tree hash: 26dec89eb48fc8e540c86b2bb819c8bc3588389d
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alculquicondor, mbobrovskyi 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 |
SGTM |
…-sigs#2977) * [kueuectl] Add DURATION column on list workload command. * Add test cases with Admitted=false and Finished=false. * Rename DURATION column to EXEC TIME.
What type of PR is this?
/kind feature
What this PR does / why we need it:
Add EXEC TIME column on kueuectl list workload command.
Which issue(s) this PR fixes:
Fixes #2972
Special notes for your reviewer:
Does this PR introduce a user-facing change?