Commit 3be5546
committed
fix(main): attempt to resolve macOS CI race condition
When running sequential PDF exports, macOS CI runners frequently throw a `SessionNotCreatedException` during driver creation. I noticed that subseqeunt tests run without issue.
Hypothesis: The OS kernel requires additional time to release TCP ports and IPC locks from the previous headless Chrome instance before a new one can successfully bind.
This commit attempts to fix the flakiness by introducing a 3-attempt retry loop with a 1-second delay in-between attempts.1 parent 51da8e3 commit 3be5546
1 file changed
Lines changed: 25 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
481 | 482 | | |
482 | 483 | | |
483 | 484 | | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
488 | 509 | | |
489 | 510 | | |
490 | 511 | | |
| |||
0 commit comments