small fixes

This commit is contained in:
einhornimmond 2025-05-05 20:15:06 +02:00
parent 3cba25df17
commit b95920f354
9 changed files with 13 additions and 11 deletions

View File

@ -58,7 +58,7 @@ jobs:
- name: install dependencies
run: |
bun install --filter admin --frozen-lockfile
bun install --global turbo@^2
bun install --global --no-save turbo@^2
- name: Admin Interface | Unit tests
id: test

View File

@ -56,13 +56,15 @@ jobs:
uses: oven-sh/setup-bun@v2
- name: install dependencies
run: bun install --filter backend --frozen-lockfile
run: |
bun install --filter backend --frozen-lockfile
bun install --global --no-save turbo@^2
- name: Wait for MariaDB to be ready
run: until nc -z localhost 3306; do echo waiting for db; sleep 1; done;
- name: Backend | Unit tests
run: bun turbo backend#test
run: turbo backend#test
typecheck:
if: needs.files-changed.outputs.backend == 'true'
@ -84,7 +86,7 @@ jobs:
- name: install dependencies
run: |
bun install --filter backend --frozen-lockfile
bun install --global turbo@^2
bun install --global --no-save turbo@^2
- name: Backend | Typecheck
run: turbo backend#typecheck backend#build

View File

@ -51,7 +51,7 @@ jobs:
- name: install dependencies
run: |
bun install --filter database --frozen-lockfile
bun install --global turbo@^2
bun install --global --no-save turbo@^2
- name: Wait for MariaDB to be ready
run: docker run --rm --network gradido_internal-net busybox sh -c 'until nc -z mariadb 3306; do echo waiting for db; sleep 1; done;'

View File

@ -57,7 +57,7 @@ jobs:
- name: install dependencies
run: |
bun install --filter dht-node --frozen-lockfile
bun install --global turbo@^2
bun install --global --no-save turbo@^2
- name: Wait for MariaDB to be ready
run: until nc -z localhost 3306; do echo waiting for db; sleep 1; done;

View File

@ -57,7 +57,7 @@ jobs:
- name: install dependencies
run: |
bun install --filter federation --frozen-lockfile
bun install --global turbo@^2
bun install --global --no-save turbo@^2
- name: Wait for MariaDB to be ready
run: until nc -z localhost 3306; do echo waiting for db; sleep 1; done;

View File

@ -81,7 +81,7 @@ jobs:
- name: install dependencies
run: |
bun install --filter frontend --frozen-lockfile
bun install --global turbo@^2
bun install --global --no-save turbo@^2
- name: Frontend | Lint
id: lint

View File

@ -22,7 +22,8 @@ let encryptionWorkerPool: Pool | undefined
if (CONFIG.USE_CRYPTO_WORKER === true) {
encryptionWorkerPool = pool(
path.join(__dirname, '..', 'build', 'password', 'EncryptionWorker.js'),
{ maxQueueSize: 30 * cpus().length })
{ maxQueueSize: 30 * cpus().length },
)
}
// We will reuse this for changePassword
@ -69,7 +70,6 @@ export const SecretKeyCryptographyCreateKey = async (
// pool is throwing this error
// throw new Error('Max queue size of ' + this.maxQueueSize + ' reached');
// will be shown in frontend to user
console.log(JSON.stringify(e, null, 2))
throw new LogError('Server is full, please try again in 10 minutes.', e)
}
}

View File

@ -266,6 +266,7 @@
"apollo-server-testing": "2.25.2",
"graphql-tag": "^2.12.6",
"jest": "27.2.4",
"nodemon": "^2.0.7",
"prettier": "^3.5.3",
"ts-jest": "27.0.5",
"typescript": "^4.9.5",

View File

@ -18,4 +18,3 @@
}
}
}