Skip to content

Revendor Microsoft/hcsshim and go-winio, plus container/containerd#37674

Merged
thaJeztah merged 3 commits intomoby:masterfrom
microsoft:jjh/revendor82018
Aug 25, 2018
Merged

Revendor Microsoft/hcsshim and go-winio, plus container/containerd#37674
thaJeztah merged 3 commits intomoby:masterfrom
microsoft:jjh/revendor82018

Conversation

@lowenna
Copy link
Copy Markdown
Member

@lowenna lowenna commented Aug 20, 2018

Signed-off-by: John Howard [email protected]

Bumps hcsshim to 0.6.14 and go-winio to 0.4.10

@thaJeztah
Copy link
Copy Markdown
Member

Full diff;

@thaJeztah
Copy link
Copy Markdown
Member

@jhowardmsft build is failing;

16:46:12 # github.com/docker/docker/vendor/github.com/containerd/containerd/archive
16:46:12 ..\..\vendor\github.com\containerd\containerd\archive\tar_windows.go:262:27: cannot use uintptr(attr) (type uintptr) as type uint32 in assignment
16:46:23 
16:46:23 ERROR: make.ps1 failed:
16:46:23 Failed to compile daemon

@lowenna
Copy link
Copy Markdown
Member Author

lowenna commented Aug 20, 2018

@thaJeztah Hold fire on this - there's a commit missing. Changing to WIP

@lowenna lowenna changed the title Revendor Microsoft/hcsshim and go-winio WIP - IGNORE FOR THE MOMENT Revendor Microsoft/hcsshim and go-winio Aug 20, 2018
@lowenna
Copy link
Copy Markdown
Member Author

lowenna commented Aug 20, 2018

@thaJeztah It's because containerd/containerd needs bumping too due to it's revendoring. Dependent on containerd/containerd#2557 and a revendor of containerd into moby/moby once that is merged.

@thaJeztah
Copy link
Copy Markdown
Member

@jhowardmsft containerd/containerd#2557 is merged now 👍

@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 20, 2018

Codecov Report

❗ No coverage uploaded for pull request base (master@0d9d861). Click here to learn what that means.
The diff coverage is 0%.

@@            Coverage Diff            @@
##             master   #37674   +/-   ##
=========================================
  Coverage          ?   36.03%           
=========================================
  Files             ?      609           
  Lines             ?    45063           
  Branches          ?        0           
=========================================
  Hits              ?    16238           
  Misses            ?    26596           
  Partials          ?     2229

@lowenna
Copy link
Copy Markdown
Member Author

lowenna commented Aug 20, 2018

@thaJeztah Yup, saw. Bumped containerd, fingers crossed all should be good now.

@lowenna lowenna changed the title WIP - IGNORE FOR THE MOMENT Revendor Microsoft/hcsshim and go-winio Revendor Microsoft/hcsshim and go-winio, plus container/containerd Aug 20, 2018
Comment thread vendor.conf

# containerd
github.com/containerd/containerd v1.2.0-beta.0
github.com/containerd/containerd 3f42445e38d1081f4b8c3b8d7d1ed1860198ed7a
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ping @dmcgowan should the upstream change be included in the 1.2.x branch?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The 1.2.x branch won't get created until first rc, this is fine

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ah, perfect; thanks!

Copy link
Copy Markdown
Member

@thaJeztah thaJeztah 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

LGTM

@thaJeztah
Copy link
Copy Markdown
Member

Janky and Experimental failing on; https://jenkins.dockerproject.org/job/Docker-PRs/50499/console

20:34:41 --- FAIL: TestAuthZPluginEnsureLoadImportWorking (1.38s)
20:34:41 	daemon.go:289: [d69ba33f8b5fc] waiting for daemon to start
20:34:41 	daemon.go:321: [d69ba33f8b5fc] daemon started
20:34:41 	authz_plugin_test.go:380: assertion failed: error is not nil: unexpected EOF
20:34:41 	daemon.go:279: [d69ba33f8b5fc] exiting daemon
20:34:41 	main_test.go:57: Error while stopping the daemon d69ba33f8b5fc : exit 

not sure I've seen that one before; I'll restart but could be legit

@thaJeztah thaJeztah added status/2-code-review status/failing-ci Indicates that the PR in its current state fails the test suite and removed status/4-merge labels Aug 21, 2018
@thaJeztah
Copy link
Copy Markdown
Member

Moving back to code-review; seeing the same failure on Janky and Experimental again, so may be legit; possibly caused by the containerd bump

@dmcgowan ^^

@crosbymichael
Copy link
Copy Markdown
Contributor

It looks like this has to do with the tar changes that came in.

@crosbymichael
Copy link
Copy Markdown
Contributor

Your vendor has removed archive/tar code in it. Maybe it is a failed vndr run but I don't think those should be removed and that will probably resolve the issue

@lowenna
Copy link
Copy Markdown
Member Author

lowenna commented Aug 23, 2018

Yeah, I saw that, and was surprised when vndr did that. However, the vendor CI job passes and matches my vndr run. I can't explain why vndr has dropped it (clearly something previously referencing it no longer does), or why it should be causing this failure. @thaJeztah Have you any clues here? This is mind boggling.

@thaJeztah
Copy link
Copy Markdown
Member

Yeah, I saw that, and was surprised when vndr did that. However, the vendor CI job passes and matches my vndr run

Oh! I know... You must have done a full vndr, but using the current "master" version of vndr, not the version that we pinned to

The vndr/archive is a manual vendor, and the current "master" of vndr wipes the vendor directory before doing the actual vendoring. See LK4D4/vndr#72 (introduced in LK4D4/vndr#65)

To work around this, either;

  • only run vndr for the dependencies that were updated (vndr github.com/Microsoft/hcsshim, vndr github.com/Microsoft/go-winio)
  • use the pinned version of vndr:
    VNDR_COMMIT=a6e196d8b4b0cbbdc29aebdb20c59ac6926bb384

@lowenna
Copy link
Copy Markdown
Member Author

lowenna commented Aug 23, 2018

@thaJeztah Thanks, that explains it. I undid that part. Hopefully Janky/Experimental pass now.

@thaJeztah
Copy link
Copy Markdown
Member

Thanks! Can you squash that commit with the one that removed it?

@lowenna lowenna force-pushed the jjh/revendor82018 branch from 9e6dd06 to 5accd82 Compare August 23, 2018 19:04
@lowenna
Copy link
Copy Markdown
Member Author

lowenna commented Aug 23, 2018

Thanks! Can you squash that commit with the one that removed it?

Done

Copy link
Copy Markdown
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@lowenna
Copy link
Copy Markdown
Member Author

lowenna commented Aug 24, 2018

@thaJeztah Good to merge now? (As I need to rebase #37712 on top of it)

@thaJeztah
Copy link
Copy Markdown
Member

all green; merging

@thaJeztah thaJeztah merged commit 41481ab into moby:master Aug 25, 2018
@lowenna lowenna deleted the jjh/revendor82018 branch September 5, 2018 23:29
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.

6 participants