1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-22 18:28:47 +02:00
phorge-phorge/src/applications/diffusion/query
epriestley 8ddf883d2e Cut Herald rules off at 1GB of diff text
Summary:
Ref T4276. When a change is larger than 2GB, PHP can not read the entire change into a string, so Herald can not process it.

Additionally, we already have a time limit for practical reasons, but it's huge (probably incorrectly). To deal with these things:

  - Add an optional byte limit to `diffusion.rawdiffquery`.
  - Make the query with a 1GB limit.
  - Reduce the diff timeout from 15 hours to 15 minutes.
  - Add a "Changeset is enormous" field. This field is true for changes which are too large to process.

This generally makes behaviors more sane:

  - We'll always make progress in Herald in a reasonable amount of time.
  - Installs can write global rules to handle (or reject) these types of changes.

Test Plan: Set limit to 25 bytes instead of 1GB and ran test console on various changes.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T4276

Differential Revision: https://secure.phabricator.com/D7885
2014-01-03 12:27:19 -08:00
..
filecontent Various fixes for hosted and non-hosted subversion queries in Diffusion. 2013-12-19 10:32:26 -06:00
lowlevel Modernize Diffusion commitparentsquery 2013-12-20 12:39:21 -08:00
pathchange Don't show changes for commits which affect more than 1,000 files 2013-01-30 12:01:49 -08:00
pathid Fix failing unit test testParentEdgeCases under Windows 2013-04-02 09:01:33 -07:00
rawdiff Cut Herald rules off at 1GB of diff text 2014-01-03 12:27:19 -08:00
DiffusionCommitQuery.php Add a Diffusion repository remarkup rule 2013-12-31 11:08:08 -08:00
DiffusionPathQuery.php Delete license headers from files 2012-11-05 11:16:51 -08:00
DiffusionQuery.php Remove "isUnparsed" flag from commits 2013-10-30 13:06:57 -07:00
DiffusionRenameHistoryQuery.php Fix an issue with pulling Subversion blame data 2013-11-07 12:10:43 -08:00
DiffusionResolveUserQuery.php Provide a standalone query for resolution of commit author/committer into Phabricator users 2013-12-19 11:05:17 -08:00
DiffusionSymbolQuery.php Make most repository reads policy-aware 2013-09-25 16:54:48 -07:00