Skip to content

fix: scope SQLite race contract deadlines - #23

Merged
cmilesio merged 1 commit into
mainfrom
fix/sqlite-race-timeouts
Sep 7, 2026
Merged

fix: scope SQLite race contract deadlines#23
cmilesio merged 1 commit into
mainfrom
fix/sqlite-race-timeouts

Conversation

@cmilesio

@cmilesio cmilesio commented Sep 7, 2026

Copy link
Copy Markdown
Member

What

Scope the concurrent workflow store contract deadlines to each policy subtest. Keep the existing 10 second deadlock guard, while allowing each SQLite policy its own execution budget under the race detector.

Why

Queue PR #22 passed its exact-head checks, but the merge commit's root race job exposed shared deadline exhaustion in two sequential SQLite contract tests. The first policy consumed most of a parent context, so the second policy inherited an almost-expired deadline and failed with context deadline exceeded. This is test-only timing isolation. It does not change the queue API, configuration, persisted data, minimum Go version, or runtime behavior.

@cmilesio
cmilesio merged commit 5795e85 into main Sep 7, 2026
32 checks passed
@cmilesio
cmilesio deleted the fix/sqlite-race-timeouts branch September 7, 2026 08:12
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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