Skip to content

Conversation

@dims
Copy link
Member

@dims dims commented Mar 1, 2021

This package drags in old versions of a bunch of things transitively.

we should have it in a separate directory and with its own go.mod/go.sum files to avoid cluttering the root go.mod/sum

So it is better to not vendor into our tree a shared object - vendor/github.com/Microsoft/hcsshim/test/functional/manifest/rsrc_amd64.syso - anyone that needs to run the test can still do so and we will avoid having it in our tree.

Signed-off-by: Davanum Srinivas davanum@gmail.com

@theopenlab-ci
Copy link

theopenlab-ci bot commented Mar 1, 2021

Build succeeded.

@TBBle
Copy link
Contributor

TBBle commented Mar 1, 2021

We still need client_windows_test.go, as it defines the base images used by the tests, and a few other constants and functions needed by the integration test suite. It's the Windows-platform equivalent of client_unix_test.go, which populates the same constants and functions for non-Windows builds. It doesn't make sense to remove one and not the other.

If you want to get rid of the use of github.com/Microsoft/hcsshim/test, then what you actually need to do is find another source for rsrc_amd64.syso, as that's the only thing we use from there.

The simplest thing would be to just copy https://github.com/microsoft/hcsshim/tree/master/test/functional/manifest/ into the containerd test suite, the reason I didn't do that previously (#4431) was simply that I didn't want to deal with copyright provenance of a binary blob, and hadn't had time to look into rsrc and //go:generate to make it more copyable.

Alternatively, for the "drags in old versions" concern, perhaps just update the version of github.com/Microsoft/hcsshim/test? I recently revendored containerd into github.com/Microsoft/hcsshim/test with 1.5.0-beta1 so it should be must less "old versions" than it was, and it would 100% make sense to me if containerd's go.mod had a replaces for any uses of github.com/containerd/containerd to be ., since it makes no sense to me for depended-upon modules when building containerd to themselves depend on different containerd.

@dims dims changed the title Drop github.com/Microsoft/hcsshim/test [WIP] Drop github.com/Microsoft/hcsshim/test Mar 1, 2021
@dims dims force-pushed the drop-github.com/Microsoft/hcsshim/test branch from 734a311 to f4f6620 Compare March 1, 2021 17:02
@theopenlab-ci
Copy link

theopenlab-ci bot commented Mar 1, 2021

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.

@dims dims force-pushed the drop-github.com/Microsoft/hcsshim/test branch 2 times, most recently from 0f17fd6 to d32ece6 Compare March 1, 2021 19:03
@theopenlab-ci
Copy link

theopenlab-ci bot commented Mar 1, 2021

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.

@dims dims changed the title [WIP] Drop github.com/Microsoft/hcsshim/test Move *_test.go in root directory to test/client Mar 1, 2021
@dims dims changed the title Move *_test.go in root directory to test/client [WIP] Move *_test.go in root directory to test/client Mar 1, 2021
@dims dims force-pushed the drop-github.com/Microsoft/hcsshim/test branch from d32ece6 to 22fa2ac Compare March 1, 2021 19:54
@theopenlab-ci
Copy link

theopenlab-ci bot commented Mar 1, 2021

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.

@TBBle
Copy link
Contributor

TBBle commented Mar 1, 2021

You will need to change the integration test runner setup in the Makefile, which currently runs github.com/containerd/containerd, to run github.com/containerd/containerd/test/client, as with this PR currently, no tests run in the Integration stages.

This might be a simple change to the value of INTEGRATION_PACKAGE, plus changing the integration: rule to run ${INTEGRATION_PACKAGE} explicitly.

And then, because it appears go list ${GO_TAGS} ./... doesn't cross module boundaries, all the $(filter-out ${INTEGRATION_PACKAGE},XXX) behaviour could be just XXX.

That would certainly be a nice improvement, in my opinion, as I've often gotten lost trying to distinguish integration tests from other tests in the Makefile.

@dims dims force-pushed the drop-github.com/Microsoft/hcsshim/test branch from 22fa2ac to f8fa159 Compare March 2, 2021 19:11
@dims
Copy link
Member Author

dims commented Mar 2, 2021

@TBBle thanks for the tips! trying it out now

@theopenlab-ci
Copy link

theopenlab-ci bot commented Mar 2, 2021

Build succeeded.

@dims dims force-pushed the drop-github.com/Microsoft/hcsshim/test branch from f8fa159 to 85820b3 Compare March 2, 2021 19:32
@theopenlab-ci
Copy link

theopenlab-ci bot commented Mar 2, 2021

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.

2 similar comments
@theopenlab-ci
Copy link

theopenlab-ci bot commented Mar 2, 2021

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.

@theopenlab-ci
Copy link

theopenlab-ci bot commented Mar 2, 2021

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.

@dims dims force-pushed the drop-github.com/Microsoft/hcsshim/test branch from c7bf932 to 7d259bf Compare March 2, 2021 20:00
@theopenlab-ci
Copy link

theopenlab-ci bot commented Mar 2, 2021

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.

@dims dims force-pushed the drop-github.com/Microsoft/hcsshim/test branch from 7d259bf to 4a7d09a Compare March 2, 2021 20:29
@theopenlab-ci
Copy link

theopenlab-ci bot commented Mar 2, 2021

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.

@dims dims force-pushed the drop-github.com/Microsoft/hcsshim/test branch from 4a7d09a to 8a3064d Compare March 2, 2021 20:37
@theopenlab-ci
Copy link

theopenlab-ci bot commented Mar 2, 2021

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.

@dims dims force-pushed the drop-github.com/Microsoft/hcsshim/test branch from 8a3064d to 05b869d Compare March 2, 2021 20:51
@theopenlab-ci
Copy link

theopenlab-ci bot commented Mar 2, 2021

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.

@dims
Copy link
Member Author

dims commented Mar 2, 2021

@TBBle now i have just the windows CI job failing. all with similar pattern

2021-03-02T21:07:15.2280868Z --- FAIL: TestContainerHostname (7.14s)
2021-03-02T21:07:15.2282218Z     container_test.go:1139: : exec: "D:\\a\\containerd\\containerd\\src\\github.com\\containerd\\containerd\\integration\\client": file does not exist: unknown```

@dims dims force-pushed the drop-github.com/Microsoft/hcsshim/test branch from f10e3af to 7002d5f Compare March 11, 2021 21:09
@theopenlab-ci
Copy link

theopenlab-ci bot commented Mar 11, 2021

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.

@dims dims closed this Mar 11, 2021
@dims dims reopened this Mar 11, 2021
@theopenlab-ci
Copy link

theopenlab-ci bot commented Mar 11, 2021

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.

@dims
Copy link
Member Author

dims commented Mar 11, 2021

recheck

@theopenlab-ci
Copy link

theopenlab-ci bot commented Mar 11, 2021

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.

@dims dims force-pushed the drop-github.com/Microsoft/hcsshim/test branch from 7002d5f to ecd4468 Compare March 11, 2021 21:13
@theopenlab-ci
Copy link

theopenlab-ci bot commented Mar 11, 2021

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.

@dims dims closed this Mar 12, 2021
@dims dims reopened this Mar 12, 2021
@theopenlab-ci
Copy link

theopenlab-ci bot commented Mar 12, 2021

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.

@dims dims force-pushed the drop-github.com/Microsoft/hcsshim/test branch from ecd4468 to d0fea17 Compare March 12, 2021 00:06
@theopenlab-ci
Copy link

theopenlab-ci bot commented Mar 12, 2021

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.

@dims dims closed this Mar 12, 2021
@dims dims reopened this Mar 12, 2021
@theopenlab-ci
Copy link

theopenlab-ci bot commented Mar 12, 2021

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.

Will help us drop dependency to github.com/Microsoft/hcsshim/test in the
main go.mod

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
@dims dims force-pushed the drop-github.com/Microsoft/hcsshim/test branch from d0fea17 to 6a4aa1e Compare March 12, 2021 00:27
@theopenlab-ci
Copy link

theopenlab-ci bot commented Mar 12, 2021

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.

@dims
Copy link
Member Author

dims commented Mar 12, 2021

recheck

@theopenlab-ci
Copy link

theopenlab-ci bot commented Mar 12, 2021

Build succeeded.

Copy link
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

Copy link
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

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.

7 participants