OCPBUGS-99292: Re-enable Knative Cypress e2e tests - #16837
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
@cajieh: This pull request references Jira Issue OCPBUGS-99292, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (4)
🚧 Files skipped from review as they are similar to previous changes (4)
WalkthroughKnative Cypress suites are enabled in nightly, headless, and Prow execution paths. Cypress admin and developer initialization now waits for the perspective toggle, while perspective selection waits for visible matching menu options instead of fixed delays. ChangesKnative Cypress testing
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
@cajieh: This pull request references Jira Issue OCPBUGS-99292, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
/retest |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: cajieh The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
1e46424 to
5e89083
Compare
|
@cajieh: This pull request references Jira Issue OCPBUGS-99292, which is valid. 3 validation(s) were run on this bug
The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
@cajieh: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions 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. |
Analysis / Root cause:
Knative Cypress e2e was disabled under OCPBUGS-99226 (#16782) because
knative-ci.featurewas flaking in CI. Failures commonly hit thebeforeEach→cy.initAdmin()path when the perspective switcher was not ready yet (timeout onperspective-switcher-toggle/ menu interaction), which blocked unrelated PRs.The harness was also using fixed
cy.wait()delays around perspective menu open, which is brittle under React 18 / CI load.Solution description:
Re-enable Knative Cypress suites and harden shared perspective-switcher helpers:
frontend/integration-tests/test-cypress.sh(test-cypress-knative-nightly,test-cypress-knative-headless)test-prow-e2e.sh(SCENARIO == knative)initAdmin/initDeveloper, wait forperspective-switcher-toggleto exist and be visible (60s) before switching perspective.nav.tsperspective switcher helpers:aria-expandedwait where neededcy.wait(1000/1500)with waiting forperspective-switcher-menu-optionvisibility.click()(noforce: true) once the option is visibleNo product UI changes; test harness / CI wiring only.
Screenshots / screen recording:
N/A — CI / Cypress harness change only.
Test setup:
frontend/, run knative headless suite via./integration-tests/test-cypress.sh -p knative -h trueagainst a configured bridge/clusterTest cases:
SCENARIO=knative) executes (no longer skipped/commented out).beforeEach/initAdminno longer times out waiting for perspective switcher under CI load.knative-ci.featuresmoke scenarios pass (create / interact with knative service & revision as covered by the suite).initAdmin/initDeveloperstill pass (shared harness change).Browser conformance:
N/A for merge gate (CI Cypress / Chrome-like headless). Mark browsers only if manually exercised locally.
Additional info:
admin.ts/nav.tschanges affect all Cypress suites usinginitAdmin/initDeveloper, not only knative.Reviewers and assignees:
/assign
Summary by CodeRabbit