Page MenuHomePhabricator

Make "metamta.differential.inline-patches" imply a reasonable byte limit, not just a line limit
ClosedPublic

Authored by epriestley on Oct 17 2016, 10:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 19, 5:28 PM
Unknown Object (File)
Mon, Apr 15, 1:43 PM
Unknown Object (File)
Sun, Apr 14, 9:20 AM
Unknown Object (File)
Thu, Apr 11, 8:53 AM
Unknown Object (File)
Fri, Apr 5, 4:34 AM
Unknown Object (File)
Tue, Apr 2, 12:42 PM
Unknown Object (File)
Tue, Apr 2, 12:40 PM
Unknown Object (File)
Mon, Apr 1, 4:25 PM
Subscribers
None

Details

Summary

Fixes T11748. This option currently implies a line limit (e.g., inline patches that are less than 100 lines long). This breaks down if a diff has a 10MB line, like a huge blob of JSON all on one line.

For now, imply a reasonable byte limit (256 bytes per line).

See T11767 for future work to make this and related options more cohesive.

Test Plan
  • With option at 1000: sent Differential email, saw patches inlined.
  • With option at 10: sent Differential email, saw patches dropped because of the byte limit.
  • var_dump()'d the actual limits and used bin/worker execute --id ... to sanity check that things were working properly.

Diff Detail

Repository
rP Phabricator
Branch
mbytes1
Lint
Lint Passed
SeverityLocationCodeMessage
Advicesrc/applications/differential/editor/DifferentialTransactionEditor.php:1288XHP16TODO Comment
Unit
Tests Passed
Build Status
Buildable 14142
Build 18367: Run Core Tests
Build 18366: arc lint + arc unit

Event Timeline

epriestley retitled this revision from to Make "metamta.differential.inline-patches" imply a reasonable byte limit, not just a line limit.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Oct 17 2016, 10:55 PM
This revision was automatically updated to reflect the committed changes.