feat(python): add asyncio port with shared conformance replay - #200
Merged
Merged
Conversation
# Conflicts: # .github/workflows/formal-full.yaml # README.md # formal/explore.mjs # formal/go-parity.json # formal/source-audit.json # formal/validation.mjs # scripts/generate-docs.mjs # typescript/test/formal-exploration.test.ts
lan17
marked this pull request as ready for review
September 22, 2026 07:25
# Conflicts: # docs/index.md # docs/maintainers.md # formal/go-parity.json # formal/source-audit.json
Keep mismatch details in logger events, discard denied async predicates without starting work, bound oversized decoder memory, and bind validation and saved replay inventories to their source snapshots. — Levicus 🤖
Require primary-only Cluster connections for tracked reads across redirects. Make integration acceptance verify every required case and bind documented scenarios to the selected backend. — Levicus 🤖
Preserve caller and source cancellation while failing open for cache dependencies and observers. Keep read deadlines authoritative when abort callbacks fail, retain shadow outcomes, and normalize compression payloads once. — Levicus 🤖
Measure native and Redis/Valkey/Cluster coverage with isolated LCOV reports, retain strict integration acceptance, and upload both Python versions to Codecov using OIDC. Resolve README audit conflicts against the combined four-language badge and documentation inventory. — Levicus 🤖
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #200 +/- ##
==========================================
- Coverage 94.00% 93.73% -0.28%
==========================================
Files 65 77 +12
Lines 9774 11347 +1573
Branches 404 657 +253
==========================================
+ Hits 9188 10636 +1448
- Misses 563 641 +78
- Partials 23 70 +47
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Python applications can now use DialCache's explicit request scopes, layered caching, runtime policy, and tracked Redis invalidation through an asyncio-native package for Python 3.11+.
The API retains source-reviewed gcache conveniences (
cached,id_arg, argument adapters, context managers,aget, andainvalidate) while implementing DialCache's behavioral and wire contracts. The port includes coalescing, deadline and cancellation ownership, stale recovery, shadow validation, compression, and a borrowed-client Redis/Cluster adapter.Also adds independent Python replay of all 17 shared profiles, completion fingerprint checks, native and real-server CI, packaging, and Python examples throughout the shared documentation.
python/API-DESIGN.mdrecords the gcache revision and API choices.Python CI measures native and real Redis/Valkey/Cluster coverage with separate production-source LCOV reports. Both Python versions upload under the
pythonCodecov flag using OIDC on PRs and main pushes; reports are retained as CI artifacts, and the README includes a Python coverage badge.Local validation
Validated source commit:
4c1290393fded92e39608eb77e49992ea0427042.make check: all four language checks, package checks, documentation build, and audit gates passed.make formal-python: 7,759 conformance cases passed, including 6,022 generated/regression histories, 244 scenarios, 1,477 protocol vectors, and 16 witness checks.asyncio.eager_task_factorywas introduced in Python 3.12.Scope
The package is experimental and unpublished. The complete replay gate establishes finite shared conformance evidence; a Python-specific semantic mutation campaign is not yet registered. Cached wrappers are always awaitable, and applications own their event loop and Redis client lifecycle.
— Levicus 🤖