Commit Graph

244 Commits

Author SHA1 Message Date
Eric Mc Sween dab6e9aa8e 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
Tailing Yuan 68e842b12a fix CompileManager and LocalCommandRunner 2019-10-04 23:02:03 +08:00
Shane Kilkelly 880ec16827 Increase the hard-timeout to 10 minutes.
In practice most projects will still be limited to five minutes,
but this allows us to bump up the limit for some projects,
especially legacy v1 projects that have been imported to v2
2019-06-06 16:39:16 +01:00
Michael Mazour 1ddf9283f2 Add flags option to request JSON
Adds a `flags` parameter to the request JSON, appearing under the `compile.options` key (alongside such stalwarts as `compiler`, `timeout`, etc.).

This is primarily to support `-file-line-error` as an option, but could have other uses as well.

`flags` should be an array of strings, or absent. If supplied, the listed arguments are added to the base latexmk command.
2019-05-14 16:24:34 +01:00
Henry Oswald 900e2f70b4 change console.log for logger.log 2019-03-22 20:42:26 +00:00
Brian Gough 038c81f868 use explicit json content-type to avoid security issues with text/html 2019-02-12 16:54:59 +00:00
Christopher Hoskin 3829732494 Fix broken spacing 2019-01-16 15:12:23 +00:00
Henry Oswald c67e88fcb3 have failed compiles warn rather than be an error 2018-11-23 15:10:35 +00:00
Brian Gough 55fa22caa9 fix exception when content undefined in TikzManager 2018-10-15 10:01:52 +01:00
Brian Gough 187786b4e4 improve log message 2018-10-12 10:49:54 +01:00
Brian Gough 34acce8bda use TikzManager to create main file for pstool package 2018-10-10 16:13:20 +01:00
Brian Gough 74dd560979 extend caching for tikz, minted and markdown files 2018-10-04 16:56:48 +01:00
Brian Gough 9870683ae8 Merge pull request #96 from sharelatex/bg-cache-eps-to-pdf-converted-files
cache pdf files generated by epstopdf
2018-09-11 13:31:26 +01:00
Henry Oswald 3fc3cd11f4 fix unit tests 2018-09-11 10:21:37 +01:00
Henry Oswald 4a7cbef3e5 Merge branch 'master' into ho-dockerise 2018-09-11 10:02:24 +01:00
Henry Oswald ce44fa3390 bump wordcount timeouts, taken from 82b996b145196711e439d7d7045f53498c1afa1a 2018-09-11 09:55:10 +01:00
Henry Oswald bec46504eb improve synctex logging 2018-09-11 09:51:20 +01:00
Brian Gough 5a635e5465 cache pdf files generated by epstopdf 2018-09-11 09:44:22 +01:00
Henry Oswald 905a761544 don't error on a bad synctex call 2018-08-23 11:32:50 +01:00
Henry Oswald 250f4a42f0 reduce log level 2018-08-23 11:16:28 +01:00
Henry Oswald 59638c261d fse.ensureDir when running synctex and wordcount 2018-08-23 08:34:18 +01:00
Henry Oswald 2aaadc6124 fix unit tests 2018-08-23 00:21:05 +01:00
Henry Oswald a80700f3e4 improve error reporting 2018-08-23 00:00:43 +01:00
Henry Oswald 6c0665bb49 change sync to async for lockfile debugging 2018-08-22 22:17:02 +01:00
Henry Oswald 40f4357cd6 fix sql query checking last access time 2018-08-22 18:21:15 +01:00
Henry Oswald 9f5fbefb8a add log on exited error code 2018-08-21 12:02:12 +01:00
Henry Oswald f0b927e8e2 improve error reporting 2018-08-20 10:12:32 +01:00
Henry Oswald e61907bf48 added loads of debugging 2018-08-19 11:38:27 +01:00
Henry Oswald 361eaf9217 comment out erroring log for moment 2018-08-01 14:32:17 +01:00
Henry Oswald 6f926007d2 null check host options 2018-08-01 14:10:22 +01:00
Henry Oswald 44c0922a5b reduce logging 2018-08-01 13:59:09 +01:00
Henry Oswald ac4d07352f make Settings.parallelSqlQueryLimit a config setting 2018-07-31 14:38:24 +01:00
Henry Oswald cd5bcdd7ca fix expired projects command 2018-07-30 17:37:30 +01:00
Henry Oswald f9754c4b95 fix missing cb’s 2018-07-30 17:01:59 +01:00
Henry Oswald 759988401b add db queue file for global db query queues 2018-07-30 16:46:47 +01:00
Henry Oswald 1080c2c428 added a queue with 1 concurency to db queries 2018-07-30 16:22:04 +01:00
Henry Oswald daf40fc757 added some debugging 2018-07-30 15:18:25 +01:00
Henry Oswald f2dfb718c6 add sync= off and read_uncommited=true to improve perf 2018-07-30 15:16:06 +01:00
Henry Oswald dc225f6aa3 remove some console.logs 2018-07-30 15:11:41 +01:00
Henry Oswald 1ef8ea328c remove password from clsi for sql
sequalise fails when it is set to null
2018-07-30 14:04:33 +01:00
Henry Oswald 65679af0cb dd wal logging 2018-07-26 16:12:26 +01:00
Henry Oswald e8c735e794 only set wal for sqlite 2018-07-17 12:53:07 +01:00
Henry Oswald d840246d29 add PRAGMA journal_mode=WAL; 2018-07-17 12:50:33 +01:00
Henry Oswald e46b6563c0 change override to leave image name so it works for wl_texlive 2018-07-16 17:25:14 +01:00
Henry Oswald 846c2b1e28 move texliveImageNameOveride further down request so it works for
compile tests
2018-07-13 11:52:49 +01:00
Henry Oswald c8d3c39bea quick hack to overright image name further down stack 2018-07-13 11:46:37 +01:00
Henry Oswald 4ec8a423cb added texliveImageNameOveride 2018-07-13 10:37:22 +01:00
Henry Oswald eb89ca1d3b added filestoreDomainOveride 2018-07-03 16:41:34 +01:00
Brian Gough b95317c8fe increase timeout on wordcount 2018-06-25 14:06:18 +01:00
Henry Oswald 4c96abd6c5 grep works with command
updated build scripts
acceptence tests break, files are written as root when user is node
2018-03-29 17:07:22 +01:00