Merge branch 'upgrade_esbuild' of github.com:gradido/gradido into upgrade_esbuild

This commit is contained in:
einhornimmond 2025-05-06 10:10:06 +02:00
commit f02f291a59
8 changed files with 12 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

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