Repository navigation
Commit 005cb97
authored
fix(tests): close three integration-test races that flaked CI (#9964)
* fix(tests): wait for the job lane's first leg text to persist before killing its process
The takeover test aborted the turn as soon as the fake worker had written the
first leg, before the dying process had recorded that text in its stream
buffer. The re-attach then carried receivedTextChars 0 and the occurrence's
summary lost the first leg. Wait for the text event in the buffer first, as
the unattended-turn suite already does.
* fix(tests): handle the cancelled token-sealing run's rejection before polling for its backend
The operator-cancel test started migrate() and only attached a handler after
its pg_cancel_backend polling loop. When the cancellation reached the run's
connection before the loop broke, Node saw an unhandled rejection and Vitest
failed the whole db shard even though every test passed. Attach the rejection
assertion when the run starts and await it after the loop.
* fix(tests): handle the refused provider expansion before awaiting the concurrent grant
The concurrent-grant test started ensureWorkspaceAccountsGroup and awaited
the grant transaction before attaching a handler to the refusal. When the
refusal resolved first, Node reported an unhandled rejection and Vitest failed
the shard although the test passed. Attach the rejection assertion when the
call starts and await it after the grant commits.
* chore(ci): log lock waits and slow statements in the integration Postgres1 parent 55bacfc commit 005cb97
4 files changed
Lines changed: 25 additions & 8 deletions
File tree
- .github/workflows
- apps/sim/lib
- knowledge/__integration__
- mothership/jobs
- packages/db/script-migrations
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
152 | 156 | | |
153 | 157 | | |
154 | 158 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
492 | 492 | | |
493 | 493 | | |
494 | 494 | | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
500 | 503 | | |
501 | 504 | | |
502 | | - | |
| 505 | + | |
503 | 506 | | |
504 | 507 | | |
505 | 508 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| 168 | + | |
168 | 169 | | |
169 | 170 | | |
170 | 171 | | |
| |||
506 | 507 | | |
507 | 508 | | |
508 | 509 | | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
509 | 518 | | |
510 | 519 | | |
511 | 520 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
361 | | - | |
| 361 | + | |
| 362 | + | |
362 | 363 | | |
363 | 364 | | |
364 | 365 | | |
| |||
368 | 369 | | |
369 | 370 | | |
370 | 371 | | |
371 | | - | |
| 372 | + | |
372 | 373 | | |
373 | 374 | | |
374 | 375 | | |
| |||
0 commit comments