Skip to content
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

image list: do not reformat .CreatedAt #14476

Closed
wants to merge 1 commit into from

Conversation

vrothberg
Copy link
Member

As shown in #14456, the .CreatedAt fields for image list and of
image history can differ by one. The discussed theory is that the
off-by-one is caused by rounding.

Indeed, the field of image list is reformatted. image history is
returning the UNIX time; just as the .CreatedAt field should.

I am unable to create a reproducer for the issue but double-checked
what the docker client does: return the UNIX time.

[NO NEW TESTS NEEDED]

Fixes: #14456
Signed-off-by: Valentin Rothberg [email protected]

Does this PR introduce a user-facing change?

Fix a bug in when formatting the `.CreatedAt` field in `podman image list`.

@edsantiago @rhatdan PTAL

As shown in containers#14456, the `.CreatedAt` fields for `image list` and of
`image history` can differ by one.  The discussed theory is that the
off-by-one is caused by rounding.

Indeed, the field of `image list` is reformatted.  `image history` is
returning the UNIX time; just as the `.CreatedAt` field should.

I am unable to create a reproducer for the issue but double-checked
what the docker client does: return the UNIX time.

[NO NEW TESTS NEEDED]

Fixes: containers#14456
Signed-off-by: Valentin Rothberg <[email protected]>
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 3, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vrothberg

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 3, 2022
@edsantiago
Copy link
Member

I took a minute to pull & make your PR, and try my reproducer, and I see no difference. This still gives off-by-one timestamps between list and history.

@vrothberg
Copy link
Member Author

I took a minute to pull & make your PR, and try my reproducer, and I see no difference. This still gives off-by-one timestamps between list and history.

Dang. I tried with Docker and it suffers from the same problem.

@vrothberg
Copy link
Member Author

/hold

Requires more digging. The change itself here is sound but not sufficient.

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 3, 2022
@vrothberg
Copy link
Member Author

OK, I am going to close. I'll drop a comment in the issue.

@vrothberg vrothberg closed this Jun 3, 2022
@vrothberg vrothberg deleted the fix-14456 branch June 3, 2022 12:29
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 21, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. release-note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Timestamps in 'image list' inconsistent with 'image history'
2 participants