-
Notifications
You must be signed in to change notification settings - Fork 782
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
makefile: run containers/image unit tests #308
Conversation
👍 @mtrmac PTAL |
Ah, dammit. EDIT: Here's the patch: LK4D4/vndr#23. |
Because containers/image doesn't vendor anything, it has trouble running its own tests (it depends on packages which may change in the future). To make sure that containers/image _is_ tested with our own vendored packages, run its tests as part of our unit tests. This isn't enabled globally for obvious reasons. Signed-off-by: Aleksa Sarai <[email protected]>
Signed-off-by: Aleksa Sarai <[email protected]>
is this per vendored project or an all-or-nothing test files? |
It's only done in the final stage of "cleaning". So if you only update one project at a time (which is what we do) then it will only "not clean" the project in question. If @LK4D4 wants, I can extend it so that it's a |
Signed-off-by: Aleksa Sarai <[email protected]>
The extension is in LK4D4/vndr#24. So you would run |
Conceptually this seems strange to me; if we want to run containers/image unit tests against skopeo vendored packages to test a containers/image property (that containers/image works against those dependencies), why would that not be a part of the containers/image repo, the way Would we completely stop running unit tests in containers/image CI and hope that skopeo’s CI will eventually notice failures? That seems very unappealing. Given the existing “clone skopeo” script in |
Maybe an integration suite that lives in a third repo would be best? |
With containers/image#240, we are now running containers/image tests against vendored dependencies, so the original motivation for this PR seems to no longer apply. @cyphar , can this be closed?
What value would the independent repo bring? If we wanted to run containers/image tests against the skopeo vendored dependencies¹, we could copy them equally easily from the containers/image repo and from a third independent repo. ¹ OTOH we’ve been toying with the idea of having an independent repo carrying Either way, splitting stuff across repositories makes CI more complex—when changing a dependency, we would like to make a CI run of all the users of that dependency as well (like we are doing by Or am I missing something essential about a separate test-only repo? |
I just feel the revendoring/cross-testing juggle should probably be done in
a separate repo is all, it seems like it would make build tooling
significantly simpler.
…On Mon, Feb 27, 2017 at 12:52 PM, Miloslav Trmač ***@***.***> wrote:
With containers/image#240 <containers/image#240>,
we are now running containers/image tests against vendored dependencies, so
the original motivation for this PR seems to no longer apply. @cyphar
<https://github.com/cyphar> , can this be closed?
Maybe an integration suite that lives in a third repo would be best?
What value would the independent repo bring? *If* we wanted to run
containers/image tests against the skopeo vendored dependencies¹, we could
copy them equally easily from the containers/image repo and from a third
independent repo.
¹ OTOH we’ve been toying with the idea of having an independent repo
carrying vendor.conf which would be shared between containers/image and
skopeo; then the re-run of tests would be obviously redundant.
Either way, splitting stuff across repositories makes CI more complex—when
changing a dependency, we would like to make a CI run of all the users of
that dependency as well (like we are doing by make test-skopeo in
containers/image). So, the more repos, the more cross-repo CI
infrastructure, longer edit loops… and in the end we would want to update
most of the repos in lockstep pretty much all of the time.
Or am I missing something essential about a separate test-only repo?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#308 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABJ6_gOBKA5ziqpPWrDRMaPkTHpqONcks5rgzd2gaJpZM4MEOIy>
.
|
Is this pull request still something we are considering? |
It still seems to me that doing this in the containers/image repo, as a part of an extension to the existing |
The problem is that |
I’m not sure I understand:
|
@cyphar This needs a rebase or needs to be closed. |
@cyphar Still waiting to see if I should close. Will close in one week. |
I'm going to close this since it's not really progressed much. I agree with @erikh that the project testing needs to be restructured (in the past |
Because containers/image doesn't vendor anything, it has trouble running
its own tests (it depends on packages which may change in the future).
To make sure that containers/image is tested with our own vendored
packages, run its tests as part of our unit tests.
This isn't enabled globally for obvious reasons.
Signed-off-by: Aleksa Sarai [email protected]