-
Notifications
You must be signed in to change notification settings - Fork 18.8k
cli: fix images filter when use multi reference filter #38171
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
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 <zy675793960@yeah.net>
908acc8
to
5007c36
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🐯
@thaJeztah Hi, what's the next step before merge this pr? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 zy675793960@yeah.net
- What I did
fix #38164 , to refuse
docker images -f
undefined 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 images
run
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 -f
undefined behavior when use multi reference filter.- A picture of a cute animal (not mandatory but encouraged)
None.