[clsi] prepare for clsi-cache survey (#29274)

* [clsi] add stats and timings to compile response from clsi-cache

* [clsi] set downloadedFromCache when previously downloaded for synctex

Assumption: every compile will emit an output.log. When the output.log
is missing, but the output.synctex.gz exists, it must have been
downloaded from the cache.
GitOrigin-RevId: 41ea34880931e3c43dda3bc9eb26c0d02054894d
This commit is contained in:
Jakob Ackermann
2025-10-22 14:53:26 +02:00
committed by Copybot
parent a0ad073785
commit 02391c6c51
5 changed files with 31 additions and 1 deletions

View File

@@ -561,6 +561,13 @@ async function _runSynctex(projectId, userId, command, opts) {
let downloadedFromCache = false
try {
await _checkFileExists(directory, 'output.synctex.gz')
if (compileFromClsiCache) {
try {
await _checkFileExists(directory, 'output.log')
} catch (err) {
if (err instanceof Errors.NotFoundError) downloadedFromCache = true
}
}
} catch (err) {
if (
err instanceof Errors.NotFoundError &&