Bug 2020257 - Dynamic plugin with multiple webpack compilation passes may fail to build
Summary: Dynamic plugin with multiple webpack compilation passes may fail to build
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.9
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 4.10.0
Assignee: Rastislav Wagner
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-11-04 13:27 UTC by Rastislav Wagner
Modified: 2022-03-10 16:25 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-10 16:25:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 10306 0 None open Bug 2020257: Validate exposed modules in shouldEmit hook 2021-11-04 14:22:23 UTC
Red Hat Product Errata RHSA-2022:0056 0 None None None 2022-03-10 16:25:52 UTC

Description Rastislav Wagner 2021-11-04 13:27:52 UTC
A bigger project which requires multiple webpack compilation passes may fail the build.
A solution is to move our extensions validation to `shouldEmit` hook, as current `afterCompile` hook is not a right place for multiple compilations passes.

Comment 3 Yadan Pei 2021-11-15 08:33:27 UTC
Hi Rastislav,

How can I verify the bug fix?

Comment 4 Rastislav Wagner 2021-11-16 07:48:27 UTC
I think its good enough to build console demo plugin to make sure there are no regressions

Comment 5 Yadan Pei 2021-11-17 06:32:55 UTC
1. build latest console demo plugin image and deploy to openshift cluster
# replace the image to quay.io/openshifttest/console-demo-plugin:410 in https://github.com/openshift/console/blob/master/dynamic-demo-plugin/oc-manifest.yaml
# oc apply -f oc-manifest.yaml

2. enable console-demo-plugin
3. wait until `Demo Plugin` navigation menu appears and `Demo` perspective added, do some regression testing about operator installation, CR creation and other actions, no regression issues found

verified on 4.10.0-0.nightly-2021-11-15-034648

Comment 9 errata-xmlrpc 2022-03-10 16:25:33 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.10.3 security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:0056


Note You need to log in before you can comment on or make changes to this bug.