test(azure): replace large image fixtures with minimal 1x1 PNG#13487
Merged
gr2m merged 1 commit intogr2m/shrink-azure-image-fixturefrom Mar 16, 2026
Merged
Conversation
The azure-image-generation-tool fixtures contained a full 1.7MB raccoon PNG as base64. The chunks fixture was 6.9MB and the JSON fixture was 2.1MB. Since the tests validate streaming behavior and response structure, not image content, replace with a minimal 1x1 pixel PNG. Before: chunks 6.9MB, json 2.1MB, snapshot 2.3MB (total ~11.3MB) After: chunks 12.6KB, json 1.7KB, snapshot 200KB (total ~214KB) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Background
The Azure provider's image generation test fixtures contained a full 1.7MB cartoon raccoon PNG encoded as base64. This appeared in three places: the streaming chunks fixture (6.9MB), the JSON fixture (2.1MB), and the resulting snapshot (2.3MB), totaling ~11.3MB of unnecessary data. The tests only validate streaming behavior and response structure, not image content.
Follow-up to #13486 which only addressed the chunks fixture.
Summary
azure-image-generation-tool.1.chunks.txtandazure-image-generation-tool.1.jsonazure-image-generation-tool.1.chunks.txtazure-image-generation-tool.1.jsonazure-openai-provider.test.ts.snapChecklist
pnpm changesetin the project root)