Closed mohamedawnallah closed 2 months ago
:warning: Please install the to ensure uploads and comments are reliably processed by Codecov.
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 28.35%. Comparing base (
721495d
) to head (37af811
). Report is 54 commits behind head on master.
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
/cc @zhzhuang-zju @Vacant2333
Thanks a lot, @zhzhuang-zju, for the feedback. It is much better now! π I will ask for a review when the GitHub CI tests finish.
/retest
@mohamedawnallah: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test
message.
seems like there's something wrong with the e2e test, I'll take a look at it first
@mohamedawnallah The modification should fix the previous e2e failure. However, I was wondering if it would be possible to create a new cluster and test karmadactl taint
on the newly created cluster, which would have the following benefits:
ginkgo.By(fmt.Sprintf("Removing %s taint from the cluster", taint), func() {
, taint may be left behind. After creating a new cluster, you just need to remove the cluster at the end.WDYT? A similar implementation can be found in https://github.com/karmada-io/karmada/blob/bc1c96ee05142f89b7aa5dc8a55001dcca57ff30/test/e2e/rescheduling_test.go#L66-L77
Thanks again @zhzhuang-zju for the feedback! I used the new cluster approach you suggested. I will ask for review when GitHub CI tests finish :)
@mohamedawnallah Good job~ cc @XiShanYongYe-Chang @Vacant2333
/lgtm
/lgtm cancel
@zhzhuang-zju Apologies for the delayed response. I was busy submitting the proposal for the Karmada: Enhance Test Coverage for Search, Operator, and Webhook Components LFX project. I've incorporated your feedback and will request a review once the GitHub CI tests are complete :)
I'm wondering if we should go to the previous approach since creating a cluster still require it to be run serially?
@zhzhuang-zju Apologies for the delayed response. I was busy submitting the proposal for the Karmada: Enhance Test Coverage for Search, Operator, and Webhook Components LFX project.
@mohamedawnallah No problem, just proceed at your own pace.
I'm wondering if we should go to the previous approach since creating a cluster still require it to be run serially?
Do you mean there is no need to create a new cluster? The karmadactl taint
command can actually affect existing clusters, such as evicting pods. If I run e2e tests locally, it might disrupt my local member cluster, which is something we want to avoid.
BTW, you missed a modification, refer to https://github.com/karmada-io/karmada/pull/5244#discussion_r1699771953
BTW, you missed a modification, refer to #5244 (comment)
Thanks for pointing that out. I missed it initially but have now addressed it. Will ask for review when CI tests finish!
This may be off topic, but I usually run this command to execute a specific e2e test case. It used to run only the specified test, but now it's running all specs, which is quite annoying π .
Is there something I'm missing to ensure that this e2e test case only runs locally?
karmada@dev:~/Desktop/karmada/test/e2e$ ginkgo -focus "Karmadactl taint testing"
=== RUN TestE2E
Running Suite: E2E Suite - /home/karmada/Desktop/karmada/test/e2e
=================================================================
Random Seed: 1722834546
Will run 226 of 226 specs
/retest
Is there something I'm missing to ensure that this e2e test case only runs locally?
that's weird, the output for the same command on my end is as follows
β ginkgo -focus "Karmadactl taint testing"
Running Suite: E2E Suite - /root/home/workspace/code/karmada/test/e2e
=====================================================================
Random Seed: 1722838703
Will run 1 of 227 specs
Yeah found the issue ginkgo was installed 1.x.x release upgraded the major version to 2.x.x and it worked π
/lgtm cc @XiShanYongYe-Chang @Vacant2333
[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
Description
In this commit, we add e2e tests for the
karmadactl taint
command to ensure it handles various scenarios correctly. The tests include:--overwrite
flag to ensure an error is returned.--overwrite
flag.--dry-run
mode to ensure no actual changes are made.--dry-run
mode.What type of PR is this?
/kind failing-test
Which issue(s) this PR fixes:
Part of #4544
Does this PR introduce a user-facing change?: