Skip to content

test oidc ci#79901

Draft
gangwgr wants to merge 2 commits into
openshift:mainfrom
gangwgr:testci-oidc
Draft

test oidc ci#79901
gangwgr wants to merge 2 commits into
openshift:mainfrom
gangwgr:testci-oidc

Conversation

@gangwgr
Copy link
Copy Markdown
Contributor

@gangwgr gangwgr commented Jun 1, 2026

Summary by CodeRabbit

This PR updates OpenShift CI configuration in the openshift/release repository to prepare several external OIDC E2E jobs to run with the ExternalOIDCExternalClaimsSourcing feature enabled.

What changed practically

  • openshift/hypershift CI operator config (ci-operator/config/openshift/hypershift/openshift-hypershift-main.yaml):

    • Adds a new test step (action alias enable-featuregate) to both HyperShift E2E "external OIDC techpreview" jobs (e2e-aws-external-oidc-techpreview, e2e-azure-aks-external-oidc-techpreview). The step patches the cluster FeatureGate to enable ExternalOIDCExternalClaimsSourcing, prints a "Waiting for featuregate to propagate..." message and sleeps for 60 seconds. It runs with the cli image and requests 100m CPU.
  • openshift/cluster-authentication-operator periodics (ci-operator/config/openshift/cluster-authentication-operator/openshift-cluster-authentication-operator-release-5.0__periodics.yaml):

    • For e2e-aws-external-oidc-configure: sets env FEATURE_GATES=ExternalOIDCExternalClaimsSourcing=true and FEATURE_SET=CustomNoUpgrade.
    • For e2e-azure-external-oidc-upstream-parity: adds FEATURE_GATES=ExternalOIDCExternalClaimsSourcing=true and changes FEATURE_SET from TechPreviewNoUpgrade to CustomNoUpgrade.

Practical effect

  • Jobs will enable ExternalOIDCExternalClaimsSourcing before running tests: HyperShift jobs do an explicit patch-and-wait step (60s), and the cluster-authentication-operator periodics receive environment variables to run with the feature gate and a CustomNoUpgrade feature set. No API/public symbols are modified.

Lines changed: +34/-1 (approx). Estimated review effort: Medium.

@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 Jun 1, 2026
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Jun 1, 2026

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

@openshift-ci openshift-ci Bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 1, 2026
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jun 1, 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: 56e1b924-d72a-42aa-a40b-aa73e51bab2b

📥 Commits

Reviewing files that changed from the base of the PR and between ff64545 and 9d1f840.

📒 Files selected for processing (2)
  • ci-operator/config/openshift/cluster-authentication-operator/openshift-cluster-authentication-operator-release-5.0__periodics.yaml
  • ci-operator/config/openshift/hypershift/openshift-hypershift-main.yaml
🚧 Files skipped from review as they are similar to previous changes (1)
  • ci-operator/config/openshift/hypershift/openshift-hypershift-main.yaml

Walkthrough

Sets FEATURE_GATES and FEATURE_SET in two cluster-authentication-operator periodics and adds test steps in two hypershift E2E jobs that patch the FeatureGate to enable ExternalOIDCExternalClaimsSourcing, print a propagation message, and sleep 60 seconds.

Changes

External OIDC rehearsal waits

Layer / File(s) Summary
cluster-authentication-operator periodic env updates
ci-operator/config/openshift/cluster-authentication-operator/openshift-cluster-authentication-operator-release-5.0__periodics.yaml
Set FEATURE_GATES=ExternalOIDCExternalClaimsSourcing=true and FEATURE_SET=CustomNoUpgrade in the e2e-aws-external-oidc-configure and e2e-azure-external-oidc-upstream-parity test env blocks.
hypershift job enable-featuregate test steps
ci-operator/config/openshift/hypershift/openshift-hypershift-main.yaml
Add enable-featuregate test steps to e2e-aws-external-oidc-techpreview and e2e-azure-aks-external-oidc-techpreview that oc patch the FeatureGate to enable ExternalOIDCExternalClaimsSourcing, echo a propagation message, and sleep 60 (runs in cli image, requests.cpu: 100m).

🎯 3 (Moderate) | ⏱️ ~20 minutes

Suggested labels: rehearsals-ack

Suggested reviewers:

  • benluddy
🚥 Pre-merge checks | ✅ 14 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title 'test oidc ci' is vague and generic, using non-descriptive language that doesn't convey meaningful information about the specific changes made to the pull request. Use a more descriptive title that specifies the main change, such as 'Enable ExternalOIDCExternalClaimsSourcing feature gate in OIDC E2E tests' or 'Configure OIDC external claims sourcing feature for E2E testing'.
✅ Passed checks (14 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 PR modifies only CI/CD configuration YAML files, not Ginkgo test code. Custom check for stable/deterministic test names is not applicable to configuration files.
Test Structure And Quality ✅ Passed PR modifies CI/CD configuration files (YAML), not Ginkgo test code. Custom check for test quality does not apply to configuration files.
Microshift Test Compatibility ✅ Passed PR modifies CI configuration files only (YAML), not Ginkgo test code. No new test definitions (It/Describe/Context/When) are added, so the check is not applicable.
Single Node Openshift (Sno) Test Compatibility ✅ Passed This PR modifies CI configuration YAML files, not Go test code. The custom check applies only to new Ginkgo e2e tests (It(), Describe(), Context(), When()). No test code is being added.
Topology-Aware Scheduling Compatibility ✅ Passed Changes are CI/test configuration files in ci-operator/config, not deployment manifests or operator code. No scheduling constraints are introduced.
Ote Binary Stdout Contract ✅ Passed PR modifies only CI/CD YAML configuration files, not OTE binary source code or process-level functions that could violate stdout JSON contract.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed PR modifies CI configuration files only, not Ginkgo test code. No new test implementations are added, so IPv6/disconnected check does not apply.
No-Weak-Crypto ✅ Passed PR modifies CI/CD configuration files only. No weak cryptography patterns (MD5, SHA1, DES, RC4, 3DES, Blowfish, ECB), custom crypto implementations, or insecure secret comparisons detected.
Container-Privileges ✅ Passed No privileged container configurations found: no privileged: true, hostPID/Network/IPC, SYS_ADMIN, allowPrivilegeEscalation, or root escalation settings present in either YAML file.
No-Sensitive-Data-In-Logs ✅ Passed PR contains no sensitive data logging; only configuration names, test settings, and plain status messages are logged.

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

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

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

@openshift-merge-bot
Copy link
Copy Markdown
Contributor

@gangwgr, pj-rehearse: unable to determine affected jobs. This could be due to a branch that needs to be rebased. ERROR:

couldn't prepare candidate: couldn't rebase candidate onto 9626cc0aac8b38cbc4116ec20d66aa342f468974 due to conflicts
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 openshift-ci Bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 1, 2026
@gangwgr
Copy link
Copy Markdown
Contributor Author

gangwgr commented Jun 1, 2026

/pj-rehearse pull-ci-openshift-hypershift-main-e2e-azure-aks-external-oidc-techpreview

@openshift-merge-bot
Copy link
Copy Markdown
Contributor

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

@gangwgr
Copy link
Copy Markdown
Contributor Author

gangwgr commented Jun 1, 2026

/pj-rehearse e2e-aws-external-oidc-techpreview

@openshift-merge-bot
Copy link
Copy Markdown
Contributor

@gangwgr: 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

@gangwgr: job(s): pull-ci-openshift-hypershift-main-e2e-azure-aks-external-oidc-techpreview either don't exist or were not found to be affected, and cannot be rehearsed

@openshift-merge-bot
Copy link
Copy Markdown
Contributor

@gangwgr: job(s): e2e-aws-external-oidc-techpreview either don't exist or were not found to be affected, and cannot be rehearsed

@gangwgr
Copy link
Copy Markdown
Contributor Author

gangwgr commented Jun 1, 2026

/pj-rehearse pull-ci-openshift-hypershift-main-e2e-azure-aks-external-oidc-techpreview

@openshift-merge-bot
Copy link
Copy Markdown
Contributor

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

@gangwgr
Copy link
Copy Markdown
Contributor Author

gangwgr commented Jun 1, 2026

/pj-rehearse pull-ci-openshift-hypershift-main-e2e-aws-external-oidc-techpreview

@openshift-merge-bot
Copy link
Copy Markdown
Contributor

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

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Jun 1, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

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

@gangwgr
Copy link
Copy Markdown
Contributor Author

gangwgr commented Jun 1, 2026

/pj-rehearse periodic-ci-openshift-cluster-authentication-operator-release-5.0-periodics-e2e-azure-external-oidc-configure

@openshift-merge-bot
Copy link
Copy Markdown
Contributor

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

@gangwgr
Copy link
Copy Markdown
Contributor Author

gangwgr commented Jun 1, 2026

/pj-rehearse periodic-ci-openshift-cluster-authentication-operator-release-5.0-periodics-e2e-azure-external-oidc-upstream-parity

@openshift-merge-bot
Copy link
Copy Markdown
Contributor

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

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

🤖 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/cluster-authentication-operator/openshift-cluster-authentication-operator-release-5.0__periodics.yaml`:
- Around line 59-63: The wait step logs "Sleeping 60m for debugging..." but
calls sleep 60 (seconds); update the sleep command in the test step block (the
"- as: wait" commands that echo "Sleeping 60m...") to sleep 3600 to actually
pause 60 minutes (or change the echoed message to match the 60-second sleep if
shorter delay intended); apply the same change to the other occurrence of the "-
as: wait" block with the identical echo/sleep pair.
🪄 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: 246839c0-ebae-4273-9234-2d9b65338a5a

📥 Commits

Reviewing files that changed from the base of the PR and between 747d4c3 and ff64545.

📒 Files selected for processing (2)
  • ci-operator/config/openshift/cluster-authentication-operator/openshift-cluster-authentication-operator-release-5.0__periodics.yaml
  • ci-operator/config/openshift/hypershift/openshift-hypershift-main.yaml
🚧 Files skipped from review as they are similar to previous changes (1)
  • ci-operator/config/openshift/hypershift/openshift-hypershift-main.yaml

Comment on lines +59 to +63
test:
- as: wait
commands: |
echo "Sleeping 60m for debugging..."
sleep 60
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

Wait duration is incorrect for the stated 60-minute pause.

Both new wait steps log Sleeping 60m... but run sleep 60 (60 seconds). If the intent is a 60-minute rehearsal/debug delay, this currently under-waits by 59 minutes.

Proposed fix
     - as: wait
       commands: |
         echo "Sleeping 60m for debugging..."
-        sleep 60
+        sleep 3600

Also applies to: 358-362

🤖 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/cluster-authentication-operator/openshift-cluster-authentication-operator-release-5.0__periodics.yaml`
around lines 59 - 63, The wait step logs "Sleeping 60m for debugging..." but
calls sleep 60 (seconds); update the sleep command in the test step block (the
"- as: wait" commands that echo "Sleeping 60m...") to sleep 3600 to actually
pause 60 minutes (or change the echoed message to match the 60-second sleep if
shorter delay intended); apply the same change to the other occurrence of the "-
as: wait" block with the identical echo/sleep pair.

@gangwgr
Copy link
Copy Markdown
Contributor Author

gangwgr commented Jun 1, 2026

/pj-rehearse periodic-ci-openshift-cluster-authentication-operator-release-5.0-periodics-e2e-azure-external-oidc-configure

@openshift-merge-bot
Copy link
Copy Markdown
Contributor

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

@gangwgr
Copy link
Copy Markdown
Contributor Author

gangwgr commented Jun 1, 2026

/pj-rehearse periodic-ci-openshift-cluster-authentication-operator-release-5.0-periodics-e2e-azure-external-oidc-configure

@openshift-merge-bot
Copy link
Copy Markdown
Contributor

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

@gangwgr
Copy link
Copy Markdown
Contributor Author

gangwgr commented Jun 1, 2026

/pj-rehearse periodic-ci-openshift-cluster-authentication-operator-release-5.0-periodics-e2e-azure-external-oidc-upstream-parity

@openshift-merge-bot
Copy link
Copy Markdown
Contributor

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

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Jun 1, 2026

@gangwgr: 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-cluster-authentication-operator-release-5.0-periodics-e2e-azure-external-oidc-upstream-parity ff64545 link unknown /pj-rehearse periodic-ci-openshift-cluster-authentication-operator-release-5.0-periodics-e2e-azure-external-oidc-upstream-parity

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.

@gangwgr
Copy link
Copy Markdown
Contributor Author

gangwgr commented Jun 1, 2026

/pj-rehearse periodic-ci-openshift-cluster-authentication-operator-release-5.0-periodics-e2e-azure-external-oidc-upstream-parity

@openshift-merge-bot
Copy link
Copy Markdown
Contributor

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

@gangwgr
Copy link
Copy Markdown
Contributor Author

gangwgr commented Jun 1, 2026

/pj-rehearse periodic-ci-openshift-cluster-authentication-operator-release-5.0-periodics-e2e-azure-external-oidc-configure

@openshift-merge-bot
Copy link
Copy Markdown
Contributor

@gangwgr: 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]
@gangwgr: 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-origin-release-4.22-e2e-gcp-csi openshift/origin presubmit Presubmit changed
pull-ci-openshift-origin-release-4.22-e2e-gcp-disruptive openshift/origin presubmit Presubmit changed
pull-ci-openshift-origin-release-4.22-e2e-gcp-fips-serial-1of2 openshift/origin presubmit Presubmit changed
pull-ci-openshift-origin-release-4.22-e2e-gcp-fips-serial-2of2 openshift/origin presubmit Presubmit changed
pull-ci-openshift-origin-release-4.22-e2e-gcp-ovn openshift/origin presubmit Presubmit changed
pull-ci-openshift-origin-release-4.22-e2e-gcp-ovn-builds openshift/origin presubmit Presubmit changed
pull-ci-openshift-origin-release-4.22-e2e-gcp-ovn-etcd-scaling openshift/origin presubmit Presubmit changed
pull-ci-openshift-origin-release-4.22-e2e-gcp-ovn-image-ecosystem openshift/origin presubmit Presubmit changed
pull-ci-openshift-origin-release-4.22-e2e-gcp-ovn-kube-apiserver-rollout openshift/origin presubmit Presubmit changed
pull-ci-openshift-origin-release-4.22-e2e-gcp-ovn-rt-upgrade openshift/origin presubmit Presubmit changed
pull-ci-openshift-origin-release-4.22-e2e-gcp-ovn-techpreview openshift/origin presubmit Presubmit changed
pull-ci-openshift-origin-release-4.22-e2e-gcp-ovn-techpreview-serial-1of2 openshift/origin presubmit Presubmit changed
pull-ci-openshift-origin-release-4.22-e2e-gcp-ovn-techpreview-serial-2of2 openshift/origin presubmit Presubmit changed
pull-ci-openshift-origin-release-4.22-e2e-gcp-ovn-upgrade openshift/origin presubmit Presubmit changed
pull-ci-openshift-origin-release-4.22-e2e-gcp-ovn-usernamespace openshift/origin presubmit Presubmit changed
pull-ci-openshift-hypershift-main-e2e-aws-external-oidc-techpreview openshift/hypershift presubmit Ci-operator config changed
pull-ci-openshift-hypershift-main-e2e-azure-aks-external-oidc-techpreview openshift/hypershift presubmit Ci-operator config changed
periodic-ci-openshift-cluster-authentication-operator-release-5.0-periodics-e2e-azure-external-oidc-upstream-parity N/A periodic Ci-operator config changed
periodic-ci-openshift-cluster-authentication-operator-release-5.0-periodics-e2e-azure-external-oidc-configure N/A periodic Ci-operator config 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.

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant