Skip to content

Run: don't try to encode SystemContext with json#6650

Merged
Luap99 merged 1 commit intocontainers:mainfrom
nalind:system-context-not-json
Jan 22, 2026
Merged

Run: don't try to encode SystemContext with json#6650
Luap99 merged 1 commit intocontainers:mainfrom
nalind:system-context-not-json

Conversation

@nalind
Copy link
Member

@nalind nalind commented Jan 22, 2026

What type of PR is this?

/kind other

What this PR does / why we need it:

Don't expect to be able to encode a SystemContext as JSON, because it will trigger an encoding error if fields which can't be encoded are set.

How to verify it

podman has a "podman build - basic test" test that should be fixed by this.

Which issue(s) this PR fixes:

None

Special notes for your reviewer:

Does this PR introduce a user-facing change?

None

@nalind nalind added the No New Tests Allow PR to proceed without adding regression tests label Jan 22, 2026
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jan 22, 2026
Don't expect to be able to encode a SystemContext as JSON, because it
will trigger an encoding error if fields which can't be encoded are set.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
@nalind nalind force-pushed the system-context-not-json branch from c74dbe8 to cd0d003 Compare January 22, 2026 16:02
Copy link
Member

@Luap99 Luap99 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@mtrmac mtrmac left a comment

Choose a reason for hiding this comment

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

ACK to the extent “this clearly avoids the failure path” but I didn’t check whether anything needs that value to be carried over JSON.

@Luap99 Luap99 merged commit 1a013bc into containers:main Jan 22, 2026
34 of 37 checks passed
@nalind nalind deleted the system-context-not-json branch January 22, 2026 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

No New Tests Allow PR to proceed without adding regression tests size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants