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: apps-engine timeout config #33690

Merged
merged 7 commits into from
Nov 4, 2024
Merged

Conversation

d-gubert
Copy link
Member

@d-gubert d-gubert commented Oct 21, 2024

Proposed changes (including videos or screenshots)

Make the Apps-Engine runtime accept the APPS_ENGINE_RUNTIME_TIMEOUT environment variable to configure the time limit for requests to the Deno subprocess.
Also, makes calls to Pre app event methods follow the same "global" timeout, instead of the shorter 1 second.

We've had reports of some environments having timeouts where the request was actually expected to take a longer time to resolve.

Default timeout is increased to 30 seconds

Issue(s)

SUP-690
SUP-688

Closes #33834

Steps to test or reproduce

Further comments

Copy link
Contributor

dionisio-bot bot commented Oct 21, 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 Oct 21, 2024

🦋 Changeset detected

Latest commit: 50087bc

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 Minor
@rocket.chat/meteor Patch
@rocket.chat/apps Patch
@rocket.chat/core-services Patch
@rocket.chat/core-typings Patch
@rocket.chat/fuselage-ui-kit Major
@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

Copy link
Contributor

github-actions bot commented Oct 21, 2024

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

Copy link

codecov bot commented Oct 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.42%. Comparing base (06189eb) to head (50087bc).
Report is 1 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop   #33690   +/-   ##
========================================
  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 October 21, 2024 17:51
@d-gubert d-gubert requested a review from a team as a code owner October 21, 2024 17:51
@d-gubert d-gubert added this to the 7.1.0 milestone Oct 28, 2024
@d-gubert d-gubert added the stat: QA assured Means it has been tested and approved by a company insider label Nov 4, 2024
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label Nov 4, 2024
@kodiakhq kodiakhq bot merged commit d398866 into develop Nov 4, 2024
51 checks passed
@kodiakhq kodiakhq bot deleted the feat/apps-engine-timeout-config branch November 4, 2024 21:47
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

dionisio-bot bot pushed a commit that referenced this pull request Dec 9, 2024
Copy link
Contributor

dionisio-bot bot commented Dec 9, 2024

Pull request #34147 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.

Deno runtime timeout shouldn't be hard-coded
3 participants