Skip to content

TEST only - do not merge#79045

Open
edcdavid wants to merge 3 commits intoopenshift:mainfrom
edcdavid:fix-wpc1
Open

TEST only - do not merge#79045
edcdavid wants to merge 3 commits intoopenshift:mainfrom
edcdavid:fix-wpc1

Conversation

@edcdavid
Copy link
Copy Markdown
Contributor

@edcdavid edcdavid commented May 8, 2026

Update PTP test commands and cluster setup scripts

  • Change the repository URL for cloning the PTP operator conformance test to a specific branch.
  • Set the SKIP_OCP_INSTALL variable to "true" in the cluster setup script to bypass OpenShift installation.

Telco5G PTP Testing Configuration Updates (openshift/release)

This PR updates the Telco5G CI/infrastructure used for PTP operator testing so the jobs run against an existing cluster and a specific development branch of the PTP operator.

Practical impact

  • Repository affected: openshift/release (Telco5G PTP test job & cluster setup).
  • Purpose: run Telco5G PTP conformance tests against an existing cluster and a personal fork/branch for development testing (test-only; not for production).

Changes

  • Cluster setup script (ci-operator/step-registry/telco5g/ptp-cluster-setup/telco5g-ptp-cluster-setup-commands.sh)

    • Sets SKIP_OCP_INSTALL="true", which prevents the OpenShift installation playbook and the subsequent oc apply of disable_ntp.yml (and related wait_for_mcp / chronyd checks) from running. Kubeconfig retrieval and cluster info fetch still run. This makes the step skip installing OCP and operate against a pre-existing cluster.
  • PTP tests script (ci-operator/step-registry/telco5g/ptp/tests/telco5g-ptp-tests-commands.sh)

    • Changes the conformance-test clone to use https://github.com/edcdavid/ptp-operator-upstream.git at branch fix-wpc1 (replacing the prior upstream repo/branch). This directs tests to a personal fork/branch for debugging or development.
    • Updates SKIP_INTERFACES to add the network interface name 'eno12399' (refining which interfaces are excluded during tests).

Metadata / notes

  • Commit: added eno12399 to SKIP_INTERFACES and set SKIP_OCP_INSTALL to true.
  • Comments on the PR were only Prow rehearsal and abort commands from the author (no review discussion).
  • This is explicitly a test-only change and should not be merged to production as it targets a personal fork/branch and bypasses OCP installation.

Update PTP test commands and cluster setup scripts

- Change the repository URL for cloning the PTP operator conformance test to a specific branch.
- Set the SKIP_OCP_INSTALL variable to "true" in the cluster setup script to bypass OpenShift installation.
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 8, 2026

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: Enterprise

Run ID: d1815b8c-0be3-4bf5-81ff-352b9856896d

📥 Commits

Reviewing files that changed from the base of the PR and between 4ee80bb and abd4182.

📒 Files selected for processing (1)
  • ci-operator/step-registry/telco5g/ptp/tests/telco5g-ptp-tests-commands.sh
🚧 Files skipped from review as they are similar to previous changes (1)
  • ci-operator/step-registry/telco5g/ptp/tests/telco5g-ptp-tests-commands.sh

Walkthrough

Two CI step scripts were changed: the cluster-setup script now sets SKIP_OCP_INSTALL="true" to prevent OpenShift install/playbook and related machine-config steps; the PTP tests script switches the conformance test repo/branch to edcdavid/ptp-operator-upstream:fix-wpc1 and expands SKIP_INTERFACES.

Changes

PTP Configuration Updates

Layer / File(s) Summary
Environment / Flags
ci-operator/step-registry/telco5g/ptp-cluster-setup/telco5g-ptp-cluster-setup-commands.sh
Adds SKIP_OCP_INSTALL="true" before playbook/machine-config steps.
Conditional Behavior
ci-operator/step-registry/telco5g/ptp-cluster-setup/...-commands.sh
With the flag set, the OpenShift deployment playbook (~/ocp-install.yml) and the oc apply disable_ntp.yml + wait_for_mcp / log_chronyd_status blocks are skipped; kubeconfig and cluster-info retrieval still run.
Test Source
ci-operator/step-registry/telco5g/ptp/tests/telco5g-ptp-tests-commands.sh
Replaces clone from https://github.com/k8snetworkplumbingwg/ptp-operator.git -b ${TEST_BRANCH} with https://github.com/edcdavid/ptp-operator-upstream.git -b fix-wpc1.
Test Environment
ci-operator/step-registry/telco5g/ptp/tests/...-tests-commands.sh
Expands export SKIP_INTERFACES=... to include additional network interface identifiers.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

🚥 Pre-merge checks | ✅ 10 | ❌ 2

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Title check ❓ Inconclusive The title 'TEST only - do not merge' is vague and generic. It uses non-descriptive language that doesn't convey meaningful information about the actual changes being made to the PTP cluster setup and test scripts. Replace with a descriptive title that summarizes the main changes, such as 'Configure PTP cluster setup to skip OCP installation and update test repository' or similar.
✅ Passed checks (10 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
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 Modified files are bash scripts, not Go/Ginkgo test files. No Ginkgo test definitions exist in the modified code. The check does not apply to this PR.
Test Structure And Quality ✅ Passed The custom check is inapplicable. It reviews Ginkgo test code quality, but the PR modifies only shell scripts (cluster setup and test commands), not Go test files. No Ginkgo tests present.
Microshift Test Compatibility ✅ Passed No new Ginkgo e2e tests are added in this PR. The changes are only to bash shell scripts (CI/CD orchestration), not Go test files. The check is not applicable.
Single Node Openshift (Sno) Test Compatibility ✅ Passed PR modifies only bash shell scripts for CI test setup/configuration, not Go/Ginkgo e2e tests. The custom check is not applicable to this PR.
Topology-Aware Scheduling Compatibility ✅ Passed PR modifies only CI test scripts in ci-operator/step-registry, not deployment manifests or operator code. The topology-aware scheduling check applies to product-level changes, not CI infrastructure.
Ote Binary Stdout Contract ✅ Passed Check not applicable. PR modifies shell scripts for CI infrastructure, not OTE Go test binaries. OTE check applies to binaries with main(), BeforeSuite() entry points only.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed PR contains only bash shell script modifications for CI/CD configuration, not new Ginkgo e2e tests. Custom check is not applicable.

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

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

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


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

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented May 8, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

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

@openshift-ci openshift-ci Bot requested review from dgoodwin and petr-muller May 8, 2026 13:27
Copy link
Copy Markdown
Contributor

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

Actionable comments posted: 1

Caution

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

⚠️ Outside diff range comments (1)
ci-operator/step-registry/telco5g/ptp-cluster-setup/telco5g-ptp-cluster-setup-commands.sh (1)

301-307: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Do not hardcode SKIP_OCP_INSTALL to true in shared step logic.

Line 301 changes global default behavior and can cause jobs to run against stale/unprepared clusters (install and post-install config are skipped).

💡 Suggested fix
-SKIP_OCP_INSTALL="true"
+: "${SKIP_OCP_INSTALL:=false}"

If this PR needs skip behavior for a specific test, set SKIP_OCP_INSTALL=true in that job’s env/config instead of the script default.

🤖 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/telco5g/ptp-cluster-setup/telco5g-ptp-cluster-setup-commands.sh`
around lines 301 - 307, The script currently hardcodes SKIP_OCP_INSTALL="true",
which overrides job configs; remove that assignment so SKIP_OCP_INSTALL is read
from the environment (or set a safe default like "false"), leaving the existing
if [[ "$SKIP_OCP_INSTALL" != "true" ]]; then ... fi block and the status
handling intact; if a particular job needs skip behavior, set
SKIP_OCP_INSTALL=true in that job's env/config rather than in the script (refer
to the SKIP_OCP_INSTALL variable and the conditional that runs
ANSIBLE_STDOUT_CALLBACK=debug ansible-playbook ... || status=$?).
🤖 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/telco5g/ptp/tests/telco5g-ptp-tests-commands.sh`:
- Around line 406-409: The script currently clones a hardcoded fork/branch
("https://github.com/edcdavid/ptp-operator-upstream.git -b fix-wpc1") which
ignores the declared TEST_BRANCH; change the clone to use parameterized
variables (e.g. replace that line with a git clone
"${TEST_CONFORMANCE_REPO:-https://github.com/openshift/ptp-operator-upstream.git}"
-b "${TEST_BRANCH}" ptp-operator-conformance-test) so the repo and branch come
from TEST_CONFORMANCE_REPO and TEST_BRANCH (with sensible defaults) instead of
the hardcoded fork/branch; ensure any references to TEST_BRANCH earlier in the
script match this new clone invocation.

---

Outside diff comments:
In
`@ci-operator/step-registry/telco5g/ptp-cluster-setup/telco5g-ptp-cluster-setup-commands.sh`:
- Around line 301-307: The script currently hardcodes SKIP_OCP_INSTALL="true",
which overrides job configs; remove that assignment so SKIP_OCP_INSTALL is read
from the environment (or set a safe default like "false"), leaving the existing
if [[ "$SKIP_OCP_INSTALL" != "true" ]]; then ... fi block and the status
handling intact; if a particular job needs skip behavior, set
SKIP_OCP_INSTALL=true in that job's env/config rather than in the script (refer
to the SKIP_OCP_INSTALL variable and the conditional that runs
ANSIBLE_STDOUT_CALLBACK=debug ansible-playbook ... || status=$?).
🪄 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: 3ad90005-24da-4296-878c-16e8b907137a

📥 Commits

Reviewing files that changed from the base of the PR and between 6dbcfb2 and 4ee80bb.

📒 Files selected for processing (2)
  • ci-operator/step-registry/telco5g/ptp-cluster-setup/telco5g-ptp-cluster-setup-commands.sh
  • ci-operator/step-registry/telco5g/ptp/tests/telco5g-ptp-tests-commands.sh

Comment on lines 406 to 409
echo "running conformance tests from branch ${TEST_BRANCH}"
# always run test from latest upstream
git clone https://github.com/k8snetworkplumbingwg/ptp-operator.git -b "${TEST_BRANCH}" ptp-operator-conformance-test
git clone https://github.com/edcdavid/ptp-operator-upstream.git -b fix-wpc1 ptp-operator-conformance-test

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.

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Verify branch exists in the configured/default conformance repo.
PTP_CONFORMANCE_REPO="${PTP_CONFORMANCE_REPO:-https://github.com/edcdavid/ptp-operator-upstream.git}"
PTP_CONFORMANCE_BRANCH="${PTP_CONFORMANCE_BRANCH:-fix-wpc1}"

echo "Checking ${PTP_CONFORMANCE_REPO}#${PTP_CONFORMANCE_BRANCH}"
git ls-remote --heads "${PTP_CONFORMANCE_REPO}" "${PTP_CONFORMANCE_BRANCH}"

Repository: openshift/release

Length of output: 194


🏁 Script executed:

# First, let's see the context around lines 406-409 and understand TEST_BRANCH
sed -n '390,420p' ci-operator/step-registry/telco5g/ptp/tests/telco5g-ptp-tests-commands.sh

Repository: openshift/release

Length of output: 991


🏁 Script executed:

grep -n "TEST_BRANCH" ci-operator/step-registry/telco5g/ptp/tests/telco5g-ptp-tests-commands.sh

Repository: openshift/release

Length of output: 664


Remove hardcoded fork/branch and use parameterized TEST_BRANCH instead.

Line 408 hardcodes fix-wpc1 in a non-canonical fork, but line 406 announces testing against ${TEST_BRANCH} (which resolves to main). This inconsistency causes the script to ignore the declared branch parameter, creating a divergence between intent and execution, and introduces a brittle dependency on a personal fork that may disappear or change.

Parameterize the conformance repo and branch to respect the same branch controls used elsewhere in the script:

Suggested fix
 echo "running conformance tests from branch ${TEST_BRANCH}"
 # always run test from latest upstream
-git clone https://github.com/edcdavid/ptp-operator-upstream.git -b fix-wpc1 ptp-operator-conformance-test
+: "${PTP_CONFORMANCE_REPO:=https://github.com/k8snetworkplumbingwg/ptp-operator.git}"
+: "${PTP_CONFORMANCE_BRANCH:=${TEST_BRANCH}}"
+git clone --single-branch --branch "${PTP_CONFORMANCE_BRANCH}" "${PTP_CONFORMANCE_REPO}" ptp-operator-conformance-test
🤖 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/telco5g/ptp/tests/telco5g-ptp-tests-commands.sh`
around lines 406 - 409, The script currently clones a hardcoded fork/branch
("https://github.com/edcdavid/ptp-operator-upstream.git -b fix-wpc1") which
ignores the declared TEST_BRANCH; change the clone to use parameterized
variables (e.g. replace that line with a git clone
"${TEST_CONFORMANCE_REPO:-https://github.com/openshift/ptp-operator-upstream.git}"
-b "${TEST_BRANCH}" ptp-operator-conformance-test) so the repo and branch come
from TEST_CONFORMANCE_REPO and TEST_BRANCH (with sensible defaults) instead of
the hardcoded fork/branch; ensure any references to TEST_BRANCH earlier in the
script match this new clone invocation.

@edcdavid
Copy link
Copy Markdown
Contributor Author

edcdavid commented May 8, 2026

/pj-rehearse periodic-ci-openshift-release-main-nightly-4.22-e2e-telco5g-ptp-upstream

@openshift-merge-bot
Copy link
Copy Markdown
Contributor

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

@edcdavid
Copy link
Copy Markdown
Contributor Author

edcdavid commented May 8, 2026

/pj-rehearse periodic-ci-openshift-release-main-nightly-4.22-e2e-telco5g-ptp-upstream

@openshift-merge-bot
Copy link
Copy Markdown
Contributor

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

@edcdavid
Copy link
Copy Markdown
Contributor Author

edcdavid commented May 8, 2026

/pj-rehearse abort

1 similar comment
@edcdavid
Copy link
Copy Markdown
Contributor Author

edcdavid commented May 8, 2026

/pj-rehearse abort

- Added 'eno12399' to the SKIP_INTERFACES variable in the telco5g PTP test commands script to refine interface exclusions during testing.
@edcdavid
Copy link
Copy Markdown
Contributor Author

edcdavid commented May 8, 2026

/pj-rehearse periodic-ci-openshift-release-main-nightly-4.22-e2e-telco5g-ptp-upstream

@edcdavid
Copy link
Copy Markdown
Contributor Author

edcdavid commented May 9, 2026

/pj-rehearse periodic-ci-openshift-release-main-nightly-4.22-e2e-telco5g-ptp-upstream

@openshift-merge-bot
Copy link
Copy Markdown
Contributor

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

@openshift-merge-bot
Copy link
Copy Markdown
Contributor

[REHEARSALNOTIFIER]
@edcdavid: 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
periodic-ci-openshift-release-main-nightly-4.21-e2e-telco5g-ptp N/A periodic Registry content changed
periodic-ci-openshift-release-main-nightly-4.23-e2e-telco5g-ptp N/A periodic Registry content changed
periodic-ci-openshift-release-main-nightly-4.17-e2e-telco5g-ptp N/A periodic Registry content changed
periodic-ci-openshift-release-main-nightly-4.14-e2e-telco5g-ptp N/A periodic Registry content changed
periodic-ci-openshift-release-main-nightly-4.20-e2e-telco5g-ptp N/A periodic Registry content changed
periodic-ci-openshift-release-main-nightly-4.15-e2e-telco5g-ptp N/A periodic Registry content changed
periodic-ci-openshift-release-main-nightly-4.23-e2e-telco5g-ptp-upstream N/A periodic Registry content changed
periodic-ci-openshift-release-main-nightly-4.13-e2e-telco5g-ptp N/A periodic Registry content changed
periodic-ci-openshift-release-main-nightly-5.0-e2e-telco5g-ptp N/A periodic Registry content changed
periodic-ci-openshift-release-main-nightly-5.0-e2e-telco5g-ptp-upstream N/A periodic Registry content changed
periodic-ci-openshift-release-main-nightly-4.18-e2e-telco5g-ptp N/A periodic Registry content changed
periodic-ci-openshift-release-main-nightly-4.22-e2e-telco5g-ptp-upstream N/A periodic Registry content changed
periodic-ci-openshift-release-main-nightly-4.22-e2e-telco5g-ptp N/A periodic Registry content changed
periodic-ci-openshift-release-main-nightly-4.16-e2e-telco5g-ptp N/A periodic Registry content changed
periodic-ci-openshift-release-main-nightly-4.12-e2e-telco5g-ptp N/A periodic Registry content changed
periodic-ci-openshift-release-main-nightly-4.19-e2e-telco5g-ptp N/A periodic Registry content changed
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.

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented May 9, 2026

@edcdavid: The following test 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-release-main-nightly-4.22-e2e-telco5g-ptp-upstream 71536b3 link unknown /pj-rehearse periodic-ci-openshift-release-main-nightly-4.22-e2e-telco5g-ptp-upstream

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.

1 participant