mirror of
https://github.com/stack-auth/stack.git
synced 2026-07-20 21:29:36 +08:00
Fix cron jobs using dev env instead of test env in CI workflows (#1319)
The custom-base-port and db-migration-backwards-compatibility workflows were running cron jobs with `with-env:dev` instead of `with-env:test`, causing ClickHouse sync mismatches in verify-data-integrity. <!-- Make sure you've read the CONTRIBUTING.md guidelines: https://github.com/stack-auth/stack-auth/blob/dev/CONTRIBUTING.md --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Streamlined CI test workflows to standardize background cron job startup for more consistent test runs. * **Tests** * Improved end-to-end test reliability by aligning background process behavior across suites. * **Bug Fixes** * Enhanced data verification reliability by ensuring external database sync before integrity checks and tightening comparison ordering for certain records, reducing false mismatch detections. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -200,7 +200,7 @@ jobs:
|
||||
uses: JarvusInnovations/[email protected]
|
||||
if: ${{ hashFiles('apps/backend/scripts/run-cron-jobs.ts') != '' }}
|
||||
with:
|
||||
run: pnpm -C apps/backend run with-env:dev tsx scripts/run-cron-jobs.ts --log-order=stream &
|
||||
run: pnpm -C apps/backend run run-cron-jobs:test --log-order=stream &
|
||||
wait-on: |
|
||||
http://localhost:8102
|
||||
tail: true
|
||||
@@ -394,7 +394,7 @@ jobs:
|
||||
uses: JarvusInnovations/[email protected]
|
||||
if: ${{ hashFiles('apps/backend/scripts/run-cron-jobs.ts') != '' }}
|
||||
with:
|
||||
run: pnpm -C apps/backend run with-env:dev tsx scripts/run-cron-jobs.ts --log-order=stream &
|
||||
run: pnpm -C apps/backend run run-cron-jobs:test --log-order=stream &
|
||||
wait-on: |
|
||||
http://localhost:8102
|
||||
tail: true
|
||||
|
||||
@@ -145,7 +145,7 @@ jobs:
|
||||
- name: Start run-cron-jobs in background
|
||||
uses: JarvusInnovations/[email protected]
|
||||
with:
|
||||
run: pnpm -C apps/backend run run-cron-jobs --log-order=stream &
|
||||
run: pnpm -C apps/backend run run-cron-jobs:test --log-order=stream &
|
||||
wait-on: |
|
||||
http://localhost:6702
|
||||
tail: true
|
||||
|
||||
Reference in New Issue
Block a user