Skip to content

Tests: the duplicate-entry bundle test can't trip the size cap first - #285

Merged
ndbroadbent merged 1 commit into
mainfrom
flaky-bundle-test
Dec 5, 2026
Merged

ndbroadbent merged 1 commit into
mainfrom
flaky-bundle-test

Conversation

@ndbroadbent

@ndbroadbent ndbroadbent commented Dec 5, 2026 •

Copy link
Copy Markdown
Member

Fixes the flaky bundle_uploads::more_entries_than_declared_fail_the_build (seen on #280 and #284 CI): the test duplicated files[0], and the declared-total cap is checked before each entry, so whenever that PNG was a byte larger than files[1] the size cap tripped before the duplicate check could say "twice". It now duplicates the smaller file.

Cherry-picked from #280 (5c6ef51) so it lands ahead of that PR.


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…o the declared-total cap can't trip first

The bundle may unpack to no more than its declared total, checked before each entry. Duplicating files[0] tripped
that cap ("unpacks to more than 399 bytes") whenever its PNG came out a byte larger than files[1]'s, before the
duplicate check could say "twice" (CI on eda9f19).
@ndbroadbent
ndbroadbent merged commit f36a891 into main Dec 5, 2026
17 checks passed
@ndbroadbent
ndbroadbent deleted the flaky-bundle-test branch December 5, 2026 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant