Skip to content

fix(main): attempt to resolve macOS CI race condition#88

Merged
stanislaw merged 1 commit intostrictdoc-project:mainfrom
thseiler:fix/add-chromesession-retry-mechanism
Apr 10, 2026
Merged

fix(main): attempt to resolve macOS CI race condition#88
stanislaw merged 1 commit intostrictdoc-project:mainfrom
thseiler:fix/add-chromesession-retry-mechanism

Conversation

@thseiler
Copy link
Copy Markdown
Contributor

@thseiler thseiler commented Apr 4, 2026

When running sequential PDF exports, macOS CI sometimes throw a SessionNotCreatedException during driver creation. I noticed that subsequent tests run without issue.

Hypothesis: The OS kernel might need additional time to release TCP ports and IPC locks from the previous headless Chrome instance before a new one can successfully bind.

This commit introduces a 3-attempt retry loop with a 1-second delay between attempts.

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.
@thseiler thseiler force-pushed the fix/add-chromesession-retry-mechanism branch from 54fbc5f to 3be5546 Compare April 9, 2026 20:24
@stanislaw stanislaw merged commit 15936be into strictdoc-project:main Apr 10, 2026
7 checks passed
@thseiler thseiler deleted the fix/add-chromesession-retry-mechanism branch April 10, 2026 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants