Commit Graph
100 Commits
Author SHA1 Message Date
Brian Gough 540a5466f3 Merge branch 'bg-socket-leak-detection'
GitOrigin-RevId: 19c04cd195d0966b1f33eb4e4795db19d183dcf2
2023-05-24 08:04:01 +00:00
Brian Gough 406f8b145a fix formatting
GitOrigin-RevId: 60bd152226db705250f49eb892c6cf75b1b265fc
2022-05-12 10:41:05 +00:00
Brian Gough 9c50a2488f remove decaff headers, fix camelcase 2021-08-03 10:12:16 +01:00
Brian Gough 9a14d01517 remove decaff headers 2021-08-03 10:12:00 +01:00
Brian Gough 43cab1fddc remove unnecessary returns and callbacks 2021-08-03 10:08:17 +01:00
Brian Gough 8c791b2938 remove default callback 2021-08-03 10:07:00 +01:00
Brian Gough 942feb3011 move process.env.BACKEND to setup.js 2021-08-03 10:00:44 +01:00
Brian Gough 04ea24dfbc remove decaf header and fix lint issues 2021-08-03 09:39:24 +01:00
Brian Gough 5e2d4d2169 add acceptance tests for peek 2021-08-02 14:13:38 +01:00
Brian Gough 8afdc8cbd4 add unit test for withRevCheck method 2021-08-02 11:36:43 +01:00
Brian Gough 7b904d9a9d fix case of WithRevCheck method 2021-08-02 11:02:12 +01:00
Brian Gough 50fa9609a3 add test of archive status 2021-08-02 11:01:30 +01:00
Brian Gough dd082ad345 return a 409 for DocModified errors 2021-08-02 10:25:18 +01:00
Brian Gough 69339aeb9d return the origin of peeked docs 2021-08-02 10:25:03 +01:00
Brian Gough 0fd24b5133 peek at docs without fetching from mongo 2021-07-30 16:13:48 +01:00
Brian Gough 6ce28271eb peek at docs without unarchiving 2021-07-30 16:06:16 +01:00
Brian Gough 0095a381b0 refactor unarchiveDoc to use a separate getDoc helper 2021-07-30 16:03:43 +01:00
Brian Gough 262793c04f add option for apparmor profile 2021-07-21 14:53:35 +01:00
Brian Gough 219d6832df upgrade to socket.io 0.9.19-overleaf-5
fix for exception in client.transport getter
2021-05-19 14:28:54 +01:00
Brian Gough d493238eaf wip expire old hash files 2021-05-18 16:25:24 +01:00
Brian Gough 8c80ddd27a remove unnecessary console.log from hash benchmark 2021-05-17 14:14:00 +01:00
Brian Gough 939ad3af31 include UV_THREADPOOL_SIZE in benchmark logs 2021-05-17 14:14:00 +01:00
Brian Gough cbeba4af00 run the hash benchmark 10 times 2021-05-17 14:14:00 +01:00
Brian Gough 7b6434ef81 add benchmark script for hashing 2021-05-17 14:14:00 +01:00
Brian Gough 371de76a4a use fs.copyFile instead of fse.copy in UrlCache module 2021-05-17 10:54:11 +01:00
Brian Gough 24ef5786a0 upgrade fs-extra 2021-05-14 15:58:11 +01:00
Brian Gough 44e0742aa3 use fse.copy for performance
it uses the native fs.copyFile method
2021-05-14 15:49:20 +01:00
Brian Gough ff2175e727 add validation for express :content_id parameter 2021-05-13 15:48:17 +01:00
Brian Gough 013d38552a log the expiry timeout value when disk is low 2021-05-13 15:13:29 +01:00
Brian Gough 3044bc4cf5 add transport to get-connected-users metric 2021-05-13 14:51:26 +01:00
Brian Gough 9622b341b7 add transport type to metrics 2021-05-10 10:16:50 +01:00
Brian Gough 01112e10ab upgrade ioredis via @overleaf/redis-wrapper
also update dependencies
2021-04-29 11:49:13 +01:00
Brian Gough b1a1446054 remove the limit of 300 maxSockets 2021-04-29 10:29:34 +01:00
Brian Gough 2b088dc870 increase package version number 2021-04-29 10:21:33 +01:00
Brian Gough 46da33a67e fix unit tests 2021-04-29 09:27:25 +01:00
Brian Gough bf26b7d596 upgrade ioredis and dev dependencies 2021-04-29 09:20:58 +01:00
Brian Gough a55aa61d71 use .includes instead of .indexOf 2021-03-29 11:13:59 +01:00
Brian Gough 32184330d9 delay closing by 1 minute for deployment flip 2021-03-22 11:26:02 +00:00
Brian Gough 17e3068499 close real-time via a status file 2021-03-22 10:46:25 +00:00
Brian Gough f0b4f1238b provide a /oops-internal endpoint for testing uncaughtExceptions 2021-01-26 16:35:39 +00:00
Brian Gough fc11574698 add uncaughtException handler 2021-01-26 14:08:29 +00:00
Brian Gough 865e68051e include fallback for missing state file 2021-01-26 13:59:28 +00:00
Brian Gough 8946f87ca6 Merge branch 'bg-add-missing-unit-test' into bg-fix-use-output-dir 2021-01-26 11:09:00 +00:00
Brian Gough a8e47da9e9 Revert "Merge pull request #205 from overleaf/revert-200-bg-decaff-cleanup"
This reverts commit 76d8d3181b9464d1e1bbc713a2729ca269d9c047, reversing
changes made to 31a8dc3a98d73c2707d633712f0ef7207013e78b.
2021-01-26 11:04:33 +00:00
Brian Gough a86e521ac0 add unit test for non-existent state file 2021-01-26 11:03:18 +00:00
Brian Gough 6fa081522d add a warning for requests without build id 2021-01-22 11:05:52 +00:00
Brian Gough b5346658b0 clear output directory when clearing project 2021-01-22 11:05:52 +00:00
Brian Gough 565cd53eb5 add git ignore for output directory 2021-01-22 11:05:52 +00:00
Brian Gough 692dbc8d6b add output directory 2021-01-22 11:05:52 +00:00
Brian Gough bdbfe70086 rename staticServer to staticCompileServer 2021-01-22 11:05:52 +00:00
Brian Gough 88bd86557a Update Node to 10.23.1 2021-01-06 09:00:35 +00:00
Brian Gough e183fffa4b format fix 2020-12-18 16:15:06 +00:00
Brian Gough dafe69b5e6 remove unused module var 2020-12-18 16:15:06 +00:00
Brian Gough 36b646bb84 remove comments 2020-12-18 16:15:06 +00:00
Brian Gough f20a0d1a69 remove unused var 2020-12-18 16:15:03 +00:00
Brian Gough df1caa14b8 remove unused require 2020-12-18 16:14:36 +00:00
Brian Gough ca98ee5cff use a Set instead of an Object 2020-12-18 16:14:09 +00:00
Brian Gough 43b0429c28 clean up relative path checking 2020-12-18 16:14:05 +00:00
Brian Gough 73e09ff99f remove unnecessary requires 2020-12-18 15:28:06 +00:00
Brian Gough cee93a0cd9 clean up unnecessary var 2020-12-18 15:28:06 +00:00
Brian Gough 4169f7fc73 use once for callback 2020-12-18 15:28:06 +00:00
Brian Gough e84d6305f3 remove unnecessary return 2020-12-18 15:16:07 +00:00
Brian Gough ae064e8997 lint fix 2020-12-18 15:11:29 +00:00
Brian Gough 323890cedb remove Array.from 2020-12-18 15:10:53 +00:00
Brian Gough c044db4897 remove guard helper 2020-12-18 15:09:48 +00:00
Brian Gough 0bae53c7f3 remove unnecessary returns 2020-12-18 15:02:40 +00:00
Brian Gough eaec57cd01 simplify null check 2020-12-18 15:01:25 +00:00
Brian Gough 411d69e36b remove unnecessary callback code 2020-12-18 14:59:48 +00:00
Brian Gough 11ef3c27ed use Set instead of object 2020-12-18 14:56:53 +00:00
Brian Gough 64ea22d259 remove unnecessary null checks 2020-12-17 12:05:17 +00:00
Brian Gough 299d7cc5fe remove unnecessary returns 2020-12-17 12:01:14 +00:00
Brian Gough 5a539b7f90 remove guard function 2020-12-17 11:59:15 +00:00
Brian Gough 4d8e4d54e5 remove Array.from 2020-12-17 11:49:02 +00:00
Brian Gough 1ddcdf38ca add comment about health checks on '/' 2020-11-27 14:42:42 +00:00
Brian Gough 0c7d8ae5ae downgrade to logger 1.9.1
investigating possible regression in 2.2.0
2020-10-16 14:27:36 +01:00
Brian Gough e08865646f upgrade from metrics-sharelatex to @overleaf/metrics 2020-09-09 10:37:56 +01:00
Brian Gough c530422f1e update package version to 3.1.0 2020-09-04 15:52:05 +01:00
Brian GoughandJakob Ackermann 831d794bf4 clean up join/leave handling
Co-Authored-By: Jakob Ackermann <jakob.ackermann@overleaf.com>
2020-08-12 10:54:22 +01:00
Brian Gough b2e661b408 Merge branch 'bg-use-scoped-package-name' 2020-08-07 10:19:50 +01:00
Brian Gough e5747fefd2 remove package-lock.json (not needed for library) 2020-08-06 14:52:07 +01:00
Brian Gough 5b39d49358 use scoped package name @overleaf/metrics 2020-08-05 11:27:56 +01:00
Brian Gough d415ae0cbe remove gruntfile 2020-07-17 16:23:01 +01:00
Brian Gough 671c243025 npm audit fix 2020-07-17 16:19:44 +01:00
Brian Gough a0f856cff2 fix tests 2020-07-17 16:17:18 +01:00
Brian Gough 747a80b545 decaffeinate 2020-07-17 16:01:58 +01:00
Brian Gough e31a819636 remove statsd 2020-07-17 15:36:37 +01:00
Brian Gough 22480f1a52 handle EPIPE errors in CompileController 2020-06-18 09:54:18 +01:00
Brian Gough bdebef91eb Merge branch 'master' into bg-add-compile-groups 2020-06-17 11:58:26 +01:00
Brian Gough 2eb4327256 fix format 2020-06-16 08:45:53 +01:00
Brian Gough 85f4f348dd add default settings to remove wordcount and synctex containers 2020-06-15 15:49:38 +01:00
Brian Gough 2ce03f0554 add initial compileGroup support 2020-06-15 15:28:53 +01:00
Brian Gough 0914908676 downgrade NotFoundError log-level 2020-06-15 11:06:54 +01:00
Brian Gough 262ea01911 add acceptance test for synctex when project/file does not exist 2020-06-15 10:55:01 +01:00
Brian Gough ede70b6f99 migrate from underscore to lodash 2020-06-15 09:52:21 +01:00
Brian Gough f99023320d use json parsing in request 2020-06-12 15:15:51 +01:00
Brian Gough 5368630754 check output file exists before running synctex 2020-06-12 15:15:27 +01:00
Brian Gough f239fc3b5d send 503 unavailable response on EPIPE 2020-06-11 11:12:02 +01:00
Brian Gough 6c98c7af4a error on missing profile 2020-06-10 11:42:07 +01:00
Brian Gough 54d1cf7eeb add missing setting for optimiseInDocker 2020-06-09 11:22:28 +01:00
Brian Gough 3d6b911295 add setting TEXLIVE_OPENOUT_ANY 2020-06-04 11:47:22 +01:00