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

test: install criu in ci test #2175

Merged
merged 1 commit into from
Aug 30, 2018
Merged

test: install criu in ci test #2175

merged 1 commit into from
Aug 30, 2018

Conversation

Ace-Tang
Copy link
Contributor

@Ace-Tang Ace-Tang commented Aug 29, 2018

Signed-off-by: Ace-Tang aceapril@126.com

Ⅰ. Describe what this PR did

install criu brfore ci test begin, update runc version to v1.0.0-rc4-2
to enable checkpoint/restore function. Uncomment start from checkpoint
test case.

Ⅱ. Does this pull request fix one issue?

Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗?)

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

@Ace-Tang
Copy link
Contributor Author

Ace-Tang commented Aug 30, 2018

Please merge this pr after I release alibaba/runc version v1.0.0-rc4-2.
alibaba-archive/runc#13

if [[ "${os_dist}" = "Ubuntu" ]]; then
criu::ubuntu::install_dependencies > /dev/null
criu::ubuntu::install > /dev/null
fi
Copy link
Contributor

Choose a reason for hiding this comment

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

without error ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If fails here, all test will stop and fail.


# criu::ubuntu::install will install criu from source.
criu::ubuntu::install() {
local tmpdir branch
Copy link
Contributor

Choose a reason for hiding this comment

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

remove the branch if it is useless

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure.

install criu brfore ci test begin, update runc version to v1.0.0-rc4-2
to enable checkpoint/restore function. Uncomment start from checkpoint
test case.

Signed-off-by: Ace-Tang <aceapril@126.com>
@codecov-io
Copy link

Codecov Report

Merging #2175 into master will increase coverage by 0.63%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2175      +/-   ##
==========================================
+ Coverage   64.34%   64.97%   +0.63%     
==========================================
  Files         209      209              
  Lines       16739    16739              
==========================================
+ Hits        10770    10876     +106     
+ Misses       4635     4515     -120     
- Partials     1334     1348      +14
Flag Coverage Δ
#criv1alpha1test 32.76% <ø> (+0.05%) ⬆️
#criv1alpha2test 33.56% <ø> (+0.17%) ⬆️
#integrationtest 39.92% <ø> (+0.53%) ⬆️
#unittest 23.95% <ø> (ø) ⬆️
Impacted Files Coverage Δ
pkg/meta/store.go 62.5% <0%> (-1.57%) ⬇️
daemon/mgr/container_utils.go 83.13% <0%> (-1.21%) ⬇️
cri/v1alpha2/cri.go 63.66% <0%> (+0.32%) ⬆️
daemon/mgr/container.go 56.98% <0%> (+0.82%) ⬆️
ctrd/image.go 78.94% <0%> (+2.19%) ⬆️
apis/server/container_bridge.go 78.51% <0%> (+2.59%) ⬆️
ctrd/watch.go 80.3% <0%> (+7.57%) ⬆️
ctrd/container.go 53.82% <0%> (+10.52%) ⬆️
daemon/mgr/container_checkpoint.go 68.67% <0%> (+46.98%) ⬆️

Copy link
Contributor

@fuweid fuweid left a comment

Choose a reason for hiding this comment

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

LGTM, @Ace-Tang please create PR to change the hack/package script 😄

@fuweid fuweid merged commit 009dff8 into AliyunContainerService:master Aug 30, 2018
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.

4 participants