Skip to content

Fix shared background-job test connection cleanup#955

Merged
kaspernj merged 12 commits into
masterfrom
feat/10512-frontend-websocket-controls
Jul 24, 2026
Merged

Fix shared background-job test connection cleanup#955
kaspernj merged 12 commits into
masterfrom
feat/10512-frontend-websocket-controls

Conversation

@kaspernj

Copy link
Copy Markdown
Owner

Follow-up to #952.

The final #952 head preserved test-owned database connections while background-job main and worker were still active, but never closed them after both stopped. On SQLite this left commit callbacks attached to stale connection state and made the later live-query tests miss record-change notifications.

This keeps both owners alive during shutdown and closes the shared test connections exactly once after both have stopped, independent of stop order.

Validated in Docker:

  • SQLite Test group 1: 837 passed
  • Microsoft SQL Server Test group 2: 687 passed
  • Microsoft SQL Server Test group 3: 637 passed
  • npm run lint

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8f9a7b1bfb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread spec/helpers/background-jobs-helper.js Outdated
Comment thread src/frontend-models/base.js
Comment thread src/frontend-models/base.js Outdated
@kaspernj
kaspernj force-pushed the feat/10512-frontend-websocket-controls branch from 4ae734f to dcd3c82 Compare July 24, 2026 13:29
@kaspernj
kaspernj force-pushed the feat/10512-frontend-websocket-controls branch from dcd3c82 to f6c5881 Compare July 24, 2026 13:48
@kaspernj
kaspernj merged commit e6d1aa2 into master Jul 24, 2026
15 checks passed
@kaspernj
kaspernj deleted the feat/10512-frontend-websocket-controls branch July 24, 2026 14:08
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