Skip to content

codex/fix sqlite workspace write contention - #3608

Closed
drew wants to merge 1 commit into
codex/fix-podman-e2e-host-fixturesfrom
codex/fix-sqlite-workspace-write-contention
Closed

drew wants to merge 1 commit into
codex/fix-podman-e2e-host-fixturesfrom
codex/fix-sqlite-workspace-write-contention

Conversation

@drew

@drew drew commented Sep 23, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Let concurrent SQLite gateway writes wait through short lock contention instead of failing workspace creation.

Related Issue

Stability investigation stacked on #3607 and ultimately #3583. Kubernetes managed-workspace run 35856895823 failed two parallel creates after SQLite returned database is locked at about five seconds.

Changes

  • Set a bounded 30-second busy timeout for SQLite store connections.
  • Add a contention test that holds a write lock for six seconds and verifies a concurrent workspace insert succeeds after release.
  • Document the gateway's SQLite lock wait.

Testing

  • Focused SQLite contention test: passed.
  • mise run pre-commit: passed.
  • mise run ci: passed.
  • Expanded GitHub E2E on stack tip: pending.

Checklist

  • Signed-off conventional commit
  • Architecture documentation updated
  • Full local CI passed
  • Kubernetes managed-workspace E2E passed

Signed-off-by: Drew Newberry <anewberry@nvidia.com>
@copy-pr-bot

copy-pr-bot Bot commented Sep 23, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@drew

drew commented Sep 23, 2026

Copy link
Copy Markdown
Collaborator Author

Superseded by clean stacked PR #3622 in GitHub Stack #3623. The selected fix is preserved there without the intervening campaign changes.

@drew drew closed this Sep 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automated-flake-find PRs produced by the automated E2E flake-finding campaign

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant