[ci:improvement] improve CI and tests #1
Merged
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.
This pull request refactors the configuration and testing setup for SingleStore, introduces a new database status check, and updates connection handling in the test suite. Key changes include simplifying database credentials, improving the CI workflow, and enhancing the Makefile's database management commands.
CI Workflow Enhancements:
.github/workflows/ci.ymlto include SingleStore service setup with environment variables and ports. Added a sanity check and database initialization steps to ensure the database is ready for tests. [1] [2]Makefile Improvements:
setup-dbandteardown-dbcommands for better logging and reliability. Introduced a newstatus-dbcommand to check the database status.Database Configuration Simplification:
test_password_123withtest. Updated health check parameters intests/compose-singlestore.ymlfor faster feedback. [1] [2]Test Suite Updates:
DEFAULT_SINGLESTORE_URIwithDEFAULT_URI_WITHOUT_DBandDEFAULT_URI_WITH_DBfor better clarity and flexibility intests/conftest.py. Updated all test cases to use the new constants. [1] [2] [3]Coverage Threshold Adjustment:
pyproject.tomlto accommodate recent changes.