Skip to content

ROX-36332: Enable WIF testing - #23818

Open
iamkirkbater wants to merge 3 commits into
masterfrom
kirk/gcp-workload-identity-cicid
Open

iamkirkbater wants to merge 3 commits into
masterfrom
kirk/gcp-workload-identity-cicid

Conversation

@iamkirkbater

Copy link
Copy Markdown
Contributor

Description

Enables Workload Identity in tests.

User-facing documentation

Testing and quality

  • the change is production ready: the change is GA, or otherwise the functionality is gated by a feature flag
  • CI results are inspected

Automated testing

  • added unit tests
  • added e2e tests
  • added regression tests
  • added compatibility tests
  • modified existing tests

How I validated my change

change me!

@iamkirkbater iamkirkbater added the konflux-build Run Konflux in PR. Push commit to trigger it. label Nov 2, 2026
@iamkirkbater
iamkirkbater requested a review from a team as a code owner November 2, 2026 13:32
@codecov

codecov Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 52.57%. Comparing base (22c6080) to head (c37232e).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #23818      +/-   ##
==========================================
- Coverage   52.61%   52.57%   -0.04%     
==========================================
  Files        2836     2836              
  Lines      177975   177975              
==========================================
- Hits        93644    93574      -70     
- Misses      76139    76186      +47     
- Partials     8192     8215      +23     
Flag Coverage Δ
go-unit-tests 52.57% <ø> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@iamkirkbater iamkirkbater changed the title Enable WIF testing ROX-36332: Enable WIF testing Nov 2, 2026
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

/konflux-retest checks

@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

🚀 Build Images Ready

Images are ready for commit c37232e. To use with deploy scripts:

export MAIN_IMAGE_TAG=5.1.x-469-gc37232e125

@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Chores
    • Enabled workload identity setup in the OpenShift FIPS QA test workflow.
    • Workload identities are now cleaned up when the test run finishes, including on script exit. Cleanup runs once when performed explicitly. This updates the QA workflow’s identity setup and cleanup behavior without changing the workflow’s end-user features.

The FIPS Konflux E2E workflow enables workload identity setup. The test script registers workload identity cleanup on shell exit and clears the trap after running cleanup explicitly.

Changes: Workload identity setup and cleanup

Layer / File(s) Summary
Configure setup and cleanup
.github/workflows/e2e-qa-tests-ocp-fips-konflux.yaml, qa-tests-backend/scripts/run-part-1.sh
The workflow adds SETUP_WORKLOAD_IDENTITIES=true and removes the related TODO and commented-out assignment. The test script registers cleanup_workload_identities as an EXIT trap, then clears the trap after explicit cleanup.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Suggested reviewers: mclasmeier

Merge Risk: Minimal · previous review c980d

No actionable merge-blocking risk is established for this workload-identity lifecycle change.

Pre-merge checks: Passed 3 · Failed 1 · Inconclusive 1

Failed 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%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat… Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check Inconclusive The description states the purpose in one line: "Enables Workload Identity in tests." It does not explain the changes to the workflow env vars or the cleanup trap. The template's CHANGELOG and documen… Replace the "change me!" placeholder in the "How I validated my change" section with the validation performed, or explain why testing was skipped and when validation will happen. Add a short explanation of the changes: setting SETUP_WORKLOA…
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title "ROX-36332: Enable WIF testing" matches the change. The PR turns on workload identity setup (SETUP_WORKLOAD_IDENTITIES=true) in the OCP FIPS Konflux e2e workflow and adds a cleanup_workload_…
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.
Full details: Title check

Explanation

The title "ROX-36332: Enable WIF testing" matches the change. The PR turns on workload identity setup (SETUP_WORKLOAD_IDENTITIES=true) in the OCP FIPS Konflux e2e workflow and adds a cleanup_workload_identities EXIT trap in run-part-1.sh. The title names the main change, and the ticket ID gives traceability. It is concise and specific, though it does not mention the cleanup trap.

Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 2 functions across 1 files.

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Full details: Description check

Explanation

The description states the purpose in one line: "Enables Workload Identity in tests." It does not explain the changes to the workflow env vars or the cleanup trap. The template's CHANGELOG and documentation checkboxes are unchecked and not explained. The testing section still reads "change me!" and no validation steps are given. The template's testing and validation sections are mostly incomplete.

Resolution

Replace the "change me!" placeholder in the "How I validated my change" section with the validation performed, or explain why testing was skipped and when validation will happen. Add a short explanation of the changes: setting SETUP_WORKLOAD_IDENTITIES=true in the e2e-qa-tests-ocp-fips-konflux workflow, and registering cleanup_workload_identities as an EXIT trap in run-part-1.sh. Mark the applicable checkboxes or state why they do not apply, including the CHANGELOG and documentation items.

Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Tip

🎯 Customize your risk assessments

Guide how CodeRabbit assesses merge risk and security architecture risk. Highlight sensitive changes and explain your security boundaries using Merge Risk Instructions and Security Risk Instructions in your review settings. Security architecture risk assessments require the Advanced plan or above.

✅ Automatic approvals, with your rules

Let CodeRabbit approve pull requests once required threads are resolved, pre-merge checks pass, and your risk limits are met. Enable Automatic approvals in review settings, with overrides for teams or file paths.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Central YAML (base), Organization UI (inherited)
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 71606a5e-1bfd-4422-b43c-fd840c196570
Commits

Reviewing files that changed from the base of the PR and between a1c4dc2 and c980d15.

Files selected for processing: 1
  • qa-tests-backend/scripts/run-part-1.sh

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

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

  • Fix comments: Fix CodeRabbit comments on this PR

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

/konflux-retest checks

@iamkirkbater
iamkirkbater requested a review from janisz as a code owner November 3, 2026 12:48
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

/konflux-retest main-on-push

2 similar comments
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

/konflux-retest main-on-push

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

/konflux-retest main-on-push

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

/konflux-retest operator-bundle-on-push

2 similar comments
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

/konflux-retest operator-bundle-on-push

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

/konflux-retest operator-bundle-on-push

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

/konflux-retest operator-index-on-push

2 similar comments
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

/konflux-retest operator-index-on-push

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

/konflux-retest operator-index-on-push

@iamkirkbater

Copy link
Copy Markdown
Contributor Author

/retest
/konflux-retest main-on-push
/konflux-retest operator-bundle-on-push
/konflux-retest operator-index-on-push

This should fail, but I need logs from CI to be able to start to debug
@iamkirkbater
iamkirkbater force-pushed the kirk/gcp-workload-identity-cicid branch from c980d15 to c37232e Compare November 4, 2026 00:11
@openshift-ci

openshift-ci Bot commented Nov 4, 2026

Copy link
Copy Markdown

@iamkirkbater: 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/prow/gke-qa-e2e-tests c37232e link false /test gke-qa-e2e-tests

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.

This branch has not been deployed

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

Labels

ai-review area/ci coderabbit-review konflux-build Run Konflux in PR. Push commit to trigger it.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant