Skip to content

runtime/opts: move WithNamespaceCgroupDeletion from containerd to its own package#3564

Merged
dmcgowan merged 1 commit intocontainerd:masterfrom
tiborvass:move-cgroups-dep-to-namespaces-pkg
Sep 3, 2019
Merged

runtime/opts: move WithNamespaceCgroupDeletion from containerd to its own package#3564
dmcgowan merged 1 commit intocontainerd:masterfrom
tiborvass:move-cgroups-dep-to-namespaces-pkg

Conversation

@tiborvass
Copy link
Copy Markdown

@tiborvass tiborvass commented Aug 20, 2019

The cgroup dependency brings in quite a lot only for WithNamespaceCgroupDeletion, which is a namespaces.DeleteOpt.

Signed-off-by: Tibor Vass tibor@docker.com

@tiborvass tiborvass force-pushed the move-cgroups-dep-to-namespaces-pkg branch from e22c227 to 527eb99 Compare August 20, 2019 22:11
@tiborvass
Copy link
Copy Markdown
Author

FYI this came up when vendoring containerd in buildkit: moby/buildkit#1107 (comment)

@tiborvass
Copy link
Copy Markdown
Author

I'm not sure why TestImagesCreateUpdateDelete is failing on https://ci.appveyor.com/project/mlaventure/containerd-3g73f/builds/26840706 cc @mlaventure

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci bot commented Aug 20, 2019

Build succeeded.

@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #3564 into master will decrease coverage by 5.03%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3564      +/-   ##
==========================================
- Coverage    42.3%   37.26%   -5.04%     
==========================================
  Files         126       84      -42     
  Lines       13869    11554    -2315     
==========================================
- Hits         5867     4306    -1561     
+ Misses       7116     6648     -468     
+ Partials      886      600     -286
Flag Coverage Δ
#linux ?
#windows 37.26% <ø> (ø) ⬆️
Impacted Files Coverage Δ
archive/tar_opts.go 11.76% <0%> (-47.06%) ⬇️
cio/io.go 1.4% <0%> (-45.08%) ⬇️
snapshots/native/native.go 1.79% <0%> (-41.26%) ⬇️
archive/tar.go 19.18% <0%> (-28.78%) ⬇️
metadata/snapshot.go 23.86% <0%> (-24.05%) ⬇️
content/local/writer.go 57.69% <0%> (-0.97%) ⬇️
gc/scheduler/scheduler.go 66.34% <0%> (-0.97%) ⬇️
oci/spec_opts.go 28.96% <0%> (-0.24%) ⬇️
mount/temp_unix.go
sys/reaper_linux.go
... and 40 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 640860a...527eb99. Read the comment docs.

3 similar comments
@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #3564 into master will decrease coverage by 5.03%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3564      +/-   ##
==========================================
- Coverage    42.3%   37.26%   -5.04%     
==========================================
  Files         126       84      -42     
  Lines       13869    11554    -2315     
==========================================
- Hits         5867     4306    -1561     
+ Misses       7116     6648     -468     
+ Partials      886      600     -286
Flag Coverage Δ
#linux ?
#windows 37.26% <ø> (ø) ⬆️
Impacted Files Coverage Δ
archive/tar_opts.go 11.76% <0%> (-47.06%) ⬇️
cio/io.go 1.4% <0%> (-45.08%) ⬇️
snapshots/native/native.go 1.79% <0%> (-41.26%) ⬇️
archive/tar.go 19.18% <0%> (-28.78%) ⬇️
metadata/snapshot.go 23.86% <0%> (-24.05%) ⬇️
content/local/writer.go 57.69% <0%> (-0.97%) ⬇️
gc/scheduler/scheduler.go 66.34% <0%> (-0.97%) ⬇️
oci/spec_opts.go 28.96% <0%> (-0.24%) ⬇️
mount/temp_unix.go
sys/reaper_linux.go
... and 40 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 640860a...527eb99. Read the comment docs.

@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #3564 into master will decrease coverage by 5.03%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3564      +/-   ##
==========================================
- Coverage    42.3%   37.26%   -5.04%     
==========================================
  Files         126       84      -42     
  Lines       13869    11554    -2315     
==========================================
- Hits         5867     4306    -1561     
+ Misses       7116     6648     -468     
+ Partials      886      600     -286
Flag Coverage Δ
#linux ?
#windows 37.26% <ø> (ø) ⬆️
Impacted Files Coverage Δ
archive/tar_opts.go 11.76% <0%> (-47.06%) ⬇️
cio/io.go 1.4% <0%> (-45.08%) ⬇️
snapshots/native/native.go 1.79% <0%> (-41.26%) ⬇️
archive/tar.go 19.18% <0%> (-28.78%) ⬇️
metadata/snapshot.go 23.86% <0%> (-24.05%) ⬇️
content/local/writer.go 57.69% <0%> (-0.97%) ⬇️
gc/scheduler/scheduler.go 66.34% <0%> (-0.97%) ⬇️
oci/spec_opts.go 28.96% <0%> (-0.24%) ⬇️
mount/temp_unix.go
sys/reaper_linux.go
... and 40 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 640860a...527eb99. Read the comment docs.

@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #3564 into master will decrease coverage by 5.03%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3564      +/-   ##
==========================================
- Coverage    42.3%   37.26%   -5.04%     
==========================================
  Files         126       84      -42     
  Lines       13869    11554    -2315     
==========================================
- Hits         5867     4306    -1561     
+ Misses       7116     6648     -468     
+ Partials      886      600     -286
Flag Coverage Δ
#linux ?
#windows 37.26% <ø> (ø) ⬆️
Impacted Files Coverage Δ
archive/tar_opts.go 11.76% <0%> (-47.06%) ⬇️
cio/io.go 1.4% <0%> (-45.08%) ⬇️
snapshots/native/native.go 1.79% <0%> (-41.26%) ⬇️
archive/tar.go 19.18% <0%> (-28.78%) ⬇️
metadata/snapshot.go 23.86% <0%> (-24.05%) ⬇️
content/local/writer.go 57.69% <0%> (-0.97%) ⬇️
gc/scheduler/scheduler.go 66.34% <0%> (-0.97%) ⬇️
oci/spec_opts.go 28.96% <0%> (-0.24%) ⬇️
mount/temp_unix.go
sys/reaper_linux.go
... and 40 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 640860a...527eb99. Read the comment docs.

@codecov-io
Copy link
Copy Markdown

codecov-io commented Aug 21, 2019

Codecov Report

Merging #3564 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3564   +/-   ##
=======================================
  Coverage   42.26%   42.26%           
=======================================
  Files         126      126           
  Lines       13881    13881           
=======================================
  Hits         5867     5867           
  Misses       7128     7128           
  Partials      886      886
Flag Coverage Δ
#linux 45.75% <ø> (ø) ⬆️
#windows 37.23% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3096178...6624a70. Read the comment docs.

@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #3564 into master will decrease coverage by 5.03%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3564      +/-   ##
==========================================
- Coverage    42.3%   37.26%   -5.04%     
==========================================
  Files         126       84      -42     
  Lines       13869    11554    -2315     
==========================================
- Hits         5867     4306    -1561     
+ Misses       7116     6648     -468     
+ Partials      886      600     -286
Flag Coverage Δ
#linux ?
#windows 37.26% <ø> (ø) ⬆️
Impacted Files Coverage Δ
archive/tar_opts.go 11.76% <0%> (-47.06%) ⬇️
cio/io.go 1.4% <0%> (-45.08%) ⬇️
snapshots/native/native.go 1.79% <0%> (-41.26%) ⬇️
archive/tar.go 19.18% <0%> (-28.78%) ⬇️
metadata/snapshot.go 23.86% <0%> (-24.05%) ⬇️
content/local/writer.go 57.69% <0%> (-0.97%) ⬇️
gc/scheduler/scheduler.go 66.34% <0%> (-0.97%) ⬇️
oci/spec_opts.go 28.96% <0%> (-0.24%) ⬇️
mount/temp_unix.go
sys/reaper_linux.go
... and 40 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 640860a...527eb99. Read the comment docs.

Copy link
Copy Markdown
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

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

LGTM

@dmcgowan
Copy link
Copy Markdown
Member

The cgroup dependency brings in quite a lot only for WithNamespaceCgroupDeletion, which is a namespaces.DeleteOpt.

Are you sure this solves the dependency issue? It is moving it to an interface defining package still.

@tiborvass
Copy link
Copy Markdown
Author

@dmcgowan

Are you sure this solves the dependency issue?

When I tested it it removed 17047 lines of vendoring.

It is moving it to an interface defining package still

I agree that's not great. So what do you suggest? namespaces/nscgroups ? namespaces/nsutil ?

@tiborvass tiborvass force-pushed the move-cgroups-dep-to-namespaces-pkg branch from 527eb99 to faadd59 Compare August 27, 2019 01:40
@tiborvass
Copy link
Copy Markdown
Author

@dmcgowan updated PTAL

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci bot commented Aug 27, 2019

Build succeeded.

@crosbymichael
Copy link
Copy Markdown
Member

@tiborvass I think this should probably go in runtime/opts

@tiborvass tiborvass force-pushed the move-cgroups-dep-to-namespaces-pkg branch from faadd59 to 949c572 Compare August 27, 2019 18:40
@tiborvass tiborvass changed the title namespaces: move WithNamespaceCgroupDeletion from containerd to namespaces package runtime/opts: move WithNamespaceCgroupDeletion from containerd to its own package Aug 27, 2019
@tiborvass
Copy link
Copy Markdown
Author

Thanks @crosbymichael I updated accordingly.

… own package

The cgroup dependency brings in quite a lot only for WithNamespaceCgroupDeletion,
which is a namespaces.DeleteOpt.

Signed-off-by: Tibor Vass <tibor@docker.com>
@tiborvass tiborvass force-pushed the move-cgroups-dep-to-namespaces-pkg branch from 949c572 to 6624a70 Compare August 27, 2019 19:03
@crosbymichael
Copy link
Copy Markdown
Member

LGTM

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci bot commented Aug 27, 2019

Build succeeded.

Copy link
Copy Markdown
Member

@dmcgowan dmcgowan left a comment

Choose a reason for hiding this comment

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

LGTM

@dmcgowan dmcgowan merged commit b039c39 into containerd:master Sep 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants