Skip to content
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

Bug 1908035: Fix issue with dynamic-demo-plugin webpack build #7516

Merged

Conversation

vojtechszocs
Copy link
Contributor

Console dynamic plugin SDK (and consequently dynamic-demo-plugin) currently uses webpack 5.0.0-beta.16 which doesn't support empty entry object yet. Quote from webpack docs:

You can pass empty object {} to entry when you have only entrypoints generated by plugins.

This will be fixed once we bump dynamic plugin SDK dependencies.

In the meantime, this PR fixes an issue where dynamic-demo-plugin/dist wasn't generated at all due to changes made in #7163 (ConsoleAssetPlugin not using afterCompile hook).


Tech details: Dynamic plugin projects are not typical web applications with webpack-processed entry points. All dynamic plugin assets are generated via ConsoleRemotePlugin (which uses ConsoleAssetPlugin under the hood). However, webpack 4 requires us to specify at least one entry point (from which a bundle gets created). We're currently working around this issue, with webpack 5 latest this should be a non-issue.

@openshift-ci-robot openshift-ci-robot added the component/sdk Related to console-plugin-sdk label Dec 10, 2020
@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 10, 2020
@spadgett
Copy link
Member

If we move to the latest beta, v5.0.0-beta.31, would that address the issue?

@vojtechszocs
Copy link
Contributor Author

vojtechszocs commented Dec 11, 2020

If we move to the latest beta, v5.0.0-beta.31, would that address the issue?

@spadgett I'd suggest moving to latest v5 stable (currently 5.10.0) since there's been a lot of changes around module federation code between 5.0.0-beta.16 and the latest beta anyway.

Edit: The move to webpack v5 stable for dynamic plugin SDK & demo plugin would be done in a separate PR. This PR is only to fix the immediate issue.

@vojtechszocs vojtechszocs changed the title Fix issue with dynamic-demo-plugin webpack build Bug 1908035: Fix issue with dynamic-demo-plugin webpack build Dec 15, 2020
@openshift-ci-robot openshift-ci-robot added the bugzilla/severity-unspecified Referenced Bugzilla bug's severity is unspecified for the PR. label Dec 15, 2020
@openshift-ci-robot
Copy link
Contributor

@vojtechszocs: This pull request references Bugzilla bug 1908035, which is invalid:

  • expected the bug to target the "4.7.0" release, but it targets "---" instead

Comment /bugzilla refresh to re-evaluate validity if changes to the Bugzilla bug are made, or edit the title of this pull request to link to a different bug.

In response to this:

Bug 1908035: Fix issue with dynamic-demo-plugin webpack build

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/test-infra repository.

@openshift-ci-robot openshift-ci-robot added the bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. label Dec 15, 2020
@jhadvig
Copy link
Member

jhadvig commented Dec 16, 2020

/bugzilla refresh

@openshift-ci-robot openshift-ci-robot added bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. and removed bugzilla/severity-unspecified Referenced Bugzilla bug's severity is unspecified for the PR. labels Dec 16, 2020
@openshift-ci-robot
Copy link
Contributor

@jhadvig: This pull request references Bugzilla bug 1908035, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.7.0) matches configured target release for branch (4.7.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

In response to this:

/bugzilla refresh

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/test-infra repository.

@openshift-ci-robot openshift-ci-robot removed the bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. label Dec 16, 2020
Copy link
Member

@jhadvig jhadvig left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 16, 2020
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

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

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

The pull request process is described here

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

@openshift-merge-robot openshift-merge-robot merged commit 51ebd53 into openshift:master Dec 16, 2020
@openshift-ci-robot
Copy link
Contributor

@vojtechszocs: All pull requests linked via external trackers have merged:

Bugzilla bug 1908035 has been moved to the MODIFIED state.

In response to this:

Bug 1908035: Fix issue with dynamic-demo-plugin webpack build

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/test-infra repository.

@spadgett spadgett added this to the v4.7 milestone Jan 7, 2021
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. bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. component/sdk Related to console-plugin-sdk lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants