-
Notifications
You must be signed in to change notification settings - Fork 950
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
test: add cri test for pouch #524
Conversation
We found this is your first time to contribute to Pouch, @czm4514 |
do you have any idea about this feature? |
Please finish details about the PR description. And sign off your commits. |
Codecov Report
@@ Coverage Diff @@
## master #524 +/- ##
==========================================
+ Coverage 14.49% 20.47% +5.97%
==========================================
Files 64 39 -25
Lines 3173 2056 -1117
==========================================
- Hits 460 421 -39
+ Misses 2666 1590 -1076
+ Partials 47 45 -2
Continue to review full report at Codecov.
|
Could you help this to integration test system in |
hack/cri-test/versions
Outdated
@@ -0,0 +1,3 @@ | |||
RUNC_VERSION=74a17296470088de3805e138d3d87c62e613dfc4 | |||
CONTAINERD_VERSION=6c7abf7c76c1973d4fb4b0bad51691de84869a51 |
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.
RUNC_VERSION and CONTAINERD_VERSION are not used.
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.
yes,It's really not used
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 have removed unused variables
hack/cri-test/test-utils.sh
Outdated
fi | ||
sudo pkill containerd | ||
keepalive "containerd" ${RESTART_WAIT_PERIOD} &> ${report_dir}/containerd.log & | ||
containerd_pid=$! |
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.
line 39-41, please check the existence of containerd first, kill it only if containerd doesn't exist.
hack/cri-test/test-utils.sh
Outdated
keepalive "pouchd ${POUCH_FLAGS}" \ | ||
${RESTART_WAIT_PERIOD} &> ${report_dir}/pouch.log & | ||
pouch_pid=$! | ||
readiness_check "pouch version" |
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.
line 47-50, please also check pouchd process first
@czm4514 Please also use 'git rebase -i HEAD~N' to rebase this PR. |
hack/cri-test/test-cri.sh
Outdated
FOCUS=${FOCUS:-""} | ||
|
||
# SKIP skips the test to skip. | ||
SKIP=${SKIP:-""} |
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.
Change the ENV FOCUS
SKIP
to CRI_FOCUS
,CRI_SKIP
After
Please git commit -s --amend to sign off you commit. Maybe you need to |
Also change the title from "feature:" to "test:", the same to the commit message. As this is a test PR. |
Signed-off-by: czm4514 <[email protected]>
LGTM |
Feel so good to see the merging. Thanks very much for your work. @czm4514 |
Signed-off-by: czm4514 [email protected]
1.Describe what this PR did
this PR is to add cri test for pouch.
2.Does this pull request fix one issue?
3.Describe how you did it
i use the cri-tools project to add cri test for pouch. there are lots of test cases in the project.
4.Describe how to verify it
when you run the test-cri.sh ,
./test-cri.sh
you could get the information like this(the variable focus is set to "Runtime"):
5.Special notes for reviews
when you want to run Specified test case ,you can through the param "--focus" to filter. you can get mor informations from https://github.com/kubernetes-incubator/cri-tools. you can use the cri-tools through the command: critest -f "image status|public image" validation