OCPBUGS-82473, CONSOLE-4512: Switch from legacy render to createRoot - #16202
Conversation
|
@logonoff: This pull request references CONSOLE-4512 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set. 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. |
|
/label px-approved |
jhadvig
left a comment
There was a problem hiding this comment.
Claude coded my way though the cypress failing tests. PTAL
032c399 to
c342860
Compare
|
@logonoff: This pull request references CONSOLE-4512 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set. 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. |
d27c60a to
14be8c2
Compare
4eadceb to
4354ae3
Compare
299f66a to
4cce42b
Compare
39cc9ba to
51de883
Compare
|
|
/retest |
|
/verified by @logonoff the following scenarios have been run to cover skipped tests:
|
|
@logonoff: This PR has been marked as verified by 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. |
| const navigateRef = useRef(navigate); | ||
| navigateRef.current = navigate; | ||
| const lastNamespaceRef = useRef(lastNamespace); | ||
| lastNamespaceRef.current = lastNamespace; |
There was a problem hiding this comment.
In future we may consider improving this code to avoid having both
const [activeNamespace, setActiveNamespace] = useState<string>(urlNamespace);and
const activeNamespaceRef = useRef(activeNamespace);We currently need the ref to avoid overriding react-hooks/exhaustive-deps rule, if I understand it correctly.
| .contains(path[0]) | ||
| .click(); // open top, expandable menu | ||
| // eslint-disable-next-line cypress/no-unnecessary-waiting | ||
| cy.wait(500); // wait for animation |
There was a problem hiding this comment.
Is there a way to disable PatternFly visual animations for the purpose of e2e test runs?
There was a problem hiding this comment.
There should be some built in cypress way to wait for animations but I need to figure out why it's not working now
| And user will see "Samples" option | ||
| And user will see Import YAML, Upload JAR file under From Local Machine section | ||
|
|
||
| # Disabled due to createRoot concurrent rendering failures (OCPBUGS-82505) |
There was a problem hiding this comment.
We should create an issue to handle disabled e2e test scenarios in future.
There was a problem hiding this comment.
All disabled e2e scenarios have a related OCPBUGS to reneable them
|
/lgtm |
|
/retest |
1 similar comment
|
/retest |
Temporarily disable several flaky integration tests that fail with createRoot concurrent rendering errors. Added @broken-test tag to multiple feature files and converted affected Cypress suites to xdescribe to skip them in CI. Files affected span dev-console, helm-plugin, knative-plugin, topology, webterminal-plugin, operator-lifecycle-manager, and cluster-settings tests (OCPBUGS-82504 through OCPBUGS-82513).
88ff6bb to
c18637a
Compare
|
disabled the entire suite in hopes of less flaky ci /verified by @logonoff |
|
@logonoff: This PR has been marked as verified by 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. |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Leo6Leo, logonoff, vojtechszocs The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/test all |
|
@logonoff: 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. |
|
@logonoff: Jira Issue Verification Checks: Jira Issue OCPBUGS-82473 Jira Issue OCPBUGS-82473 has been moved to the MODIFIED state and will move to the VERIFIED state when the change is available in an accepted nightly payload. 🕓 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. |
|
Fix included in release 4.22.0-0.nightly-2026-04-12-005049 |
This PR concludes the React 18 upgrade by switching the render function from the deprecated
renderto the concurrentcreateRoot. This affects all code rendered by React in Console, including all dynamic plugins.This switch revealed several issues for us, several commits in this PR aim to address shortcomings in our React code revealed by
createRoot.Summary by CodeRabbit
Release Notes
New Features
Bug Fixes
Tests
Refactor
createRootAPI.