Skip to content

Conversation

@travier
Copy link
Member

@travier travier commented Jan 15, 2026

tests/kola/commonlib: Fix get_fcos_stream for container case

Get the stream from the fedora-coreos.stream annotation from the
container image.


tests/sysexts: Run only on streams based on stable Fedora releases

The sysexts used for this test are only built for stable Fedora releases
for now so skip it everywhere else.

Get the stream from the fedora-coreos.stream annotation from the
container image.
The sysexts used for this test are only built for stable Fedora releases
for now so skip it everywhere else.
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates how the FCOS stream is determined and restricts a sysext test to run only on stable Fedora release streams. The change to get_fcos_stream correctly fetches the stream from container image annotations. The sysext test is now skipped on unsupported streams. I've suggested a small improvement to make the get_fcos_stream function more efficient by combining two jq calls into one.

Comment on lines +39 to +41
rpm-ostree status -b --json \
| jq -r '.deployments[0]."base-commit-meta"."ostree.manifest"' \
| jq -r '.annotations."fedora-coreos.stream"'

Choose a reason for hiding this comment

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

medium

The two separate jq invocations can be combined into a single one for better performance and readability. The ostree.manifest field contains a JSON string, which can be parsed within jq using the fromjson filter. This avoids creating an extra process and a pipe.

Suggested change
rpm-ostree status -b --json \
| jq -r '.deployments[0]."base-commit-meta"."ostree.manifest"' \
| jq -r '.annotations."fedora-coreos.stream"'
rpm-ostree status -b --json | jq -r '.deployments[0]."base-commit-meta"."ostree.manifest" | fromjson | .annotations."fedora-coreos.stream"'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant