Merge pull request #12658 from overleaf/bg-node-18-upgrade

Upgrade to node 18

GitOrigin-RevId: 1b25d20a8987950a72a7bf966a825794de4ad960
This commit is contained in:
Brian Gough 2023-04-19 10:01:25 +01:00 committed by Copybot
parent df300b5f24
commit ed0acd8e58
71 changed files with 132 additions and 120 deletions

View file

@ -1 +1 @@
16.17.1 18.16.0

View file

@ -4,6 +4,6 @@ access-token-encryptor
--env-add= --env-add=
--env-pass-through= --env-pass-through=
--is-library=True --is-library=True
--node-version=16.17.1 --node-version=18.16.0
--public-repo=False --public-repo=False
--script-version=4.1.0 --script-version=4.1.0

View file

@ -1 +1 @@
16.17.1 18.16.0

View file

@ -4,6 +4,6 @@ logger
--env-add= --env-add=
--env-pass-through= --env-pass-through=
--is-library=True --is-library=True
--node-version=16.17.1 --node-version=18.16.0
--public-repo=False --public-repo=False
--script-version=4.1.0 --script-version=4.1.0

View file

@ -1 +1 @@
16.17.1 18.16.0

View file

@ -4,6 +4,6 @@ metrics
--env-add= --env-add=
--env-pass-through= --env-pass-through=
--is-library=True --is-library=True
--node-version=16.17.1 --node-version=18.16.0
--public-repo=False --public-repo=False
--script-version=4.1.0 --script-version=4.1.0

View file

@ -1 +1 @@
16.17.1 18.16.0

View file

@ -4,6 +4,6 @@ o-error
--env-add= --env-add=
--env-pass-through= --env-pass-through=
--is-library=True --is-library=True
--node-version=16.17.1 --node-version=18.16.0
--public-repo=False --public-repo=False
--script-version=4.1.0 --script-version=4.1.0

View file

@ -1 +1 @@
16.17.1 18.16.0

View file

@ -4,6 +4,6 @@ object-persistor
--env-add= --env-add=
--env-pass-through= --env-pass-through=
--is-library=True --is-library=True
--node-version=16.17.1 --node-version=18.16.0
--public-repo=False --public-repo=False
--script-version=4.1.0 --script-version=4.1.0

View file

@ -1 +1 @@
16.17.1 18.16.0

View file

@ -4,6 +4,6 @@ overleaf-editor-core
--env-add= --env-add=
--env-pass-through= --env-pass-through=
--is-library=True --is-library=True
--node-version=16.17.1 --node-version=18.16.0
--public-repo=False --public-repo=False
--script-version=4.1.0 --script-version=4.1.0

View file

@ -1 +1 @@
16.17.1 18.16.0

View file

@ -4,6 +4,6 @@ redis-wrapper
--env-add= --env-add=
--env-pass-through= --env-pass-through=
--is-library=True --is-library=True
--node-version=16.17.1 --node-version=18.16.0
--public-repo=False --public-repo=False
--script-version=4.1.0 --script-version=4.1.0

View file

@ -1 +1 @@
16.17.1 18.16.0

View file

@ -4,6 +4,6 @@ settings
--env-add= --env-add=
--env-pass-through= --env-pass-through=
--is-library=True --is-library=True
--node-version=16.17.1 --node-version=18.16.0
--public-repo=False --public-repo=False
--script-version=4.1.0 --script-version=4.1.0

38
package-lock.json generated
View file

@ -15550,13 +15550,13 @@
"dev": true "dev": true
}, },
"node_modules/eslint-plugin-mocha": { "node_modules/eslint-plugin-mocha": {
"version": "10.0.4", "version": "10.1.0",
"resolved": "https://registry.npmjs.org/eslint-plugin-mocha/-/eslint-plugin-mocha-10.0.4.tgz", "resolved": "https://registry.npmjs.org/eslint-plugin-mocha/-/eslint-plugin-mocha-10.1.0.tgz",
"integrity": "sha512-8wzAeepVY027oBHz/TmBmUr7vhVqoC1KTFeDybFLhbaWKx+aQ7fJJVuUsqcUy+L+G+XvgQBJY+cbAf7hl5DF7Q==", "integrity": "sha512-xLqqWUF17llsogVOC+8C6/jvQ+4IoOREbN7ZCHuOHuD6cT5cDD4h7f2LgsZuzMAiwswWE21tO7ExaknHVDrSkw==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"eslint-utils": "^3.0.0", "eslint-utils": "^3.0.0",
"ramda": "^0.28.0" "rambda": "^7.1.0"
}, },
"engines": { "engines": {
"node": ">=14.0.0" "node": ">=14.0.0"
@ -27042,15 +27042,11 @@
"node": ">=4" "node": ">=4"
} }
}, },
"node_modules/ramda": { "node_modules/rambda": {
"version": "0.28.0", "version": "7.5.0",
"resolved": "https://registry.npmjs.org/ramda/-/ramda-0.28.0.tgz", "resolved": "https://registry.npmjs.org/rambda/-/rambda-7.5.0.tgz",
"integrity": "sha512-9QnLuG/kPVgWvMQ4aODhsBUFKOUmnbUnsSXACv+NCQZcHbeb+v8Lodp8OVxtRULN1/xOyYLLaL6npE6dMq5QTA==", "integrity": "sha512-y/M9weqWAH4iopRd7EHDEQQvpFPHj1AA3oHozE9tfITHUtTR7Z9PSlIRRG2l1GuW7sefC1cXFfIcF+cgnShdBA==",
"dev": true, "dev": true
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/ramda"
}
}, },
"node_modules/random-bytes": { "node_modules/random-bytes": {
"version": "1.0.0", "version": "1.0.0",
@ -53039,13 +53035,13 @@
} }
}, },
"eslint-plugin-mocha": { "eslint-plugin-mocha": {
"version": "10.0.4", "version": "10.1.0",
"resolved": "https://registry.npmjs.org/eslint-plugin-mocha/-/eslint-plugin-mocha-10.0.4.tgz", "resolved": "https://registry.npmjs.org/eslint-plugin-mocha/-/eslint-plugin-mocha-10.1.0.tgz",
"integrity": "sha512-8wzAeepVY027oBHz/TmBmUr7vhVqoC1KTFeDybFLhbaWKx+aQ7fJJVuUsqcUy+L+G+XvgQBJY+cbAf7hl5DF7Q==", "integrity": "sha512-xLqqWUF17llsogVOC+8C6/jvQ+4IoOREbN7ZCHuOHuD6cT5cDD4h7f2LgsZuzMAiwswWE21tO7ExaknHVDrSkw==",
"dev": true, "dev": true,
"requires": { "requires": {
"eslint-utils": "^3.0.0", "eslint-utils": "^3.0.0",
"ramda": "^0.28.0" "rambda": "^7.1.0"
}, },
"dependencies": { "dependencies": {
"eslint-utils": { "eslint-utils": {
@ -62174,10 +62170,10 @@
"resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-1.1.0.tgz", "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-1.1.0.tgz",
"integrity": "sha1-Q2CxfGETatOAeDl/8RQW4Ybc+7g=" "integrity": "sha1-Q2CxfGETatOAeDl/8RQW4Ybc+7g="
}, },
"ramda": { "rambda": {
"version": "0.28.0", "version": "7.5.0",
"resolved": "https://registry.npmjs.org/ramda/-/ramda-0.28.0.tgz", "resolved": "https://registry.npmjs.org/rambda/-/rambda-7.5.0.tgz",
"integrity": "sha512-9QnLuG/kPVgWvMQ4aODhsBUFKOUmnbUnsSXACv+NCQZcHbeb+v8Lodp8OVxtRULN1/xOyYLLaL6npE6dMq5QTA==", "integrity": "sha512-y/M9weqWAH4iopRd7EHDEQQvpFPHj1AA3oHozE9tfITHUtTR7Z9PSlIRRG2l1GuW7sefC1cXFfIcF+cgnShdBA==",
"dev": true "dev": true
}, },
"random-bytes": { "random-bytes": {

View file

@ -1 +1 @@
16.17.1 18.16.0

View file

@ -2,7 +2,7 @@
# Instead run bin/update_build_scripts from # Instead run bin/update_build_scripts from
# https://github.com/overleaf/internal/ # https://github.com/overleaf/internal/
FROM node:16.17.1 as base FROM node:18.16.0 as base
WORKDIR /overleaf/services/chat WORKDIR /overleaf/services/chat

View file

@ -3,6 +3,6 @@ chat
--docker-repos=gcr.io/overleaf-ops --docker-repos=gcr.io/overleaf-ops
--env-add= --env-add=
--env-pass-through= --env-pass-through=
--node-version=16.17.1 --node-version=18.16.0
--public-repo=False --public-repo=False
--script-version=4.1.0 --script-version=4.1.0

View file

@ -6,7 +6,7 @@ version: "2.3"
services: services:
test_unit: test_unit:
image: node:16.17.1 image: node:18.16.0
volumes: volumes:
- .:/overleaf/services/chat - .:/overleaf/services/chat
- ../../node_modules:/overleaf/node_modules - ../../node_modules:/overleaf/node_modules
@ -20,7 +20,7 @@ services:
user: node user: node
test_acceptance: test_acceptance:
image: node:16.17.1 image: node:18.16.0
volumes: volumes:
- .:/overleaf/services/chat - .:/overleaf/services/chat
- ../../node_modules:/overleaf/node_modules - ../../node_modules:/overleaf/node_modules

View file

@ -1 +1 @@
16.17.1 18.16.0

View file

@ -2,7 +2,7 @@
# Instead run bin/update_build_scripts from # Instead run bin/update_build_scripts from
# https://github.com/overleaf/internal/ # https://github.com/overleaf/internal/
FROM node:16.17.1 as base FROM node:18.16.0 as base
WORKDIR /overleaf/services/clsi WORKDIR /overleaf/services/clsi
COPY services/clsi/install_deps.sh /overleaf/services/clsi/ COPY services/clsi/install_deps.sh /overleaf/services/clsi/

View file

@ -5,6 +5,6 @@ clsi
--env-add=ENABLE_PDF_CACHING="true",PDF_CACHING_ENABLE_WORKER_POOL="true" --env-add=ENABLE_PDF_CACHING="true",PDF_CACHING_ENABLE_WORKER_POOL="true"
--env-pass-through=TEXLIVE_IMAGE --env-pass-through=TEXLIVE_IMAGE
--has-custom-cloudbuild=True --has-custom-cloudbuild=True
--node-version=16.17.1 --node-version=18.16.0
--public-repo=True --public-repo=True
--script-version=4.1.0 --script-version=4.1.0

View file

@ -1 +1 @@
16.17.1 18.16.0

View file

@ -2,7 +2,7 @@
# Instead run bin/update_build_scripts from # Instead run bin/update_build_scripts from
# https://github.com/overleaf/internal/ # https://github.com/overleaf/internal/
FROM node:16.17.1 as base FROM node:18.16.0 as base
WORKDIR /overleaf/services/contacts WORKDIR /overleaf/services/contacts

View file

@ -3,6 +3,6 @@ contacts
--docker-repos=gcr.io/overleaf-ops --docker-repos=gcr.io/overleaf-ops
--env-add= --env-add=
--env-pass-through= --env-pass-through=
--node-version=16.17.1 --node-version=18.16.0
--public-repo=False --public-repo=False
--script-version=4.1.0 --script-version=4.1.0

View file

@ -6,7 +6,7 @@ version: "2.3"
services: services:
test_unit: test_unit:
image: node:16.17.1 image: node:18.16.0
volumes: volumes:
- .:/overleaf/services/contacts - .:/overleaf/services/contacts
- ../../node_modules:/overleaf/node_modules - ../../node_modules:/overleaf/node_modules
@ -20,7 +20,7 @@ services:
user: node user: node
test_acceptance: test_acceptance:
image: node:16.17.1 image: node:18.16.0
volumes: volumes:
- .:/overleaf/services/contacts - .:/overleaf/services/contacts
- ../../node_modules:/overleaf/node_modules - ../../node_modules:/overleaf/node_modules

View file

@ -1 +1 @@
16.17.1 18.16.0

View file

@ -2,7 +2,7 @@
# Instead run bin/update_build_scripts from # Instead run bin/update_build_scripts from
# https://github.com/overleaf/internal/ # https://github.com/overleaf/internal/
FROM node:16.17.1 as base FROM node:18.16.0 as base
WORKDIR /overleaf/services/docstore WORKDIR /overleaf/services/docstore

View file

@ -3,6 +3,6 @@ docstore
--docker-repos=gcr.io/overleaf-ops --docker-repos=gcr.io/overleaf-ops
--env-add= --env-add=
--env-pass-through= --env-pass-through=
--node-version=16.17.1 --node-version=18.16.0
--public-repo=True --public-repo=True
--script-version=4.1.0 --script-version=4.1.0

View file

@ -6,7 +6,7 @@ version: "2.3"
services: services:
test_unit: test_unit:
image: node:16.17.1 image: node:18.16.0
volumes: volumes:
- .:/overleaf/services/docstore - .:/overleaf/services/docstore
- ../../node_modules:/overleaf/node_modules - ../../node_modules:/overleaf/node_modules
@ -20,7 +20,7 @@ services:
user: node user: node
test_acceptance: test_acceptance:
image: node:16.17.1 image: node:18.16.0
volumes: volumes:
- .:/overleaf/services/docstore - .:/overleaf/services/docstore
- ../../node_modules:/overleaf/node_modules - ../../node_modules:/overleaf/node_modules

View file

@ -1 +1 @@
16.17.1 18.16.0

View file

@ -2,7 +2,7 @@
# Instead run bin/update_build_scripts from # Instead run bin/update_build_scripts from
# https://github.com/overleaf/internal/ # https://github.com/overleaf/internal/
FROM node:16.17.1 as base FROM node:18.16.0 as base
WORKDIR /overleaf/services/document-updater WORKDIR /overleaf/services/document-updater

View file

@ -3,6 +3,6 @@ document-updater
--docker-repos=gcr.io/overleaf-ops --docker-repos=gcr.io/overleaf-ops
--env-add= --env-add=
--env-pass-through= --env-pass-through=
--node-version=16.17.1 --node-version=18.16.0
--public-repo=True --public-repo=True
--script-version=4.1.0 --script-version=4.1.0

View file

@ -6,7 +6,7 @@ version: "2.3"
services: services:
test_unit: test_unit:
image: node:16.17.1 image: node:18.16.0
volumes: volumes:
- .:/overleaf/services/document-updater - .:/overleaf/services/document-updater
- ../../node_modules:/overleaf/node_modules - ../../node_modules:/overleaf/node_modules
@ -20,7 +20,7 @@ services:
user: node user: node
test_acceptance: test_acceptance:
image: node:16.17.1 image: node:18.16.0
volumes: volumes:
- .:/overleaf/services/document-updater - .:/overleaf/services/document-updater
- ../../node_modules:/overleaf/node_modules - ../../node_modules:/overleaf/node_modules

View file

@ -1 +1 @@
16.17.1 18.16.0

View file

@ -2,7 +2,7 @@
# Instead run bin/update_build_scripts from # Instead run bin/update_build_scripts from
# https://github.com/overleaf/internal/ # https://github.com/overleaf/internal/
FROM node:16.17.1 as base FROM node:18.16.0 as base
WORKDIR /overleaf/services/filestore WORKDIR /overleaf/services/filestore
COPY services/filestore/install_deps.sh /overleaf/services/filestore/ COPY services/filestore/install_deps.sh /overleaf/services/filestore/

View file

@ -4,6 +4,6 @@ filestore
--docker-repos=gcr.io/overleaf-ops --docker-repos=gcr.io/overleaf-ops
--env-add=ENABLE_CONVERSIONS="true",USE_PROM_METRICS="true",AWS_S3_USER_FILES_BUCKET_NAME=fake_user_files,AWS_S3_TEMPLATE_FILES_BUCKET_NAME=fake_template_files,AWS_S3_PUBLIC_FILES_BUCKET_NAME=fake_public_files,GCS_USER_FILES_BUCKET_NAME=fake_userfiles,GCS_TEMPLATE_FILES_BUCKET_NAME=fake_templatefiles,GCS_PUBLIC_FILES_BUCKET_NAME=fake_publicfiles --env-add=ENABLE_CONVERSIONS="true",USE_PROM_METRICS="true",AWS_S3_USER_FILES_BUCKET_NAME=fake_user_files,AWS_S3_TEMPLATE_FILES_BUCKET_NAME=fake_template_files,AWS_S3_PUBLIC_FILES_BUCKET_NAME=fake_public_files,GCS_USER_FILES_BUCKET_NAME=fake_userfiles,GCS_TEMPLATE_FILES_BUCKET_NAME=fake_templatefiles,GCS_PUBLIC_FILES_BUCKET_NAME=fake_publicfiles
--env-pass-through= --env-pass-through=
--node-version=16.17.1 --node-version=18.16.0
--public-repo=True --public-repo=True
--script-version=4.1.0 --script-version=4.1.0

View file

@ -13,11 +13,9 @@ const streamifier = require('streamifier')
chai.use(require('chai-as-promised')) chai.use(require('chai-as-promised'))
const { ObjectId } = require('mongodb') const { ObjectId } = require('mongodb')
const tk = require('timekeeper') const tk = require('timekeeper')
const ChildProcess = require('child_process')
const fsWriteFile = promisify(fs.writeFile) const fsWriteFile = promisify(fs.writeFile)
const fsStat = promisify(fs.stat) const fsStat = promisify(fs.stat)
const exec = promisify(ChildProcess.exec)
const msleep = promisify(setTimeout) const msleep = promisify(setTimeout)
if (!process.env.AWS_ACCESS_KEY_ID) { if (!process.env.AWS_ACCESS_KEY_ID) {
@ -42,19 +40,24 @@ describe('Filestore', function () {
async function expectNoSockets() { async function expectNoSockets() {
try { try {
await msleep(1000) await msleep(1000)
const { stdout } = await exec('ss -tnH') const stdout = await fs.promises.readFile('/proc/net/tcp', 'utf8')
const badSockets = [] const badSockets = []
for (const socket of stdout.split('\n')) { const lines = stdout.split('\n').map(line => line.trim().split(/\s+/))
const fields = socket.split(' ').filter(part => part !== '') const header = lines.shift()
if ( if (header[4] === 'tx_queue' && header[5] === 'rx_queue') {
fields.length > 2 && for (const socket of lines) {
parseInt(fields[1]) && if (
!seenSockets.includes(socket) socket.length > 5 &&
) { socket[4] !== '00000000:00000000' && // ensure the socket queues are empty
badSockets.push(socket) !seenSockets.includes(socket)
seenSockets.push(socket) ) {
console.log('socket still has data', socket)
badSockets.push(socket)
seenSockets.push(socket)
}
} }
} else {
throw new Error('unexpected format in /proc/net/tcp')
} }
if (badSockets.length) { if (badSockets.length) {

View file

@ -1 +1 @@
16.17.1 18.16.0

View file

@ -2,7 +2,7 @@
# Instead run bin/update_build_scripts from # Instead run bin/update_build_scripts from
# https://github.com/overleaf/internal/ # https://github.com/overleaf/internal/
FROM node:16.17.1 as base FROM node:18.16.0 as base
WORKDIR /overleaf/services/history-v1 WORKDIR /overleaf/services/history-v1

View file

@ -3,6 +3,6 @@ history-v1
--docker-repos=gcr.io/overleaf-ops --docker-repos=gcr.io/overleaf-ops
--env-add= --env-add=
--env-pass-through= --env-pass-through=
--node-version=16.17.1 --node-version=18.16.0
--public-repo=False --public-repo=False
--script-version=4.1.0 --script-version=4.1.0

View file

@ -6,7 +6,7 @@ version: "2.3"
services: services:
test_unit: test_unit:
image: node:16.17.1 image: node:18.16.0
volumes: volumes:
- .:/overleaf/services/history-v1 - .:/overleaf/services/history-v1
- ../../node_modules:/overleaf/node_modules - ../../node_modules:/overleaf/node_modules
@ -20,7 +20,7 @@ services:
user: node user: node
test_acceptance: test_acceptance:
image: node:16.17.1 image: node:18.16.0
volumes: volumes:
- .:/overleaf/services/history-v1 - .:/overleaf/services/history-v1
- ../../node_modules:/overleaf/node_modules - ../../node_modules:/overleaf/node_modules

View file

@ -1 +1 @@
16.17.1 18.16.0

View file

@ -2,7 +2,7 @@
# Instead run bin/update_build_scripts from # Instead run bin/update_build_scripts from
# https://github.com/overleaf/internal/ # https://github.com/overleaf/internal/
FROM node:16.17.1 as base FROM node:18.16.0 as base
WORKDIR /overleaf/services/notifications WORKDIR /overleaf/services/notifications

View file

@ -3,6 +3,6 @@ notifications
--docker-repos=gcr.io/overleaf-ops --docker-repos=gcr.io/overleaf-ops
--env-add= --env-add=
--env-pass-through= --env-pass-through=
--node-version=16.17.1 --node-version=18.16.0
--public-repo=True --public-repo=True
--script-version=4.1.0 --script-version=4.1.0

View file

@ -6,7 +6,7 @@ version: "2.3"
services: services:
test_unit: test_unit:
image: node:16.17.1 image: node:18.16.0
volumes: volumes:
- .:/overleaf/services/notifications - .:/overleaf/services/notifications
- ../../node_modules:/overleaf/node_modules - ../../node_modules:/overleaf/node_modules
@ -20,7 +20,7 @@ services:
user: node user: node
test_acceptance: test_acceptance:
image: node:16.17.1 image: node:18.16.0
volumes: volumes:
- .:/overleaf/services/notifications - .:/overleaf/services/notifications
- ../../node_modules:/overleaf/node_modules - ../../node_modules:/overleaf/node_modules

View file

@ -1 +1 @@
16.17.1 18.16.0

View file

@ -2,7 +2,7 @@
# Instead run bin/update_build_scripts from # Instead run bin/update_build_scripts from
# https://github.com/overleaf/internal/ # https://github.com/overleaf/internal/
FROM node:16.17.1 as base FROM node:18.16.0 as base
WORKDIR /overleaf/services/project-history WORKDIR /overleaf/services/project-history

View file

@ -3,6 +3,6 @@ project-history
--docker-repos=gcr.io/overleaf-ops --docker-repos=gcr.io/overleaf-ops
--env-add= --env-add=
--env-pass-through= --env-pass-through=
--node-version=16.17.1 --node-version=18.16.0
--public-repo=False --public-repo=False
--script-version=4.1.0 --script-version=4.1.0

View file

@ -6,7 +6,7 @@ version: "2.3"
services: services:
test_unit: test_unit:
image: node:16.17.1 image: node:18.16.0
volumes: volumes:
- .:/overleaf/services/project-history - .:/overleaf/services/project-history
- ../../node_modules:/overleaf/node_modules - ../../node_modules:/overleaf/node_modules
@ -20,7 +20,7 @@ services:
user: node user: node
test_acceptance: test_acceptance:
image: node:16.17.1 image: node:18.16.0
volumes: volumes:
- .:/overleaf/services/project-history - .:/overleaf/services/project-history
- ../../node_modules:/overleaf/node_modules - ../../node_modules:/overleaf/node_modules

View file

@ -1 +1 @@
16.17.1 18.16.0

View file

@ -2,7 +2,7 @@
# Instead run bin/update_build_scripts from # Instead run bin/update_build_scripts from
# https://github.com/overleaf/internal/ # https://github.com/overleaf/internal/
FROM node:16.17.1 as base FROM node:18.16.0 as base
WORKDIR /overleaf/services/real-time WORKDIR /overleaf/services/real-time

View file

@ -3,6 +3,6 @@ real-time
--docker-repos=gcr.io/overleaf-ops --docker-repos=gcr.io/overleaf-ops
--env-add= --env-add=
--env-pass-through= --env-pass-through=
--node-version=16.17.1 --node-version=18.16.0
--public-repo=True --public-repo=True
--script-version=4.1.0 --script-version=4.1.0

View file

@ -6,7 +6,7 @@ version: "2.3"
services: services:
test_unit: test_unit:
image: node:16.17.1 image: node:18.16.0
volumes: volumes:
- .:/overleaf/services/real-time - .:/overleaf/services/real-time
- ../../node_modules:/overleaf/node_modules - ../../node_modules:/overleaf/node_modules
@ -20,7 +20,7 @@ services:
user: node user: node
test_acceptance: test_acceptance:
image: node:16.17.1 image: node:18.16.0
volumes: volumes:
- .:/overleaf/services/real-time - .:/overleaf/services/real-time
- ../../node_modules:/overleaf/node_modules - ../../node_modules:/overleaf/node_modules

View file

@ -1 +1 @@
16.17.1 18.16.0

View file

@ -2,7 +2,7 @@
# Instead run bin/update_build_scripts from # Instead run bin/update_build_scripts from
# https://github.com/overleaf/internal/ # https://github.com/overleaf/internal/
FROM node:16.17.1 as base FROM node:18.16.0 as base
WORKDIR /overleaf/services/spelling WORKDIR /overleaf/services/spelling
COPY services/spelling/install_deps.sh /overleaf/services/spelling/ COPY services/spelling/install_deps.sh /overleaf/services/spelling/

View file

@ -4,6 +4,6 @@ spelling
--docker-repos=gcr.io/overleaf-ops --docker-repos=gcr.io/overleaf-ops
--env-add= --env-add=
--env-pass-through= --env-pass-through=
--node-version=16.17.1 --node-version=18.16.0
--public-repo=False --public-repo=False
--script-version=4.1.0 --script-version=4.1.0

View file

@ -3,7 +3,7 @@
set -ex set -ex
# Prefer Debian packages over Ubuntu packages # Prefer Debian packages over Ubuntu packages
echo 'APT::Default-Release "buster";' >/etc/apt/apt.conf.d/default-release echo 'APT::Default-Release "bullseye";' >/etc/apt/apt.conf.d/default-release
# The following aspell packages exist in Ubuntu but not Debian: # The following aspell packages exist in Ubuntu but not Debian:
# aspell-af, aspell-id, aspell-nr, aspell-ns, aspell-st, aspell-tn, aspell-ts, aspell-xh # aspell-af, aspell-id, aspell-nr, aspell-ns, aspell-st, aspell-tn, aspell-ts, aspell-xh
@ -11,11 +11,5 @@ echo "deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ focal main universe" >
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ focal main universe" > /etc/apt/sources.list.d/focal-ports-arm.list echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ focal main universe" > /etc/apt/sources.list.d/focal-ports-arm.list
apt-key adv --no-tty --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32 apt-key adv --no-tty --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
# aspell-pt-pt is broken in buster, we'll obtain it from bullseye
echo "deb http://deb.debian.org/debian bullseye main" > /etc/apt/sources.list.d/bullseye.list
apt-get update apt-get update
apt-get install -y aspell aspell-en aspell-af aspell-ar aspell-ar-large aspell-bg aspell-br aspell-ca aspell-cs aspell-cy aspell-da aspell-de aspell-de-1901 aspell-el aspell-eo aspell-es aspell-et aspell-eu-es aspell-fa aspell-fo aspell-fr aspell-ga aspell-gl-minimos aspell-hr aspell-hsb aspell-id aspell-it aspell-kk aspell-ku aspell-lt aspell-lv aspell-nl aspell-no aspell-nr aspell-ns aspell-pa aspell-pl aspell-pt-br aspell-ro aspell-ru aspell-sk aspell-sl aspell-st aspell-sv aspell-tl aspell-tn aspell-ts aspell-xh apt-get install -y aspell aspell-en aspell-af aspell-ar aspell-ar-large aspell-bg aspell-br aspell-ca aspell-cs aspell-cy aspell-da aspell-de aspell-de-1901 aspell-el aspell-eo aspell-es aspell-et aspell-eu-es aspell-fa aspell-fo aspell-fr aspell-ga aspell-gl-minimos aspell-hr aspell-hsb aspell-id aspell-it aspell-kk aspell-ku aspell-lt aspell-lv aspell-nl aspell-no aspell-nr aspell-ns aspell-pa aspell-pl aspell-pt-br aspell-pt-pt aspell-ro aspell-ru aspell-sk aspell-sl aspell-st aspell-sv aspell-tl aspell-tn aspell-ts aspell-xh
# aspell-pt-pt is broken in buster. Install it from bullseye
apt-get install -y -t bullseye aspell-pt-pt

View file

@ -27,7 +27,26 @@ describe('checking words', function () {
it('should return the list of misspellings', async function () { it('should return the list of misspellings', async function () {
const body = JSON.parse(response.body) const body = JSON.parse(response.body)
expect(body).to.deep.equal({ expect(body).to.deep.equal({
misspellings: [{ index: 0, suggestions: ['anther', 'another'] }], misspellings: [
{
index: 0,
suggestions: [
'anther',
'another',
'anthers',
'panther',
'anathema',
'anthem',
'nether',
"anther's",
'ante',
'neither',
'norther',
'ether',
'other',
],
},
],
}) })
}) })
}) })

View file

@ -1 +1 @@
16.17.1 18.16.0

View file

@ -2,7 +2,7 @@
# Instead run bin/update_build_scripts from # Instead run bin/update_build_scripts from
# https://github.com/overleaf/internal/ # https://github.com/overleaf/internal/
FROM node:16.17.1 as base FROM node:18.16.0 as base
WORKDIR /overleaf/services/track-changes WORKDIR /overleaf/services/track-changes

View file

@ -3,6 +3,6 @@ track-changes
--docker-repos=gcr.io/overleaf-ops --docker-repos=gcr.io/overleaf-ops
--env-add=AWS_BUCKET=bucket --env-add=AWS_BUCKET=bucket
--env-pass-through= --env-pass-through=
--node-version=16.17.1 --node-version=18.16.0
--public-repo=True --public-repo=True
--script-version=4.1.0 --script-version=4.1.0

View file

@ -6,7 +6,7 @@ version: "2.3"
services: services:
test_unit: test_unit:
image: node:16.17.1 image: node:18.16.0
volumes: volumes:
- .:/overleaf/services/track-changes - .:/overleaf/services/track-changes
- ../../node_modules:/overleaf/node_modules - ../../node_modules:/overleaf/node_modules
@ -20,7 +20,7 @@ services:
user: node user: node
test_acceptance: test_acceptance:
image: node:16.17.1 image: node:18.16.0
volumes: volumes:
- .:/overleaf/services/track-changes - .:/overleaf/services/track-changes
- ../../node_modules:/overleaf/node_modules - ../../node_modules:/overleaf/node_modules

View file

@ -1 +1 @@
16.17.1 18.16.0

View file

@ -1,6 +1,6 @@
# the base image is suitable for running web with /overleaf/services/web bind # the base image is suitable for running web with /overleaf/services/web bind
# mounted # mounted
FROM node:16.17.1 as base FROM node:18.16.0 as base
WORKDIR /overleaf/services/web WORKDIR /overleaf/services/web

View file

@ -1,4 +1,4 @@
FROM node:16.17.1 FROM node:18.16.0
# Install Google Chrome # Install Google Chrome
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -

View file

@ -41,5 +41,5 @@ SHARELATEX_SAML_UPDATE_USER_DETAILS_ON_LOGIN=true
SHARELATEX_SAML_CERT=MIIDXTCCAkWgAwIBAgIJAOvOeQ4xFTzsMA0GCSqGSIb3DQEBCwUAMEUxCzAJBgNVBAYTAkdCMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYD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Yndl7nD33snD/YqdU1ROxV6aJzLKCg+sdj+wRXSP2u/UHnM4jW9TGJfhO42jzL6WVuEvr9q4l7zWzUQKKKhtQ==
# DEVICE_HISTORY_SECRET has been generated using: # DEVICE_HISTORY_SECRET has been generated using:
# NOTE: crypto.generateKeySync was added in v15, v16 is the next LTS release. # NOTE: crypto.generateKeySync was added in v15, v16 is the next LTS release.
# $ docker run --rm node:16 --print 'require("crypto").generateKeySync("aes", { length: 256 }).export().toString("hex")' # $ docker run --rm node:18 --print 'require("crypto").generateKeySync("aes", { length: 256 }).export().toString("hex")'
DEVICE_HISTORY_SECRET=1b46e6cdf72db02845da06c9517c9cfbbfa0d87357479f4e1df3ce160bd54807 DEVICE_HISTORY_SECRET=1b46e6cdf72db02845da06c9517c9cfbbfa0d87357479f4e1df3ce160bd54807

View file

@ -6,7 +6,7 @@ volumes:
services: services:
test_unit: test_unit:
image: node:16.17.1 image: node:18.16.0
volumes: volumes:
- .:/overleaf/services/web - .:/overleaf/services/web
- ../../node_modules:/overleaf/node_modules - ../../node_modules:/overleaf/node_modules
@ -21,7 +21,7 @@ services:
user: node user: node
test_acceptance: test_acceptance:
image: node:16.17.1 image: node:18.16.0
volumes: volumes:
- .:/overleaf/services/web - .:/overleaf/services/web
- ../../node_modules:/overleaf/node_modules - ../../node_modules:/overleaf/node_modules

View file

@ -1,4 +1,4 @@
FROM node:16.17.1 FROM node:18.16.0
WORKDIR /app/scripts/translations WORKDIR /app/scripts/translations