Introduce test-integration target (and deprecate/freeze test-integration-cli)#33344
Introduce test-integration target (and deprecate/freeze test-integration-cli)#33344vdemeester wants to merge 1 commit intomoby:masterfrom
test-integration target (and deprecate/freeze test-integration-cli)#33344Conversation
integration/container/create_test.go
Outdated
integration/container/create_test.go
Outdated
hack/make/.integration-test-helpers
Outdated
There was a problem hiding this comment.
maybe the reverse? if I specify -test.timeout in my TESTFLAGS it'll be overridden by the script if I'm not mistaken.
There was a problem hiding this comment.
@mlaventure hum right 👼 I just copied the others bundle_xx but yep, make sense
Janky failure |
integration/container/create_test.go
Outdated
integration/container/create_test.go
Outdated
There was a problem hiding this comment.
Do you expect to plumb context through the test cases at some point? Otherwise, I think TODO is not the right context to use here (we should probably have ctx := context.Background() above.
0bd4ae1 to
5a90d23
Compare
|
I'm wondering if it would be simpler to rename It would be nice to avoid having two packages/targets with similar names that run different sets of tests. I could see confusion coming up between the two, such as people accidentally adding tests to |
5a90d23 to
0635b83
Compare
0635b83 to
a9524bd
Compare
Right, that's more or less what I was going for in #33124. The thing is, rewriting them (and/or extracting them) will take a long time, and depending on where we go with those new tests (i.e. using
Yeah I can see confusing coming up too. I'm still not 100% sold on having those two separate either, it's just a proposal 👼. What I would like to be discussed and decided on for this PR are the following :
From there, this PR will be the start of the work and examples 😉 |
…ration-cli`) This adds a new package `integration` where `moby` integration tests should live. Those integration tests should not depends on any `cli` components (except from the `dockerd` daemon for now — to actually start a daemon). Signed-off-by: Vincent Demeester <vincent@sbr.pm>
a9524bd to
d5b3c31
Compare
I prefer to have a single package during the transition. |
|
+1 for A single package is a problem. It makes running a subset of the tests much slower than it needs to be. We should really have a package for each test suite, and a suite for each component. A single target for CI SGTM. |
That also sounds good to me. What I meant was that I'd like to have a single CI target. |
@dnephin Either way, it will be splitted into several packages for sure. A single package is just for the main package, i.e. |
| test-docker-py: build ## run the docker-py tests | ||
| $(DOCKER_RUN_DOCKER) hack/make.sh dynbinary test-docker-py | ||
|
|
||
| # Deprecated: use `test-integration` instead |
There was a problem hiding this comment.
Can you add the "deprecation" message in the comment below? the ## run the integration tests comment is also used for outputting the help message (make help)
|
@dnephin @aaronlehmann what's the status on this one? |
|
@thaJeztah I need to re-work that one 👼 |
|
Closing this temporarly 👼 |
This adds a new package
integrationwheremobyintegration testsshould live. Those integration tests should not depends on any
clicomponents (except from the
dockerddaemon for now — to actuallystart a daemon).
This is a simple, naive approach and is a middle ground between current
integration-cliandunit test.The related topics is Evolution of testing @moby, issue #32866.
createClientprotectXXtoointegration-cli/environmentand/integration-cli/fixtures/loadshould move tointegrationpackagedockerbinary dependency fromintegration-cli/environment(the cleanup is usingdockercommands for now)Signed-off-by: Vincent Demeester vincent@sbr.pm