cli: fix images filter when use multi reference filter#38171
cli: fix images filter when use multi reference filter#38171thaJeztah merged 1 commit intomoby:masterfrom
Conversation
|
@yongtang @thaJeztah PTAL, thanks. |
|
Relates to #28477, which implemented this filter This looks to be consistent with Containers Services Some things to change;
I'd like some more eyes on this change though, because it's a change in behavior, so there's a risk that this breaks people 😓 |
|
ping @vdemeester PTAL |
b853106 to
75acddc
Compare
Codecov Report
@@ Coverage Diff @@
## master #38171 +/- ##
==========================================
+ Coverage 36.1% 36.11% +<.01%
==========================================
Files 610 610
Lines 45234 45236 +2
==========================================
+ Hits 16333 16337 +4
Misses 26661 26661
+ Partials 2240 2238 -2 |
7c88ce1 to
d454d5d
Compare
vdemeester
left a comment
There was a problem hiding this comment.
I'd like some more eyes on this change though, because it's a change in behavior, so there's a risk that this breaks people 😓
That's my concern too, but I think it should be ok — having multiple --filter=reference=* makes it pretty useless to have multiple reference filter, so I don't think too many people uses that.
d454d5d to
908acc8
Compare
Signed-off-by: zhangyue <[email protected]>
908acc8 to
5007c36
Compare
|
@thaJeztah Hi, what's the next step before merge this pr? |
thaJeztah
left a comment
There was a problem hiding this comment.
no other steps needed, other than a second maintainer reviewing the last code changes (the updated tests) 😄
And, those look good to me (thanks!)
LGTM
|
Experimental failure is a known flaky test (see #32673); Ignoring that failiure |
|
Thanks! And congratulations with your first contribution merged 🎉 |
Signed-off-by: zhangyue [email protected]
- What I did
fix #38164 , to refuse
docker images -fundefined behavior when use multi reference filter.- How I did it
just add a judge statement when filter image ref.
- How to verify it
run
docker imagesrun
docker images -f reference=img:* -f reference=hello-*run
docker images -f reference=img:* -f reference=hello-* -f reference=img2:*- Description for the changelog
fix #38164 , to refuse
docker images -fundefined behavior when use multi reference filter.- A picture of a cute animal (not mandatory but encouraged)
None.