-
Notifications
You must be signed in to change notification settings - Fork 53
CNV-74917: rebuild node_modules and package-lock.json #3316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CNV-74917: rebuild node_modules and package-lock.json #3316
Conversation
Signed-off-by: Aviv Turgeman <[email protected]>
|
@avivtur: This pull request references CNV-74917 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 task 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. |
📝 WalkthroughWalkthroughPinned Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested labels
Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@avivtur: This pull request references CNV-74917 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 task 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. |
|
@avivtur: This pull request references CNV-74917 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 task 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (2)
src/views/checkups/self-validation/utils/index.ts (2)
11-14: LGTM – Export organization improvement.Consolidating the download utilities and their types in a dedicated section improves clarity and maintainability. This reorganization does not change the public API surface.
44-45: LGTM – Logical export grouping.Moving
PermissionOperationResultafter the permissions function exports creates better logical cohesion. This is a non-breaking refactor.
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (8)
src/utils/components/Consoles/components/utils/types.tssrc/utils/components/Consoles/components/vnc-console/utils/util.tssrc/utils/components/NetworkIcons/utils.tssrc/utils/resources/instancetype/types.tssrc/views/checkups/self-validation/components/actions/CheckupsSelfValidationActionsUtils.tssrc/views/checkups/self-validation/utils/index.tssrc/views/checkups/utils/types.tssrc/views/clusteroverview/SettingsTab/tabs.ts
🧰 Additional context used
📓 Path-based instructions (5)
**/*.ts
📄 CodeRabbit inference engine (CODING_STANDARDS.md)
Use
.tsfile extension for non-component files containing logic or utilities
Files:
src/views/clusteroverview/SettingsTab/tabs.tssrc/utils/components/NetworkIcons/utils.tssrc/utils/components/Consoles/components/utils/types.tssrc/utils/components/Consoles/components/vnc-console/utils/util.tssrc/views/checkups/self-validation/components/actions/CheckupsSelfValidationActionsUtils.tssrc/views/checkups/utils/types.tssrc/utils/resources/instancetype/types.tssrc/views/checkups/self-validation/utils/index.ts
**/*.{tsx,ts}
📄 CodeRabbit inference engine (CODING_STANDARDS.md)
**/*.{tsx,ts}: Extract logic from components into custom hooks or utility files to improve testability and component maintainability
Use React memoization tools (React.memo,useMemo,useCallback) to avoid unnecessary re-renders
Always specify dependencies inuseEffectto avoid unnecessary re-renders or missed updates. Use an empty array[]if no dependencies are required
Files:
src/views/clusteroverview/SettingsTab/tabs.tssrc/utils/components/NetworkIcons/utils.tssrc/utils/components/Consoles/components/utils/types.tssrc/utils/components/Consoles/components/vnc-console/utils/util.tssrc/views/checkups/self-validation/components/actions/CheckupsSelfValidationActionsUtils.tssrc/views/checkups/utils/types.tssrc/utils/resources/instancetype/types.tssrc/views/checkups/self-validation/utils/index.ts
**/*.{ts,tsx,js,jsx}
📄 CodeRabbit inference engine (CODING_STANDARDS.md)
**/*.{ts,tsx,js,jsx}: Keep files under 150 lines whenever possible
Use descriptive names for variables, functions, and components. Avoid abbreviations unless widely recognized
Keep functions short and focused on one action. Apply Red → Green → Refactor methodology
Avoid hardcoded values (magic numbers) and define them as constants for easy adjustments and readability
Files:
src/views/clusteroverview/SettingsTab/tabs.tssrc/utils/components/NetworkIcons/utils.tssrc/utils/components/Consoles/components/utils/types.tssrc/utils/components/Consoles/components/vnc-console/utils/util.tssrc/views/checkups/self-validation/components/actions/CheckupsSelfValidationActionsUtils.tssrc/views/checkups/utils/types.tssrc/utils/resources/instancetype/types.tssrc/views/checkups/self-validation/utils/index.ts
**/*.{ts,tsx,js}
📄 CodeRabbit inference engine (CODING_STANDARDS.md)
Define constants in utility files with uppercase and underscore-separated naming (e.g.,
API_URL)
Files:
src/views/clusteroverview/SettingsTab/tabs.tssrc/utils/components/NetworkIcons/utils.tssrc/utils/components/Consoles/components/utils/types.tssrc/utils/components/Consoles/components/vnc-console/utils/util.tssrc/views/checkups/self-validation/components/actions/CheckupsSelfValidationActionsUtils.tssrc/views/checkups/utils/types.tssrc/utils/resources/instancetype/types.tssrc/views/checkups/self-validation/utils/index.ts
**/*.{ts,tsx}
📄 CodeRabbit inference engine (CODING_STANDARDS.md)
**/*.{ts,tsx}: Prefer usingtypeinstead ofinterfacefor defining the shapes of objects or functions in TypeScript
If a type is exported, add it to a utility file
Avoid usinganytype in TypeScript. Useunknowninstead and narrow the type as needed
Always explicitly define return types for functions rather than relying on TypeScript type inference
Files:
src/views/clusteroverview/SettingsTab/tabs.tssrc/utils/components/NetworkIcons/utils.tssrc/utils/components/Consoles/components/utils/types.tssrc/utils/components/Consoles/components/vnc-console/utils/util.tssrc/views/checkups/self-validation/components/actions/CheckupsSelfValidationActionsUtils.tssrc/views/checkups/utils/types.tssrc/utils/resources/instancetype/types.tssrc/views/checkups/self-validation/utils/index.ts
🧠 Learnings (5)
📚 Learning: 2025-12-24T13:50:10.254Z
Learnt from: CR
Repo: kubevirt-ui/kubevirt-plugin PR: 0
File: CODING_STANDARDS.md:0-0
Timestamp: 2025-12-24T13:50:10.254Z
Learning: Applies to **/*.{ts,tsx} : If a type is exported, add it to a utility file
Applied to files:
src/utils/components/Consoles/components/utils/types.tssrc/utils/components/Consoles/components/vnc-console/utils/util.ts
📚 Learning: 2025-12-24T13:50:10.254Z
Learnt from: CR
Repo: kubevirt-ui/kubevirt-plugin PR: 0
File: CODING_STANDARDS.md:0-0
Timestamp: 2025-12-24T13:50:10.254Z
Learning: Applies to **/*.{ts,tsx,js,jsx} : Avoid hardcoded values (magic numbers) and define them as constants for easy adjustments and readability
Applied to files:
src/utils/components/Consoles/components/vnc-console/utils/util.ts
📚 Learning: 2025-12-24T13:50:10.254Z
Learnt from: CR
Repo: kubevirt-ui/kubevirt-plugin PR: 0
File: CODING_STANDARDS.md:0-0
Timestamp: 2025-12-24T13:50:10.254Z
Learning: Applies to **/*.{ts,tsx,js} : Define constants in utility files with uppercase and underscore-separated naming (e.g., `API_URL`)
Applied to files:
src/utils/components/Consoles/components/vnc-console/utils/util.ts
📚 Learning: 2025-12-24T13:50:10.254Z
Learnt from: CR
Repo: kubevirt-ui/kubevirt-plugin PR: 0
File: CODING_STANDARDS.md:0-0
Timestamp: 2025-12-24T13:50:10.254Z
Learning: Applies to **/*.{ts,tsx} : Avoid using `any` type in TypeScript. Use `unknown` instead and narrow the type as needed
Applied to files:
src/views/checkups/utils/types.ts
📚 Learning: 2025-12-24T13:50:10.254Z
Learnt from: CR
Repo: kubevirt-ui/kubevirt-plugin PR: 0
File: CODING_STANDARDS.md:0-0
Timestamp: 2025-12-24T13:50:10.254Z
Learning: Applies to **/*.{ts,tsx} : Prefer using `type` instead of `interface` for defining the shapes of objects or functions in TypeScript
Applied to files:
src/views/checkups/utils/types.tssrc/utils/resources/instancetype/types.ts
🧬 Code graph analysis (2)
src/utils/components/Consoles/components/utils/types.ts (1)
src/utils/components/Consoles/components/utils/ConsoleConsts.ts (1)
ConsoleTypes(27-31)
src/views/checkups/utils/types.ts (1)
src/views/checkups/utils/constants.ts (1)
CHECKUP_URLS(1-5)
🔇 Additional comments (8)
src/utils/resources/instancetype/types.ts (1)
25-25: LGTM – Type expression syntax update.The parentheses around
typeof InstanceTypeSizesmake the operator precedence explicit. This is a safe, type-only change with no runtime impact.src/utils/components/Consoles/components/vnc-console/utils/util.ts (1)
45-45: LGTM – Type expression syntax update.The parenthesized form clarifies operator precedence. This syntax change is safe and consistent with the type updates across the codebase.
src/views/clusteroverview/SettingsTab/tabs.ts (1)
14-14: LGTM – Type expression syntax update.Adding parentheses around the
typeofexpression is a safe syntactic clarification with no behavioral impact.src/utils/components/NetworkIcons/utils.ts (1)
19-22: LGTM – Type expression syntax update.The parenthesized return type follows the same explicit operator precedence pattern applied throughout the codebase. No behavioral change.
src/views/checkups/utils/types.ts (1)
11-11: LGTM – Type expression syntax update.The parenthesized indexed access type is syntactically clearer and consistent with the broader pattern applied across the PR.
src/views/checkups/self-validation/components/actions/CheckupsSelfValidationActionsUtils.ts (1)
10-11: LGTM – Type expression syntax update.This completes the consistent pattern of parenthesizing
typeofexpressions before indexed access across the codebase. Safe and clear.src/utils/components/Consoles/components/utils/types.ts (2)
5-5: LGTM – Type expression syntax update.The parenthesized form is consistent with the type syntax updates throughout the codebase.
7-11: No breaking changes detected—type expansion is already practiced in the codebase.Both construction sites (
Consoles.tsxandVirtualMachinesOverviewTabDetailsConsole.tsx) already initializeConsoleComponentStatewith all three fields (actions,state, andtype). The type expansion formalizes the existing object shape that the code already uses. Producer functions employPartial<ConsoleComponentState>for flexible updates, ensuring compatibility with incremental state changes.
Signed-off-by: Aviv Turgeman <[email protected]>
9dd2da7 to
a29cfe0
Compare
|
@avivtur: This pull request references CNV-74917 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 task 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. |
|
@avivtur: This pull request references CNV-74917 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 task 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. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: avivtur, metalice 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 |
📝 Description
https://issues.redhat.com/browse/CNV-74917
This PR is rebuilding the package-lock.json + node_modules/ files from scratch to upgrade our midstream to use node 22 instead of node 20 as it blocks the builds.
After regenerating the package-lock.json + node_modules and building, I had an error with
@novnc/novncpackage.version 1.6.0 of
@novnc/novncintroduces a top-level await (await outside of a function) which is forbidden by webpack 5 for commonJS. for mor info on this known issue from novnc: novnc/noVNC#1943The workaround for that error was pinning the
@novnc/novncpackage to 1.5.0 which we already used instead of letting npm to upgrade to 1.6.0🎥 Demo
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.