Page MenuHomePhabricator

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

Authored by epriestley on Oct 17 2016, 10:30 PM.
Referenced Files
Unknown Object (File)
Thu, Sep 29, 6:11 PM
Unknown Object (File)
Sat, Sep 17, 4:47 AM
Unknown Object (File)
Aug 25 2022, 8:39 PM
Unknown Object (File)
Aug 22 2022, 7:45 AM
Unknown Object (File)
Aug 3 2022, 7:16 PM
Unknown Object (File)
Jul 14 2022, 7:27 AM
Unknown Object (File)
Jul 7 2022, 2:21 PM
Unknown Object (File)
Jul 2 2022, 6:02 PM



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

rP Phabricator
Lint Not Applicable
Tests Not Applicable

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.