Skip to content

refactor(docs-infra): remove code that prints debug info - #46987

Closed
gkalpak wants to merge 1 commit into
angular:mainfrom
gkalpak:refactor-aio-remove-debug-code
Closed

gkalpak wants to merge 1 commit into
angular:mainfrom
gkalpak:refactor-aio-remove-debug-code

Conversation

@gkalpak

@gkalpak gkalpak commented Jul 28, 2022

Copy link
Copy Markdown
Member

In #41106, code was added in angular.io to print info that would help us investigate and debug a ServiceWorker issue (#28114). Since the fix for the issue was deployed on October 6th, 2021, the related error rate has dropped dramatically:

ChunkLoadError rate

Additionally, there have been no known occurrences or reports of the issue in the last several months.

The remaining occurrences could be attributed to older versions still being around on people's devices (due to the ServiceWorker caching) and other circumstances not related to the ServiceWorker, for which there is not much we can do. For example, a user could keep a tab open with an older version of the app, which requests hashed files that no longer exist on the server. If the ServiceWorker is not activated on such a tab (either because the browser does not support it or because the user has disabled it, for example), then it is expected that these requests would fail.

This commit removes the code that prints ServiceWorker-related debug info to reduce the payload size of the app.

Fixes #41117.

@gkalpak gkalpak added refactoring Issue that involves refactoring or code-cleanup comp: docs-infra target: patch This PR is targeted for the next patch release labels Jul 28, 2022
@ngbot ngbot Bot modified the milestone: Backlog Jul 28, 2022
@mary-poppins

Copy link
Copy Markdown

@gkalpak
gkalpak force-pushed the refactor-aio-remove-debug-code branch from 0ea99a3 to 76726a8 Compare July 28, 2022 13:03
@gkalpak gkalpak added the action: review The PR is still awaiting reviews from at least one requested reviewer label Jul 28, 2022
@gkalpak
gkalpak marked this pull request as ready for review July 28, 2022 13:03
@pullapprove
pullapprove Bot requested review from atscott and dylhunn July 28, 2022 13:03
In angular#41106, code was added in angular.io to print info that would help us
investigate and debug a ServiceWorker issue (angular#28114). Since the fix for
the issue was deployed on October 6th, 2021, the related error rate has
dropped dramatically:

![ChunkLoadError rate](https://user-images.githubusercontent.com/8604205/181502119-64ffb5de-f38e-4414-abcd-0fada29fd6d5.png)

Additionally, there have been no known occurrences or reports of the
issue in the last several months.

The remaining occurrences could be attributed to older versions still
being around on people's devices (due to the ServiceWorker caching) and
other circumstances not related to the ServiceWorker, for which there is
not much we can do. For example, a user could keep a tab open with an
older version of the app, which requests hashed files that no longer
exist on the server. If the ServiceWorker is not activated on such a tab
(either because the browser does not support it or because the user has
disabled it, for example), then it is expected that these requests would
fail.

This commit removes the code that prints ServiceWorker-related debug
info to reduce the payload size of the app.

Fixes angular#41117
@mary-poppins

Copy link
Copy Markdown

@gkalpak
gkalpak requested review from devversion and removed request for devversion July 28, 2022 13:26
@pullapprove
pullapprove Bot requested a review from jessicajaniuk August 1, 2022 16:39

@atscott atscott left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

reviewed-for: size-tracking

@jessicajaniuk jessicajaniuk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

reviewed-for: docs-infra, size-tracking

@jessicajaniuk jessicajaniuk added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Aug 1, 2022
@jessicajaniuk
jessicajaniuk removed the request for review from dylhunn August 1, 2022 16:40
@AndrewKushnir AndrewKushnir added target: minor This PR is targeted for the next minor release and removed target: patch This PR is targeted for the next patch release labels Aug 1, 2022
@AndrewKushnir

Copy link
Copy Markdown
Contributor

This PR was merged into the repository by commit f386cdb.

@AndrewKushnir

Copy link
Copy Markdown
Contributor

@gkalpak there was a merge conflict with the 14.1.x branch, so this PR was merged into the main branch only. Could you please create a new PR and target the 14.1.x branch if the change should be included there as well? Thank you.

@gkalpak

gkalpak commented Aug 1, 2022

Copy link
Copy Markdown
Member Author

Thx, Andrew!
It doesn't matter much, so let's keep it in main only.

@gkalpak
gkalpak deleted the refactor-aio-remove-debug-code branch August 1, 2022 19:08
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Sep 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker refactoring Issue that involves refactoring or code-cleanup target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[docs-infra] Remove the code added in #41106 to reduce bundle size

5 participants