Commit Graph
27 Commits
Author SHA1 Message Date
Eric Mc Sween ef90db025c Merge pull request #194 from overleaf/em-bump-node
Bump Node version to 10.22.1
2020-09-16 12:47:59 -04:00
Eric Mc Sween 1650a61831 Bump Node version to 10.22.1 2020-09-16 12:24:42 -04:00
Eric Mc Sween cb96c04c21 Merge pull request #192 from overleaf/em-home-volume
Mount /home/tex in an anonymous volume
2020-09-14 09:50:17 -04:00
Eric Mc Sween 0a05fa7abc Test anonymous volumes are removed with containers 2020-09-04 11:34:08 -04:00
Eric Mc Sween c769ae63a2 Mount /home/tex in an anonymous volume
When we mount the container's root filesystem as read-only, mount
an anonymous volume in /home/tex so that it's writable. Our TeX Live
images have cached content in /home/tex. This content will automatically
get copied by Docker into this anonymous volume.
2020-09-04 08:49:56 -04:00
Eric Mc Sween f4fb979c63 Decaf cleanup: normalize functions
Use function keyword for declarations and arrow functions for callbacks.
2020-09-03 15:58:16 -04:00
Eric Mc Sween c9590c8cfa Use _.once() instead of ad hoc implementation 2020-09-03 15:52:09 -04:00
Eric Mc Sween d9b25cdb18 Fix container monitor cleanup function
The intent here is clearly to clear both the timeout and the interval.
2020-09-03 15:50:45 -04:00
Eric Mc Sween faad50ff4c Decaf cleanup: simplify variable declarations 2020-09-03 15:50:12 -04:00
Eric Mc Sween c8371a8ea7 Do not instantiate errors at module load time
This prevents the right stack trace from being captured.
2020-09-03 15:34:19 -04:00
Eric Mc Sween 1708e29faf Decaf cleanup: unused vars 2020-09-03 15:30:07 -04:00
Eric Mc Sween 5b92439356 Decaf cleanup: convert async function to sync
The examineOldContainer() function doesn't need to use callbacks since
it only does synchronous work.
2020-09-03 15:13:04 -04:00
Eric Mc Sween d86a856997 Decaf cleanup: camel-case variables 2020-09-03 15:13:04 -04:00
Eric Mc Sween 2a31f8c8d7 Decaf cleanup: simplify null checks 2020-09-03 15:13:04 -04:00
Eric Mc Sween f2734c86ca Decaf cleanup: remove default callbacks 2020-09-03 15:13:04 -04:00
Eric Mc Sween 73cf107029 Decaf cleanup: remove IIFEs 2020-09-03 15:13:04 -04:00
Eric Mc Sween 92fbb9581e Decaf cleanup: remove __guard__ 2020-09-02 17:06:35 -04:00
Eric Mc Sween 9ab5738ae3 Decaf cleanup: remove unnecessary returns 2020-09-02 16:58:41 -04:00
Eric Mc Sween ca61354cfe Decaf cleanup: remove unnecessary Array.from() 2020-09-02 16:45:49 -04:00
Eric Mc Sween 9357d1e8fd Merge pull request #143 from overleaf/em-upgrade-node
Upgrade to local node:10.18.1 image
2020-02-04 11:58:32 -05:00
Eric Mc Sween 296f4cc2ff Upgrade to local node:10.18.1 image 2020-02-04 11:30:23 -05:00
Eric Mc Sween f285e08ee0 Merge pull request #138 from overleaf/em-hidden-output-files
Show output files in subfolders
2019-11-07 09:01:08 -05:00
Eric Mc Sween 7894269b8d Show output files in subfolders
This fixes a tiny regexp bug that prevents output files in subfolders
from being shown in the "Other logs & files" panel.

We also downgrade the corresponding log because it's very noisy and does
not indicate a problem.
2019-11-07 08:27:24 -05:00
Eric Mc Sween faca2c6976 Merge pull request #137 from overleaf/em-stackdriver-logging
Upgrade logging and metrics modules
2019-10-28 09:49:56 -04:00
Eric Mc Sween 10e9be3cd2 Upgrade logging and metrics modules
The new versions add the ability to send logs directly to Stackdriver.
2019-10-28 09:31:57 -04:00
Eric Mc Sween 2cd1f1b3d7 Merge pull request #133 from overleaf/em-send-output-files-on-timeout
Send output files on timeout
2019-10-23 08:21:24 -04:00
Eric Mc Sween 775306aa63 Send output files on timeout
The unconventional use of callbacks to return both an error and data
after compilation created a subtle bug where the output files were
dropped by the LockManager in case of an error such as a timeout.

This prevented the frontend to show error logs when a timeout occurs,
creating confusion among users.

We now attach the output files to the error so that they reach the
controller and are sent back to the web service.
2019-10-22 16:31:37 -04:00