]> khamidou — GitHub mirrors - arcanist.git/commit
Lint engine seems to get null configuration manager in svn precommit hook workflow
authorPeng Li <pengli@fb.com>
Tue, 11 Mar 2014 22:26:31 +0000 (15:26 -0700)
committerepriestley <git@epriestley.com>
Tue, 11 Mar 2014 22:35:28 +0000 (15:35 -0700)
commitac82dea3c9e55f72c69cccfc3c36fe3cd01bf541
tree99c145ca93bbd2ce69779ab066d13a8fb63b044e
parent37dac61131683502f16f3fe059bf75b914d86652
Lint engine seems to get null configuration manager in svn precommit hook workflow

Summary:
We recently tried to advance the arcanist HEAD in our release branch but failed, due to an exception in SVN pre-commit hook like this:

abort: Commit blocked by pre-commit hook (exit code 1) with output:
 LINT 1.3s FacebookWebJSLintLinter (1 file)
Exception
Some linters failed:
 - FacebookWebCopyrightLinter: BadMethodCallException: Call to a member function getConfigFromAnySource() on a non-object
(Run with --trace for a full exception trace.)

However `arc lint` works just fine. By searching the change history, it looks related to a few commits D7271, D7377, D7382, especially D7377, where configuration manager is added to the lint engine. Add it to the SVN precommit hook workflow too.

Test Plan: I am not quite sure how to test it out easily. Any suggestions?

Reviewers: lifeihuang, JoelB, epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: aran, epriestley, mikemag, Korvin

Differential Revision: https://secure.phabricator.com/D8492
src/workflow/ArcanistSvnHookPreCommitWorkflow.php