Bug 2020257

Summary: Dynamic plugin with multiple webpack compilation passes may fail to build
Product: OpenShift Container Platform Reporter: Rastislav Wagner <rawagner>
Component: Management ConsoleAssignee: Rastislav Wagner <rawagner>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.9CC: aos-bugs, kdoberst, spadgett, yapei
Target Milestone: ---   
Target Release: 4.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-10 16:25:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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