Skip to content

openshift/metallb: add dualstack periodic ci - #84346

Open
ajaggapa wants to merge 2 commits into
openshift:mainfrom
ajaggapa:mlbdualperiodic
Open

openshift/metallb: add dualstack periodic ci#84346
ajaggapa wants to merge 2 commits into
openshift:mainfrom
ajaggapa:mlbdualperiodic

Conversation

@ajaggapa

@ajaggapa ajaggapa commented Sep 1, 2026

Copy link
Copy Markdown

Adds a release-5.0 dual-stack periodic CI job for openshift/metallb to run MetalLB e2e on bare metal with IPv4/IPv6 (v4v6).

Summary by CodeRabbit

  • Adds a release-5.0 periodic CI job for openshift/metallb.
  • Runs dual-stack MetalLB end-to-end tests on bare metal every 72 hours.
  • Uses the equinix-ocp-metal cluster profile and baremetalds-metallb-e2e workflow.
  • Configures v4v6 networking with OVNKubernetes and frr-k8s-cno BGP.
  • Reports results to #team-metallb-ci-periodic.
  • Always collects test artifacts while preserving the e2e test exit status.

@coderabbitai

coderabbitai Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

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

Review profile: CHILL

Plan: Team

Run ID: 53561d60-d0e2-4ac8-8341-e37c3664da12

📥 Commits

Reviewing files that changed from the base of the PR and between 20911d5 and 327b9a2.

⛔ Files ignored due to path filters (1)
  • ci-operator/jobs/openshift/metallb/openshift-metallb-release-5.0-periodics.yaml is excluded by !ci-operator/jobs/**
📒 Files selected for processing (2)
  • ci-operator/config/openshift/metallb/openshift-metallb-release-5.0__dualstack-periodics.yaml
  • ci-operator/step-registry/baremetalds/metallb-e2e/test/baremetalds-metallb-e2e-test-commands.sh
🚧 Files skipped from review as they are similar to previous changes (2)
  • ci-operator/config/openshift/metallb/openshift-metallb-release-5.0__dualstack-periodics.yaml
  • ci-operator/step-registry/baremetalds/metallb-e2e/test/baremetalds-metallb-e2e-test-commands.sh

Included review availability: Your plan provides up to 2 included reviews per hour; 0 remain after this review.


Walkthrough

A periodic dual-stack MetalLB e2e job is added for the release-5.0 branch. The e2e script now copies artifacts for every test result and preserves the original test exit code.

Changes

MetalLB CI

Layer / File(s) Summary
E2E result and artifact handling
ci-operator/step-registry/baremetalds/metallb-e2e/test/baremetalds-metallb-e2e-test-commands.sh
Captures the run_e2e.sh exit code, copies artifacts unconditionally, restores set -e, and exits with failure when the captured code is non-zero.
Periodic dual-stack job
ci-operator/config/openshift/metallb/openshift-metallb-release-5.0__dualstack-periodics.yaml
Adds the metallb-e2e-metal-dualstack-periodic job. It runs every 72 hours with the configured cluster profile, workflow, v4v6 IP stack, OVNKubernetes networking, frr-k8s-cno BGP, and Slack reporting.

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

Merge Risk: ⚪ Minimal · up to 327b9

This PR adds a dual-stack periodic MetalLB CI job and adjusts the associated test command; no actionable merge-blocking risk remains beyond normal checks and review.

🚥 Pre-merge checks | ✅ 15
✅ Passed checks (15 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main change: adding a dual-stack periodic CI job for openshift/metallb.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
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 The pull request does not add or modify any Ginkgo test declaration. The changed shell script only runs run_e2e.sh and copies artifacts. The new as value and generated Prow job name are CI identif…
Test Structure And Quality ✅ Passed PASS: The pull request does not add or modify Ginkgo test code. The diff contains two YAML CI configuration files and one shell test-command wrapper. The shell change only captures the E2E exit code, …
Microshift Test Compatibility ✅ Passed The check is not applicable. The diff against origin/main adds CI configuration and a generated job, and changes artifact/exit-code handling in an existing shell command. It adds no Ginkgo test defini…
Single Node Openshift (Sno) Test Compatibility ✅ Passed PASS: The pull request adds CI configuration and changes artifact handling in a shell harness. The complete diff contains no new Go or Ginkgo test declarations such as It(), Describe(), Context(), or …
Topology-Aware Scheduling Compatibility ✅ Passed PASS — The PR changes only CI configuration, a generated Prow job, and E2E result handling. The added files contain no anti-affinity, topology spread, node selector/affinity, tolerations, replica, PDB…
Ote Binary Stdout Contract ✅ Passed The check is not applicable to the changed code. The PR adds CI YAML and a shell command step. It adds no Go source, OTE binary, suite setup, or process-level logging code. The shell changes only capt…
Ipv6 And Disconnected Network Test Compatibility ✅ Passed PASS — The custom check is not applicable. The pull request adds two YAML CI configuration files and changes one shell command script. The exact diff adds no Ginkgo tests or test source, and no added …
No-Weak-Crypto ✅ Passed PASS: The pull request adds CI YAML and changes E2E artifact handling only. The complete diff adds no MD5, SHA1, DES, RC4, 3DES, Blowfish, ECB, custom cryptography, or secret/token comparisons. The on…
Container-Privileges ✅ Passed No explicit container-privilege violation was introduced. The added CI configuration contains no privileged, hostPID, hostNetwork, hostIPC, SYS_ADMIN, allowPrivilegeEscalation, or root sec…
No-Sensitive-Data-In-Logs ✅ Passed PASS: The PR adds only CI metadata and changes artifact collection. The new YAML contains a Slack channel, cluster profile, workflow, and network settings, but no passwords, tokens, API keys, PII, or …
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1 files. (1 skipped: 1 unsupported.)

Full details: Stable And Deterministic Test Names

Explanation

The pull request does not add or modify any Ginkgo test declaration. The changed shell script only runs run_e2e.sh and copies artifacts. The new as value and generated Prow job name are CI identifiers, not It(), Describe(), Context(), or When() titles. The changed-line search found no Ginkgo title APIs or dynamic test-title construction.

Full details: Test Structure And Quality

Explanation

PASS: The pull request does not add or modify Ginkgo test code. The diff contains two YAML CI configuration files and one shell test-command wrapper. The shell change only captures the E2E exit code, copies artifacts, restores set -e, and returns failure status. No It, BeforeEach, AfterEach, Eventually, or Ginkgo assertions changed, so the listed test-structure requirements are not applicable.

Full details: Microshift Test Compatibility

Explanation

The check is not applicable. The diff against origin/main adds CI configuration and a generated job, and changes artifact/exit-code handling in an existing shell command. It adds no Ginkgo test definitions or test bodies: no new It(), Describe(), Context(), or When() code appears in the added lines. The new job invokes the existing baremetalds-metallb-e2e workflow.

Full details: Single Node Openshift (Sno) Test Compatibility

Explanation

PASS: The pull request adds CI configuration and changes artifact handling in a shell harness. The complete diff contains no new Go or Ginkgo test declarations such as It(), Describe(), Context(), or When(). Therefore, the SNO compatibility check is not applicable.

Full details: Topology-Aware Scheduling Compatibility

Explanation

PASS — The PR changes only CI configuration, a generated Prow job, and E2E result handling. The added files contain no anti-affinity, topology spread, node selector/affinity, tolerations, replica, PDB, or arbiter scheduling settings. The modified shell script only captures the test exit code and copies artifacts. The activated workflow also contains no topology-sensitive scheduling constraints.

Full details: Ote Binary Stdout Contract

Explanation

The check is not applicable to the changed code. The PR adds CI YAML and a shell command step. It adds no Go source, OTE binary, suite setup, or process-level logging code. The shell changes only capture the remote run_e2e.sh exit code and copy artifacts. Its existing echo commands are CI-step output, not stdout from an OTE binary.

Full details: Ipv6 And Disconnected Network Test Compatibility

Explanation

PASS — The custom check is not applicable. The pull request adds two YAML CI configuration files and changes one shell command script. The exact diff adds no Ginkgo tests or test source, and no added It(), Describe(), Context(), or When() constructs. The new job only configures the existing baremetalds-metallb-e2e workflow with IP_STACK=v4v6; it does not introduce a test with an IPv4 assumption or external connectivity requirement.

Full details: No-Weak-Crypto

Explanation

PASS: The pull request adds CI YAML and changes E2E artifact handling only. The complete diff adds no MD5, SHA1, DES, RC4, 3DES, Blowfish, ECB, custom cryptography, or secret/token comparisons. The only comparison is the numeric E2E exit code.

Full details: Container-Privileges

Explanation

No explicit container-privilege violation was introduced. The added CI configuration contains no privileged, hostPID, hostNetwork, hostIPC, SYS_ADMIN, allowPrivilegeEscalation, or root security setting. The referenced workflow and test-step manifests also define no such fields. The shell change only captures the test exit code and copies artifacts; its root@ SSH target is a pre-existing remote bare-metal operation, not a container/Kubernetes manifest setting.

Full details: No-Sensitive-Data-In-Logs

Explanation

PASS: The PR adds only CI metadata and changes artifact collection. The new YAML contains a Slack channel, cluster profile, workflow, and network settings, but no passwords, tokens, API keys, PII, or customer data. The shell change copies /logs/artifacts with scp; it does not print artifact contents or add sensitive values to log output. The changed commands use existing variables and fixed paths.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

@coderabbitai

coderabbitai Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

@ajaggapa

ajaggapa commented Sep 1, 2026

Copy link
Copy Markdown
Author

/pj-rehearse

@ajaggapa

ajaggapa commented Sep 1, 2026

Copy link
Copy Markdown
Author

/pj-rehearse periodic-ci-openshift-metallb-release-5.0-dualstack-periodics-metallb-e2e-metal-dualstack-periodic

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@ajaggapa: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

1 similar comment
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@ajaggapa: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@openshift-ci

openshift-ci Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: ajaggapa
Once this PR has been reviewed and has the lgtm label, please assign fedepaol 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

@coderabbitai

coderabbitai Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

@ajaggapa

ajaggapa commented Sep 2, 2026

Copy link
Copy Markdown
Author

/retest-required

@ajaggapa

ajaggapa commented Sep 2, 2026

Copy link
Copy Markdown
Author

/retest-failed

@ajaggapa

ajaggapa commented Sep 2, 2026

Copy link
Copy Markdown
Author

/retest

@ajaggapa

Copy link
Copy Markdown
Author

/retest-failed

@ajaggapa

Copy link
Copy Markdown
Author

/retest

Signed-off-by: Anvesh Jaggapatruni <ajaggapa@redhat.com>
Signed-off-by: Anvesh Jaggapatruni <ajaggapa@redhat.com>
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

[REHEARSALNOTIFIER]
@ajaggapa: 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-metallb-operator-main-metallb-e2e-metal openshift/metallb-operator presubmit Registry content changed
pull-ci-openshift-metallb-operator-release-5.2-metallb-e2e-metal openshift/metallb-operator presubmit Registry content changed
pull-ci-openshift-metallb-operator-release-5.1-metallb-e2e-metal openshift/metallb-operator presubmit Registry content changed
pull-ci-openshift-metallb-operator-release-5.0-metallb-e2e-metal openshift/metallb-operator presubmit Registry content changed
pull-ci-openshift-metallb-operator-release-4.23-metallb-e2e-metal openshift/metallb-operator presubmit Registry content changed
pull-ci-openshift-metallb-operator-release-4.22-metallb-e2e-metal openshift/metallb-operator presubmit Registry content changed
pull-ci-openshift-metallb-operator-release-4.21-metallb-e2e-metal openshift/metallb-operator presubmit Registry content changed
pull-ci-openshift-metallb-operator-release-4.20-metallb-e2e-metal openshift/metallb-operator presubmit Registry content changed
pull-ci-openshift-metallb-operator-release-4.19-metallb-e2e-metal openshift/metallb-operator presubmit Registry content changed
pull-ci-openshift-metallb-operator-release-4.18-metallb-e2e-metal-frrk8s openshift/metallb-operator presubmit Registry content changed
pull-ci-openshift-metallb-operator-release-4.17-metallb-e2e-metal-frrk8s openshift/metallb-operator presubmit Registry content changed
pull-ci-openshift-metallb-operator-release-4.17-metallb-e2e-metal-ipi-ovn openshift/metallb-operator presubmit Registry content changed
pull-ci-openshift-metallb-operator-release-4.16-metallb-e2e-metal-frrk8s openshift/metallb-operator presubmit Registry content changed
pull-ci-openshift-metallb-operator-release-4.16-metallb-e2e-metal-ipi-ovn openshift/metallb-operator presubmit Registry content changed
pull-ci-openshift-metallb-operator-release-4.15-metallb-e2e-metal-ipi openshift/metallb-operator presubmit Registry content changed
pull-ci-openshift-metallb-operator-release-4.15-metallb-e2e-metal-ipi-ovn openshift/metallb-operator presubmit Registry content changed
pull-ci-openshift-metallb-operator-release-4.14-metallb-e2e-metal-ipi openshift/metallb-operator presubmit Registry content changed
pull-ci-openshift-metallb-operator-release-4.14-metallb-e2e-metal-ipi-ovn openshift/metallb-operator presubmit Registry content changed
pull-ci-openshift-metallb-operator-release-4.13-metallb-e2e-metal-ipi openshift/metallb-operator presubmit Registry content changed
pull-ci-openshift-metallb-operator-release-4.13-metallb-e2e-metal-ipi-ovn openshift/metallb-operator presubmit Registry content changed
pull-ci-openshift-metallb-operator-release-4.12-metallb-e2e-metal-ipi openshift/metallb-operator presubmit Registry content changed
pull-ci-openshift-metallb-operator-release-4.12-metallb-e2e-metal-ipi-ovn openshift/metallb-operator presubmit Registry content changed
pull-ci-openshift-metallb-main-metallb-e2e-metal openshift/metallb presubmit Registry content changed
pull-ci-openshift-metallb-release-5.2-metallb-e2e-metal openshift/metallb presubmit Registry content changed
pull-ci-openshift-metallb-release-5.1-metallb-e2e-metal openshift/metallb presubmit Registry content changed

A total of 95 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.

ssh "${SSHOPTS[@]}" "root@${IP}" "cd /root/dev-scripts/metallb/openshift-ci/ && ${vars} ./run_e2e.sh"
if [ $? -ne 0 ]; then
scp "${SSHOPTS[@]}" -r "root@${IP}:/logs/artifacts" "${ARTIFACT_DIR}"
TEST_EXIT_CODE=$?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why we might want this (I mean, the whole commit)?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

After openshift/metallb#300, we are placing the fetching the junit file for the Spyglass Lens to pick it to display the tests passed/failed/skipped in the main page of the job.

Without this commit, it is displaying (pass/fail/skip) only when atleast 1 test fails. It would be good to have the tests displayed directly irrespective of the test result.

for example, this job shows the tests failed in the main page compared to this job without fetching junit file

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

presubmit job shows success, but to know the tests it ran, we need to go through artifacts buildlog

@ajaggapa

Copy link
Copy Markdown
Author

/pj-rehearse pull-ci-openshift-metallb-main-metallb-e2e-metal

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@ajaggapa: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@ajaggapa

Copy link
Copy Markdown
Author

/pj-rehearse pull-ci-openshift-metallb-main-metallb-e2e-metal

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@ajaggapa: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@openshift-ci

openshift-ci Bot commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

@ajaggapa: 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/rehearse/periodic-ci-openshift-metallb-release-5.0-dualstack-periodics-metallb-e2e-metal-dualstack-periodic c0433a4 link unknown /pj-rehearse periodic-ci-openshift-metallb-release-5.0-dualstack-periodics-metallb-e2e-metal-dualstack-periodic
ci/rehearse/openshift/metallb/main/metallb-e2e-metal 71aeb82 link unknown /pj-rehearse pull-ci-openshift-metallb-main-metallb-e2e-metal

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants