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

simplified logic and add test case #3422

Merged
merged 3 commits into from
Jul 7, 2022
Merged

Conversation

0xff-dev
Copy link
Contributor

@0xff-dev 0xff-dev commented Jul 5, 2022

Signed-off-by: 0xff-dev stevenshuang521@gmail.com

What problem does this PR solve?

simplified logic and add test case.

What's changed and how it works?

return in advance when conditions are met to avoid redundant traversal.

Related changes

  • Need to update chaos-mesh/website
  • Need to update Dashboard UI
  • Need to cheery-pick to release branches
    • release-2.2
    • release-2.1

Checklist

CHANGELOG

  • I have updated the CHANGELOG.md
  • I have labeled this PR with "no-need-update-changelog"

Tests

  • Unit test
  • E2E test
  • No code
  • Manual test (add steps below)

Side effects

  • Breaking backward compatibility

DCO

If you find the DCO check fails, please run commands like below (Depends on the actual situations. For example, if the failed commit isn't the most recent) to fix it:

git commit --amend --signoff
git push --force

@ti-chi-bot
Copy link
Member

ti-chi-bot commented Jul 5, 2022

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • STRRL
  • cwen0

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

The full list of commands accepted by this bot can be found here.

Reviewer can indicate their review by submitting an approval review.
Reviewer can cancel approval by submitting a request changes review.

@ti-chi-bot
Copy link
Member

Welcome @0xff-dev!

It looks like this is your first PR to chaos-mesh/chaos-mesh 🎉.

I'm the bot to help you request reviewers, add labels and more, See available commands.

We want to make sure your contribution gets all the attention it needs!



Thank you, and welcome to chaos-mesh/chaos-mesh. 😃

@codecov
Copy link

codecov bot commented Jul 6, 2022

Codecov Report

Merging #3422 (813007c) into master (ea12c18) will decrease coverage by 0.12%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3422      +/-   ##
==========================================
- Coverage   40.82%   40.70%   -0.13%     
==========================================
  Files         166      166              
  Lines       13990    13985       -5     
==========================================
- Hits         5711     5692      -19     
- Misses       7849     7860      +11     
- Partials      430      433       +3     
Impacted Files Coverage Δ
pkg/finalizer/utils.go 100.00% <100.00%> (+5.55%) ⬆️
.../workflow/controllers/abort_workflow_reconciler.go 48.97% <0.00%> (-8.17%) ⬇️
pkg/workflow/controllers/chaos_node_reconciler.go 58.16% <0.00%> (-3.16%) ⬇️
.../workflow/controllers/workflow_entry_reconciler.go 47.02% <0.00%> (-2.17%) ⬇️
controllers/statuscheck/controller.go 84.14% <0.00%> (+4.87%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 40d7f06...813007c. Read the comment docs.

Copy link
Member

@cwen0 cwen0 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

@STRRL STRRL left a comment

Choose a reason for hiding this comment

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

LGTM!

@STRRL
Copy link
Member

STRRL commented Jul 7, 2022

Thanks for your contribution! @0xff-dev

@STRRL
Copy link
Member

STRRL commented Jul 7, 2022

Hi @0xff-dev, please resolve the conflicts with CHANGELOG.md. And I prefer to change the content in changelog like

Simplified logic and add test case about finalizers. [#3422](https://github.com/chaos-mesh/chaos-mesh/pull/3422)

@0xff-dev
Copy link
Contributor Author

0xff-dev commented Jul 7, 2022

Hi @0xff-dev, please resolve the conflicts with CHANGELOG.md. And I prefer to change the content in changelog like

Simplified logic and add test case about finalizers. [#3422](https://github.com/chaos-mesh/chaos-mesh/pull/3422)

ok.

@STRRL
Copy link
Member

STRRL commented Jul 7, 2022

Hi @0xff-dev, please resolve the conflicts with CHANGELOG.md. And I prefer to change the content in changelog like

Simplified logic and add test case about finalizers. [#3422](https://github.com/chaos-mesh/chaos-mesh/pull/3422[](https://github.com/chaos-mesh/chaos-mesh/pull/3422))

ok.

Hi @0xff-dev ! How about updating the changelog? 🤣

Signed-off-by: 0xff-dev <stevenshuang521@gmail.com>
@0xff-dev
Copy link
Contributor Author

0xff-dev commented Jul 7, 2022

Hi @0xff-dev, please resolve the conflicts with CHANGELOG.md. And I prefer to change the content in changelog like

Simplified logic and add test case about finalizers. [#3422](https://github.com/chaos-mesh/chaos-mesh/pull/3422[](https://github.com/chaos-mesh/chaos-mesh/pull/3422))

ok.

Hi @0xff-dev ! How about updating the changelog? 🤣
I'm so sorry, I just resolved the conflict. changelog has been updated

@0xff-dev
Copy link
Contributor Author

0xff-dev commented Jul 7, 2022

Hi @0xff-dev, please resolve the conflicts with CHANGELOG.md. And I prefer to change the content in changelog like

Simplified logic and add test case about finalizers. [#3422](https://github.com/chaos-mesh/chaos-mesh/pull/3422[](https://github.com/chaos-mesh/chaos-mesh/pull/3422))

ok.

Hi @0xff-dev ! How about updating the changelog? 🤣

First contribution, a little excited. 😅

@STRRL
Copy link
Member

STRRL commented Jul 7, 2022

Hi @0xff-dev, please resolve the conflicts with CHANGELOG.md. And I prefer to change the content in changelog like

Simplified logic and add test case about finalizers. [#3422](https://github.com/chaos-mesh/chaos-mesh/pull/3422[](https://github.com/chaos-mesh/chaos-mesh/pull/3422)[](https://github.com/chaos-mesh/chaos-mesh/pull/3422[](https://github.com/chaos-mesh/chaos-mesh/pull/3422)))

ok.

Hi @0xff-dev ! How about updating the changelog? 🤣

First contribution, a little excited. 😅

Haha, again, thanks for your contribution!

@STRRL
Copy link
Member

STRRL commented Jul 7, 2022

/merge

@ti-chi-bot
Copy link
Member

This pull request has been accepted and is ready to merge.

Commit hash: 404394f

@ti-chi-bot
Copy link
Member

@0xff-dev: Your PR was out of date, I have automatically updated it for you.

At the same time I will also trigger all tests for you:

/run-all-tests

If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

@ti-chi-bot ti-chi-bot merged commit 9522623 into chaos-mesh:master Jul 7, 2022
STRRL pushed a commit to Garima-Negi/chaos-mesh that referenced this pull request Sep 13, 2022
Signed-off-by: 0xff-dev <stevenshuang521@gmail.com>

Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
Signed-off-by: STRRL <im@strrl.dev>
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.

None yet

4 participants