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

chaos-daemon support graceful shutdown #2668

Merged
merged 30 commits into from
Feb 17, 2022

Conversation

Hexilee
Copy link
Member

@Hexilee Hexilee commented Dec 17, 2021

What problem does this PR solve?

Close #2650

What's changed and how it works?

Related changes

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

Checklist

Tests

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

Side effects

  • Breaking backward compatibility

Release note

Please add a release note.

You can safely ignore this section if you don't think this PR needs a release note.

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

Signed-off-by: xixi <i@hexilee.me>
Signed-off-by: xixi <i@hexilee.me>
@ti-chi-bot
Copy link
Member

ti-chi-bot commented Dec 17, 2021

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • Andrewmatilde
  • YangKeao

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.

@codecov
Copy link

codecov bot commented Jan 11, 2022

Codecov Report

Merging #2668 (4729fee) into master (f3e2951) will decrease coverage by 0.30%.
The diff coverage is 4.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2668      +/-   ##
==========================================
- Coverage   41.05%   40.74%   -0.31%     
==========================================
  Files         147      147              
  Lines       11991    12033      +42     
==========================================
- Hits         4923     4903      -20     
- Misses       6701     6761      +60     
- Partials      367      369       +2     
Impacted Files Coverage Δ
pkg/bpm/bpm.go 34.04% <0.00%> (-5.47%) ⬇️
pkg/chaosdaemon/server.go 36.27% <8.33%> (-2.11%) ⬇️
pkg/workflow/controllers/chaos_node_reconciler.go 55.87% <0.00%> (-5.45%) ⬇️

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 f3e2951...4729fee. Read the comment docs.

Signed-off-by: xixi <i@hexilee.me>
Signed-off-by: xixi <i@hexilee.me>
@ti-chi-bot ti-chi-bot added size/XL and removed size/L labels Jan 12, 2022
@Hexilee
Copy link
Member Author

Hexilee commented Jan 12, 2022

/run-e2e-tests

Signed-off-by: xixi <i@hexilee.me>
Signed-off-by: xixi <i@hexilee.me>
Signed-off-by: xixi <i@hexilee.me>
Signed-off-by: xixi <i@hexilee.me>
@Hexilee
Copy link
Member Author

Hexilee commented Jan 13, 2022

/run-e2e-tests

pkg/chaosdaemon/server.go Outdated Show resolved Hide resolved
@Hexilee Hexilee mentioned this pull request Jan 13, 2022
9 tasks
Signed-off-by: xixi <i@hexilee.me>
Signed-off-by: xixi <i@hexilee.me>
Signed-off-by: Hexilee <i@hexilee.me>
Signed-off-by: Hexilee <i@hexilee.me>
Signed-off-by: Hexilee <i@hexilee.me>
@Hexilee
Copy link
Member Author

Hexilee commented Feb 11, 2022

/run-e2e-tests

Copy link
Member

@Andrewmatilde Andrewmatilde left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: xixi <i@hexilee.me>
Signed-off-by: xixi <i@hexilee.me>
Copy link
Member

@YangKeao YangKeao left a comment

Choose a reason for hiding this comment

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

LGTM

@Hexilee
Copy link
Member Author

Hexilee commented Feb 17, 2022

/merge

@ti-chi-bot
Copy link
Member

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

Commit hash: 8977272

@Hexilee
Copy link
Member Author

Hexilee commented Feb 17, 2022

/run-e2e-tests

1 similar comment
@Hexilee
Copy link
Member Author

Hexilee commented Feb 17, 2022

/run-e2e-tests

@ti-chi-bot ti-chi-bot merged commit b4181f4 into chaos-mesh:master Feb 17, 2022
mikechengwei pushed a commit to mikechengwei/chaos-mesh that referenced this pull request Feb 21, 2022
* add Shutdown method for bpm

Signed-off-by: xixi <i@hexilee.me>

* chaos-daemon support graceful shutdown

Signed-off-by: xixi <i@hexilee.me>

* fix duplicated daemonServer

Signed-off-by: xixi <i@hexilee.me>

* add e2e test for graceful shutdown

Signed-off-by: xixi <i@hexilee.me>

* make fmt

Signed-off-by: xixi <i@hexilee.me>

* make check

Signed-off-by: xixi <i@hexilee.me>

* add graceful shutdown test for io chaos

Signed-off-by: xixi <i@hexilee.me>

* make check

Signed-off-by: xixi <i@hexilee.me>

* skip Graceful test in e2e

Signed-off-by: xixi <i@hexilee.me>

* go mod tidy

Signed-off-by: xixi <i@hexilee.me>

* add additional e2e test for graceful shutdown

Signed-off-by: xixi <i@hexilee.me>

* change test groups of graceful shutdown

Signed-off-by: xixi <i@hexilee.me>

* fix errors handling

Signed-off-by: xixi <i@hexilee.me>

* wait more time for restarting

Signed-off-by: xixi <i@hexilee.me>

* add more test case

Signed-off-by: xixi <i@hexilee.me>

* delete custom resources after graceful shutdown test

Signed-off-by: xixi <i@hexilee.me>

* fix ginkgo usages

Signed-off-by: xixi <i@hexilee.me>

* cancel after deleting resources

Signed-off-by: xixi <i@hexilee.me>

* remove duplicated tests

Signed-off-by: xixi <i@hexilee.me>

* remove graceful restart cases; they are bugs instead of features

Signed-off-by: xixi <i@hexilee.me>

* fix code style

Signed-off-by: Hexilee <i@hexilee.me>

* mod tidy

Signed-off-by: Hexilee <i@hexilee.me>

* make check

Signed-off-by: xixi <i@hexilee.me>

Co-authored-by: Andrewmatilde <davis6813585853062@outlook.com>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
Signed-off-by: mikechengwei <842725815@qq.com>
@STRRL STRRL mentioned this pull request Feb 22, 2022
51 tasks
basit9958 added a commit to basit9958/chaos-mesh that referenced this pull request Mar 17, 2022
basit9958 added a commit to basit9958/chaos-mesh that referenced this pull request Mar 17, 2022
afzal442 pushed a commit to afzal442/chaos-mesh that referenced this pull request Mar 19, 2022
* add Shutdown method for bpm

Signed-off-by: xixi <i@hexilee.me>

* chaos-daemon support graceful shutdown

Signed-off-by: xixi <i@hexilee.me>

* fix duplicated daemonServer

Signed-off-by: xixi <i@hexilee.me>

* add e2e test for graceful shutdown

Signed-off-by: xixi <i@hexilee.me>

* make fmt

Signed-off-by: xixi <i@hexilee.me>

* make check

Signed-off-by: xixi <i@hexilee.me>

* add graceful shutdown test for io chaos

Signed-off-by: xixi <i@hexilee.me>

* make check

Signed-off-by: xixi <i@hexilee.me>

* skip Graceful test in e2e

Signed-off-by: xixi <i@hexilee.me>

* go mod tidy

Signed-off-by: xixi <i@hexilee.me>

* add additional e2e test for graceful shutdown

Signed-off-by: xixi <i@hexilee.me>

* change test groups of graceful shutdown

Signed-off-by: xixi <i@hexilee.me>

* fix errors handling

Signed-off-by: xixi <i@hexilee.me>

* wait more time for restarting

Signed-off-by: xixi <i@hexilee.me>

* add more test case

Signed-off-by: xixi <i@hexilee.me>

* delete custom resources after graceful shutdown test

Signed-off-by: xixi <i@hexilee.me>

* fix ginkgo usages

Signed-off-by: xixi <i@hexilee.me>

* cancel after deleting resources

Signed-off-by: xixi <i@hexilee.me>

* remove duplicated tests

Signed-off-by: xixi <i@hexilee.me>

* remove graceful restart cases; they are bugs instead of features

Signed-off-by: xixi <i@hexilee.me>

* fix code style

Signed-off-by: Hexilee <i@hexilee.me>

* mod tidy

Signed-off-by: Hexilee <i@hexilee.me>

* make check

Signed-off-by: xixi <i@hexilee.me>

Co-authored-by: Andrewmatilde <davis6813585853062@outlook.com>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
zhqqqy pushed a commit to zhqqqy/chaos-mesh that referenced this pull request Apr 10, 2022
* add Shutdown method for bpm

Signed-off-by: xixi <i@hexilee.me>

* chaos-daemon support graceful shutdown

Signed-off-by: xixi <i@hexilee.me>

* fix duplicated daemonServer

Signed-off-by: xixi <i@hexilee.me>

* add e2e test for graceful shutdown

Signed-off-by: xixi <i@hexilee.me>

* make fmt

Signed-off-by: xixi <i@hexilee.me>

* make check

Signed-off-by: xixi <i@hexilee.me>

* add graceful shutdown test for io chaos

Signed-off-by: xixi <i@hexilee.me>

* make check

Signed-off-by: xixi <i@hexilee.me>

* skip Graceful test in e2e

Signed-off-by: xixi <i@hexilee.me>

* go mod tidy

Signed-off-by: xixi <i@hexilee.me>

* add additional e2e test for graceful shutdown

Signed-off-by: xixi <i@hexilee.me>

* change test groups of graceful shutdown

Signed-off-by: xixi <i@hexilee.me>

* fix errors handling

Signed-off-by: xixi <i@hexilee.me>

* wait more time for restarting

Signed-off-by: xixi <i@hexilee.me>

* add more test case

Signed-off-by: xixi <i@hexilee.me>

* delete custom resources after graceful shutdown test

Signed-off-by: xixi <i@hexilee.me>

* fix ginkgo usages

Signed-off-by: xixi <i@hexilee.me>

* cancel after deleting resources

Signed-off-by: xixi <i@hexilee.me>

* remove duplicated tests

Signed-off-by: xixi <i@hexilee.me>

* remove graceful restart cases; they are bugs instead of features

Signed-off-by: xixi <i@hexilee.me>

* fix code style

Signed-off-by: Hexilee <i@hexilee.me>

* mod tidy

Signed-off-by: Hexilee <i@hexilee.me>

* make check

Signed-off-by: xixi <i@hexilee.me>

Co-authored-by: Andrewmatilde <davis6813585853062@outlook.com>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
Signed-off-by: zhqqqy <zhqqqy@163.com>
@STRRL STRRL added this to the Release 2.2 milestone Apr 15, 2022
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.

subprocesses of chaos-daemon cannot gracefully stop
5 participants