[17.06] cherry-pick Fix prefix-matching for service ps#77
Conversation
The docker CLI matches objects either by ID _prefix_ or a full name match, but not partial name matches. The correct order of resolution is; - Full ID match (a name should not be able to mask an ID) - Full name - ID-prefix This patch changes the way services are matched. Also change to use the first matching service, if there's a full match (by ID or Name) instead of continue looking for other possible matches. Error handling changed; - Do not error early if multiple services were requested and one or more services were not found. Print the services that were not found after printing those that _were_ found instead - Print an error if ID-prefix matching is ambiguous Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit 62796124432c7e56e7dda226c3c53c8c2356a30c) Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
Signed-off-by: Daniel Nephin <dnephin@docker.com> (cherry picked from commit b5baffde44cf16bc2eb030c09da76d39abb62252) Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
Signed-off-by: Daniel Nephin <dnephin@docker.com> (cherry picked from commit 3718833f2cecde35ae1ed007a9b2d5bf507c7c66) Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
|
Seeing failure in test result: |
|
I fixed the test to use the proper exec helpers and I can't reproduce the failure, so I guess it's a flake. I'll push the test changes to this branch just in case it isn't. |
Signed-off-by: Daniel Nephin <dnephin@gmail.com> (cherry picked from commit 7e135e0) Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
|
@dnephin should those fixes be backported to moby/moby? |
|
Yes, PR already open: moby/moby#33684 😄 |
|
Ugh; CI needs a kick; |
|
@dnephin with the test debug commit, failed at the same test: |
|
I suspect that we need the integration test updates from moby/moby#32800, because current tests test for the faulty behaviour 😞 |
|
Test fixed in dnephin@09b3718 I think. |
|
Please sign your commits following these rules: $ git clone -b "ps" git@github.com:andrewhsu/docker-ce.git somewhere
$ cd somewhere
$ git rebase -i HEAD~842354081488
editor opens
change each 'pick' to 'edit'
save the file and quit
$ git commit --amend -s --no-edit
$ git rebase --continue # and repeat the amend for each commit
$ git push -fAmending updates the existing PR. You DO NOT need to open a new one. |
|
@thaJeztah punting this to 17.06.1 @dnephin i think we talked about this one earlier about splitting out the test that failed into an api test instead of an integration-cli test. would also desire a cherry-pick of something that is already in master branch of moby/moby. |
|
I tried... moby/moby#33684 First I applied this patch to moby/moby, but @thaJeztah pointed out that it doesn't make sense to merge this fix into master, because it shouldn't be testing with the CLI anymore. Now it's just an API test, but it's being met with some resistance. |
|
Somewhat related given the resistance/test-failures: Any chance of 17.06.1 being releases soon? kind of solves a few blockers, so if this is not one, maybe it can be moved to an 17.06.2 milestone given .1 is already in very late rc stage? |
|
Closing this PR because the docker-ce 17.06 code-line is EoL. |
Add pigz to recommended packages Upstream-commit: a6543ce Component: packaging
[18.03] update changelog for 18.03.1-ce
Add pigz to recommended packages Upstream-commit: a6543ce Component: packaging
Add pigz to recommended packages
Cherry-pick of: