Skip to content

MGMT-24835: configuring the auto mode for assisted-installer-agent#82085

Draft
andrej1991 wants to merge 1 commit into
openshift:mainfrom
andrej1991:auto-mode-assisted-installer-agent
Draft

MGMT-24835: configuring the auto mode for assisted-installer-agent#82085
andrej1991 wants to merge 1 commit into
openshift:mainfrom
andrej1991:auto-mode-assisted-installer-agent

Conversation

@andrej1991

@andrej1991 andrej1991 commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

First only the cheap jobs like lint, unit-test will run. If they succeed all the required jobs will be started.

Summary by CodeRabbit

  • Configures auto mode for assisted-installer-agent CI by marking selected jobs as non-always-running and migrating change-based skip rules to pipeline_skip_if_only_changed.
  • Applies the updated gating behavior across master, edge, release, and v2.42–v2.54 CI configurations for subsystem, metal-assisted, compact IPv4, and AI operator ZTP jobs.
  • Requires manually triggered jobs in the repository’s Prow branch-protection configuration.
  • Jira issue MGMT-24835 is valid, but has no target version configured despite the target branch expecting 5.0.0.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Jul 17, 2026
@openshift-ci-robot

openshift-ci-robot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

@andrej1991: This pull request references MGMT-24835 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 task to target the "5.0.0" version, but no target version was set.

Details

In response to this:

First only the cheap jobs like lint, unit-test will run. If they succeed all the required jobs will be started.

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 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 Jul 17, 2026
@openshift-ci

openshift-ci Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

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

@coderabbitai

coderabbitai Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Walkthrough

Assisted Installer CI configurations now use pipeline_skip_if_only_changed, explicitly set affected jobs to always_run: false, and require manually triggered jobs in branch protection.

Changes

Assisted Installer CI gating

Layer / File(s) Summary
Branch protection trigger requirement
core-services/prow/02_config/openshift/assisted-installer-agent/_prowconfig.yaml
Branch protection now requires manually triggered jobs.
Pipeline job gating migration
ci-operator/config/openshift/assisted-installer-agent/*
Affected current, edge, release, placeholder, and versioned jobs add always_run: false and rename skip_if_only_changed to pipeline_skip_if_only_changed, preserving existing job steps and capabilities.

Estimated code review effort: 2 (Simple) | ~15 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 15
✅ Passed checks (15 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Stable And Deterministic Test Names ✅ Passed PR only updates CI/prow YAML config; no Ginkgo test bodies or titles (It/Describe/Context/When) are changed, so there are no unstable test names to flag.
Test Structure And Quality ✅ Passed PASS: The commit only changes CI YAML/prow config files; no Go/Ginkgo test files are touched, so this test-code quality check is not applicable.
Microshift Test Compatibility ✅ Passed No Ginkgo/e2e test code was changed; the PR only updates CI/job YAML, so MicroShift test compatibility is not applicable.
Single Node Openshift (Sno) Test Compatibility ✅ Passed PR only changes CI/prow YAML; no Go/Ginkgo tests were added or modified, so the SNO compatibility check is not applicable.
Topology-Aware Scheduling Compatibility ✅ Passed Only CI/Prow config YAML changed; no deployment manifests, operator code, or controllers were modified, so topology scheduling checks don't apply.
Ote Binary Stdout Contract ✅ Passed PR only edits YAML/Prow config; no main/init/TestMain/suite code or stdout writes are introduced.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed PR only edits CI/prow YAML; no new Ginkgo tests or networking code were added, so the IPv6/disconnected test check is not applicable.
No-Weak-Crypto ✅ Passed PR only changes CI/branch-protection YAML; search of all changed files found no MD5/SHA1/DES/RC4/3DES/Blowfish/ECB, custom crypto, or secret comparisons.
Container-Privileges ✅ Passed No changed manifest adds privileged/root/network-host settings; the inspected CI YAML only tweaks always_run and skip filters.
No-Sensitive-Data-In-Logs ✅ Passed PASS: The edits only flip CI gating flags in YAML; no new log statements or sensitive data exposure was added, and existing CODECOV_TOKEN plumbing is unchanged.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the PR’s goal of configuring auto mode for assisted-installer-agent.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

@openshift-ci

openshift-ci Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: andrej1991
Once this PR has been reviewed and has the lgtm label, please assign danmanor, hector-vido for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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

First only the cheap jobs like lint, unit-test will run. If they succeed and the reviewer gives lgtm then all the required jobs will be started.
@andrej1991
andrej1991 force-pushed the auto-mode-assisted-installer-agent branch from 4990e57 to 1a90792 Compare July 20, 2026 12:47
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

[REHEARSALNOTIFIER]
@andrej1991: the pj-rehearse plugin accommodates running rehearsal tests for the changes in this PR. Expand 'Interacting with pj-rehearse' for usage details. The following rehearsable tests have been affected by this change:

Test name Repo Type Reason
pull-ci-openshift-assisted-installer-agent-v2.54-e2e-metal-assisted openshift/assisted-installer-agent presubmit Ci-operator config changed
pull-ci-openshift-assisted-installer-agent-v2.54-subsystem-test openshift/assisted-installer-agent presubmit Ci-operator config changed
pull-ci-openshift-assisted-installer-agent-v2.49-e2e-metal-assisted openshift/assisted-installer-agent presubmit Ci-operator config changed
pull-ci-openshift-assisted-installer-agent-v2.49-subsystem-test openshift/assisted-installer-agent presubmit Ci-operator config changed
pull-ci-openshift-assisted-installer-agent-release-ocm-2.12-e2e-ai-operator-ztp openshift/assisted-installer-agent presubmit Ci-operator config changed
pull-ci-openshift-assisted-installer-agent-release-ocm-2.12-subsystem-test openshift/assisted-installer-agent presubmit Ci-operator config changed
pull-ci-openshift-assisted-installer-agent-v2.45-e2e-metal-assisted openshift/assisted-installer-agent presubmit Ci-operator config changed
pull-ci-openshift-assisted-installer-agent-v2.45-subsystem-test openshift/assisted-installer-agent presubmit Ci-operator config changed
pull-ci-openshift-assisted-installer-agent-v2.46-e2e-metal-assisted openshift/assisted-installer-agent presubmit Ci-operator config changed
pull-ci-openshift-assisted-installer-agent-v2.46-subsystem-test openshift/assisted-installer-agent presubmit Ci-operator config changed
pull-ci-openshift-assisted-installer-agent-release-ocm-2.16-subsystem-test openshift/assisted-installer-agent presubmit Ci-operator config changed
pull-ci-openshift-assisted-installer-agent-release-ocm-2.11-e2e-ai-operator-ztp openshift/assisted-installer-agent presubmit Ci-operator config changed
pull-ci-openshift-assisted-installer-agent-release-ocm-2.11-subsystem-test openshift/assisted-installer-agent presubmit Ci-operator config changed
pull-ci-openshift-assisted-installer-agent-master-edge-e2e-ai-operator-ztp openshift/assisted-installer-agent presubmit Ci-operator config changed
pull-ci-openshift-assisted-installer-agent-master-edge-e2e-metal-assisted-4-20 openshift/assisted-installer-agent presubmit Ci-operator config changed
pull-ci-openshift-assisted-installer-agent-master-edge-subsystem-test openshift/assisted-installer-agent presubmit Ci-operator config changed
pull-ci-openshift-assisted-installer-agent-v2.50-e2e-metal-assisted openshift/assisted-installer-agent presubmit Ci-operator config changed
pull-ci-openshift-assisted-installer-agent-v2.50-subsystem-test openshift/assisted-installer-agent presubmit Ci-operator config changed
pull-ci-openshift-assisted-installer-agent-v2.42-e2e-metal-assisted openshift/assisted-installer-agent presubmit Ci-operator config changed
pull-ci-openshift-assisted-installer-agent-v2.42-subsystem-test openshift/assisted-installer-agent presubmit Ci-operator config changed
pull-ci-openshift-assisted-installer-agent-v2.53-e2e-metal-assisted openshift/assisted-installer-agent presubmit Ci-operator config changed
pull-ci-openshift-assisted-installer-agent-v2.53-subsystem-test openshift/assisted-installer-agent presubmit Ci-operator config changed
pull-ci-openshift-assisted-installer-agent-v2.51-e2e-metal-assisted openshift/assisted-installer-agent presubmit Ci-operator config changed
pull-ci-openshift-assisted-installer-agent-v2.51-subsystem-test openshift/assisted-installer-agent presubmit Ci-operator config changed
pull-ci-openshift-assisted-installer-agent-release-ocm-2.17-subsystem-test openshift/assisted-installer-agent presubmit Ci-operator config changed

A total of 42 jobs have been affected by this change. The above listing is non-exhaustive and limited to 25 jobs.

A full list of affected jobs can be found here

Interacting with pj-rehearse

Comment: /pj-rehearse to run up to 5 rehearsals
Comment: /pj-rehearse skip to opt-out of rehearsals
Comment: /pj-rehearse {test-name}, with each test separated by a space, to run one or more specific rehearsals
Comment: /pj-rehearse more to run up to 10 rehearsals
Comment: /pj-rehearse max to run up to 25 rehearsals
Comment: /pj-rehearse auto-ack to run up to 5 rehearsals, and add the rehearsals-ack label on success
Comment: /pj-rehearse list to get an up-to-date list of affected jobs
Comment: /pj-rehearse abort to abort all active rehearsals
Comment: /pj-rehearse network-access-allowed to allow rehearsals of tests that have the restrict_network_access field set to false. This must be executed by an openshift org member who is not the PR author

Once you are satisfied with the results of the rehearsals, comment: /pj-rehearse ack to unblock merge. When the rehearsals-ack label is present on your PR, merge will no longer be blocked by rehearsals.
If you would like the rehearsals-ack label removed, comment: /pj-rehearse reject to re-block merging.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-v2.45.yaml`:
- Line 96: Escape the dot in the .tekton path within every affected
pipeline_skip_if_only_changed filter: update both entries in
ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-v2.45.yaml
(lines 96-96 and 104-104), both entries in v2.47.yaml (lines 96-96 and 104-104),
and both entries in v2.52.yaml (lines 96-96 and 104-104) from .tekton/.* to
\.tekton/.*.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Enterprise

Run ID: 0ed5e7f6-cf36-48d0-bcc8-eed13e783bf0

📥 Commits

Reviewing files that changed from the base of the PR and between 4990e57 and 1a90792.

📒 Files selected for processing (22)
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-assisted-version-placeholder.yaml
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-master.yaml
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-master__edge.yaml
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-release-ocm-2.11.yaml
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-release-ocm-2.12.yaml
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-release-ocm-2.13.yaml
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-release-ocm-2.14.yaml
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-release-ocm-2.15.yaml
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-release-ocm-2.16.yaml
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-release-ocm-2.17.yaml
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-v2.42.yaml
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-v2.43.yaml
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-v2.45.yaml
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-v2.46.yaml
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-v2.47.yaml
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-v2.48.yaml
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-v2.49.yaml
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-v2.50.yaml
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-v2.51.yaml
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-v2.52.yaml
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-v2.53.yaml
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-v2.54.yaml
🚧 Files skipped from review as they are similar to previous changes (16)
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-master__edge.yaml
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-release-ocm-2.12.yaml
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-v2.48.yaml
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-v2.42.yaml
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-release-ocm-2.11.yaml
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-v2.46.yaml
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-v2.49.yaml
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-v2.51.yaml
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-v2.54.yaml
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-v2.53.yaml
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-release-ocm-2.17.yaml
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-master.yaml
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-release-ocm-2.15.yaml
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-v2.50.yaml
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-release-ocm-2.14.yaml
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-v2.43.yaml

capabilities:
- intranet
skip_if_only_changed: ^\.github/|\.md$|^(?:.*/)?(?:\.gitignore|.tekton/.*|OWNERS|OWNERS_ALIASES|LICENSE)$
pipeline_skip_if_only_changed: ^\.github/|\.md$|^(?:.*/)?(?:\.gitignore|.tekton/.*|OWNERS|OWNERS_ALIASES|LICENSE)$

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Escape .tekton in all affected skip filters.

The unescaped dot is a wildcard and can skip jobs for unrelated paths such as xtekton/.... Replace .tekton/.* with \.tekton/.* at every listed site.

  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-v2.45.yaml#L96-L96: escape .tekton.
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-v2.45.yaml#L104-L104: escape .tekton.
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-v2.47.yaml#L96-L96: escape .tekton.
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-v2.47.yaml#L104-L104: escape .tekton.
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-v2.52.yaml#L96-L96: escape .tekton.
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-v2.52.yaml#L104-L104: escape .tekton.
📍 Affects 3 files
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-v2.45.yaml#L96-L96 (this comment)
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-v2.45.yaml#L104-L104
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-v2.47.yaml#L96-L96
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-v2.47.yaml#L104-L104
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-v2.52.yaml#L96-L96
  • ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-v2.52.yaml#L104-L104
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-v2.45.yaml`
at line 96, Escape the dot in the .tekton path within every affected
pipeline_skip_if_only_changed filter: update both entries in
ci-operator/config/openshift/assisted-installer-agent/openshift-assisted-installer-agent-v2.45.yaml
(lines 96-96 and 104-104), both entries in v2.47.yaml (lines 96-96 and 104-104),
and both entries in v2.52.yaml (lines 96-96 and 104-104) from .tekton/.* to
\.tekton/.*.

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

Labels

do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. 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.

2 participants