Skip to content
This repository was archived by the owner on Nov 19, 2026. It is now read-only.

Don’t silently ignore errors when decoding JSON or deleting incomplete layers - #1406

Merged
rhatdan merged 3 commits into
containers:mainfrom
mtrmac:errors
Oct 26, 2022
Merged

rhatdan merged 3 commits into
containers:mainfrom
mtrmac:errors

Conversation

@mtrmac

@mtrmac mtrmac commented Oct 21, 2022

Copy link
Copy Markdown
Collaborator

See individual commit messages for details

Cc: @nalind to make sure I’m not missing some error resiliency trade-off.

I’ll run this through Buildah and Podman CI together with some follow-up PRs.

@mtrmac
mtrmac marked this pull request as ready for review October 21, 2022 22:38
@mtrmac
mtrmac marked this pull request as draft October 21, 2022 22:38

@vrothberg vrothberg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Let's wait for @nalind's head nod before merging.

Also tighten the scope of some error variables a bit.

Signed-off-by: Miloslav Trmač <[email protected]>
@mtrmac

mtrmac commented Oct 25, 2022

Copy link
Copy Markdown
Collaborator Author

Rebased, and added one more commit to avoid more err == nil checks.

@mtrmac
mtrmac marked this pull request as ready for review October 25, 2022 19:34
@nalind

nalind commented Oct 26, 2022

Copy link
Copy Markdown
Member

I still do a double-take when I see %#v being used as a format specifier instead of %q, but LGTM.

@mtrmac

mtrmac commented Oct 26, 2022

Copy link
Copy Markdown
Collaborator Author

I don’t personally have any preference in %q vs %#v, do you want me to change that to be consistent for layer IDs, one way or another?

@nalind

nalind commented Oct 26, 2022

Copy link
Copy Markdown
Member

Nah, it's already in too many places to be worth the churn.

@rhatdan
rhatdan merged commit 46f384d into containers:main Oct 26, 2022
@mtrmac
mtrmac deleted the errors branch October 27, 2022 07:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants