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 e2e test for lazy propagation policy #4804

Merged
merged 1 commit into from
Apr 17, 2024

Conversation

hulizhe
Copy link
Contributor

@hulizhe hulizhe commented Apr 6, 2024

What type of PR is this?
/kind failing-test

What this PR does / why we need it:
add e2e test for lazy propagation policy

Involving:

Simple Case 3 (Lazy to immediate)
Simple Case 4 (Immediate to lazy)
Combined Case 4 (Policy preemption)
Which issue(s) this PR fixes:
part of #4607

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


@karmada-bot karmada-bot added the kind/failing-test Categorizes issue or PR as related to a consistently or frequently failing test. label Apr 6, 2024
@karmada-bot
Copy link
Collaborator

Welcome @hulizhe! It looks like this is your first PR to karmada-io/karmada 🎉

@karmada-bot karmada-bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Apr 6, 2024
@XiShanYongYe-Chang
Copy link
Member

/assign @chaosi-zju

@chaosi-zju
Copy link
Member

this PR is modified upon #4740, the review can wait until this PR is merged in.

@XiShanYongYe-Chang
Copy link
Member

Hi @hulizhe, #4740 has been merged, this PR can go on.

@hulizhe hulizhe force-pushed the e2etest branch 2 times, most recently from 9f36b9d to 214171e Compare April 10, 2024 12:16
@hulizhe
Copy link
Contributor Author

hulizhe commented Apr 10, 2024

Hi @hulizhe, #4740 has been merged, this PR can go on.

done, thanks for the reminder

Copy link
Contributor

@zhzhuang-zju zhzhuang-zju left a comment

Choose a reason for hiding this comment

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

@hulizhe Hello, thanks for your important commit! Review is ongoing, and my viewpoint just for reference only.
others lgtm!

test/e2e/lazy_activation_policy_test.go Outdated Show resolved Hide resolved
Copy link
Member

@chaosi-zju chaosi-zju left a comment

Choose a reason for hiding this comment

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

thanks for your excellent work! my viewpoint just for reference only.

test/e2e/lazy_activation_policy_test.go Outdated Show resolved Hide resolved
test/e2e/lazy_activation_policy_test.go Outdated Show resolved Hide resolved
test/e2e/lazy_activation_policy_test.go Outdated Show resolved Hide resolved
test/e2e/lazy_activation_policy_test.go Outdated Show resolved Hide resolved
test/e2e/lazy_activation_policy_test.go Outdated Show resolved Hide resolved
test/e2e/lazy_activation_policy_test.go Outdated Show resolved Hide resolved
@chaosi-zju
Copy link
Member

/LGTM

you did great job, thank you for your efffort !

@karmada-bot karmada-bot added the lgtm Indicates that a PR is ready to be merged. label Apr 16, 2024
@zhzhuang-zju
Copy link
Contributor

zhzhuang-zju commented Apr 16, 2024

/lgtm cc @XiShanYongYe-Chang

@@ -90,6 +103,92 @@ var _ = ginkgo.Describe("Lazy activation policy testing", func() {
})
})

// Simple Case 3 (Lazy to immediate)
// refer: https://github.com/karmada-io/karmada/blob/master/docs/proposals/scheduling/activation-preference/lazy-activation-preference.md#simple-case-3-lazy-to-immediate
Copy link
Member

Choose a reason for hiding this comment

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

Here it's best not to use the master branch, you should use a fixed commit ID instead.

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// refer: https://github.com/karmada-io/karmada/blob/master/docs/proposals/scheduling/activation-preference/lazy-activation-preference.md#simple-case-3-lazy-to-immediate
// refer: https://github.com/karmada-io/karmada/blob/fdad87efce1d088c8002856f5ee7586427f1a989/docs/proposals/scheduling/activation-preference/lazy-activation-preference.md?plain=1#L263

@chaunceyjiang Is it like this? The new link loses information such as the tag name, leaving only the number of rows. And the original link can find the title according to the tag name, which is relatively more flexible. So I'm more inclined not to modify. What do you think?

Copy link
Member

Choose a reason for hiding this comment

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

@karmada-bot karmada-bot removed the lgtm Indicates that a PR is ready to be merged. label Apr 16, 2024
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 53.11%. Comparing base (4898c0f) to head (e62c659).
Report is 20 commits behind head on master.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4804      +/-   ##
==========================================
+ Coverage   51.75%   53.11%   +1.35%     
==========================================
  Files         250      250              
  Lines       24964    20351    -4613     
==========================================
- Hits        12920    10809    -2111     
+ Misses      11335     8825    -2510     
- Partials      709      717       +8     
Flag Coverage Δ
unittests 53.11% <ø> (+1.35%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hulizhe
Copy link
Contributor Author

hulizhe commented Apr 16, 2024

@XiShanYongYe-Chang @zhzhuang-zju @chaosi-zju @chaunceyjiang Thanks for the code review, it helped me a lot!

Copy link
Member

@chaunceyjiang chaunceyjiang left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@XiShanYongYe-Chang XiShanYongYe-Chang left a comment

Choose a reason for hiding this comment

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

Thanks~
/lgtm
/approve

@karmada-bot karmada-bot added the lgtm Indicates that a PR is ready to be merged. label Apr 17, 2024
@karmada-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: XiShanYongYe-Chang

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

@karmada-bot karmada-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 17, 2024
@karmada-bot karmada-bot merged commit f90b91d into karmada-io:master Apr 17, 2024
12 checks passed
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. kind/failing-test Categorizes issue or PR as related to a consistently or frequently failing test. 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.

7 participants