Page MenuHomePhabricator

Add a setup check for the XHPAST binary
Needs RevisionPublic

Authored by epriestley on Jan 27 2015, 7:29 AM.
Tags
None
Referenced Files
F13976581: D11514.id27728.diff
Fri, Oct 18, 2:55 PM
F13965316: D11514.id28016.diff
Wed, Oct 16, 1:16 AM
Unknown Object (File)
Tue, Oct 8, 7:13 PM
Unknown Object (File)
Sun, Oct 6, 8:47 PM
Unknown Object (File)
Sep 27 2024, 5:35 AM
Unknown Object (File)
Sep 16 2024, 7:52 PM
Unknown Object (File)
Sep 10 2024, 4:05 AM
Unknown Object (File)
Sep 2 2024, 5:08 PM

Details

Reviewers
joshuaspence
btrahan
Group Reviewers
Blessed Reviewers
Summary

Adds a setup check which verifies that the XHPAST binary is built and up-to-date.

Test Plan
  • Deleted the XHPAST binary and saw the xhpast.binary setup issue.
  • Built an older version of XHPAST and saw the xhpast.version setup issue.
  • Built the latest version of XHPAST and saw no setup issues.

Diff Detail

Event Timeline

joshuaspence retitled this revision from to Ensure that `PhutilDefaultSyntaxHighlighterEngine` uses XHPAST for highlighting PHP.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
epriestley edited edge metadata.

I suspect the web user will frequently (or, frequently enough to cause support headaches) not have permission to perform the build, or GCC will not be installed, and I don't want new installs to explode when highlighting PHP code.

I'm hesitant to do this build from a web process at all because it may take significantly longer than all other setup/init sorts of checks (it takes a few seconds on my machine).

I'd accept a config warning about out-of-date / unbuilt XHPAST in Phabricator. It could maybe try to rebuild if the user presses a button to trigger it, but I don't want the autorebuild to occur by default. I also suspect the success rate will be low enough that this will frustrate users overall versus just giving them the command to run.

This revision now requires changes to proceed.Jan 27 2015, 2:23 PM

Yeah, a setup check sounds better. Let me see if I can make that happen.

joshuaspence edited edge metadata.

Setup checks instead

joshuaspence retitled this revision from Ensure that `PhutilDefaultSyntaxHighlighterEngine` uses XHPAST for highlighting PHP to Add a setup check for the XHPAST binary.Jan 27 2015, 8:51 PM
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence edited edge metadata.
epriestley edited edge metadata.

Rebase this on the static class and I can write some copy in the pull? The checks are good but I want to soften the language of the first one.

This revision now requires changes to proceed.Feb 2 2015, 2:02 PM
epriestley edited edge metadata.
This revision is now accepted and ready to land.May 19 2015, 3:24 PM
epriestley edited reviewers, added: joshuaspence; removed: epriestley.

I want to rewrite the copy on this one but some stuff came up, let me just steal it for the moment.

This revision now requires review to proceed.May 19 2015, 3:56 PM
btrahan requested changes to this revision.Jun 1 2015, 6:22 PM
btrahan added a reviewer: btrahan.
btrahan added a subscriber: btrahan.

Copy changes, etc are coming; just taking off my queue.

This revision now requires changes to proceed.Jun 1 2015, 6:22 PM