Skip to content

Backport: test(azure): shrink image generation fixture from 6.9MB to 12.6KB#13488

Merged
vercel-ai-sdk[bot] merged 1 commit intorelease-v6.0from
backport-pr-13486-to-release-v6.0
Mar 16, 2026
Merged

Backport: test(azure): shrink image generation fixture from 6.9MB to 12.6KB#13488
vercel-ai-sdk[bot] merged 1 commit intorelease-v6.0from
backport-pr-13486-to-release-v6.0

Conversation

@vercel-ai-sdk
Copy link
Copy Markdown
Contributor

@vercel-ai-sdk vercel-ai-sdk bot commented Mar 16, 2026

This is an automated backport of #13486 to the release-v6.0 branch. FYI @gr2m

…3486)

## 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. The tests only
validate streaming behavior and response structure, not image content,
so the actual image payload is irrelevant.

In CI (Node 22), the `should stream image generation tool results
include` test was taking **3–10 seconds** due to parsing and streaming
this data, compared to ~1–14ms for every other test in the file.

## Summary

- Replaced full-size base64 PNG with a minimal 1x1 pixel PNG (69 bytes)
in both `azure-image-generation-tool.1.chunks.txt` and
`azure-image-generation-tool.1.json`
- Updated corresponding test snapshots

| File | Before | After |
|---|---|---|
| `azure-image-generation-tool.1.chunks.txt` | 6.9 MB | 12.6 KB |
| `azure-image-generation-tool.1.json` | 2.1 MB | 1.7 KB |
| `azure-openai-provider.test.ts.snap` | 2.3 MB | 200 KB |
| **Total** | **~11.3 MB** | **~214 KB** |

## Manual Verification

All 55 tests in `azure-openai-provider.test.ts` pass on both node and
edge configurations. The target test went from 171ms to 2ms locally.

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel-ai-sdk vercel-ai-sdk bot enabled auto-merge (squash) March 16, 2026 18:29
@tigent tigent bot added ai/provider related to a provider package. Must be assigned together with at least one `provider/*` label maintenance CI, internal documentation, automations, etc provider/azure Issues related to the @ai-sdk/azure provider labels Mar 16, 2026
@gr2m gr2m added the backport Admins only: add this label to a pull request in order to backport it to the prior version label Mar 16, 2026
@vercel-ai-sdk vercel-ai-sdk bot merged commit afeaec0 into release-v6.0 Mar 16, 2026
27 checks passed
@vercel-ai-sdk vercel-ai-sdk bot deleted the backport-pr-13486-to-release-v6.0 branch March 16, 2026 18:37
vercel-ai-sdk bot added a commit that referenced this pull request Mar 16, 2026
@vercel-ai-sdk vercel-ai-sdk bot removed the backport Admins only: add this label to a pull request in order to backport it to the prior version label Mar 16, 2026
@vercel-ai-sdk
Copy link
Copy Markdown
Contributor Author

vercel-ai-sdk bot commented Mar 16, 2026

⚠️ Backport to release-v5.0 created but has conflicts: #13490

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai/provider related to a provider package. Must be assigned together with at least one `provider/*` label maintenance CI, internal documentation, automations, etc provider/azure Issues related to the @ai-sdk/azure provider

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant