| description | How to verify a Spanner Asyncio launch is ready. |
|---|
This workflow provides the necessary steps to verify that the Spanner Asyncio implementation is correct, stable, and ready for launch.
Run the complete suite of asynchronous unit tests across all supported Python versions.
nox -s unitEnsure that all tests in tests/unit/_async/ pass.
Verify the asynchronous behavior against the Spanner Emulator. // turbo
export SPANNER_EMULATOR_HOST="localhost:9010"
export GCLOUD_PROJECT="emulator-test-project"
export GOOGLE_CLOUD_TESTS_CREATE_SPANNER_INSTANCE="true"
nox -s system -- tests/system/_asyncNote: Ensure pytest-asyncio is installed in the system test environment.
Run the cross-sync generation tool and ensure no regressions in the synchronous codebase.
python3 .cross_sync/generate.py
nox -s unit-3.14
nox -s system-3.14Ensure all asynchronous GAPIC calls are properly awaited. Search for any unawaited coroutines in the _async directory.
grep -r "await " google/cloud/spanner_v1/_async | grep -v "async def"Verify that the provided samples work correctly.
python3 samples/async_samples.py