Merge pull request #12723 from overleaf/jpa-revert-node-18-upgrade

[misc] revert node 18 upgrade

GitOrigin-RevId: 752d45b015e2e8802b875b5de8ee044ba1170345
This commit is contained in:
Jakob Ackermann
2023-04-20 14:14:00 +01:00
committed by Copybot
parent 98961d9465
commit 0b985c7a0b
45 changed files with 83 additions and 82 deletions
+1 -1
View File
@@ -1 +1 @@
18.16.0 16.17.1
@@ -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=18.16.0 --node-version=16.17.1
--public-repo=False --public-repo=False
--script-version=4.1.0 --script-version=4.1.0
+1 -1
View File
@@ -1 +1 @@
18.16.0 16.17.1
+1 -1
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=18.16.0 --node-version=16.17.1
--public-repo=False --public-repo=False
--script-version=4.1.0 --script-version=4.1.0
+1 -1
View File
@@ -1 +1 @@
18.16.0 16.17.1
+1 -1
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=18.16.0 --node-version=16.17.1
--public-repo=False --public-repo=False
--script-version=4.1.0 --script-version=4.1.0
+1 -1
View File
@@ -1 +1 @@
18.16.0 16.17.1
+1 -1
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=18.16.0 --node-version=16.17.1
--public-repo=False --public-repo=False
--script-version=4.1.0 --script-version=4.1.0
+1 -1
View File
@@ -1 +1 @@
18.16.0 16.17.1
+1 -1
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=18.16.0 --node-version=16.17.1
--public-repo=False --public-repo=False
--script-version=4.1.0 --script-version=4.1.0
+1 -1
View File
@@ -1 +1 @@
18.16.0 16.17.1
@@ -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=18.16.0 --node-version=16.17.1
--public-repo=False --public-repo=False
--script-version=4.1.0 --script-version=4.1.0
+1 -1
View File
@@ -1 +1 @@
18.16.0 16.17.1
+1 -1
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=18.16.0 --node-version=16.17.1
--public-repo=False --public-repo=False
--script-version=4.1.0 --script-version=4.1.0
+1 -1
View File
@@ -1 +1 @@
18.16.0 16.17.1
+1 -1
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=18.16.0 --node-version=16.17.1
--public-repo=False --public-repo=False
--script-version=4.1.0 --script-version=4.1.0
+21 -17
View File
@@ -15550,13 +15550,13 @@
"dev": true "dev": true
}, },
"node_modules/eslint-plugin-mocha": { "node_modules/eslint-plugin-mocha": {
"version": "10.1.0", "version": "10.0.4",
"resolved": "https://registry.npmjs.org/eslint-plugin-mocha/-/eslint-plugin-mocha-10.1.0.tgz", "resolved": "https://registry.npmjs.org/eslint-plugin-mocha/-/eslint-plugin-mocha-10.0.4.tgz",
"integrity": "sha512-xLqqWUF17llsogVOC+8C6/jvQ+4IoOREbN7ZCHuOHuD6cT5cDD4h7f2LgsZuzMAiwswWE21tO7ExaknHVDrSkw==", "integrity": "sha512-8wzAeepVY027oBHz/TmBmUr7vhVqoC1KTFeDybFLhbaWKx+aQ7fJJVuUsqcUy+L+G+XvgQBJY+cbAf7hl5DF7Q==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"eslint-utils": "^3.0.0", "eslint-utils": "^3.0.0",
"rambda": "^7.1.0" "ramda": "^0.28.0"
}, },
"engines": { "engines": {
"node": ">=14.0.0" "node": ">=14.0.0"
@@ -27042,11 +27042,15 @@
"node": ">=4" "node": ">=4"
} }
}, },
"node_modules/rambda": { "node_modules/ramda": {
"version": "7.5.0", "version": "0.28.0",
"resolved": "https://registry.npmjs.org/rambda/-/rambda-7.5.0.tgz", "resolved": "https://registry.npmjs.org/ramda/-/ramda-0.28.0.tgz",
"integrity": "sha512-y/M9weqWAH4iopRd7EHDEQQvpFPHj1AA3oHozE9tfITHUtTR7Z9PSlIRRG2l1GuW7sefC1cXFfIcF+cgnShdBA==", "integrity": "sha512-9QnLuG/kPVgWvMQ4aODhsBUFKOUmnbUnsSXACv+NCQZcHbeb+v8Lodp8OVxtRULN1/xOyYLLaL6npE6dMq5QTA==",
"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",
@@ -53035,13 +53039,13 @@
} }
}, },
"eslint-plugin-mocha": { "eslint-plugin-mocha": {
"version": "10.1.0", "version": "10.0.4",
"resolved": "https://registry.npmjs.org/eslint-plugin-mocha/-/eslint-plugin-mocha-10.1.0.tgz", "resolved": "https://registry.npmjs.org/eslint-plugin-mocha/-/eslint-plugin-mocha-10.0.4.tgz",
"integrity": "sha512-xLqqWUF17llsogVOC+8C6/jvQ+4IoOREbN7ZCHuOHuD6cT5cDD4h7f2LgsZuzMAiwswWE21tO7ExaknHVDrSkw==", "integrity": "sha512-8wzAeepVY027oBHz/TmBmUr7vhVqoC1KTFeDybFLhbaWKx+aQ7fJJVuUsqcUy+L+G+XvgQBJY+cbAf7hl5DF7Q==",
"dev": true, "dev": true,
"requires": { "requires": {
"eslint-utils": "^3.0.0", "eslint-utils": "^3.0.0",
"rambda": "^7.1.0" "ramda": "^0.28.0"
}, },
"dependencies": { "dependencies": {
"eslint-utils": { "eslint-utils": {
@@ -62170,10 +62174,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="
}, },
"rambda": { "ramda": {
"version": "7.5.0", "version": "0.28.0",
"resolved": "https://registry.npmjs.org/rambda/-/rambda-7.5.0.tgz", "resolved": "https://registry.npmjs.org/ramda/-/ramda-0.28.0.tgz",
"integrity": "sha512-y/M9weqWAH4iopRd7EHDEQQvpFPHj1AA3oHozE9tfITHUtTR7Z9PSlIRRG2l1GuW7sefC1cXFfIcF+cgnShdBA==", "integrity": "sha512-9QnLuG/kPVgWvMQ4aODhsBUFKOUmnbUnsSXACv+NCQZcHbeb+v8Lodp8OVxtRULN1/xOyYLLaL6npE6dMq5QTA==",
"dev": true "dev": true
}, },
"random-bytes": { "random-bytes": {
+1 -1
View File
@@ -1 +1 @@
18.16.0 16.17.1
+1 -1
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:18.16.0 as base FROM node:16.17.1 as base
WORKDIR /overleaf/services/chat WORKDIR /overleaf/services/chat
+1 -1
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=18.16.0 --node-version=16.17.1
--public-repo=False --public-repo=False
--script-version=4.1.0 --script-version=4.1.0
+2 -2
View File
@@ -6,7 +6,7 @@ version: "2.3"
services: services:
test_unit: test_unit:
image: node:18.16.0 image: node:16.17.1
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:18.16.0 image: node:16.17.1
volumes: volumes:
- .:/overleaf/services/chat - .:/overleaf/services/chat
- ../../node_modules:/overleaf/node_modules - ../../node_modules:/overleaf/node_modules
+1 -1
View File
@@ -1 +1 @@
18.16.0 16.17.1
+1 -1
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:18.16.0 as base FROM node:16.17.1 as base
WORKDIR /overleaf/services/contacts WORKDIR /overleaf/services/contacts
+1 -1
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=18.16.0 --node-version=16.17.1
--public-repo=False --public-repo=False
--script-version=4.1.0 --script-version=4.1.0
+2 -2
View File
@@ -6,7 +6,7 @@ version: "2.3"
services: services:
test_unit: test_unit:
image: node:18.16.0 image: node:16.17.1
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:18.16.0 image: node:16.17.1
volumes: volumes:
- .:/overleaf/services/contacts - .:/overleaf/services/contacts
- ../../node_modules:/overleaf/node_modules - ../../node_modules:/overleaf/node_modules
+1 -1
View File
@@ -1 +1 @@
18.16.0 16.17.1
+1 -1
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:18.16.0 as base FROM node:16.17.1 as base
WORKDIR /overleaf/services/docstore WORKDIR /overleaf/services/docstore
+1 -1
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=18.16.0 --node-version=16.17.1
--public-repo=True --public-repo=True
--script-version=4.1.0 --script-version=4.1.0
+2 -2
View File
@@ -6,7 +6,7 @@ version: "2.3"
services: services:
test_unit: test_unit:
image: node:18.16.0 image: node:16.17.1
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:18.16.0 image: node:16.17.1
volumes: volumes:
- .:/overleaf/services/docstore - .:/overleaf/services/docstore
- ../../node_modules:/overleaf/node_modules - ../../node_modules:/overleaf/node_modules
+1 -1
View File
@@ -1 +1 @@
18.16.0 16.17.1
+1 -1
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:18.16.0 as base FROM node:16.17.1 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/
+1 -1
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=18.16.0 --node-version=16.17.1
--public-repo=True --public-repo=True
--script-version=4.1.0 --script-version=4.1.0
@@ -13,9 +13,11 @@ 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) {
@@ -40,25 +42,20 @@ describe('Filestore', function () {
async function expectNoSockets() { async function expectNoSockets() {
try { try {
await msleep(1000) await msleep(1000)
const stdout = await fs.promises.readFile('/proc/net/tcp', 'utf8') const { stdout } = await exec('ss -tnH')
const badSockets = [] const badSockets = []
const lines = stdout.split('\n').map(line => line.trim().split(/\s+/)) for (const socket of stdout.split('\n')) {
const header = lines.shift() const fields = socket.split(' ').filter(part => part !== '')
if (header[4] === 'tx_queue' && header[5] === 'rx_queue') {
for (const socket of lines) {
if ( if (
socket.length > 5 && fields.length > 2 &&
socket[4] !== '00000000:00000000' && // ensure the socket queues are empty parseInt(fields[1]) &&
!seenSockets.includes(socket) !seenSockets.includes(socket)
) { ) {
console.log('socket still has data', socket)
badSockets.push(socket) badSockets.push(socket)
seenSockets.push(socket) seenSockets.push(socket)
} }
} }
} else {
throw new Error('unexpected format in /proc/net/tcp')
}
if (badSockets.length) { if (badSockets.length) {
// eslint-disable-next-line no-console // eslint-disable-next-line no-console
+1 -1
View File
@@ -1 +1 @@
18.16.0 16.17.1
+1 -1
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:18.16.0 as base FROM node:16.17.1 as base
WORKDIR /overleaf/services/notifications WORKDIR /overleaf/services/notifications
+1 -1
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=18.16.0 --node-version=16.17.1
--public-repo=True --public-repo=True
--script-version=4.1.0 --script-version=4.1.0
+2 -2
View File
@@ -6,7 +6,7 @@ version: "2.3"
services: services:
test_unit: test_unit:
image: node:18.16.0 image: node:16.17.1
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:18.16.0 image: node:16.17.1
volumes: volumes:
- .:/overleaf/services/notifications - .:/overleaf/services/notifications
- ../../node_modules:/overleaf/node_modules - ../../node_modules:/overleaf/node_modules
+1 -1
View File
@@ -1 +1 @@
18.16.0 16.17.1
+1 -1
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:18.16.0 as base FROM node:16.17.1 as base
WORKDIR /overleaf/services/real-time WORKDIR /overleaf/services/real-time
+1 -1
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=18.16.0 --node-version=16.17.1
--public-repo=True --public-repo=True
--script-version=4.1.0 --script-version=4.1.0
+2 -2
View File
@@ -6,7 +6,7 @@ version: "2.3"
services: services:
test_unit: test_unit:
image: node:18.16.0 image: node:16.17.1
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:18.16.0 image: node:16.17.1
volumes: volumes:
- .:/overleaf/services/real-time - .:/overleaf/services/real-time
- ../../node_modules:/overleaf/node_modules - ../../node_modules:/overleaf/node_modules
+1 -1
View File
@@ -1 +1 @@
18.16.0 16.17.1
+1 -1
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:18.16.0 as base FROM node:16.17.1 as base
WORKDIR /overleaf/services/track-changes WORKDIR /overleaf/services/track-changes
+1 -1
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=18.16.0 --node-version=16.17.1
--public-repo=True --public-repo=True
--script-version=4.1.0 --script-version=4.1.0
+2 -2
View File
@@ -6,7 +6,7 @@ version: "2.3"
services: services:
test_unit: test_unit:
image: node:18.16.0 image: node:16.17.1
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:18.16.0 image: node:16.17.1
volumes: volumes:
- .:/overleaf/services/track-changes - .:/overleaf/services/track-changes
- ../../node_modules:/overleaf/node_modules - ../../node_modules:/overleaf/node_modules