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 2304993: [release-4.17] Optimizing the chunk size using devtool #1534

Conversation

openshift-cherrypick-robot

This is an automated cherry-pick of #1520

/assign SanjalKatiyar

Signed-off-by: Gowtham Shanmugasundaram <[email protected]>
Copy link
Contributor

openshift-ci bot commented Aug 14, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: openshift-cherrypick-robot
Once this PR has been reviewed and has the lgtm label, please ask for approval from sanjalkatiyar. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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

@GowthamShanmugam
Copy link
Contributor

/retitle Bug 2304993: [release-4.17] Optimizing the chunk size using devtool

@openshift-ci openshift-ci bot changed the title [release-4.17] Optimizing the chunk size using devtool Bug 2304993: [release-4.17] Optimizing the chunk size using devtool Aug 14, 2024
Copy link
Contributor

openshift-ci bot commented Aug 14, 2024

@openshift-cherrypick-robot: This pull request references Bugzilla bug 2304993, which is invalid:

  • expected the bug to target the "ODF 4.17.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 2304993: [release-4.17] Optimizing the chunk size using devtool

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.

@GowthamShanmugam
Copy link
Contributor

/bugzilla refresh

Copy link
Contributor

openshift-ci bot commented Aug 16, 2024

@GowthamShanmugam: This pull request references Bugzilla bug 2304993, which is valid. The bug has been updated to refer to the pull request using the external bug tracker.

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

Requesting review from QA contact:
/cc @PrasadDesala

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-sigs/prow repository.

Copy link
Contributor

openshift-ci bot commented Aug 16, 2024

@openshift-ci[bot]: GitHub didn't allow me to request PR reviews from the following users: PrasadDesala.

Note that only red-hat-storage members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

@GowthamShanmugam: This pull request references Bugzilla bug 2304993, which is valid. The bug has been updated to refer to the pull request using the external bug tracker.

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

Requesting review from QA contact:
/cc @PrasadDesala

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-sigs/prow repository.

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.

Copy link
Contributor

@bipuladh bipuladh left a comment

Choose a reason for hiding this comment

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

We should not require any source map for prod builds we can always replicate the pages crashing by following the steps in our dev build. Usually we don't have access to production clusters of the customers so there is no point in trying to get access to the code that is causing errors in client clusters.

devtool: 'eval-cheap-module-source-map',
// 'source-map' is recommended choice for production builds, A full SourceMap is emitted as a separate file.
// 'eval-source-map' is recommended for development but 'eval-cheap-module-source-map' is faster and gives better result.
devtool: isProduction ? 'source-map' : 'eval-cheap-module-source-map',
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's put false for production.

@@ -20,6 +20,7 @@ const NODE_ENV = (process.env.NODE_ENV ||
'development') as webpack.Configuration['mode'];
const PLUGIN = process.env.PLUGIN;
const OPENSHIFT_CI = process.env.OPENSHIFT_CI;
const isProduction = NODE_ENV === 'production';
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
const isProduction = NODE_ENV === 'production';
const IS_PRODUCTION = NODE_ENV === 'production';

@GowthamShanmugam
Copy link
Contributor

GowthamShanmugam commented Aug 19, 2024

We should not require any source map for prod builds we can always replicate the pages crashing by following the steps in our dev build. Usually, we don't have access to the production clusters of the customers so there is no point in trying to get access to the code that is causing errors in client clusters.

I agree we don't have access, but the customer can paste the stack trace while creating a bug. We can't reproduce all the production issues, Without stack trace it will become hard to debug. source-map is made on a separate file, so it never affects the UI's initial loading time.
OCP and ACM are also using the same map type:
https://github.com/openshift/console/blob/master/frontend/webpack.config.ts#L381
https://github.com/stolostron/console/blob/main/frontend/webpack.plugin.ts#L137

@GowthamShanmugam
Copy link
Contributor

/close

@openshift-ci openshift-ci bot closed this Aug 21, 2024
Copy link
Contributor

openshift-ci bot commented Aug 21, 2024

@GowthamShanmugam: Closed this PR.

In response to this:

/close

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.

Copy link
Contributor

openshift-ci bot commented Aug 21, 2024

@openshift-cherrypick-robot: This pull request references Bugzilla bug 2304993. The bug has been updated to no longer refer to the pull request using the external bug tracker.

In response to this:

Bug 2304993: [release-4.17] Optimizing the chunk size using devtool

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants