OCPBUGS-81630: Fix unnecessary error on Node Terminal tab#16263
Conversation
|
@stefanonardo: This pull request references Jira Issue OCPBUGS-81630, 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 YAML (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📜 Recent review details🧰 Additional context used📓 Path-based instructions (1)**⚙️ CodeRabbit configuration file
Files:
🔇 Additional comments (1)
📝 WalkthroughWalkthroughThe NodeTerminal component was updated to add proper loading state handling. Previously, the component would render NodeTerminalInner based solely on whether an errorMessage existed, regardless of the podName state. The change introduces an additional conditional branch: when no errorMessage is present AND the podName is falsy—indicating the debug pod hasn't been initialized yet—the component now renders a LoadingBox instead of attempting to render the inner component. This modification adds two lines of code with no removals. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
170581d to
28239f2
Compare
|
/retest-required |
|
/assign @yapei |
|
/retest |
|
/jira refresh |
|
@stefanonardo: This pull request references Jira Issue OCPBUGS-81630, 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. |
|
/jira refresh The requirements for Jira bugs have changed (Jira issues linked to PRs on main branch need to target different OCP), recalculating validity. |
|
@openshift-bot: This pull request references Jira Issue OCPBUGS-81630, which is valid. 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. |
Show a loading spinner while the debug pod is being created, instead of briefly flashing "Debug pod not found or was deleted." The error occurred because useK8sWatchResource(null) returns loaded=true before pod creation completes. Also guard useEffect cleanup against undefined namespace to prevent TypeError when component unmounts before pod creation completes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
28239f2 to
011bc9b
Compare
|
@stefanonardo: This pull request references Jira Issue OCPBUGS-81630, which is invalid:
Comment 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-required |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rhamilto, stefanonardo 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 |
|
/verified by tests |
|
@stefanonardo: 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. |
|
/jira refresh |
|
@stefanonardo: This pull request references Jira Issue OCPBUGS-81630, which is valid. 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. |
|
@stefanonardo: 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. |
|
@stefanonardo: Jira Issue Verification Checks: Jira Issue OCPBUGS-81630 Jira Issue OCPBUGS-81630 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 5.0.0-0.nightly-2026-04-22-034352 |
|
/cherry-pick release-4.22 |
|
@stefanonardo: new pull request created: #16696 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 kubernetes-sigs/prow repository. |
Summary
useK8sWatchResource(null)returnsloaded=truebefore pod creation completesdebug-terminal.tsxuseEffectcleanup against undefinednamespaceto prevent TypeError when the component unmounts before pod creation completesTest plan
yarn test -- NodeTerminal.spec.tsx🤖 Generated with Claude Code