Repository navigation
Align expiry precision and integration contracts - #247
Merged
Merged
Conversation
Scheduled integration checks exposed Redis deadline jitter and fixtures that no longer matched the supported session and cache contracts. Root cause: Redis combined microsecond server time with millisecond TTL; the cache fixture omitted its window table, and successful OAuth scenarios included SQL engines that intentionally reject atomic claims. Preserve compatible Redis commands and document approximate legacy observations. Cover Redis6.2 and7 with server-clock checks, migrate both PostgreSQL cache tables in the fixture, and assert fail-closed MySQL and MariaDB OAuth behavior before token exchange. Verified: Focused pytest checks:162 unit/SQLite and79 real integration passed; Redis old-code proofs and four unsafe-claim mutation controls fail as expected. Independent review passed13 final expiry checks plus52 earlier checks. Ruff and session mypy passed; full final validation is running before push. Refs: #245
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
Scheduled integration checks exposed Redis expiry jitter and fixtures that no longer matched the framework's supported contracts. Session expiry observations now discard sub-millisecond clock fractions without renewing or recreating sessions. PostgreSQL cache fixtures include both required tables, and OAuth coverage verifies the existing fail-closed behavior on unsupported SQL engines.
Type of Change
Changes
cache_windowsin the externally migrated PostgreSQL cache fixture.Test Plan
Risk and rollback
No new SQL backend claims are enabled, and the Redis command compatibility requirement is unchanged. Expiry remains a read-only observation, not an authorization guarantee. Older Redis observations remain approximate. Revert this change if a regression appears; do not overwrite a published release tag.
Related