-
Notifications
You must be signed in to change notification settings - Fork 850
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 timechaos and pause timechaos e2e test case #441
Conversation
/run-e2e-test |
Codecov Report
@@ Coverage Diff @@
## master #441 +/- ##
==========================================
+ Coverage 60.40% 61.48% +1.08%
==========================================
Files 36 64 +28
Lines 1985 4069 +2084
==========================================
+ Hits 1199 2502 +1303
- Misses 692 1379 +687
- Partials 94 188 +94
Continue to review full report at Codecov.
|
/run-e2e-test |
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 think this could wait unit #442 is merged and organize the timechaos case with its style.
test/config.go
Outdated
@@ -22,6 +22,7 @@ type Config struct { | |||
ManagerTag string | |||
DaemonImage string | |||
DaemonTag string | |||
TimerImage string |
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 tend to name it as E2eImage as we would put more binary to help e2e test in this image, not only timechaos.
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.
You mean we may add some other binaries to this image? Make sense!
Will update it tomorrow
Signed-off-by: yeya24 <[email protected]>
Signed-off-by: yeya24 <[email protected]>
Signed-off-by: yeya24 <[email protected]>
Signed-off-by: yeya24 <[email protected]>
/run-e2e-test |
Found a flaky test case https://github.com/pingcap/chaos-mesh/blob/master/pkg/ptrace/ptrace_linux_test.go here Not related to this PR. E2E test passed |
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.
Almost LGTM
hack/e2e.sh
Outdated
@@ -153,6 +154,7 @@ function e2e::image_load() { | |||
for n in ${names[@]}; do | |||
$KIND_BIN load docker-image --name $CLUSTER ${DOCKER_REGISTRY}/$n:$IMAGE_TAG | |||
done | |||
$KIND_BIN load docker-image --name $CLUSTER ${DOCKER_REGISTRY}/pingcap/e2e-helper:latest |
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.
we could add pingcap/e2e-helper into names
local names=(
pingcap/chaos-mesh
pingcap/chaos-daemon
)
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 put it below since I think maybe helper image just needs to use fixed latest
tag. Do we need to use ${IMAGE_TAG}
?
Do we need to push it to docker hub as well? If yes, I am happy to update the tag
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.
Someday we would use e2e test framework as our stability env and we would push relative image to the internal hub.
Makefile
Outdated
@@ -217,6 +217,9 @@ endif | |||
cp -r manifests test/image/e2e | |||
docker build -t "${DOCKER_REGISTRY_PREFIX}pingcap/chaos-mesh-e2e:${IMAGE_TAG}" test/image/e2e | |||
|
|||
image-e2e-helper: | |||
docker build -t "${DOCKER_REGISTRY_PREFIX}pingcap/e2e-helper:latest" test/cmd/e2e_helper |
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.
use ${IMAGE_TAG} here
hack/run-e2e.sh
Outdated
@@ -80,6 +80,7 @@ e2e_args=( | |||
--manager-image-tag="${IMAGE_TAG}" | |||
--daemon-image="${DOCKER_REGISTRY}/pingcap/chaos-daemon" | |||
--daemon-image-tag="${IMAGE_TAG}" | |||
--e2e-image="${DOCKER_REGISTRY}/pingcap/e2e-helper:latest" |
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.
use ${DOCKER_REGISTRY}/pingcap/e2e-helper:${IMAGE_TAG}
Signed-off-by: yeya24 <[email protected]>
/run-e2e-test |
1 similar comment
/run-e2e-test |
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 |
@yeya24 merge failed. |
/run-all-tests |
/merge |
/run-all-tests |
@yeya24 merge failed. |
/run-e2e-test |
/run-e2e-test |
1 similar comment
/run-e2e-test |
* add timechaos e2e and pause timechaos Signed-off-by: yeya24 <[email protected]> * add kind load timer image Signed-off-by: yeya24 <[email protected]> * update e2e helper image Signed-off-by: yeya24 <[email protected]> * address comments Signed-off-by: yeya24 <[email protected]> * use image tag in e2e image Signed-off-by: yeya24 <[email protected]> Co-authored-by: pingcap-github-bot <[email protected]>
Signed-off-by: yeya24 [email protected]
In order to test time chaos in e2e, I add a test program, which is mainly copied from #222