Core, DB: Introduce xi_unit_test, various improvements to db layer - #11076
Open
zach2good wants to merge 22 commits into
Open
Core, DB: Introduce xi_unit_test, various improvements to db layer#11076zach2good wants to merge 22 commits into
zach2good wants to merge 22 commits into
Conversation
Not retrying the failed statement still leaves the statements after it to run, one by one, on a fresh auto-committing connection.
MySQL has no nested transactions: a second START TRANSACTION commits the outer one, losing its atomicity exactly where the inner call meant to protect it.
xi_test boots a server and talks to a live database to run the Lua suite; the Catch2 tests need neither, and rode along at the cost of a ten-minute build and a nine-minute run.
Carrying on past a failed statement means the COMMIT keeps every statement around the one that failed, which is the opposite of what the caller asked for.
The C++ unit tests used to ride along inside xi_test's startup; splitting them into their own binary took them out of CI until something ran it.
The tests need nothing the build job does not already have, so every configuration in the matrix can gate on them instead of waiting for the test workflow.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I affirm:
What does this pull request do?
Review commit-by-commit, if you so please.