Fix test failures, improve CI diagnostics & bump package versions#28
Merged
5xuanwen merged 16 commits intoHuaweiCloudDeveloper:masterfrom Nov 24, 2025
Merged
Fix test failures, improve CI diagnostics & bump package versions#285xuanwen merged 16 commits intoHuaweiCloudDeveloper:masterfrom
5xuanwen merged 16 commits intoHuaweiCloudDeveloper:masterfrom
Conversation
added 16 commits
November 17, 2025 14:23
…fix RST license link syntax
…fix RST license link syntax
…fix RST license link syntax
…act match otherwise
…odules and fix byte literal formatting in tests/fix_faker.py
…range functions before dropping schema (resolves HuaweiCloudDeveloper#26)
… better readability in test_range setup (follow-up to HuaweiCloudDeveloper#26)
…gical; skip composite and range type tests on GaussDB
…gical; skip composite and range type tests on GaussDB
…logical decoding tests
…etter readability
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.
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).