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

feat: make Deno capture unhandled exceptions and rejections and report them to the server #33997

Merged
merged 8 commits into from
Nov 20, 2024

Conversation

d-gubert
Copy link
Member

@d-gubert d-gubert commented Nov 19, 2024

Proposed changes (including videos or screenshots)

The Deno subprocess will now catch any unhandled exceptions or rejections that happen and report those to the host process. These types of errors cause the subprocess to exit with code 1, so capturing and preventing them will make the apps more stable.

Uncaught exceptions should be rare, but unhandled promise rejections can be common if the app doesn't properly handle errors on its side.

Issue(s)

CONN-354

Steps to test or reproduce

Further comments

Copy link
Contributor

dionisio-bot bot commented Nov 19, 2024

Looks like this PR is ready to merge! 🎉
If you have any trouble, please check the PR guidelines

Copy link

changeset-bot bot commented Nov 19, 2024

🦋 Changeset detected

Latest commit: 0f61200

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 38 packages
Name Type
@rocket.chat/apps-engine Minor
@rocket.chat/livechat Minor
@rocket.chat/i18n Minor
@rocket.chat/meteor Minor
@rocket.chat/apps Patch
@rocket.chat/core-services Patch
@rocket.chat/core-typings Minor
@rocket.chat/fuselage-ui-kit Major
@rocket.chat/rest-typings Minor
@rocket.chat/ddp-streamer Patch
@rocket.chat/presence Patch
rocketchat-services Patch
@rocket.chat/mock-providers Patch
@rocket.chat/ui-contexts Major
@rocket.chat/web-ui-registration Major
@rocket.chat/uikit-playground Patch
@rocket.chat/ui-client Major
@rocket.chat/ui-voip Major
@rocket.chat/gazzodown Major
@rocket.chat/ui-avatar Major
@rocket.chat/ui-video-conf Major
@rocket.chat/api-client Patch
@rocket.chat/cron Patch
@rocket.chat/ddp-client Patch
@rocket.chat/freeswitch Patch
@rocket.chat/model-typings Patch
@rocket.chat/account-service Patch
@rocket.chat/authorization-service Patch
@rocket.chat/omnichannel-transcript Patch
@rocket.chat/presence-service Patch
@rocket.chat/queue-worker Patch
@rocket.chat/stream-hub-service Patch
@rocket.chat/license Patch
@rocket.chat/omnichannel-services Patch
@rocket.chat/pdf-worker Patch
@rocket.chat/network-broker Patch
@rocket.chat/models Patch
@rocket.chat/instance-status Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

github-actions bot commented Nov 19, 2024

PR Preview Action v1.4.8
🚀 Deployed preview to https://RocketChat.github.io/Rocket.Chat/pr-preview/pr-33997/
on branch gh-pages at 2024-11-20 02:08 UTC

Copy link

codecov bot commented Nov 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.79%. Comparing base (79bbbd6) to head (0f61200).
Report is 2 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop   #33997   +/-   ##
========================================
  Coverage    75.79%   75.79%           
========================================
  Files          510      510           
  Lines        22063    22063           
  Branches      5385     5385           
========================================
  Hits         16723    16723           
  Misses        4694     4694           
  Partials       646      646           
Flag Coverage Δ
unit 75.79% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

---- 🚨 Try these New Features:

@d-gubert d-gubert force-pushed the feat/deno-unhandled-listeners branch from 0857b39 to b41b2fe Compare November 19, 2024 18:51
@d-gubert d-gubert marked this pull request as ready for review November 19, 2024 21:38
@d-gubert d-gubert requested a review from a team as a code owner November 19, 2024 21:38
@d-gubert d-gubert added this to the 7.1.0 milestone Nov 19, 2024
@d-gubert d-gubert added the stat: QA assured Means it has been tested and approved by a company insider label Nov 19, 2024
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label Nov 19, 2024
@ggazzo ggazzo merged commit ce7024a into develop Nov 20, 2024
19 checks passed
@ggazzo ggazzo deleted the feat/deno-unhandled-listeners branch November 20, 2024 02:13
d-gubert added a commit to RocketChat/Rocket.Chat.Apps-engine that referenced this pull request Dec 4, 2024
d-gubert added a commit to RocketChat/Rocket.Chat.Apps-engine that referenced this pull request Dec 5, 2024
- [make Deno capture unhandled exceptions and rejections and report them to the server](RocketChat/Rocket.Chat#33997)
- [apps-engine timeout config](RocketChat/Rocket.Chat#33690)
d-gubert added a commit to RocketChat/Rocket.Chat.Apps-engine that referenced this pull request Dec 6, 2024
d-gubert added a commit to RocketChat/Rocket.Chat.Apps-engine that referenced this pull request Dec 6, 2024
d-gubert added a commit to RocketChat/Rocket.Chat.Apps-engine that referenced this pull request Dec 6, 2024
@d-gubert
Copy link
Member Author

d-gubert commented Dec 9, 2024

/backport 7.0.1

Copy link
Contributor

dionisio-bot bot commented Dec 9, 2024

Sorry, I couldn't do that backport because of conflicts. Could you please solve them?

you can do so by running the following commands:

git fetch
git checkout backport-7.0.1-33997
git cherry-pick ce7024af36fcde97b1da5b2731f6edc4a4c236b8
// solve the conflict
git push

after that just run /backport 7.0.1 again

d-gubert added a commit that referenced this pull request Dec 9, 2024
@d-gubert
Copy link
Member Author

d-gubert commented Dec 9, 2024

/backport 7.0.1

Copy link
Contributor

dionisio-bot bot commented Dec 9, 2024

Pull request #34150 added to Project: "Patch 7.0.1"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stat: QA assured Means it has been tested and approved by a company insider stat: ready to merge PR tested and approved waiting for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants