mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2025-07-23 23:00:08 +02:00

* [clsi-cache] initial revision of the clsi-cache service * [clsi] send output files to clsi-cache and import from clsi-cache * [web] pass editorId to clsi * [web] clear clsi-cache when clearing clsi cache * [web] add split-tests for controlling clsi-cache rollout * [web] populate clsi-cache when cloning/creating project from template * [clsi-cache] produce less noise when populating cache hits 404 * [clsi-cache] push docker image to AR * [clsi-cache] push docker image to AR * [clsi-cache] allow compileGroup in job payload * [clsi-cache] set X-Zone header from latest endpoint * [clsi-cache] use method POST for /enqueue endpoint * [web] populate clsi-cache in zone b with template data * [clsi-cache] limit number of editors per project/user folder to 10 * [web] clone: populate the clsi-cache unless the TeXLive release changed * [clsi-cache] keep user folder when clearing cache as anonymous user * [clsi] download old output.tar.gz when synctex finds empty compile dir * [web] fix lint * [clsi-cache] multi-zonal lookup of single build output * [clsi-cache] add more validation and limits Co-authored-by: Brian Gough <brian.gough@overleaf.com> * [clsi] do not include clsi-cache tar-ball in output.zip * [clsi-cache] fix reference after remaining constant Co-authored-by: Alf Eaton <alf.eaton@overleaf.com> * [web] consolidate validation of filename into ClsiCacheHandler * [clsi-cache] extend metrics and event tracking - break down most of the clsi metrics by label - compile=initial - new compile dir without previous output files - compile=recompile - recompile in existing compile dir - compile=from-cache - compile using previous clsi-cache - extend segmentation on compile-result-backend event - isInitialCompile=true - found new compile dir at start of request - restoredClsiCache=true - restored compile dir from clsi-cache * [clsi] rename metrics labels for download of clsi-cache This is in preparation for synctex changes. * [clsi] use constant for limit of entries in output.tar.gz Co-authored-by: Eric Mc Sween <eric.mcsween@overleaf.com> * [clsi-cache] fix cloning of project cache --------- Co-authored-by: Brian Gough <brian.gough@overleaf.com> Co-authored-by: Alf Eaton <alf.eaton@overleaf.com> Co-authored-by: Eric Mc Sween <eric.mcsween@overleaf.com> GitOrigin-RevId: 4901a65497af13be1549af7f38ceee3188fcf881
49 lines
1.3 KiB
JavaScript
49 lines
1.3 KiB
JavaScript
/* eslint-disable
|
|
no-proto,
|
|
no-unused-vars,
|
|
*/
|
|
// TODO: This file was created by bulk-decaffeinate.
|
|
// Fix any style issues and re-enable lint.
|
|
const OError = require('@overleaf/o-error')
|
|
|
|
let Errors
|
|
function NotFoundError(message) {
|
|
const error = new Error(message)
|
|
error.name = 'NotFoundError'
|
|
error.__proto__ = NotFoundError.prototype
|
|
return error
|
|
}
|
|
NotFoundError.prototype.__proto__ = Error.prototype
|
|
|
|
function FilesOutOfSyncError(message) {
|
|
const error = new Error(message)
|
|
error.name = 'FilesOutOfSyncError'
|
|
error.__proto__ = FilesOutOfSyncError.prototype
|
|
return error
|
|
}
|
|
FilesOutOfSyncError.prototype.__proto__ = Error.prototype
|
|
|
|
function AlreadyCompilingError(message) {
|
|
const error = new Error(message)
|
|
error.name = 'AlreadyCompilingError'
|
|
error.__proto__ = AlreadyCompilingError.prototype
|
|
return error
|
|
}
|
|
AlreadyCompilingError.prototype.__proto__ = Error.prototype
|
|
|
|
class QueueLimitReachedError extends OError {}
|
|
class TimedOutError extends OError {}
|
|
class NoXrefTableError extends OError {}
|
|
class TooManyCompileRequestsError extends OError {}
|
|
class InvalidParameter extends OError {}
|
|
|
|
module.exports = Errors = {
|
|
QueueLimitReachedError,
|
|
TimedOutError,
|
|
NotFoundError,
|
|
FilesOutOfSyncError,
|
|
AlreadyCompilingError,
|
|
NoXrefTableError,
|
|
TooManyCompileRequestsError,
|
|
InvalidParameter,
|
|
}
|