Skip to content

Conversation

@logonoff
Copy link
Member

@logonoff logonoff commented Nov 13, 2025

Cycle count goes from 27 (main) to 0 (PR) cycles after applying the below diff. Hooray!

diff --git a/frontend/packages/console-plugin-sdk/src/codegen/active-plugins.ts b/frontend/packages/console-plugin-sdk/src/codegen/active-plugins.ts
index 2ccc0e5480..7c2c9852ad 100644
--- a/frontend/packages/console-plugin-sdk/src/codegen/active-plugins.ts
+++ b/frontend/packages/console-plugin-sdk/src/codegen/active-plugins.ts
@@ -58,7 +58,6 @@ export const getActivePluginsModule = (
       activePlugins.push({
         name: '${pkg.name}',
         extensions: [
-          ...require('${pkg.name}/${pkg.consolePlugin.entry}').default,
           ...${extensionHook(pkg)},
         ],
       });
@@ -88,8 +87,6 @@ export const loadActivePluginsForTestPurposes = (
     activePlugins.push({
       name: pkg.name,
       extensions: [
-        // eslint-disable-next-line @typescript-eslint/no-var-requires
-        ...require(`${pkg.name}/${pkg.consolePlugin.entry}`).default,
         ...extensionHook(pkg),
       ],
     });
diff --git a/frontend/webpack.config.ts b/frontend/webpack.config.ts
index 06c8f46b78..ef735a5876 100644
--- a/frontend/webpack.config.ts
+++ b/frontend/webpack.config.ts
@@ -340,10 +340,6 @@ const config: Configuration = {
 if (CHECK_CYCLES === 'true') {
   new CircularDependencyPreset({
     exclude: /node_modules|public\/dist|\.(gql|html)$/,
-    // TODO: investigate how to load the plugins registry asynchronously
-    filterModules: /^get-active-plugins\.js$/,
-    // TODO: Fix cycles unveiled by CONSOLE-4837, then remove the below line
-    thresholds: { totalCycles: 5 },
     reportFile: '.webpack-cycles',
   }).apply(config.plugins);
 }

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Nov 13, 2025
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Nov 13, 2025

@logonoff: This pull request references CONSOLE-4858 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.21.0" version, but no target version was set.

Details

In response to this:

Cycle count goes from 27 (PR) to 0 (PR) cycles after applying the below diff. Hooray!

diff --git a/frontend/packages/console-plugin-sdk/src/codegen/active-plugins.ts b/frontend/packages/console-plugin-sdk/src/codegen/active-plugins.ts
index 2ccc0e5480..7c2c9852ad 100644
--- a/frontend/packages/console-plugin-sdk/src/codegen/active-plugins.ts
+++ b/frontend/packages/console-plugin-sdk/src/codegen/active-plugins.ts
@@ -58,7 +58,6 @@ export const getActivePluginsModule = (
      activePlugins.push({
        name: '${pkg.name}',
        extensions: [
-          ...require('${pkg.name}/${pkg.consolePlugin.entry}').default,
          ...${extensionHook(pkg)},
        ],
      });
@@ -88,8 +87,6 @@ export const loadActivePluginsForTestPurposes = (
    activePlugins.push({
      name: pkg.name,
      extensions: [
-        // eslint-disable-next-line @typescript-eslint/no-var-requires
-        ...require(`${pkg.name}/${pkg.consolePlugin.entry}`).default,
        ...extensionHook(pkg),
      ],
    });
diff --git a/frontend/webpack.config.ts b/frontend/webpack.config.ts
index 06c8f46b78..ef735a5876 100644
--- a/frontend/webpack.config.ts
+++ b/frontend/webpack.config.ts
@@ -340,10 +340,6 @@ const config: Configuration = {
if (CHECK_CYCLES === 'true') {
  new CircularDependencyPreset({
    exclude: /node_modules|public\/dist|\.(gql|html)$/,
-    // TODO: investigate how to load the plugins registry asynchronously
-    filterModules: /^get-active-plugins\.js$/,
-    // TODO: Fix cycles unveiled by CONSOLE-4837, then remove the below line
-    thresholds: { totalCycles: 5 },
    reportFile: '.webpack-cycles',
  }).apply(config.plugins);
}

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.

@openshift-ci openshift-ci bot requested review from cajieh and rawagner November 13, 2025 15:57
@openshift-ci openshift-ci bot added component/core Related to console core functionality component/dashboard Related to dashboard approved Indicates a PR has been approved by an approver from all required OWNERS files. component/knative Related to knative-plugin component/shared Related to console-shared component/topology Related to topology labels Nov 13, 2025
@logonoff
Copy link
Member Author

/label px-approved
/label docs-approved

@openshift-ci openshift-ci bot added px-approved Signifies that Product Support has signed off on this PR docs-approved Signifies that Docs has signed off on this PR labels Nov 13, 2025
@logonoff
Copy link
Member Author

/assign @yapei @rhamilto

@logonoff logonoff force-pushed the CONSOLE-4858-s2e20-drug-testing branch from 5671e5a to 0fcc3d8 Compare November 13, 2025 16:19
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Nov 13, 2025

@logonoff: This pull request references CONSOLE-4858 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.21.0" version, but no target version was set.

Details

In response to this:

Cycle count goes from 27 (main) to 0 (PR) cycles after applying the below diff. Hooray!

diff --git a/frontend/packages/console-plugin-sdk/src/codegen/active-plugins.ts b/frontend/packages/console-plugin-sdk/src/codegen/active-plugins.ts
index 2ccc0e5480..7c2c9852ad 100644
--- a/frontend/packages/console-plugin-sdk/src/codegen/active-plugins.ts
+++ b/frontend/packages/console-plugin-sdk/src/codegen/active-plugins.ts
@@ -58,7 +58,6 @@ export const getActivePluginsModule = (
      activePlugins.push({
        name: '${pkg.name}',
        extensions: [
-          ...require('${pkg.name}/${pkg.consolePlugin.entry}').default,
          ...${extensionHook(pkg)},
        ],
      });
@@ -88,8 +87,6 @@ export const loadActivePluginsForTestPurposes = (
    activePlugins.push({
      name: pkg.name,
      extensions: [
-        // eslint-disable-next-line @typescript-eslint/no-var-requires
-        ...require(`${pkg.name}/${pkg.consolePlugin.entry}`).default,
        ...extensionHook(pkg),
      ],
    });
diff --git a/frontend/webpack.config.ts b/frontend/webpack.config.ts
index 06c8f46b78..ef735a5876 100644
--- a/frontend/webpack.config.ts
+++ b/frontend/webpack.config.ts
@@ -340,10 +340,6 @@ const config: Configuration = {
if (CHECK_CYCLES === 'true') {
  new CircularDependencyPreset({
    exclude: /node_modules|public\/dist|\.(gql|html)$/,
-    // TODO: investigate how to load the plugins registry asynchronously
-    filterModules: /^get-active-plugins\.js$/,
-    // TODO: Fix cycles unveiled by CONSOLE-4837, then remove the below line
-    thresholds: { totalCycles: 5 },
    reportFile: '.webpack-cycles',
  }).apply(config.plugins);
}

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.

@logonoff
Copy link
Member Author

yarn dev works fine:

image

@logonoff logonoff force-pushed the CONSOLE-4858-s2e20-drug-testing branch from 0fcc3d8 to 23d4f5f Compare November 13, 2025 16:47
@vojtechszocs
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Nov 13, 2025
@logonoff logonoff force-pushed the CONSOLE-4858-s2e20-drug-testing branch from 23d4f5f to 832e40e Compare November 13, 2025 18:11
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Nov 13, 2025
Cycle count goes from 27 to 14
Cycle count goes from 14 to 11
Cycle count goes from 11 to 8
Cycle count goes from 8 to 5
Cycle count goes from 5 to 2
Cycle count goes from 2 to 0. Hooray!
These cycles will be addressed by CONSOLE-4806 and CONSOLE-4840
@logonoff logonoff force-pushed the CONSOLE-4858-s2e20-drug-testing branch from 832e40e to 33ddf26 Compare November 13, 2025 18:11
@openshift-ci openshift-ci bot added the kind/i18n Indicates issue or PR relates to internationalization or has content that needs to be translated label Nov 13, 2025
@vojtechszocs
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Nov 13, 2025
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 13, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: logonoff, vojtechszocs

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

filterModules: /^get-active-plugins\.js$/,
// TODO: Fix cycles unveiled by CONSOLE-4837, then remove the below line
thresholds: { totalCycles: 10 },
thresholds: { totalCycles: 21 }, // TODO(CONSOLE-4806): Set threshold to 0
Copy link
Member Author

@logonoff logonoff Nov 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

21 cycles are related to imports in knative-plugin/plugin.tsx / static GuidedTour and will be addressed in #15641 and #15679

@yapei
Copy link
Contributor

yapei commented Nov 14, 2025

Run yarn check-cycles locally after applying patch in description

$ ts-node -O '{"module":"commonjs"}' ./node_modules/.bin/webpack --mode=development
(node:48756) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Console active plugins virtual module code generated with 0 errors and 0 warnings
945 assets
20586 modules
webpack 5.97.1 compiled successfully in 82002 ms
✨  Done in 139.14s.

also CI test passed

/verified by @yapei , CI

@openshift-ci-robot openshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label Nov 14, 2025
@openshift-ci-robot
Copy link
Contributor

@yapei: This PR has been marked as verified by @yapei,CI.

Details

In response to this:

Run yarn check-cycles locally after applying patch in description

$ ts-node -O '{"module":"commonjs"}' ./node_modules/.bin/webpack --mode=development
(node:48756) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Console active plugins virtual module code generated with 0 errors and 0 warnings
945 assets
20586 modules
webpack 5.97.1 compiled successfully in 82002 ms
✨  Done in 139.14s.

also CI test passed

/verified by @yapei , CI

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.

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD f4d51e9 and 2 for PR HEAD 33ddf26 in total

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 14, 2025

@logonoff: 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/okd-scos-e2e-aws-ovn 33ddf26 link false /test okd-scos-e2e-aws-ovn

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.

@openshift-merge-bot openshift-merge-bot bot merged commit d673d10 into openshift:main Nov 14, 2025
7 of 8 checks passed
@logonoff logonoff deleted the CONSOLE-4858-s2e20-drug-testing branch November 14, 2025 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. component/core Related to console core functionality component/dashboard Related to dashboard component/knative Related to knative-plugin component/shared Related to console-shared component/topology Related to topology docs-approved Signifies that Docs has signed off on this PR jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. kind/i18n Indicates issue or PR relates to internationalization or has content that needs to be translated lgtm Indicates that a PR is ready to be merged. px-approved Signifies that Product Support has signed off on this PR verified Signifies that the PR passed pre-merge verification criteria

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants