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

Add a separate go.mod for test/ directory to avoid dependency creep in root go.mod #789

Conversation

dims
Copy link
Contributor

@dims dims commented Mar 28, 2020

Trying to cleanup dependencies of hcsshim (when used as a library) in kubernetes.

Signed-off-by: Davanum Srinivas [email protected]

@dims dims requested a review from a team as a code owner March 28, 2020 14:38
@dims dims changed the title [WIP] Add a separate go.mod for test/ directory to avoid dependency creep i… [WIP] Add a separate go.mod for test/ directory to avoid dependency creep in root go.mod Mar 28, 2020
@dims dims force-pushed the add-new-go.mod-in-test-directory-to-cleanup-root-dependencies branch 3 times, most recently from 95efc9d to d2ed04b Compare March 28, 2020 15:03
@dims dims changed the title [WIP] Add a separate go.mod for test/ directory to avoid dependency creep in root go.mod Add a separate go.mod for test/ directory to avoid dependency creep in root go.mod Mar 28, 2020
@dims
Copy link
Contributor Author

dims commented Mar 28, 2020

@dcantah what do you think?

@dcantah
Copy link
Contributor

dcantah commented Mar 29, 2020

@dims We've had talks of just splitting the cri-containerd tests off of this repo entirely which might be the better option at this point. This looks fine but I'll consult with the team and try and get back to you on Monday :)

@dims
Copy link
Contributor Author

dims commented Mar 29, 2020

@dcantah sounds like a plan! please also cut a tag/release for kubernetes 1.19 as well once either of the options land.

Given previous releases code freeze for 1.19 would be somewhere middle to end of May and the 1.19 release middle to end of June. we'd need a lot of soak time well before the deadlines to make sure we didn't break anything.

Copy link
Contributor

@dcantah dcantah left a comment

Choose a reason for hiding this comment

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

This looks fine to me and seems like a good solution. Just confused on one thing which I've commented.

go.mod Show resolved Hide resolved
@dims dims force-pushed the add-new-go.mod-in-test-directory-to-cleanup-root-dependencies branch from d2ed04b to 4def607 Compare March 31, 2020 13:34
@dcantah
Copy link
Contributor

dcantah commented Mar 31, 2020

@dims it seems the ci failed

@dims dims force-pushed the add-new-go.mod-in-test-directory-to-cleanup-root-dependencies branch 2 times, most recently from e184f44 to 1b2059d Compare March 31, 2020 18:30
@dims
Copy link
Contributor Author

dims commented Mar 31, 2020

@dcantah this is green now. PTAL

@dcantah
Copy link
Contributor

dcantah commented Mar 31, 2020

@dims one tiny little thing left. It seems now that we cd into the test dir to build the executables where the test artifacts are residing is now the test folder so the ci cant find them. Can you update the appveyor.yml to reflect these new paths for the test executables? So instead of 'runhcs.test.exe' -> './test/runhcs.test.exe' and so on for the other 3

- run the schema version test

Signed-off-by: Davanum Srinivas <[email protected]>
@dims dims force-pushed the add-new-go.mod-in-test-directory-to-cleanup-root-dependencies branch from 1b2059d to 139da32 Compare March 31, 2020 20:57
@dcantah
Copy link
Contributor

dcantah commented Mar 31, 2020

LGTM

@dcantah dcantah merged commit 8def383 into microsoft:master Mar 31, 2020
howardjohn added a commit to howardjohn/oras that referenced this pull request Sep 10, 2020
In microsoft/hcsshim#789, hcsshim removed its
dependency on k8s.io/kubernetes. 5 imports upstream, we need to
`replace` it in order to not pull in k8s.io/kubernetes. Rather than
that, would be ideal for oras to just update.
jdolitsky pushed a commit to oras-project/oras that referenced this pull request Sep 10, 2020
In microsoft/hcsshim#789, hcsshim removed its
dependency on k8s.io/kubernetes. 5 imports upstream, we need to
`replace` it in order to not pull in k8s.io/kubernetes. Rather than
that, would be ideal for oras to just update.
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.

2 participants