Skip to content

fix(python): expect oidc credential-type header on refreshed tokens - #4632

Merged
Xuanwo merged 1 commit into
mainfrom
fix-zero-lifetime-oauth-test
Oct 22, 2026
Merged

Xuanwo merged 1 commit into
mainfrom
fix-zero-lifetime-oauth-test

Conversation

@Xuanwo

@Xuanwo Xuanwo commented Oct 22, 2026

Copy link
Copy Markdown
Member

Summary

#3971 added test_zero_lifetime_token_is_refreshed, but its expected headers omit x-lancedb-credential-type: oidc, which OAuthProvider.get_headers() has emitted since #2631/#4070. The test fails against current main and breaks the PR CI matrix for every open PR.

Changes

  • Align the two zap assertions in test_zero_lifetime_token_is_refreshed with the provider contract (see test_token_refresh and test_sync_method).

Tests

  • pytest python/tests/test_header_provider.py -q

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.

Tip: disable this comment in your organization's Code Review settings.

@github-actions github-actions Bot added bug Something isn't working Python Python SDK labels Oct 22, 2026

@lancedb-gatekeeper lancedb-gatekeeper Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Gate recommendation: approve.

These expectations now match the OIDC header contract established in #4070, while preserving the token-refresh and fetch-count assertions. All 16 header-provider tests pass locally, and the updated regression test still detects the original zero-lifetime caching bug.

@lancedb-gatekeeper lancedb-gatekeeper Bot added the K-approved Latest Gatekeeper recommendation permits acceptance. label Oct 22, 2026
@Xuanwo
Xuanwo merged commit 62d83f2 into main Oct 22, 2026
18 checks passed
@Xuanwo
Xuanwo deleted the fix-zero-lifetime-oauth-test branch October 22, 2026 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working K-approved Latest Gatekeeper recommendation permits acceptance. Python Python SDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant