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 mock cache for ut and performance test #3269

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

lowang-bh
Copy link
Member

@lowang-bh lowang-bh commented Dec 17, 2023

This Pr supply mock SchedulerCache with two methods:

  1. NewCustomMockSchedulerCache use customer's interface to replace those schedulerCache's interface
  2. NewDefaultMockSchedulerCache use k8s fake client as the default one to replace schedulerCache's interface.

we can use mockSchedulerCache in this PR to do those things:

@volcano-sh-bot volcano-sh-bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Dec 17, 2023
@lowang-bh
Copy link
Member Author

/assign @Monokaix @wangyang0616 @william-wang

@Monokaix
Copy link
Member

Monokaix commented Jan 4, 2024

Hi, please resolve code conflict.

@Monokaix
Copy link
Member

/lgtm

@volcano-sh-bot volcano-sh-bot added the lgtm Indicates that a PR is ready to be merged. label Jan 19, 2024
@lowang-bh
Copy link
Member Author

/assign @william-wang

Signed-off-by: lowang-bh <lhui_wang@163.com>
@volcano-sh-bot volcano-sh-bot removed the lgtm Indicates that a PR is ready to be merged. label Feb 2, 2024
@lowang-bh
Copy link
Member Author

Copy link
Member

@william-wang william-wang left a comment

Choose a reason for hiding this comment

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

/approve

@volcano-sh-bot volcano-sh-bot added the lgtm Indicates that a PR is ready to be merged. label Feb 2, 2024
@volcano-sh-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: william-wang

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

@volcano-sh-bot volcano-sh-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 2, 2024
@volcano-sh-bot volcano-sh-bot merged commit f6e0a52 into volcano-sh:master Feb 2, 2024
14 checks passed
@lowang-bh lowang-bh deleted the mockSchedulerCache branch February 2, 2024 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants