Skip to content

Conversation

jlebon
Copy link
Member

@jlebon jlebon commented Sep 15, 2025

We already have a few other chmods in install_rpms to loosen restrictions.

This should fix supermin for people like me who run cosa in their pet containers and only run some of the build.sh commands (notably we run install_rpms, but not configure_user).

When we update the release index, plume checks if the release we want to
add already exists by checking for a release with the same version _and_
metadata URL. The latter check seems unnecessary and in fact harmful
because there shouldn't ever be two releases in the list with the same
version number at all.

So drop that check.

Noticed this when testing that code locally (with `--local-mode`) in
which we don't pass S3 information, so it's normal that the metadata URL
isn't the same.
…l_rpms`

We already have a few other `chmod`s in `install_rpms` to loosen
restrictions.

This should fix supermin for people like me who run cosa in their pet
containers and only run _some_ of the build.sh commands (notably we run
`install_rpms`, but not `configure_user`).
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 primarily moves chmod commands in build.sh to a more appropriate function, which is a good improvement for workflows that don't run the full build script. However, there's also an unrelated change in mantle/cmd/plume/release.go that modifies release comparison logic. This change is not documented and should be explained or moved to a separate pull request. I've added specific comments on both files.

}

func compareStaticReleaseInfo(a, b release.IndexRelease) bool {
if a.Version != b.Version || a.MetadataURL != b.MetadataURL {
Copy link
Contributor

Choose a reason for hiding this comment

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

high

This change seems unrelated to the PR's stated goal of modifying build.sh. Removing the MetadataURL comparison is a significant logical change that could have unintended side effects. Could you please explain the reasoning for this? It would be best to revert this change and submit it as a separate pull request with a proper description and justification.

Copy link

openshift-ci bot commented Sep 15, 2025

@jlebon: 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 49784b8 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.

@jlebon jlebon merged commit b51dc2d into coreos:main Sep 16, 2025
4 of 6 checks passed
@jlebon jlebon deleted the pr/build.sh-chmod branch September 16, 2025 15:56
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.

2 participants