Skip to content

Update output limit semantics: 0 means unlimited#12

Merged
maniramezan merged 2 commits into
mainfrom
fix/output-limit-zero-means-unlimited
May 22, 2026
Merged

Update output limit semantics: 0 means unlimited#12
maniramezan merged 2 commits into
mainfrom
fix/output-limit-zero-means-unlimited

Conversation

@maniramezan
Copy link
Copy Markdown
Owner

Summary

Changes the default output limit from 10 MB to unlimited (0), and redefines the semantics:

  • 0 (new default) = unlimited — no cap on captured output
  • Positive value = byte cap; exceeding raises outputLimitExceeded
  • Negative value = rejected with invalidConfiguration error

Breaking Change

Consumers that previously passed -1 to mean "unlimited" must now pass 0 or omit the parameter (default is unlimited).

Motivation

ShipItSwifty's xcodebuild archive step was failing with "exceeded output limit of 10485760 bytes" because the 10 MB default was too low for archive output. Making the default unlimited removes this footgun — consumers can still opt into a cap if desired.

Tests

All 79 existing tests pass with updated expectations.

Previously the default output limit was 10 MB and -1 was used as a
sentinel for unlimited. This was error-prone because the guard that
rejects invalid values would reject -1 unless callers knew the internal
convention.

New semantics:
- 0 (the new default) = unlimited (no cap on captured output)
- positive value = byte cap (exceeding raises outputLimitExceeded)
- negative value = rejected with invalidConfiguration error

This is a breaking change for consumers that relied on -1 as unlimited.
They should now pass 0 or omit the parameter entirely (default is 0).

Co-Authored-By: Claude <noreply@anthropic.com>
@maniramezan maniramezan changed the title Change output limit semantics: 0 means unlimited, reject negative values Update output limit semantics: 0 means unlimited May 22, 2026
Co-Authored-By: Claude <noreply@anthropic.com>
@maniramezan maniramezan merged commit b3e5b06 into main May 22, 2026
23 checks passed
@maniramezan maniramezan deleted the fix/output-limit-zero-means-unlimited branch May 22, 2026 00:20
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