]> khamidou — GitHub mirrors - arcanist.git/commit
Cache results of repository linters
authorvrana <jakubv@fb.com>
Wed, 23 Jan 2013 21:06:45 +0000 (13:06 -0800)
committervrana <jakubv@fb.com>
Fri, 25 Jan 2013 00:15:55 +0000 (16:15 -0800)
commita1b902b190b2fc5a52c81dd6c392445c82bd7890
tree79c3ab0aa969330ae9d34aacad400ea0cfc19357
parente56f47aed5a0124df008262cb9c45dead4815196
Cache results of repository linters

Summary:
The cache key is repository base revision and hash of all modified files.
It isn't perfect in SVN where every file might have a different revision.
It's also suboptimal as just committing or amending changes the cache key even if the files contents weren't modified.
We can improve it later, perhaps by using previous revision and files modified since it.

Test Plan:
Changed granularity of XHPAST linter to repository.
Linted the same repo twice, verified that it was read from cache the second file.
Changed a single file, verified that all files were re-linted.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D4608
src/lint/engine/ArcanistLintEngine.php
src/workflow/ArcanistBaseWorkflow.php
src/workflow/ArcanistLintWorkflow.php