Page MenuHomePhabricator
Feed All Stories

Jan 13 2021

epriestley committed rPea9cb0b625fb: Disambiguate Git ref selectors in some Git command line invocations (authored by epriestley).
Disambiguate Git ref selectors in some Git command line invocations
Jan 13 2021, 8:31 PM
epriestley closed D21510: Disambiguate Git ref selectors in some Git command line invocations.
Jan 13 2021, 8:31 PM
epriestley closed D21509: Provide "gitsprintf(...)" and disambiguate Git ref selectors.
Jan 13 2021, 8:31 PM
epriestley committed rARCb2e715fc5a9c: Provide "gitsprintf(...)" and disambiguate Git ref selectors (authored by epriestley).
Provide "gitsprintf(...)" and disambiguate Git ref selectors
Jan 13 2021, 8:31 PM
artms added inline comments to D14148: Allow Drydock leases to expire after a time limit.
Jan 13 2021, 1:34 PM

Jan 12 2021

epriestley updated the diff for D21510: Disambiguate Git ref selectors in some Git command line invocations.
  • Include fix for a "blame" callsite.
Jan 12 2021, 8:43 PM
epriestley requested review of D21510: Disambiguate Git ref selectors in some Git command line invocations.
Jan 12 2021, 8:13 PM
epriestley added a revision to T13589: Git may interpret refnames as flags in some commands which accept both refs and paths: D21510: Disambiguate Git ref selectors in some Git command line invocations.
Jan 12 2021, 8:11 PM · Security, Git
epriestley updated the task description for T13589: Git may interpret refnames as flags in some commands which accept both refs and paths.
Jan 12 2021, 8:10 PM · Security, Git
epriestley requested review of D21509: Provide "gitsprintf(...)" and disambiguate Git ref selectors.
Jan 12 2021, 8:10 PM
epriestley added a revision to T13589: Git may interpret refnames as flags in some commands which accept both refs and paths: D21509: Provide "gitsprintf(...)" and disambiguate Git ref selectors.
Jan 12 2021, 8:09 PM · Security, Git
epriestley added a comment to T13575: PHP built-in webserver fails on POST.

I'm not completely thrilled about maintaining PHP builtin webserver support...

Jan 12 2021, 7:11 PM · Infrastructure
epriestley triaged T13589: Git may interpret refnames as flags in some commands which accept both refs and paths as Normal priority.
Jan 12 2021, 6:26 PM · Security, Git
epriestley committed rPc63c2aadef3a: Support "control" and "return/enter" in the remarkup rule for keystrokes (authored by epriestley).
Support "control" and "return/enter" in the remarkup rule for keystrokes
Jan 12 2021, 3:47 AM
epriestley closed D21508: Support "control" and "return/enter" in the remarkup rule for keystrokes.
Jan 12 2021, 3:47 AM
epriestley requested review of D21508: Support "control" and "return/enter" in the remarkup rule for keystrokes.
Jan 12 2021, 3:44 AM

Jan 11 2021

epriestley added a comment to T13575: PHP built-in webserver fails on POST.

I added M1, etc., to the ignored list in D21507.

Jan 11 2021, 8:16 PM · Infrastructure
epriestley closed T13575: PHP built-in webserver fails on POST as Resolved.

I think this is now resolved. I'm not completely thrilled about maintaining PHP builtin webserver support because I think use is very limited, but since I'm currently using it I expect to support it at least until I summon the nerve to deal with Homebrew.

Jan 11 2021, 8:14 PM · Infrastructure
epriestley added a task to D20903: Ensure __path__ is set on POST requests when running on CLI webserver: T13575: PHP built-in webserver fails on POST.
Jan 11 2021, 6:59 PM
epriestley added a revision to T13575: PHP built-in webserver fails on POST: D20903: Ensure __path__ is set on POST requests when running on CLI webserver.
Jan 11 2021, 6:59 PM · Infrastructure
epriestley abandoned D20903: Ensure __path__ is set on POST requests when running on CLI webserver.

See T13575. This change should be obsoleted by D21506.

Jan 11 2021, 6:58 PM
epriestley commandeered D20903: Ensure __path__ is set on POST requests when running on CLI webserver.
Jan 11 2021, 6:55 PM
epriestley updated the summary of D21506: Fix reading of the request path when running the PHP builtin webserver.
Jan 11 2021, 6:55 PM
epriestley committed rP18f049a282f4: Fix reading of the request path when running the PHP builtin webserver (authored by epriestley).
Fix reading of the request path when running the PHP builtin webserver
Jan 11 2021, 6:54 PM
epriestley closed D21506: Fix reading of the request path when running the PHP builtin webserver.
Jan 11 2021, 6:54 PM
epriestley committed rP04c1f67a020c: Add "M<digit>" and "P<digit>" to the default Remarkup ignore list (authored by epriestley).
Add "M<digit>" and "P<digit>" to the default Remarkup ignore list
Jan 11 2021, 6:54 PM
epriestley closed D21507: Add "M<digit>" and "P<digit>" to the default Remarkup ignore list.
Jan 11 2021, 6:54 PM
epriestley requested review of D21507: Add "M<digit>" and "P<digit>" to the default Remarkup ignore list.
Jan 11 2021, 6:52 PM
epriestley added a revision to T13575: PHP built-in webserver fails on POST: D21507: Add "M<digit>" and "P<digit>" to the default Remarkup ignore list.
Jan 11 2021, 6:51 PM · Infrastructure
epriestley requested review of D21506: Fix reading of the request path when running the PHP builtin webserver.
Jan 11 2021, 6:36 PM
epriestley added a revision to T13575: PHP built-in webserver fails on POST: D21506: Fix reading of the request path when running the PHP builtin webserver.
Jan 11 2021, 6:34 PM · Infrastructure
epriestley added a comment to T13575: PHP built-in webserver fails on POST.

Guess I should probably add M1 to the remarkup blocklist now.

Jan 11 2021, 5:52 PM · Infrastructure
epriestley added a comment to T13575: PHP built-in webserver fails on POST.

I switched to an M1 Mac Mini on Big Sur, which has motivated me somewhat to try to get this working since I suspect doing another install through Homebrew on M1 silicon will be more adventure than I have stomach for.

Jan 11 2021, 5:45 PM · Infrastructure
epriestley claimed T13575: PHP built-in webserver fails on POST.
Jan 11 2021, 5:43 PM · Infrastructure
jrtc27 closed D21504: Fix pyflakes tests for recent pyflakes versions.
Jan 11 2021, 4:52 AM
jrtc27 committed rARC172381260ee7: Fix pyflakes tests for recent pyflakes versions (authored by jrtc27).
Fix pyflakes tests for recent pyflakes versions
Jan 11 2021, 4:52 AM
jrtc27 closed D21503: Fix ArcanistJSHintLinterTestCase::testLinter for recent JSHint.
Jan 11 2021, 4:51 AM
jrtc27 committed rARC09cff8611ba4: Fix ArcanistJSHintLinterTestCase::testLinter for recent JSHint (authored by jrtc27).
Fix ArcanistJSHintLinterTestCase::testLinter for recent JSHint
Jan 11 2021, 4:51 AM
jrtc27 closed D21502: Fix PhutilOAuth1FutureTestCase::testOAuth1SigningWithJIRAExamples for PHP 8.
Jan 11 2021, 4:50 AM
jrtc27 committed rARCf64eb04300b4: Fix PhutilOAuth1FutureTestCase::testOAuth1SigningWithJIRAExamples for PHP 8 (authored by jrtc27).
Fix PhutilOAuth1FutureTestCase::testOAuth1SigningWithJIRAExamples for PHP 8
Jan 11 2021, 4:50 AM
jrtc27 closed D21501: Fix PhutilUTF8TestCase::testUTF8Convert for PHP 8.
Jan 11 2021, 4:50 AM
jrtc27 committed rARC9589fd18662f: Fix PhutilUTF8TestCase::testUTF8Convert for PHP 8 (authored by jrtc27).
Fix PhutilUTF8TestCase::testUTF8Convert for PHP 8
Jan 11 2021, 4:50 AM
jrtc27 updated the diff for D21504: Fix pyflakes tests for recent pyflakes versions.

Rebased patch series

Jan 11 2021, 4:49 AM
epriestley accepted D21501: Fix PhutilUTF8TestCase::testUTF8Convert for PHP 8.
Jan 11 2021, 4:48 AM
jrtc27 updated the diff for D21503: Fix ArcanistJSHintLinterTestCase::testLinter for recent JSHint.

Rebased patch series

Jan 11 2021, 4:48 AM
jrtc27 updated the diff for D21502: Fix PhutilOAuth1FutureTestCase::testOAuth1SigningWithJIRAExamples for PHP 8.

Rebased patch series

Jan 11 2021, 4:47 AM
jrtc27 updated the summary of D21501: Fix PhutilUTF8TestCase::testUTF8Convert for PHP 8.
Jan 11 2021, 4:46 AM
jrtc27 updated the diff for D21501: Fix PhutilUTF8TestCase::testUTF8Convert for PHP 8.

Catch Throwable in the test rather than converting to Exception inside phutil_utf8_convert

Jan 11 2021, 4:45 AM
epriestley accepted rARC90ac9a2ff281: Fix ArcanistFormattedStringXHPASTLinterRule for PHP 8.

See D21500 for discussion, the test failure was an interaction between callbacks specified in C::m form and $callback() inside xsprintf() under old versions of PHP. Resolved by D21505.

Jan 11 2021, 4:41 AM
jrtc27 closed D21505: Fix ArcanistFormattedStringXHPASTLinterRule on older PHP after D21500.
Jan 11 2021, 4:40 AM
jrtc27 committed rARC687cb41ace6c: Fix ArcanistFormattedStringXHPASTLinterRule on older PHP after D21500 (authored by jrtc27).
Fix ArcanistFormattedStringXHPASTLinterRule on older PHP after D21500
Jan 11 2021, 4:40 AM
epriestley accepted D21505: Fix ArcanistFormattedStringXHPASTLinterRule on older PHP after D21500.
Jan 11 2021, 4:40 AM
jrtc27 requested review of D21505: Fix ArcanistFormattedStringXHPASTLinterRule on older PHP after D21500.
Jan 11 2021, 4:39 AM
epriestley added a comment to T13588: PHP 8 Compatibility.

So I don't forget:

Jan 11 2021, 4:33 AM · Infrastructure
jrtc27 added a comment to D21500: Fix ArcanistFormattedStringXHPASTLinterRule for PHP 8.

Ah even better.

Jan 11 2021, 4:31 AM
epriestley added a comment to D21500: Fix ArcanistFormattedStringXHPASTLinterRule for PHP 8.

Oh, or the array('C', 'm') version appears to work properly when invoked as $callback in all versions of PHP since PHP 5.4:

Jan 11 2021, 4:31 AM
jrtc27 added a comment to D21500: Fix ArcanistFormattedStringXHPASTLinterRule for PHP 8.

https://3v4l.org/eYFoc does work for 5.2.2+ to pass by reference, provided which arguments are passed by reference is part of the contract. But probably best to keep it simple and define xsprintf_test_callback as you say.

Jan 11 2021, 4:30 AM
epriestley added a comment to D21500: Fix ArcanistFormattedStringXHPASTLinterRule for PHP 8.

Oh, I think the reason to use $callback(...) is the behavior of the reference parameters. Yikes.

Jan 11 2021, 4:25 AM
epriestley added a comment to D21500: Fix ArcanistFormattedStringXHPASTLinterRule for PHP 8.

Here's some evidence to support that theory:

Jan 11 2021, 4:21 AM
epriestley added a comment to D21500: Fix ArcanistFormattedStringXHPASTLinterRule for PHP 8.

Ah, I think the issue is that xsprintf() internally does this :

Jan 11 2021, 4:19 AM
jrtc27 updated the diff for D21504: Fix pyflakes tests for recent pyflakes versions.

Stay under 80 characters (and format the other long preg_match a bit more nicely)

Jan 11 2021, 4:12 AM
epriestley accepted D21504: Fix pyflakes tests for recent pyflakes versions.

See T10038 for general context.

Jan 11 2021, 4:09 AM
jrtc27 added a comment to D21500: Fix ArcanistFormattedStringXHPASTLinterRule for PHP 8.

Hm, Harbormaster is failing with:

Fatal error: Call to undefined function ArcanistFormattedStringXHPASTLinterRule::processXsprintfCallback() in /core/data/drydock/workingcopy-70/repo/arcanist/src/xsprintf/xsprintf.php on line 70

Does referencing static functions not work in old PHP versions or something? I tested with 7.4 and it was fine.

Jan 11 2021, 4:08 AM
Harbormaster failed to build B24990: rARC90ac9a2ff281: Fix ArcanistFormattedStringXHPASTLinterRule for PHP 8 for rARC90ac9a2ff281: Fix ArcanistFormattedStringXHPASTLinterRule for PHP 8!
Jan 11 2021, 4:05 AM
jrtc27 closed D21500: Fix ArcanistFormattedStringXHPASTLinterRule for PHP 8.
Jan 11 2021, 4:05 AM
jrtc27 committed rARC90ac9a2ff281: Fix ArcanistFormattedStringXHPASTLinterRule for PHP 8 (authored by jrtc27).
Fix ArcanistFormattedStringXHPASTLinterRule for PHP 8
Jan 11 2021, 4:05 AM
jrtc27 committed rARC0adef03fdfee: Fix PhutilTypeSpec's regex handling for PHP 8 (authored by jrtc27).
Fix PhutilTypeSpec's regex handling for PHP 8
Jan 11 2021, 4:04 AM
jrtc27 closed D21499: Fix PhutilTypeSpec's regex handling for PHP 8.
Jan 11 2021, 4:04 AM
jrtc27 requested review of D21504: Fix pyflakes tests for recent pyflakes versions.
Jan 11 2021, 4:03 AM
epriestley added a comment to D21500: Fix ArcanistFormattedStringXHPASTLinterRule for PHP 8.

Oh, I'm totally onboard with this change -- I think this behavior is generally better than the old behavior and the property of getting the input string out is useful/clever, just trying to save future-me a minute or two if this breaks and I end up here via git blame.

Jan 11 2021, 3:52 AM
epriestley added a comment to D21501: Fix PhutilUTF8TestCase::testUTF8Convert for PHP 8.

Sounds good. I think it's very unlikely anything is relying on the type of exception thrown, and we would (or, at least, should) normally throw a narrower exception (UTF8ConversionEncodingFailedVeryNarrowlyException) if really trying to make this part of the API.

Jan 11 2021, 3:47 AM
epriestley accepted D21503: Fix ArcanistJSHintLinterTestCase::testLinter for recent JSHint.

🤷

Jan 11 2021, 3:42 AM
epriestley accepted D21499: Fix PhutilTypeSpec's regex handling for PHP 8.

preg_match() in all modern versions of PHP seems to be willing to accept an object with __toString() as the first parameter:

Jan 11 2021, 3:38 AM
jrtc27 added a comment to D21500: Fix ArcanistFormattedStringXHPASTLinterRule for PHP 8.

In the case of hypothetical zsprintf("A %XYZ B", ...), where %XYZ is some multi-character conversion like %Ls, the real zsprintf() would call sprintf("A %s B") internally, while this will call sprintf("A %sYZ B") -- that is, this callback can't know that %XYZ is a single conversion, rather than %X + YZ.

I can't think of any problems this will cause today or any theoretical problems it will cause in the future, and there's no easy way to future-proof it anyway, so I think this is the most reasonable fix.

Jan 11 2021, 3:38 AM
epriestley accepted D21500: Fix ArcanistFormattedStringXHPASTLinterRule for PHP 8.

In the case of hypothetical zsprintf("A %XYZ B", ...), where %XYZ is some multi-character conversion like %Ls, the real zsprintf() would call sprintf("A %s B") internally, while this will call sprintf("A %sYZ B") -- that is, this callback can't know that %XYZ is a single conversion, rather than %X + YZ.

Jan 11 2021, 3:29 AM
jrtc27 added a comment to D21501: Fix PhutilUTF8TestCase::testUTF8Convert for PHP 8.

Does this just break a test or something?

Jan 11 2021, 3:29 AM
epriestley requested changes to D21501: Fix PhutilUTF8TestCase::testUTF8Convert for PHP 8.

Does this just break a test or something?

Jan 11 2021, 3:18 AM
epriestley accepted D21502: Fix PhutilOAuth1FutureTestCase::testOAuth1SigningWithJIRAExamples for PHP 8.

Thanks!

Jan 11 2021, 3:01 AM
jrtc27 requested review of D21503: Fix ArcanistJSHintLinterTestCase::testLinter for recent JSHint.
Jan 11 2021, 3:00 AM
jrtc27 added a comment to T13588: PHP 8 Compatibility.

With the four revisions I've just added, arc lint works with PHP 8 when run inside the arcanist repo, and arc unit --everything has no regressions compared with PHP 7.4 (both do have a few failures but they're the same and relate to pyflakes/jshint/hg, and look environment-specific so nothing to do with PHP 8).

Jan 11 2021, 2:24 AM · Infrastructure
jrtc27 added a revision to T13588: PHP 8 Compatibility: D21499: Fix PhutilTypeSpec's regex handling for PHP 8.
Jan 11 2021, 2:21 AM · Infrastructure
jrtc27 added a task to D21499: Fix PhutilTypeSpec's regex handling for PHP 8: T13588: PHP 8 Compatibility.
Jan 11 2021, 2:21 AM
jrtc27 added a task to D21500: Fix ArcanistFormattedStringXHPASTLinterRule for PHP 8: T13588: PHP 8 Compatibility.
Jan 11 2021, 2:21 AM
jrtc27 added a revision to T13588: PHP 8 Compatibility: D21500: Fix ArcanistFormattedStringXHPASTLinterRule for PHP 8.
Jan 11 2021, 2:21 AM · Infrastructure
jrtc27 added a revision to T13588: PHP 8 Compatibility: D21501: Fix PhutilUTF8TestCase::testUTF8Convert for PHP 8.
Jan 11 2021, 2:20 AM · Infrastructure
jrtc27 added a task to D21501: Fix PhutilUTF8TestCase::testUTF8Convert for PHP 8: T13588: PHP 8 Compatibility.
Jan 11 2021, 2:20 AM
jrtc27 added a task to D21502: Fix PhutilOAuth1FutureTestCase::testOAuth1SigningWithJIRAExamples for PHP 8: T13588: PHP 8 Compatibility.
Jan 11 2021, 2:20 AM
jrtc27 added a revision to T13588: PHP 8 Compatibility: D21502: Fix PhutilOAuth1FutureTestCase::testOAuth1SigningWithJIRAExamples for PHP 8.
Jan 11 2021, 2:20 AM · Infrastructure
jrtc27 requested review of D21502: Fix PhutilOAuth1FutureTestCase::testOAuth1SigningWithJIRAExamples for PHP 8.
Jan 11 2021, 2:06 AM
jrtc27 requested review of D21501: Fix PhutilUTF8TestCase::testUTF8Convert for PHP 8.
Jan 11 2021, 2:05 AM
jrtc27 requested review of D21500: Fix ArcanistFormattedStringXHPASTLinterRule for PHP 8.
Jan 11 2021, 2:04 AM
jrtc27 requested review of D21499: Fix PhutilTypeSpec's regex handling for PHP 8.
Jan 11 2021, 2:04 AM
jrtc27 closed D21498: Fix error handler on PHP 8.
Jan 11 2021, 2:02 AM
jrtc27 committed rARC446dcf1ccdcd: Fix error handler on PHP 8 (authored by jrtc27).
Fix error handler on PHP 8
Jan 11 2021, 2:02 AM
jrtc27 updated the diff for D21498: Fix error handler on PHP 8.

Trivially rebased for landing

Jan 11 2021, 2:01 AM

Jan 10 2021

epriestley added a comment to D21497: Suppress PHP 8 deprecation warning in __arcanist_init_script__.

Feel free to test against secure within reason if that's easier. These patches might not seem like a big deal, but stuff like this which just makes my life easier is incredibly rare, so make yourself at home.

Jan 10 2021, 10:37 PM
jrtc27 added a comment to D21497: Suppress PHP 8 deprecation warning in __arcanist_init_script__.

In trying to arc diff --update this I got an exception (but it worked with --head, which I had been using to submit each commit of the patch series). What's the best way to test out arc itself and reproduce that? Use admin.phacility.com to get a testing instance?

Jan 10 2021, 10:25 PM
epriestley added a comment to T13588: PHP 8 Compatibility.

In D21496, declaring a method private final (which is redundant, as a private method may never be overridden) causes an issue in PHP8.

Jan 10 2021, 10:25 PM · Infrastructure
epriestley added a task to D21498: Fix error handler on PHP 8: T13588: PHP 8 Compatibility.
Jan 10 2021, 10:23 PM
epriestley added a task to D21497: Suppress PHP 8 deprecation warning in __arcanist_init_script__: T13588: PHP 8 Compatibility.
Jan 10 2021, 10:23 PM