Skip to content

Merges the oci package for Linux and Windows#2592

Merged
estesp merged 1 commit intocontainerd:masterfrom
jterry75:specs_with_platform
Aug 30, 2018
Merged

Merges the oci package for Linux and Windows#2592
estesp merged 1 commit intocontainerd:masterfrom
jterry75:specs_with_platform

Conversation

@jterry75
Copy link
Copy Markdown
Contributor

On Windows we need to be able to create both Linux and Windows OCI spec
files by default to support WCOW and LCOW scenarios. This merges the
compile time differences into runtime differences between the two based
on the spec and platform the user sets.

It maintains the old behavior with Default specs resulting in the
platform default the binary is compiled for.

Signed-off-by: Justin Terry (VM) juterry@microsoft.com

@jterry75
Copy link
Copy Markdown
Contributor Author

@crosbymichael - FYI

@jterry75
Copy link
Copy Markdown
Contributor Author

@crosbymichael - Can you restart CI. I dont see how this is related to my changes at all. But could be a real bug in the content manager

Copy link
Copy Markdown
Contributor

@mlaventure mlaventure left a comment

Choose a reason for hiding this comment

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

I think you commited oci.test.exe by mistake.

@codecov-io
Copy link
Copy Markdown

codecov-io commented Aug 30, 2018

Codecov Report

Merging #2592 into master will decrease coverage by 0.02%.
The diff coverage is 39.79%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2592      +/-   ##
==========================================
- Coverage   44.05%   44.03%   -0.03%     
==========================================
  Files          98       94       -4     
  Lines       10130    10235     +105     
==========================================
+ Hits         4463     4507      +44     
- Misses       4945     5008      +63     
+ Partials      722      720       -2
Flag Coverage Δ
#linux 47.48% <36.43%> (-0.31%) ⬇️
#windows 40.66% <39.39%> (-0.31%) ⬇️
Impacted Files Coverage Δ
oci/spec_opts.go 23.78% <22.92%> (-41.28%) ⬇️
oci/spec.go 93.51% <96.57%> (+33.51%) ⬆️

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 7e66292...c818a6b. Read the comment docs.

On Windows we need to be able to create both Linux and Windows OCI spec
files by default to support WCOW and LCOW scenarios. This merges the
compile time differences into runtime differences between the two based
on the spec and platform the user sets.

It maintains the old behavior with Default specs resulting in the
platform default the binary is compiled for.

Signed-off-by: Justin Terry (VM) <juterry@microsoft.com>
@jterry75 jterry75 force-pushed the specs_with_platform branch from 955b226 to c818a6b Compare August 30, 2018 16:46
@crosbymichael
Copy link
Copy Markdown
Member

LGTM

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

@estesp estesp merged commit 777cc50 into containerd:master Aug 30, 2018
@jterry75 jterry75 deleted the specs_with_platform branch August 30, 2018 18:38
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.

5 participants