Page MenuHomePhabricator

Allow arcanist output to be sent to a file
Open, Needs TriagePublic

Description

Currently, we are running arc lint --everything --never-apply-patches --output=xml > checkstyle.xml in Jenkins, The output redirection is a little odd and not inline with other scripts that we run in CI. I think that it would be useful to be able to send the output from Arcanist to a file for this purpose. This might not be useful outside of lint/unit, so possibly it could be implied that adding --output=xml will write the results to checkstyle.xml.

Revisions and Commits

Event Timeline

joshuaspence raised the priority of this task from to Needs Triage.
joshuaspence updated the task description. (Show Details)
joshuaspence added a project: Arcanist.
joshuaspence added a subscriber: joshuaspence.

Is there a practical use case motivating this? The cases I can come up with are:

  • sudo command --out outfile is easier than sudo command | sudo tee junk > outfile &2>/dev/null
  • Error handling with pipes is ridiculous (T6996).

But these don't seem particularly applicable for arc lint / arc unit.

A third case is that, as far as I can tell:

  • cmd > file does not fail if the disk is full (!??!!?)

...which is crazy.