Skip to content

Conversation

@Roshan-R
Copy link
Contributor

@Roshan-R Roshan-R commented Nov 4, 2025

Remove the temporary workaround that manually set the fedora-coreos.stream label during image builds. This label is now applied directly by rpm-ostree through the build process, making the extra logic unnecessary and simplifying cmd-build-with-buildah.

See: #4337

Should be able to merge when we get coreos/fedora-coreos-config#3867 merged

Remove the temporary workaround that manually set the `fedora-coreos.stream`
label during image builds. This label is now applied directly by rpm-ostree
through the build process, making the extra logic unnecessary and simplifying
`cmd-build-with-buildah`.

See: coreos#4337
Copy link
Contributor

@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 removes a temporary workaround from cmd-build-with-buildah that manually set the fedora-coreos.stream label. As this functionality is now handled by rpm-ostree, this change correctly simplifies the build script by removing unnecessary code. The change is a good cleanup and improves maintainability.

@openshift-ci
Copy link

openshift-ci bot commented Nov 4, 2025

@Roshan-R: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/rhcos e9fcb2e link true /test rhcos

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

stream=$(yaml2json "$manifest" /dev/stdout | jq -r '.variables.stream')
if [ "${stream}" != null ]; then
set -- "$@" --label fedora-coreos.stream="$stream" \
--annotation fedora-coreos.stream="$stream"
Copy link
Member

Choose a reason for hiding this comment

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

mhmm is the annotation used somewhere ? we must be careful not to break anything relying on it

Copy link
Member

Choose a reason for hiding this comment

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

in other words, as part of this and coreos/fedora-coreos-config#3867 we are retaining the label, but losing the annotation, correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

in other words, as part of this and coreos/fedora-coreos-config#3867 we are retaining the label, but losing the annotation, correct?

Yes, Exactly

Copy link
Member

Choose a reason for hiding this comment

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

and I'm guessing we need to do something like https://github.com/coreos/rpm-ostree/pull/5454/files but for --annotation if we wanted to keep it, which is probably what we should do

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.

3 participants