Repository navigation
Tests: the duplicate-entry bundle test can't trip the size cap first - #285
Merged
Merged
Conversation
…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
force-pushed
the
flaky-bundle-test
branch
from
December 5, 2026 09:26
28b7d26 to
15f3d3c
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.
Fixes the flaky
bundle_uploads::more_entries_than_declared_fail_the_build(seen on #280 and #284 CI): the test duplicatedfiles[0], and the declared-total cap is checked before each entry, so whenever that PNG was a byte larger thanfiles[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-botwith what you need.