-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Fixes format inconsistencies with docker for certain history fields #18213
Conversation
CI indicates that one of the Assuming PR is merged,
|
I am fine with fixing this, but I will allow @vrothberg and @mheon to chime in. |
I'd prefer to retain the test - it seems like it could be changed to parse the fields back to a |
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.
The changes look good to me.
One system test isn't passing (see https://cirrus-ci.com/task/5421900956958720?logs=main#L284). @edsantiago, we probably need to your scripting skills. I tried normalizing the two dates but one fails with
$ date -d '2022-10-18 16:28:08 +0000 UTC'
The failing system test is: $ for i in list history;do echo;bin/podman image $i --format '{{.CreatedAt}}' quay.io/libpod/testimage:20221018;done
2022-10-18 16:28:08 +0000 UTC <--- until now, this has been the format for both
2022-10-18T10:28:08-06:00 <--- new, changed format
2022-10-18T10:28:08-06:00
2022-10-18T10:28:08-06:00
2022-10-18T10:28:08-06:00
2022-10-18T10:28:20-06:00
2022-10-18T10:28:20-06:00
2022-10-18T10:28:20-06:00 |
8718afb
to
d2c01fe
Compare
In the commit message it's written
The GitHub linking only works for the first one (17767) but not the second one (17768) I would guess the commit message needs to be written like this for it to work
Quote:
|
I updated the relevant system test to maintain the equality check of |
Closes containers#17767 Closes containers#17768 System test for image list and history dates * Changed field separator in the test to `;` for easier parsing * Converted date output from image history and image list to be comparable Signed-off-by: rbagd <[email protected]>
@edsantiago PTAL at system tests |
Following @edsantiago guidance, * Additional explanations for each step of the test * Timezone for tests normalized to UTC * Smarter choice of separator and use of shell substring extraction Signed-off-by: rbagd <[email protected]>
LGTM. Thanks @rbagd. @containers/podman-maintainers PTAL, especially the docker compatibility (I don't have a good way to test docker). |
@rbagd Thanks for adjusting the commit message so that it now says
Unfortunately it didn't fix the the GitHub linking. Sorry for my misleading information.
with
|
It seems to be working! Both issues appear on the right sidebar now as expected. |
LGTM |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rbagd, rhatdan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Closes #17767
Closes #17768
Does this PR introduce a user-facing change?