-
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: aggregate update test cases to reduce CI time #2607
Merged
allencloud
merged 1 commit into
AliyunContainerService:master
from
allencloud:update-test
Dec 26, 2018
Merged
test: aggregate update test cases to reduce CI time #2607
allencloud
merged 1 commit into
AliyunContainerService:master
from
allencloud:update-test
Dec 26, 2018
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov Report
@@ Coverage Diff @@
## master #2607 +/- ##
==========================================
- Coverage 69.46% 69.43% -0.04%
==========================================
Files 279 279
Lines 18833 18833
==========================================
- Hits 13083 13076 -7
- Misses 4281 4290 +9
+ Partials 1469 1467 -2
|
2fc5a08
to
b5a8085
Compare
@allencloud I gave a testing in ubuntu 16.04, I go different error as follows: My failure:
Travis CI failure: FAIL: /home/travis/gopath/src/github.com/alibaba/pouch/test/cli_update_test.go:40: PouchUpdateSuite.TestUpdateContainerNormalOption
/home/travis/gopath/src/github.com/alibaba/pouch/test/cli_update_test.go:77:
command.PouchRun("update",
// cpu related update
"--cpu-shares", "2000",
"--cpu-period", "1500",
"--cpu-quota", "1100",
"--cpuset-cpus", "1",
"--cpuset-mems", "1",
// memory related update
"-m", "500M",
// env related update
// adding a new env
"--env", "foo=bar",
// label related update
"--label", "foo=bar",
name,
).Assert(c, icmd.Success)
/home/travis/gopath/src/github.com/alibaba/pouch/vendor/github.com/gotestyourself/gotestyourself/icmd/command.go:61:
t.Fatalf("at %s:%d - %s\n", filepath.Base(file), line, err.Error())
... Error: at cli_update_test.go:77 -
Command: /usr/local/bin/pouch update --cpu-shares 2000 --cpu-period 1500 --cpu-quota 1100 --cpuset-cpus 1 --cpuset-mems 1 -m 500M --env foo=bar --label foo=bar TestUpdateContainerNormalOption
ExitCode: 1
Error: exit status 1
Stdout:
Stderr: Error: {"message":"failed to update resource: runc did not terminate sucessfully: failed to write 1 to cpuset.mems: write /sys/fs/cgroup/cpuset/default/04a280b593f6ee33e515d458f956539c059a49e6d83efbdae5ed5eb00e7738d1/cpuset.mems: invalid argument\n: unknown"} |
I will come to take a look at this. Thanks a lot for your feedback. @chuanchang |
b5a8085
to
5ed911b
Compare
Signed-off-by: Allen Sun <allensun.shl@alibaba-inc.com>
5ed911b
to
b7e4b39
Compare
LGTM |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Allen Sun allensun.shl@alibaba-inc.com
Ⅰ. Describe what this PR did
aggregate update test cases to reduce CI time.
Since several test cases in
PouchUpdateSuite
is quite similar, we could aggregate all of them to be just one test caseTestUpdateContainerNormalOption
. In this test case, we only create and run one container which will definitely save lots of travis CI integration test time.see:
Ⅱ. Does this pull request fix one issue?
this is related to #1184.
Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗?)
no need
Ⅳ. Describe how to verify it
none
Ⅴ. Special notes for reviews
none