Skip to content

Tests: Document CUSTOM_USER_TABLE SQLite incompatibility as expected behavior#328

Merged
swissspidy merged 2 commits intomainfrom
copilot/look-into-custom-user-table-compatibility
Apr 3, 2026
Merged

Tests: Document CUSTOM_USER_TABLE SQLite incompatibility as expected behavior#328
swissspidy merged 2 commits intomainfrom
copilot/look-into-custom-user-table-compatibility

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 3, 2026

CUSTOM_USER_TABLE tests were failing on SQLite, requiring investigation into whether it was a bug or expected behavior.

Findings

This is expected behavior: SQLite gives each WordPress install its own separate database file (wp-content/database/.ht.sqlite). Sharing user tables between two installs via CUSTOM_USER_TABLE requires both installs to share the same physical database — impossible with SQLite's file-per-database architecture.

Changes

  • features/core-install.feature: Replaces the TODO: Requires investigation comments on both CUSTOM_USER_TABLE scenarios with an explanatory comment documenting why @require-mysql is correct and permanent for these tests.

Copilot AI linked an issue Apr 3, 2026 that may be closed by this pull request
@github-actions github-actions bot added command:core Related to 'core' command scope:testing Related to testing state:unconfirmed labels Apr 3, 2026
Copilot AI changed the title [WIP] Investigate CUSTOM_USER_TABLE compatibility with SQLite Tests: Document CUSTOM_USER_TABLE SQLite incompatibility as expected behavior Apr 3, 2026
Copilot AI requested a review from swissspidy April 3, 2026 12:26
@swissspidy swissspidy marked this pull request as ready for review April 3, 2026 14:24
@swissspidy swissspidy requested a review from a team as a code owner April 3, 2026 14:24
Copilot AI review requested due to automatic review settings April 3, 2026 14:24
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Documents why the CUSTOM_USER_TABLE install scenarios are intentionally MySQL-only, clarifying that SQLite’s per-install database file behavior prevents cross-install table sharing in these tests.

Changes:

  • Replaced “TODO: Requires investigation” notes with an explicit explanation of the SQLite incompatibility for CUSTOM_USER_TABLE scenarios.
  • Kept the @require-mysql tags, now justified as permanent/expected behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +3 to +4
# Not compatible with SQLite: each WordPress install uses its own separate SQLite database
# file, so cross-install table sharing via CUSTOM_USER_TABLE is not possible with SQLite.
Copy link

Copilot AI Apr 3, 2026

Choose a reason for hiding this comment

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

The new explanation is helpful, but removing the reference to #244 loses traceability for why these scenarios are permanently @require-mysql. Consider keeping the link (e.g., as an additional comment line) so future maintainers can find the original discussion. Please mirror the update in the duplicated comment block before the second CUSTOM_USER_TABLE scenario as well.

Copilot uses AI. Check for mistakes.
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@swissspidy swissspidy merged commit 1f6eeff into main Apr 3, 2026
66 checks passed
@swissspidy swissspidy deleted the copilot/look-into-custom-user-table-compatibility branch April 3, 2026 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

command:core Related to 'core' command scope:testing Related to testing state:unconfirmed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SQLite: Look into CUSTOM_USER_TABLE compatibility

3 participants