test(ocr): record provider fixtures in the migration harness - #39425
Merged
yujonglee-berri merged 1 commit intoSep 3, 2026
Merged
Conversation
Contributor
|
Too many files changed for review (148 files, 100 file limit). Bypass the limit by tagging |
Contributor
|
PR #39425 labeled |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
yujonglee-berri
force-pushed
the
litellm_ocr_fixture_generation
branch
from
September 2, 2026 23:19
f10ff33 to
93d3d46
Compare
6 tasks
yucheng-berri
approved these changes
Sep 3, 2026
yujonglee-berri
force-pushed
the
litellm_ocr_fixture_generation
branch
from
September 3, 2026 17:01
018024c to
663060a
Compare
yujonglee-berri
force-pushed
the
litellm_ocr_fixture_generation
branch
from
September 3, 2026 17:06
663060a to
175e185
Compare
Base automatically changed from
litellm_ocr_sdk_parity_tests
to
litellm_internal_staging
September 3, 2026 17:16
yujonglee-berri
force-pushed
the
litellm_ocr_fixture_generation
branch
from
September 3, 2026 17:16
175e185 to
8c180af
Compare
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.
TLDR
Problem this solves:
How it solves it:
User Flow
Before: the fixture corpus covers only Mistral and Reducto targets
After: the fixture corpus covers all four OCR providers
Relevant issues
Second PR in the two-PR stack, directly based on #38765. Both PRs follow the specification in #39456
OCR inputs, provider configuration, recording commands, and all 167 cassettes live under
tests/rust-python-harness/strategies/e2e_parity/sdk/ocr/. Shared recording and replay live undershared/parity/. This PR inherits the independent E2E, trace, unit, and existing live SDK runners and combined reports from #38765Run OCR checks with
uv run python -m tests.rust-python-harness --strategy e2e_parity --function ocr --plain. Generate recordings withuv run python -m tests.rust-python-harness.strategies.e2e_parity.sdk.ocr.fixtures.record --examples 1000The stack is local-only with no CI execution. Existing Python tests and native Rust unit tests remain in their original locations. All 167 cassettes retain identical Git blob hashes from this PR's original tip. This alignment changes paths and imports without refreshing recordings or changing provider assertions
Linear ticket
Pre-Submission checklist
Validation
Merged the updated #38765 at
0e4232b468, including staging's new SDK test matrix. The final child checkout passes 110 focused tests covering harness CLI entry points, ledger consistency, Python/Cargo runner behavior, recursive directory selectors, reporting, trace comparison, and CrowdStrike guardrailsThe previous tip
08b8db37a4passed all GitHub Actions checks, including 8,954 passing proxy-endpoints tests. CI is running again for this latest mergeAll 167 cassette blobs are unchanged. The corpus still contains seven targets across four providers. The full expanded OCR parity corpus was not rerun for this merge; the earlier Azure request mismatch and existing expected failures remain outside this CI fix
Screenshots / Proof of Fix
Run this corpus-inspection command from the repository root:
python -c "from pathlib import Path; from collections import Counter; print(dict(sorted(Counter(p.parent.name for p in Path('tests/rust-python-harness/strategies/e2e_parity/sdk/ocr/fixtures/data').rglob('*.yaml')).items())))"Before (0e4232b)
{'mistral-ocr': 18, 'reducto-legacy': 4, 'reducto-v3': 9}After (6619f08)
{'azure-document-intelligence': 17, 'azure-mistral': 15, 'mistral-ocr': 49, 'reducto-legacy': 6, 'reducto-v3': 63, 'vertex-deepseek': 2, 'vertex-mistral': 15}Type
Test
Bug Fix
Caveats (if any)
Medium
Low
Final Attestation