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
Support multiple containers and multiple processes for time chaos #325
Conversation
Signed-off-by: Yang Keao <keao.yang@yahoo.com>
Codecov Report
@@ Coverage Diff @@
## master #325 +/- ##
=======================================
Coverage 58.75% 58.75%
=======================================
Files 51 51
Lines 2849 2849
=======================================
Hits 1674 1674
Misses 1057 1057
Partials 118 118 Continue to review full report at Codecov.
|
@@ -128,15 +128,30 @@ tidy: | |||
GO111MODULE=on go mod tidy | |||
git diff --quiet go.mod go.sum | |||
|
|||
image: | |||
image: image-chaos-daemon image-chaos-mesh image-chaos-fs image-chaos-scripts image-chaos-grafana image-chaos-dashboard image-chaos-kernel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made this change because building chaos-kernel image is too slow (on my minikube virtual machine).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to change CI scripts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. I only split image
into multiple subtasks, so there is no need to change CI scripts.
Signed-off-by: Yang Keao <keao.yang@yahoo.com>
Signed-off-by: Yang Keao <keao.yang@yahoo.com>
Signed-off-by: Yang Keao <keao.yang@yahoo.com>
Signed-off-by: Yang Keao <keao.yang@yahoo.com>
Signed-off-by: Yang Keao <keao.yang@yahoo.com>
Signed-off-by: Yang Keao <keao.yang@yahoo.com>
Signed-off-by: Yang Keao <keao.yang@yahoo.com>
Signed-off-by: Yang Keao <keao.yang@yahoo.com>
pkg/chaosdaemon/util.go
Outdated
|
||
reader, err := os.Open(statusPath) | ||
if err != nil { | ||
log.Info("read status file error", "path", statusPath) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
log.Error
?
allPids := append(childPids, pid) | ||
log.Info("all related processes found", "pids", allPids) | ||
|
||
for _, pid := range allPids { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if the child process disappeared at this time?
Signed-off-by: Yang Keao <keao.yang@yahoo.com>
Signed-off-by: Yang Keao <keao.yang@yahoo.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/merge |
/run-all-tests |
What problem does this PR solve?
Support multiple containers and multiple processes for time chaos.
What is changed and how does it work?
Check List
Tests
Code changes