Skip to content

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

Closed
thseiler wants to merge 1 commit intomainfrom
fix/add-chromesession-retry-mechanism
Closed

fix(main): attempt to resolve macOS CI race condition#2
thseiler wants to merge 1 commit intomainfrom
fix/add-chromesession-retry-mechanism

Conversation

@thseiler
Copy link
Copy Markdown
Owner

@thseiler thseiler commented Apr 4, 2026

When running sequential PDF exports, macOS CI runners frequently throw a SessionNotCreatedException during driver creation. I noticed that subsequent 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 between attempts.

(This PR is created to trigger the CI in my forked repo)

@thseiler thseiler closed this Apr 7, 2026
@thseiler thseiler reopened this Apr 8, 2026
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
@thseiler
Copy link
Copy Markdown
Owner Author

was merged upstream, we can close this PR

@thseiler thseiler closed this Apr 10, 2026
@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.

1 participant