Skip to content

OCPBUGS-77839: Remove 'AppliedFilesAndOS' reference in MachineConfigNode's node degrade test#30841

Merged
openshift-merge-bot[bot] merged 1 commit intoopenshift:mainfrom
isabella-janssen:ocpbugs-77839
Mar 9, 2026
Merged

OCPBUGS-77839: Remove 'AppliedFilesAndOS' reference in MachineConfigNode's node degrade test#30841
openshift-merge-bot[bot] merged 1 commit intoopenshift:mainfrom
isabella-janssen:ocpbugs-77839

Conversation

@isabella-janssen
Copy link
Member

@isabella-janssen isabella-janssen commented Mar 5, 2026

This updates the MCO's Should properly report MCN conditions on node degrade test to reference the new MachineConfigNodeUpdateFiles condition added in openshift/machine-config-operator#5411 and remove the legacy MachineConfigNodeUpdateFilesAndOS condition removed in the same PR.

@openshift-ci-robot
Copy link

Pipeline controller notification
This repo is configured to use the pipeline controller. Second-stage tests will be triggered either automatically or after lgtm label is added, depending on the repository configuration. The pipeline controller will automatically detect which contexts are required and will utilize /test Prow commands to trigger the second stage.

For optional jobs, comment /test ? to see a list of all defined jobs. To trigger manually all jobs from second stage use /pipeline required command.

This repository is configured in: automatic mode

@openshift-ci-robot openshift-ci-robot added jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. labels Mar 5, 2026
@openshift-ci-robot
Copy link

@isabella-janssen: This pull request references Jira Issue OCPBUGS-77839, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.22.0) matches configured target version for branch (4.22.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, POST)

The bug has been updated to refer to the pull request using the external bug tracker.

Details

In response to this:

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.

@coderabbitai
Copy link

coderabbitai bot commented Mar 5, 2026

Walkthrough

Updates MCN condition references in test code from "FilesAndOS" variants to "Files" variants, including corresponding log messages and status assertions. This changes which condition names are verified during node degrade validation testing.

Changes

Cohort / File(s) Summary
MCN Condition References
test/extended/machine_config/machine_config_node.go
Replaces MachineConfigNodeUpdateFilesAndOS with MachineConfigNodeUpdateFiles and AppliedFilesAndOS with AppliedFiles. Updates log messages and status assertions to reference the new condition names and use fileCondition.Status instead of deprecated condition variable.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Test Structure And Quality ❓ Inconclusive The test file referenced in the pull request summary could not be found in the repository after comprehensive search. Verify that the pull request has been properly applied, the file path is correct, and the changes are visible in the repository.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and specifically describes the main change: removing the 'AppliedFilesAndOS' reference in the MachineConfigNode's node degrade test, which aligns with the actual changeset.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
Stable And Deterministic Test Names ✅ Passed All test titles in machine_config_node.go are stable and deterministic with no dynamic content.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 golangci-lint (2.5.0)

Error: can't load config: unsupported version of the configuration: "" See https://golangci-lint.run/docs/product/migration-guide for migration instructions
The command is terminated due to an error: can't load config: unsupported version of the configuration: "" See https://golangci-lint.run/docs/product/migration-guide for migration instructions

Tip

Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs).
Share your feedback on Discord.


Comment @coderabbitai help to get the list of available commands and usage tips.

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 5, 2026
@openshift-ci openshift-ci bot requested review from umohnani8 and yuqi-zhang March 5, 2026 17:41
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 5, 2026

@isabella-janssen: This PR was included in a payload test run from openshift/machine-config-operator#5744
trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-aws-mco-disruptive-techpreview-2of3

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/f4504140-18ba-11f1-8b71-b09bebb82348-0

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
test/extended/machine_config/machine_config_node.go (1)

462-476: ⚠️ Potential issue | 🟡 Minor

Inconsistent condition name in log and error messages.

The condition type was updated to MachineConfigNodeUpdateFiles (AppliedFiles), but line 475 and the error message on line 476 still reference "AppliedFilesAndOS". This will produce confusing test output during failures.

Proposed fix to align the message strings
 	framework.Logf("Validating that `UpdateExecuted` condition in '%v' MCN has a status of 'Unknown'.", degradedNodeMCN.Name)
 	o.Expect(executedCondition.Status).Should(o.Equal(metav1.ConditionUnknown), "Condition 'UpdateExecuted' does not have the expected status of 'Unknown'.")
-	framework.Logf("Validating that `AppliedFilesAndOS` condition in '%v' MCN has a status of 'Unknown'.", degradedNodeMCN.Name)
-	o.Expect(fileCondition.Status).Should(o.Equal(metav1.ConditionUnknown), "Condition 'AppliedFilesAndOS' does not have the expected status of 'Unknown'.")
+	framework.Logf("Validating that `AppliedFiles` condition in '%v' MCN has a status of 'Unknown'.", degradedNodeMCN.Name)
+	o.Expect(fileCondition.Status).Should(o.Equal(metav1.ConditionUnknown), "Condition 'AppliedFiles' does not have the expected status of 'Unknown'.")
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@test/extended/machine_config/machine_config_node.go` around lines 462 - 476,
The test prints and asserts messages that still reference "AppliedFilesAndOS"
even though the condition type was changed to MachineConfigNodeUpdateFiles;
update the log/expect strings that mention AppliedFilesAndOS (near the use of
fileCondition and the o.Expect that checks its status) to reference the new name
"AppliedFiles" or use the constant mcfgv1.MachineConfigNodeUpdateFiles for
clarity so the framework.Logf and o.Expect error message match the actual
condition type obtained by GetMCNCondition(degradedNodeMCN,
mcfgv1.MachineConfigNodeUpdateFiles).
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Outside diff comments:
In `@test/extended/machine_config/machine_config_node.go`:
- Around line 462-476: The test prints and asserts messages that still reference
"AppliedFilesAndOS" even though the condition type was changed to
MachineConfigNodeUpdateFiles; update the log/expect strings that mention
AppliedFilesAndOS (near the use of fileCondition and the o.Expect that checks
its status) to reference the new name "AppliedFiles" or use the constant
mcfgv1.MachineConfigNodeUpdateFiles for clarity so the framework.Logf and
o.Expect error message match the actual condition type obtained by
GetMCNCondition(degradedNodeMCN, mcfgv1.MachineConfigNodeUpdateFiles).

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 59f9947e-4566-419b-990d-b61cbd44b5ee

📥 Commits

Reviewing files that changed from the base of the PR and between 0bb7edf and 8e12427.

📒 Files selected for processing (1)
  • test/extended/machine_config/machine_config_node.go

@openshift-ci-robot
Copy link

Scheduling required tests:
/test e2e-aws-csi
/test e2e-aws-ovn-fips
/test e2e-aws-ovn-microshift
/test e2e-aws-ovn-microshift-serial
/test e2e-aws-ovn-serial-1of2
/test e2e-aws-ovn-serial-2of2
/test e2e-gcp-csi
/test e2e-gcp-ovn
/test e2e-gcp-ovn-upgrade
/test e2e-metal-ipi-ovn-ipv6
/test e2e-vsphere-ovn
/test e2e-vsphere-ovn-upi

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 5, 2026

@isabella-janssen: This PR was included in a payload test run from openshift/machine-config-operator#5744
trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-aws-mco-disruptive-techpreview-2of3

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/7cc698d0-18c5-11f1-8a6e-27135da56f0c-0

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 5, 2026

@isabella-janssen: This PR was included in a payload test run from openshift/machine-config-operator#5744
trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-aws-mco-disruptive-techpreview-2of3

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/5cb34500-18d1-11f1-8d75-08a9c4281b29-0

@isabella-janssen
Copy link
Member Author

/verified by payloads

See #30841 (comment).

@openshift-ci-robot openshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label Mar 6, 2026
@openshift-ci-robot
Copy link

@isabella-janssen: This PR has been marked as verified by payloads.

Details

In response to this:

/verified by payloads

See #30841 (comment).

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.

@pablintino
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Mar 6, 2026
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 6, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: isabella-janssen, pablintino

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

The pull request process is described here

Details 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

@isabella-janssen
Copy link
Member Author

/retest-required

7 similar comments
@isabella-janssen
Copy link
Member Author

/retest-required

@isabella-janssen
Copy link
Member Author

/retest-required

@isabella-janssen
Copy link
Member Author

/retest-required

@isabella-janssen
Copy link
Member Author

/retest-required

@isabella-janssen
Copy link
Member Author

/retest-required

@isabella-janssen
Copy link
Member Author

/retest-required

@isabella-janssen
Copy link
Member Author

/retest-required

@isabella-janssen
Copy link
Member Author

/retest-required

@xueqzhan
Copy link
Contributor

xueqzhan commented Mar 9, 2026

/override ci/prow/e2e-aws-ovn-microshift

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 9, 2026

@xueqzhan: Overrode contexts on behalf of xueqzhan: ci/prow/e2e-aws-ovn-microshift

Details

In response to this:

/override ci/prow/e2e-aws-ovn-microshift

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.

@openshift-merge-bot openshift-merge-bot bot merged commit 3e580cd into openshift:main Mar 9, 2026
21 checks passed
@openshift-ci-robot
Copy link

@isabella-janssen: Jira Issue Verification Checks: Jira Issue OCPBUGS-77839
✔️ This pull request was pre-merge verified.
✔️ All associated pull requests have merged.
✔️ All associated, merged pull requests were pre-merge verified.

Jira Issue OCPBUGS-77839 has been moved to the MODIFIED state and will move to the VERIFIED state when the change is available in an accepted nightly payload. 🕓

Details

In response to this:

This updates the MCO's Should properly report MCN conditions on node degrade test to reference the new MachineConfigNodeUpdateFiles condition added in openshift/machine-config-operator#5411 and remove the legacy MachineConfigNodeUpdateFilesAndOS condition removed in the same PR.

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 Mar 9, 2026

@isabella-janssen: all tests passed!

Full PR test history. Your PR dashboard.

Details

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.

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-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. verified Signifies that the PR passed pre-merge verification criteria

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants