Repository navigation
perf(imports): defer config and error imports on Python 3.15 - #634
Merged
HosseinNejatiJavaremi merged 8 commits intoNov 22, 2026
Merged
Conversation
added 6 commits
November 22, 2026 12:30
Keep Python 3.14 eager while config, helper and adapter imports stop initializing unrelated transports. Defer error modules, global settings and the telemetry config template until first use, and cover the behavior with fresh-interpreter scenarios.
Store the stable protocol status integers directly so importing an error never loads the optional grpc package. Add fresh-interpreter checks with grpc blocked and verify every existing status value.
Tests and ty resolve against uv.lock; document the sync step and the version-mismatch failure it prevents.
A first-use import can register the BaseConfig fallback after an explicit provider is already active. Keep the explicit provider so error localization does not change with import timing.
Run locked sync after checkout and merge, including when pre-commit supplies no files. Report stale lockfiles instead of rewriting them.
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.
Summary
Testing
49 of 63 Behave features passed on both Python 3.14 and 3.15, with 2,743 scenarios passing per version. Lint and package builds passed. The remaining 14 integration features are pending CI because the pinned Keycloak, Temporal, and StarRocks images timed out locally.