Skip to content

chore: port bulding tooling to uv#541

Merged
enocom merged 1 commit into
mainfrom
uv
Apr 8, 2026
Merged

chore: port bulding tooling to uv#541
enocom merged 1 commit into
mainfrom
uv

Conversation

@enocom
Copy link
Copy Markdown
Member

@enocom enocom commented Mar 31, 2026

This commit replaces the existing build-tooling with uv. In addition,
all CI operations are captured in scripts to make it easier to run
linting, formatting, unit tests, and system tests locally without having
to remember the exact set of commands.

Fixes #443.

@enocom enocom changed the title Uv chore: port bulding tooling to uv Mar 31, 2026
@enocom enocom force-pushed the uv branch 6 times, most recently from c7ba839 to 19eef18 Compare April 1, 2026 15:50
@enocom enocom marked this pull request as ready for review April 1, 2026 15:59
@enocom enocom requested a review from a team as a code owner April 1, 2026 15:59
self._keys: Optional[asyncio.Task] = None
try:
self._keys: Optional[asyncio.Task] = asyncio.create_task(generate_keys())
asyncio.get_running_loop()
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you need to call asyncio.get_running_loop() here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a comment just above to explain why. Short answer: prior to this change when an event loop was not running, we would be starting the generate_keys coroutine, but never await it and therefore leak it. The addition of get_running_loop ensures we never leak a coroutine.

Comment thread google/cloud/alloydbconnector/client.py Outdated
@@ -96,6 +97,7 @@ def __init__(
# loop. See https://github.com/GoogleCloudPlatform/alloydb-python-connector/issues/435
# for more details.
self._is_sync = False
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we remove this line since we don't use self._is_sync anymore?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

This commit replaces the existing build-tooling with uv. In addition,
all CI operations are captured in scripts to make it easier to run
linting, formatting, unit tests, and system tests locally without having
to remember the exact set of commands.

Fixes #443.
@enocom enocom merged commit dc3945b into main Apr 8, 2026
16 checks passed
@enocom enocom deleted the uv branch April 8, 2026 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Switch to ruff linter

2 participants