-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Fix psFormat's Size handling in config file #3640
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
Codecov Report
@@ Coverage Diff @@
## master #3640 +/- ##
==========================================
- Coverage 59.01% 59.00% -0.01%
==========================================
Files 287 287
Lines 24622 24635 +13
==========================================
+ Hits 14530 14537 +7
- Misses 9218 9222 +4
- Partials 874 876 +2 |
|
@thaJeztah thanks for merging my deflake PR the other day! Can you review this one as well? |
|
@thaJeztah looks like we're all set to merge! Thank you for working on this with me 😄 I learned a lot in the process! |
|
Awesome! Changes look good 😅 - let me do a quick rebase and squash |
- do an early check if a custom format is specified either through the command-line, or through the cli's configuration, before adjusting the options (to add "size" if needed). - also removes a redundant `options.Size = opts.size` line, as this value is already copied at the start of buildContainerListOptions() - Update NewContainerFormat to use "table" format as a default if no format was given. Co-authored-by: Sebastiaan van Stijn <github@gone.nl> Signed-off-by: Phong Tran <tran.pho@northeastern.edu>
d376a19 to
0929bed
Compare
thaJeztah
left a comment
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, thanks!!
|
CI is happy as well; let's bring this one in 👍 |
- What I did
docker psusingpsFormatin config that containsSizedoes not behave as expected #3632- How I did it
Sizeusage in config file'sPsFormat, and moved this logic before callingcontainerListWithSizefunction in test builder to allow specifying container size in unit testsTestContainerListWithConfigFormatto test for changes above- How to verify it
Run the full test suite via
docker buildx bake test, then attempt to reproduce issue above- Description for the changelog
Fixed incorrect size handling in config file when using docker ps
- A picture of a cute animal (not mandatory but encouraged)
