Skip to content
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

Add unit tests for queuejob util functions #545

Conversation

ChristianZaccaria
Copy link
Contributor

@ChristianZaccaria ChristianZaccaria commented Aug 4, 2023

Issue link

Closes #544

What changes have been made

Created unit tests on the functions in queuejob util, covering different scenarios.

Verification steps

Tests can be run locally and see them passing.

Checks

  • I've made sure the tests are passing.
  • Testing Strategy
    • Unit tests

@ChristianZaccaria ChristianZaccaria requested review from z103cb and removed request for astefanutti and dimakis August 4, 2023 11:27
@ChristianZaccaria ChristianZaccaria self-assigned this Aug 4, 2023
@ChristianZaccaria ChristianZaccaria removed their assignment Aug 4, 2023

for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
result := HigherSystemPriorityQJ(tt.qj1, tt.qj2)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you change the method signature to not use interface{} and use AppWrapper ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added a new commit to make use of AppWrapper, it required me to change the heap.go functions as well to use the AppWrapper type. I'm not sure if this is the ideal way of doing it, hoping to get your thoughts/advice on the changes made. Thank you @z103cb

Copy link
Contributor

Choose a reason for hiding this comment

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

They are LGTM. @astefanutti please review this change and approve it. I think it might be conflict with your k8s upgrade PR>

Copy link
Contributor

@z103cb z103cb left a comment

Choose a reason for hiding this comment

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

/LGTM

@astefanutti
Copy link
Contributor

/lgtm

Thanks!

@astefanutti
Copy link
Contributor

/approve

@openshift-ci
Copy link

openshift-ci bot commented Aug 9, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: astefanutti

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved label Aug 9, 2023
@openshift-merge-robot openshift-merge-robot merged commit ee36a02 into project-codeflare:main Aug 9, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add unit tests on queuejob utils
4 participants