Fix test failures, improve CI diagnostics & bump package versions #28
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.
Description
This PR delivers a stable v1.0.4 release of the
gaussdb-pythondriver by resolving the three recently reported test-related issues (#25, #26, #27) and introducing several quality-of-life improvements to CI, documentation, and test reliability.Key highlights:
AttributeError: module 'gaussdb' has no attribute 'version'when running the driver locally.test_range(insufficient privileges) andtest_adapt(Faker returningNonefor binary types).wal_leveldetection to automatically skip logical decoding tests when the database is not configured for logical replication.ResourceWarnings.gaussdb,gaussdb_pool, andisort_gaussdbversions in preparation for release.Closes #25, closes #26, closes #27.
Changes Made
Documentation
README.rst,gaussdb/README.rst,gaussdb_pool/README.rst, andtools/isort-gaussdb/README.rstto use correct backticks for license file links and clarified local development instructions.PYTHONPATHto bothgaussdbandgaussdb_poolsubmodules, preventing import/attribute errors.Test fixes & robustness
get_wal_level()helper and automatic skip of logical decoding tests whenwal_level != logical.rootand using fully qualified type names.tests/fix_faker.pyto acceptNone/empty values.Testing
wal_level = logical.PYTHONPATHinstructions (no moreAttributeErrorongaussdb.version).