Skip to content

Conversation

@pablintino
Copy link
Contributor

- What I did

- How to verify it

- Description for the changelog

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 28, 2025
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Nov 28, 2025
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Nov 28, 2025

@pablintino: This pull request references MCO-1961 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.21.0" version, but no target version was set.

In response to this:

- What I did

- How to verify it

- Description for the changelog

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 28, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 28, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pablintino

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 28, 2025
@pablintino pablintino force-pushed the osimagestream-controller branch 4 times, most recently from 2258299 to 5175173 Compare December 1, 2025 16:08
}

func TestGetOSImageStreamSetByName(t *testing.T) {
osImageStream := &v1alpha1.OSImageStream{
Copy link
Member

Choose a reason for hiding this comment

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

thought (non-blocking): Although none of the test cases appear to mutate osImageStream, it is possible that they could do so and affect the outcome of the other test cases here. A potential idea could be to move this into the test loop which guarantees it would always be a fresh instance and modify the test case struct to set it to nil.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done in a follow-up.

defer klog.Info("Shutting down MachineConfigController-OSImageStreamController")

go func() {
err := ctrl.boot()
Copy link
Member

Choose a reason for hiding this comment

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

question: Is the intent here that ctrl.boot() will be executed once and set the necessary objects? How does it get re-run if the OSImageStream changes? Or will that be coming later? 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So, for now, OSImageStream cannot change as the content is built from the available streams that can only change if the content the release image ships changes. If so, the CVO will rollout an update and this boot logic will run once to update the resource.

@pablintino pablintino force-pushed the osimagestream-controller branch from 5175173 to cd9b593 Compare December 2, 2025 08:41
@pablintino pablintino marked this pull request as ready for review December 2, 2025 08:41
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 2, 2025
@pablintino pablintino force-pushed the osimagestream-controller branch from cd9b593 to 237de1a Compare December 2, 2025 10:37
@pablintino
Copy link
Contributor Author

@cheesesashimi This is the follow up PR for the requested changes: #5458

@pablintino pablintino force-pushed the osimagestream-controller branch 6 times, most recently from 936bc8d to 679ced5 Compare December 5, 2025 14:31
@pablintino pablintino force-pushed the osimagestream-controller branch from 679ced5 to a5a49e0 Compare December 5, 2025 14:33
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 5, 2025

@pablintino: The following tests 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/e2e-gcp-op-single-node a5a49e0 link true /test e2e-gcp-op-single-node
ci/prow/e2e-hypershift a5a49e0 link true /test e2e-hypershift
ci/prow/e2e-aws-ovn a5a49e0 link true /test e2e-aws-ovn
ci/prow/bootstrap-unit a5a49e0 link false /test bootstrap-unit

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.

@pablintino
Copy link
Contributor Author

Replaced by #5476

@pablintino pablintino closed this Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants