mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-03 22:29:01 +02:00
dbf6401f22
* [monorepo] move retries from the outside to the per-test level * [web] increase hookTimeout in CI * [monorepo] consolidate test retries - do not retry unit tests - only retry in ci, optionally locally with "RETRIES=3 make test..." - add retries for web Co-authored-by: Eric Mc Sween <eric.mcsween@overleaf.com> --------- Co-authored-by: Eric Mc Sween <eric.mcsween@overleaf.com> GitOrigin-RevId: 86e45edcfb087d18e0e957ad6df9a6105dcd5770
53 lines
1.8 KiB
YAML
53 lines
1.8 KiB
YAML
# This file was auto-generated, do not edit it directly.
|
|
# Instead run bin/update_build_scripts from
|
|
# https://github.com/overleaf/internal/
|
|
|
|
services:
|
|
test_unit:
|
|
image: ci/$PROJECT_NAME:$BRANCH_NAME-$BUILD_NUMBER
|
|
volumes:
|
|
- ./reports:/overleaf/services/clsi/reports
|
|
- ../../tsconfig.backend.json:/overleaf/tsconfig.backend.json
|
|
command: npm run test:unit:_run
|
|
environment:
|
|
CI:
|
|
MONGO_CONNECTION_STRING: mongodb://mongo/test-overleaf
|
|
NODE_ENV: test
|
|
NODE_OPTIONS: "--unhandled-rejections=strict"
|
|
VITEST_NO_CACHE: true
|
|
|
|
test_acceptance:
|
|
build: .
|
|
image: ci/$PROJECT_NAME:$BRANCH_NAME-$BUILD_NUMBER
|
|
environment:
|
|
CI:
|
|
RETRIES:
|
|
MONGO_HOST: mongo
|
|
POSTGRES_HOST: postgres
|
|
MOCHA_GREP: ${MOCHA_GREP}
|
|
NODE_ENV: test
|
|
NODE_OPTIONS: "--unhandled-rejections=strict"
|
|
ALLOWED_COMPILE_GROUPS: "clsi-perf simple-latex-file"
|
|
ENABLE_PDF_CACHING: "true"
|
|
PDF_CACHING_ENABLE_WORKER_POOL: "true"
|
|
ALLOWED_IMAGES: quay.io/sharelatex/texlive-full:2025.1
|
|
TEXLIVE_IMAGE: quay.io/sharelatex/texlive-full:2025.1
|
|
TEX_LIVE_IMAGE_NAME_OVERRIDE: us-east1-docker.pkg.dev/overleaf-ops/ol-docker
|
|
TEXLIVE_IMAGE_USER: "tex"
|
|
SANDBOXED_COMPILES: "true"
|
|
SANDBOXED_COMPILES_HOST_DIR_COMPILES: $PWD/compiles
|
|
SANDBOXED_COMPILES_HOST_DIR_OUTPUT: $PWD/output
|
|
volumes:
|
|
- ./reports:/overleaf/services/clsi/reports
|
|
- ./compiles:/overleaf/services/clsi/compiles
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
command: npm run test:acceptance
|
|
|
|
tar:
|
|
build: .
|
|
image: ci/$PROJECT_NAME:$BRANCH_NAME-$BUILD_NUMBER
|
|
volumes:
|
|
- ./:/tmp/build/
|
|
command: tar -czf /tmp/build/build.tar.gz --exclude=build.tar.gz --exclude-vcs .
|
|
user: root
|