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

fix: engine restart process for Deno used wrong status #33865

Merged
merged 9 commits into from
Nov 7, 2024

Conversation

d-gubert
Copy link
Member

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

Proposed changes (including videos or screenshots)

Whenever the Deno subprocess of an app crashes, the Apps-Engine tries to restart it so we can keep the operation going. However, the app wasn't correctly reporting its status afterwards, and stayed at the constructed or initialized status, which the engine does not recognize as enabled.

Also, we're removing the limit for the number of times the Apps-Engine would restart an app. At this point, it is not possible to show the restart or process status information to the admin, so it would just cause confusion to see the app not working.

Issue(s)

SUP-690

Steps to test or reproduce

  1. Start up the server
  2. Grab the pid of the subprocess of any enabled app (either with ps aux | grep deno or by starting the server with DEBUG=appsEngine:* and checking the logs)
  3. Kill that pid via the command line
  4. The app should still show as "enabled" in the UI and should still function as expected

Further comments

Copy link
Contributor

dionisio-bot bot commented Nov 1, 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 1, 2024

🦋 Changeset detected

Latest commit: 2376c4f

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

This PR includes changesets to release 36 packages
Name Type
@rocket.chat/apps-engine Patch
@rocket.chat/meteor Patch
@rocket.chat/apps Patch
@rocket.chat/core-services Patch
@rocket.chat/core-typings Patch
@rocket.chat/fuselage-ui-kit Patch
@rocket.chat/rest-typings Patch
@rocket.chat/ddp-streamer Patch
@rocket.chat/presence Patch
rocketchat-services Patch
@rocket.chat/uikit-playground Patch
@rocket.chat/api-client Patch
@rocket.chat/cron Patch
@rocket.chat/ddp-client Patch
@rocket.chat/freeswitch Patch
@rocket.chat/gazzodown Patch
@rocket.chat/livechat Patch
@rocket.chat/model-typings Patch
@rocket.chat/ui-contexts 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/ui-avatar Patch
@rocket.chat/ui-client Patch
@rocket.chat/ui-video-conf Patch
@rocket.chat/ui-voip Patch
@rocket.chat/web-ui-registration 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

@d-gubert d-gubert added this to the 7.1.0 milestone Nov 1, 2024
Copy link
Contributor

github-actions bot commented Nov 1, 2024

PR Preview Action v1.4.8
🚀 Deployed preview to https://RocketChat.github.io/Rocket.Chat/pr-preview/pr-33865/
on branch gh-pages at 2024-11-07 15:39 UTC

Copy link

codecov bot commented Nov 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.42%. Comparing base (d90d7e9) to head (2376c4f).
Report is 1 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop   #33865   +/-   ##
========================================
  Coverage    75.42%   75.42%           
========================================
  Files          493      493           
  Lines        21499    21499           
  Branches      5337     5337           
========================================
  Hits         16215    16215           
  Misses        4644     4644           
  Partials       640      640           
Flag Coverage Δ
unit 75.42% <ø> (ø)

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

@d-gubert d-gubert marked this pull request as ready for review November 1, 2024 19:05
@d-gubert d-gubert requested a review from a team as a code owner November 1, 2024 19:05
@d-gubert
Copy link
Member Author

d-gubert commented Nov 5, 2024

@KevLehman @debdutdeb I'm gonna need to ask you for help with QAing this 🙏

@KevLehman KevLehman added the stat: QA assured Means it has been tested and approved by a company insider label Nov 7, 2024
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label Nov 7, 2024
@kodiakhq kodiakhq bot merged commit b4841cb into develop Nov 7, 2024
49 checks passed
@kodiakhq kodiakhq bot deleted the fix/deno-restart-process branch November 7, 2024 16:06
d-gubert added a commit to RocketChat/Rocket.Chat.Apps-engine that referenced this pull request Nov 10, 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-33865
git cherry-pick b4841cb7206d855d7a1bc7604683a5b4a48b7176
// solve the conflict
git push

after that just run /backport 7.0.1 again

@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 #34149 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.

4 participants