Skip to content

dummy - dont merge - testing - #82988

Closed
ajaggapa wants to merge 1 commit into
openshift:mainfrom
ajaggapa:mlbtest2
Closed

dummy - dont merge - testing#82988
ajaggapa wants to merge 1 commit into
openshift:mainfrom
ajaggapa:mlbtest2

Conversation

@ajaggapa

@ajaggapa ajaggapa commented Aug 5, 2026

Copy link
Copy Markdown

test

Summary by CodeRabbit

  • Updated MetalLB bare-metal E2E CI to use dual-stack v4v6 networking for DevScripts and E2E environments.
  • Configured the test to clone https://github.com/ajaggapa/metallb-openshift.git and use the fixed testrelease branch.

@coderabbitai

coderabbitai Bot commented Aug 5, 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: Pro Plus

Run ID: 1cd3eb97-b8d3-46db-b9ab-60af0750e0ee

📥 Commits

Reviewing files that changed from the base of the PR and between add2700 and 4063e08.

📒 Files selected for processing (2)
  • ci-operator/config/openshift/metallb/openshift-metallb-main.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 (1)
  • ci-operator/config/openshift/metallb/openshift-metallb-main.yaml

Walkthrough

The MetalLB bare-metal E2E configuration now enables dual-stack networking. The test script now clones a different MetalLB repository and checks out the fixed testrelease branch.

Changes

MetalLB E2E updates

Layer / File(s) Summary
Enable dual-stack test configuration
ci-operator/config/openshift/metallb/openshift-metallb-main.yaml
DEVSCRIPTS_CONFIG and E2E_TESTS_CONFIG now use v4v6 instead of v4.
Pin MetalLB test source
ci-operator/step-registry/baremetalds/metallb-e2e/test/baremetalds-metallb-e2e-test-commands.sh
The default repository changes to ajaggapa/metallb-openshift. Cloning now checks out the testrelease branch.

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

Suggested labels: do-not-merge/hold

Suggested reviewers: s1061123, fedepaol

🚥 Pre-merge checks | ✅ 13 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Title check ⚠️ Warning The title describes a test-only pull request and does not identify the MetalLB dual-stack and fixed-branch changes. Replace the title with a concise summary of the MetalLB configuration and test repository changes.
Ipv6 And Disconnected Network Test Compatibility ⚠️ Warning The modified test setup runs git clone from https://github.com/ajaggapa/metallb-openshift.git, which requires public internet access in a disconnected CI environment. Run /payload-job periodic-ci-openshift-release-master-nightly-4.22-e2e-metal-ipi-ovn-ipv6; use an internal mirror or add [Skipped:Disconnected] if public access is required.
✅ Passed checks (13 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
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 The patch changes only CI IP settings and shell repository checkout logic; it adds no Ginkgo It, Describe, Context, or When test titles.
Test Structure And Quality ✅ Passed The commit changes only CI YAML and a shell wrapper; no Go/Ginkgo test code or Ginkgo constructs changed, so these test-quality requirements are not applicable.
Microshift Test Compatibility ✅ Passed The commit changes only MetalLB CI YAML and a shell command script; it adds no Ginkgo e2e tests, so MicroShift API compatibility checks do not apply.
Single Node Openshift (Sno) Test Compatibility ✅ Passed The complete diff changes only YAML and shell orchestration; it adds no Ginkgo tests or multi-node/HA assumptions, so this SNO check is not applicable.
Topology-Aware Scheduling Compatibility ✅ Passed The commit changes only CI test IP settings and a shell clone/repository branch; it adds no deployment, operator, controller, or scheduling constraints.
Ote Binary Stdout Contract ✅ Passed The diff changes only YAML IP settings and shell repository/branch selection; it adds no OTE binary source or process-level stdout write.
No-Weak-Crypto ✅ Passed The PR changes only IP stack settings and MetalLB repository checkout logic; scans found no MD5, SHA1, DES, RC4, Blowfish, ECB, custom crypto, or secret comparisons.
Container-Privileges ✅ Passed The PR changes only IP_STACK and MetalLB clone settings; affected workflow files contain no privileged, hostPID, hostNetwork, hostIPC, SYS_ADMIN, or allowPrivilegeEscalation settings.
No-Sensitive-Data-In-Logs ✅ Passed The diff adds no logging statements or sensitive literals; it only adds public repository/branch values and IP stack settings.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@openshift-ci
openshift-ci Bot requested review from fedepaol and s1061123 August 5, 2026 17:13
@openshift-ci

openshift-ci Bot commented Aug 5, 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 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/step-registry/baremetalds/metallb-e2e/test/baremetalds-metallb-e2e-test-commands.sh`:
- Line 27: Secure the METALLB_REPO handling used by the remote root command by
passing the repository URL as a safely escaped argument instead of directly
interpolating the overridable variable. Alternatively, validate METALLB_REPO
against a strict HTTPS repository allowlist before the command at the remote
execution site.
🪄 Autofix

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: Pro Plus

Run ID: cc919992-f6b4-45cf-b701-041009352c97

📥 Commits

Reviewing files that changed from the base of the PR and between 8caba5e and d6b10f4.

📒 Files selected for processing (2)
  • ci-operator/config/openshift/metallb/openshift-metallb-main.yaml
  • ci-operator/step-registry/baremetalds/metallb-e2e/test/baremetalds-metallb-e2e-test-commands.sh

FRRK8S_SRC_DIR="/go/src/github.com/openshift/frr"
METALLB_OPERATOR_SRC_DIR="/go/src/github.com/openshift/metallb-operator"
METALLB_REPO=${METALLB_REPO:-"https://github.com/openshift/metallb.git"}
METALLB_REPO="${METALLB_REPO:-"https://github.com/ajaggapa/metallb-openshift.git"}"

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.

🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

file="ci-operator/step-registry/baremetalds/metallb-e2e/test/baremetalds-metallb-e2e-test-commands.sh"
if [ -f "$file" ]; then
  echo "== file exists =="
  cat -n "$file"
else
  echo "missing $file"
fi

echo
echo "== ssh usage in file =="
rg -n "ssh|ssh -|METALLB_REPO|METALLB_REPO" "$file" || true

echo
echo "== relevant directory files =="
git ls-files "ci-operator/step-registry/baremetalds/metallb-e2e/test"

Repository: openshift/release

Length of output: 5080


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== ref metadata =="
cat -n ci-operator/step-registry/baremetalds/metallb-e2e/test/baremetalds-metallb-e2e-test-ref.metadata.json

echo
echo "== ref yaml =="
cat -n ci-operator/step-registry/baremetalds/metallb-e2e/test/baremetalds-metallb-e2e-test-ref.yaml

echo
echo "== locate step registry files =="
git ls-files ci-operator/step-registry/baremetalds/metallb-e2e || true

Repository: openshift/release

Length of output: 1909


Injection (CWE-78): Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Prevent shell injection through METALLB_REPO.

METALLB_REPO is overridable and interpolated at line 40 inside the remote command that runs as root. A caller-supplied value containing shell metacharacters can execute additional commands on the test host. Pass the repository URL as a safely escaped remote argument, or validate it against a strict HTTPS repository allowlist before interpolation.

🤖 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/step-registry/baremetalds/metallb-e2e/test/baremetalds-metallb-e2e-test-commands.sh`
at line 27, Secure the METALLB_REPO handling used by the remote root command by
passing the repository URL as a safely escaped argument instead of directly
interpolating the overridable variable. Alternatively, validate METALLB_REPO
against a strict HTTPS repository allowlist before the command at the remote
execution site.

Source: Linters/SAST tools

@coderabbitai

coderabbitai Bot commented Aug 5, 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 Aug 5, 2026

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.

@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.

Signed-off-by: Anvesh Jaggapatruni <ajaggapa@redhat.com>
@coderabbitai

coderabbitai Bot commented Aug 11, 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.

@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-cluster-network-operator-master-frrk8s-e2e openshift/cluster-network-operator presubmit Registry content changed
pull-ci-openshift-cluster-network-operator-release-5.1-frrk8s-e2e openshift/cluster-network-operator presubmit Registry content changed
pull-ci-openshift-cluster-network-operator-release-5.0-frrk8s-e2e openshift/cluster-network-operator presubmit Registry content changed
pull-ci-openshift-cluster-network-operator-release-4.23-frrk8s-e2e openshift/cluster-network-operator presubmit Registry content changed
pull-ci-openshift-cluster-network-operator-release-4.22-frrk8s-e2e openshift/cluster-network-operator presubmit Registry content changed
pull-ci-openshift-cluster-network-operator-release-4.21-frrk8s-e2e openshift/cluster-network-operator presubmit Registry content changed
pull-ci-openshift-cluster-network-operator-release-4.20-frrk8s-e2e openshift/cluster-network-operator presubmit Registry content changed
pull-ci-openshift-cluster-network-operator-release-4.19-frrk8s-e2e openshift/cluster-network-operator presubmit Registry content changed
pull-ci-openshift-cluster-network-operator-release-4.18-frrk8s-e2e openshift/cluster-network-operator presubmit Registry content changed
pull-ci-openshift-frr-main-metallb-e2e-metal openshift/frr presubmit Registry content changed
pull-ci-openshift-frr-main-frrk8s-e2e-metal openshift/frr presubmit Registry content changed
pull-ci-openshift-frr-release-5.1-metallb-e2e-metal openshift/frr presubmit Registry content changed
pull-ci-openshift-frr-release-5.1-frrk8s-e2e-metal openshift/frr presubmit Registry content changed
pull-ci-openshift-frr-release-5.0-metallb-e2e-metal openshift/frr presubmit Registry content changed
pull-ci-openshift-frr-release-5.0-frrk8s-e2e-metal openshift/frr presubmit Registry content changed
pull-ci-openshift-frr-release-4.23-metallb-e2e-metal openshift/frr presubmit Registry content changed
pull-ci-openshift-frr-release-4.23-frrk8s-e2e-metal openshift/frr presubmit Registry content changed
pull-ci-openshift-frr-release-4.22-metallb-e2e-metal openshift/frr presubmit Registry content changed
pull-ci-openshift-frr-release-4.22-frrk8s-e2e-metal openshift/frr presubmit Registry content changed
pull-ci-openshift-frr-release-4.21-metallb-e2e-metal openshift/frr presubmit Registry content changed
pull-ci-openshift-frr-release-4.21-frrk8s-e2e-metal openshift/frr presubmit Registry content changed
pull-ci-openshift-frr-release-4.20-metallb-e2e-metal openshift/frr presubmit Registry content changed
pull-ci-openshift-frr-release-4.20-frrk8s-e2e-metal openshift/frr presubmit Registry content changed
pull-ci-openshift-frr-release-4.19-metallb-e2e-metal openshift/frr presubmit Registry content changed
pull-ci-openshift-frr-release-4.19-frrk8s-e2e-metal openshift/frr presubmit Registry content changed

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

@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 ajaggapa closed this Aug 11, 2026
This was referenced Aug 11, 2026
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.

1 participant