For what it's worth, the only reason I was trying to figure out stuff with the built-in server was because at the time trying to get Phabricator running in Docker correctly was... not nearly as easy as I would have liked. Quickly skimming online suggests that's improved in the interim.
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Advanced Search
Aug 20 2020
Nov 11 2019
May 3 2017
Feb 24 2017
Just a note for the above - the initial DB seed script will need to be updated accordingly as well. Right now, trying to perform a clean install on a 2nd-gen Google Cloud SQL instance (which has the above limitation) simply errors out when it reaches one of the tables coded as MyISAM.
Jul 20 2016
Jun 14 2016
May 12 2016
Noted. This is by no means an urgent thing (I have a Composer package to mostly the same effect, it just seems silly to be maintaining it twice), and all else being equal I'd rather spend time thinking about the bigger solution. But in the name of all things holy, please don't reinvent Composer as T5055 is basically getting at.
I'd like to get some feedback on the initial implementation, I'll go back and address the couple of TODOs. Note that the change to PhutilUnitTestEngine and one change in ArcanistConfigurationDrivenUnitEngine are actually D15880 because I branched from the wrong place.
May 10 2016
I'm trying to get the PHPUnit engine working with .arcunit, like the phutil engine. Without this change, the results will never render unless the engine renders its own results (as phutil currently does). The Arc Unit workflow itself skips rendering the overall results since ArcanistConfigurationDrivenTestEngine::shouldEchoTestResults() returns false, as it contains logic to render results (changed in this diff).
After applying the diff locally, in PhutilUnitTestEngine change shouldEchoTestResults to return true (or comment out the addition entirely, since the parent does the same):
Apr 28 2016
In D15678#183376, @epriestley wrote:(That sounded really self-congraulatory, but it took me a lot of work to come up with the node tree + token list approach!)
Related: it may be worth looking into leveraging the native AST going forward instead of trying to keep xhpast in sync with PHP with every new minor release. I'd wager it wouldn't take too much voodoo to convert between them so that the existing linter rules continue to work.
Feb 24 2016
Thanks!
Implementation of what's described above - also seems to provide the expected results in my case, and limits impact to PHPUnit results. If a file is executed at all, it should show up normally; when completely untouched (which tends to show up with phpunit whitelisting, now necessary in the newest versions).
That seems totally reasonable. It seems like a bit of a stretch for PHP code specifically, but sane as a general-purpose answer.
Feb 23 2016
Feb 6 2015
Oct 21 2014
Oct 20 2014
Oct 16 2014
Jul 31 2014
Turns out this is actually illegal (as I thought):
Jul 25 2014
In D9792#25, @epriestley wrote:This looks great to me, but I think I came up with a "clever" construction it gets wrong.
My word, why would they allow syntax like that? I'll write a test case for it and see what happens, but that's probably just "give up you damn fool" territory :)
Jul 14 2014
Jul 11 2014
- remove snippet from testing
- making diviner namespace aware
- clean up a lot of the normalization and language-specific context separation logic
- more cleanup
Remove hanging vim swapfile
- further clean up namespace/context work
- add php atomizer test cases and fix an issue they exposed
Jul 10 2014
Significant cleanup to NS range detection for weird files that do evil things. Fixes line numbering issue, and now includes class name in the context for method declarations
Jul 9 2014
Just discovered that this screws up the line numbers from the source file since it rebuilds the tree during parsing. This feels like an incredibly wrong way to select, effectively, a few branches out of the AASTTree, but I couldn't find anything better in the source to handle it.
Perform some crazy slizing and dicing to handle a format that PHP never should have supported:
Jul 2 2014
Cool, thanks for the feedback!
Jul 1 2014
Some screenshots of this in action:
Jun 30 2014
Jun 19 2014
Thanks @chad :)
Jun 18 2014
May 14 2014
(I don't have push access - need you to land this)
May 10 2014
Works here too :)
Apr 8 2014
Also tested that incorrect credentials fail. Because, you know, security. All looks good here!
Worked on my install combined with D8723 :D
The number of tickets you know off the top of your head never ceases to impress. Yeah, that's exactly it. I'll happily test a patch on our install. Thanks!
Turns out this actually killed our LDAP integration, we just didn't spot it until someone nuked their session and tried to log in again.
Mar 25 2014
Ah, yes, that makes some amount of sense. I saw chaining_dereference: defined in the php parser that looked related, that's probably what it made work. That one gave me an unusually bad headache trying to decipher the zend states for some reason.
Mar 10 2014
I just ran into that one in practice today, so I'll probably take a crack at another grammar update to handle it in the next 48 hours or so.
Feb 7 2014
Feb 5 2014
Found another issue with some array dereferencing: if ($state && !isset(self::getSearchStates()[$state])) { still fails. I'll look into that one a bit later - once I saw what the zend grammar was doing... ick.
Feb 4 2014
Update here - did spot one issue: (new Foo)->bar (added in 5.4) fails:
Jan 24 2014
Jan 23 2014
Just as an update - so far all of the changes I've tested have been working really well for 5.4 source. The stock symbol generation script seems to not mind files with more modern grammar ($x = [];, trait, use, closures, etc), and the XHPAST linter seems ok too. As you'd expect we have a massive number of files in our codebase seeing that it started close to five years ago so naturally I haven't been able to run it on everything but I'm feeling pretty good about this :)
Jan 21 2014
This is incredible, thanks! Our devops team is going to comb through all of this and the reviews and see if we need to take a crack at anything else.
Jan 15 2014
Sounds good. We're trying to push everyone through the arc workflows for everything so if it's still a legitimate issue I should have an update pretty soon.
Jan 3 2014
Ok, --background 0 DID allow it to go through. I don't have the stack from SIGHUP as apparently she doesn't have the pcntl extension installed either (I can get it installed if necessary, although given that your first instinct was right I'm guessing it probably isn't...)
Jan 2 2014
Ah, gotcha. I just confirmed that the developer that reported the issue to me doesn't even have xdebug installed, so it's definitely not the listener. However I told her to grab me the next time it happens (it *was* originally being run completely normally), so I'll upload a new trace with the SIGHUP trick when I have one.
Super weird. On a new branch to reproduce the issue it submitted the diff just fine (although still hangs if I arc diff --recon --no-diff manually)
eric@eric-dev ~/wepay: cat /tmp/phabricator_backtrace_511 #0 /home/sites/dev/libphutil/src/error/PhutilErrorHandler.php(188): __phutil_signal_handler__(1) #1 [internal function]: PhutilErrorHandler::handleError(2, 'stream_select()...', '/home/sites/dev...', 196, Array) #2 /home/sites/dev/libphutil/src/channel/PhutilChannel.php(196): stream_select(Array, Array, Array, 1, 0) #3 /home/sites/dev/libphutil/src/channel/PhutilChannel.php(99): PhutilChannel::waitForActivity(Array, Array, Array) #4 /home/sites/dev/libphutil/src/channel/PhutilProtocolChannel.php(135): PhutilChannel::waitForAny(Array) #5 /home/sites/dev/libphutil/src/console/PhutilConsole.php(215): PhutilProtocolChannel->waitForMessage() #6 /home/sites/dev/libphutil/src/console/PhutilConsole.php(117): PhutilConsole->waitForMessage() #7 /home/sites/dev/arcanist/src/workflow/ArcanistLintWorkflow.php(530): PhutilConsole->confirm('Apply this patc...', false) #8 /home/sites/dev/arcanist/src/workflow/ArcanistDiffWorkflow.php(1236): ArcanistLintWorkflow->run() #9 /home/sites/dev/arcanist/src/workflow/ArcanistDiffWorkflow.php(1197): ArcanistDiffWorkflow->runLint() #10 /home/sites/dev/arcanist/src/workflow/ArcanistDiffWorkflow.php(418): ArcanistDiffWorkflow->runLintUnit() #11 /home/sites/dev/arcanist/scripts/arcanist.php(322): ArcanistDiffWorkflow->run() #12 {main}
I never explicitly set it up on my machine which exhibits the problem, but I thought I saw something for eclipse running on the machine we first spotted the problem from.
It does not (I assume you mean on the arc diff command, as arc lint --background 0 just errors out with an unrecognized option)
Oct 25 2013
Oct 16 2013
Interesting. Someone on my team mentioned arc diff complaining about no content earlier, so he must have sent this one up by hand. I'd always wondered why sometimes I'd see "context not available" on diffs; I had figured it wasn't able to line something up cleanly with the previous revision/version in master/etc. Should either manually doing a git branch (as compared to arc feature) and/or pulling in changes from master daily have any impact on its use?