Skip to content

Commit 646882b

Browse files
committed
Enable direct sync in CI to bypass QStash bottleneck
With STACK_EXTERNAL_DB_SYNC_DIRECT=false, all syncs go through QStash with parallelism: 20. The ~672 user creations across 79 parallel test files generate hundreds of sync requests that can saturate QStash, starving individual test tenancies. Set STACK_EXTERNAL_DB_SYNC_DIRECT=true in all 6 CI workflow files so the poller calls the sync-engine endpoint directly (via HTTP to the local backend) instead of going through QStash.
1 parent c7e8cde commit 646882b

6 files changed

Lines changed: 6 additions & 6 deletions

.github/workflows/e2e-api-tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
STACK_ENABLE_HARDCODED_PASSKEY_CHALLENGE_FOR_TESTING: yes
2121
STACK_DATABASE_CONNECTION_STRING: "postgres://postgres:PASSWORD-PLACEHOLDER--uqfEC1hmmv@localhost:8128/stackframe"
2222
STACK_EXTERNAL_DB_SYNC_MAX_DURATION_MS: "20000"
23-
STACK_EXTERNAL_DB_SYNC_DIRECT: "false"
23+
STACK_EXTERNAL_DB_SYNC_DIRECT: "true"
2424

2525
strategy:
2626
matrix:

.github/workflows/e2e-custom-base-port-api-tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
STACK_DATABASE_CONNECTION_STRING: "postgres://postgres:PASSWORD-PLACEHOLDER--uqfEC1hmmv@localhost:6728/stackframe"
2121
NEXT_PUBLIC_STACK_PORT_PREFIX: "67"
2222
STACK_EXTERNAL_DB_SYNC_MAX_DURATION_MS: "20000"
23-
STACK_EXTERNAL_DB_SYNC_DIRECT: "false"
23+
STACK_EXTERNAL_DB_SYNC_DIRECT: "true"
2424

2525
strategy:
2626
matrix:

.github/workflows/restart-dev-and-test-with-custom-base-port.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
env:
2121
NEXT_PUBLIC_STACK_PORT_PREFIX: "69"
2222
STACK_EXTERNAL_DB_SYNC_MAX_DURATION_MS: "20000"
23-
STACK_EXTERNAL_DB_SYNC_DIRECT: "false"
23+
STACK_EXTERNAL_DB_SYNC_DIRECT: "true"
2424

2525
steps:
2626
- uses: actions/checkout@v6

.github/workflows/restart-dev-and-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubicloud-standard-16
2020
env:
2121
STACK_EXTERNAL_DB_SYNC_MAX_DURATION_MS: "20000"
22-
STACK_EXTERNAL_DB_SYNC_DIRECT: "false"
22+
STACK_EXTERNAL_DB_SYNC_DIRECT: "true"
2323

2424
steps:
2525
- uses: actions/checkout@v6

.github/workflows/setup-tests-with-custom-base-port.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
env:
2121
NEXT_PUBLIC_STACK_PORT_PREFIX: "69"
2222
STACK_EXTERNAL_DB_SYNC_MAX_DURATION_MS: "20000"
23-
STACK_EXTERNAL_DB_SYNC_DIRECT: "false"
23+
STACK_EXTERNAL_DB_SYNC_DIRECT: "true"
2424

2525
steps:
2626
- uses: actions/checkout@v6

.github/workflows/setup-tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubicloud-standard-16
2020
env:
2121
STACK_EXTERNAL_DB_SYNC_MAX_DURATION_MS: "20000"
22-
STACK_EXTERNAL_DB_SYNC_DIRECT: "false"
22+
STACK_EXTERNAL_DB_SYNC_DIRECT: "true"
2323
steps:
2424
- uses: actions/checkout@v6
2525

0 commit comments

Comments
 (0)