[16:26:27] How do we run phpunit phar now? [16:40:04] MatmaRex: Any idea how we're supposed to run phpunit now? [16:40:48] Reedy: eh, hm, `composer test` or something? [16:40:55] really? [16:41:17] i think there's still some manual way if you need to run a single thing, but i can't recall it now [16:41:25] usually i just submit things to gerrit and wait for jenkins :P [16:41:27] lol [16:41:35] I was used to just passing a parameter to where hte phpunit phar lives [16:41:40] that seems to ahve been removed [16:41:50] if ( !class_exists( 'PHPUnit_Framework_TestCase' ) ) { [16:41:50] echo "PHPUnit not found. Please install it and other dev dependencies by [16:41:50] running `composer install` in MediaWiki root directory.\n"; [16:41:50] exit( 1 ); [16:41:50] } [16:42:33] Reedy: tests/phpunit/phpunit.php ? [16:42:46] yeah, it was a parameter to that [16:43:35] reedy@ubuntu64-web-esxi:/var/www/wiki/mediawiki/core$ php tests/phpunit/phpunit.php [16:43:35] PHPUnit not found. Please install it and other dev dependencies by [16:43:35] running `composer install` in MediaWiki root directory. [16:43:37] do not want [17:00:35] Anyone know how I use phpunit without installing it via composer? [17:04:28] OK. I give up. Is there a way to edit the commit message in the latest Gerrit? [17:04:35] I can't figure it out after staring at the interface for 10 minutes [17:04:41] Krinkle: yes [17:04:54] I found an 'edit' button, but it seems to relate to files in the diff. [17:05:02] it also works for the commit message [17:05:18] click it, click "Commit message" in diff list, edit, "Save", "Close", "Publish" [17:05:21] lots of clicks [17:05:51] What, that is a textarea? [17:05:56] It didn't look like one [17:06:03] I did actually get to the commit message after clicking edit [17:06:09] but it didn't look like a textarea [17:06:29] With the bottom being cut off and the border being orange and dashed. [17:06:34] Ok. Thanks :) [17:07:13] Tempting fix PHPUnit/Runner/Version.php [17:07:14] ffs [17:07:19] https://github.com/wikimedia/mediawiki/blob/cc7fca0c14398baeb88b949cfad71846b6b05c83/tests/phpunit/phpunit.php#L251-L271 [17:07:38] wow what's up with those indents there [17:13:38] Reedy: composer is the recommended way to install phpunit upstream now I think [17:13:45] yeah [17:13:49] MaxSem broke it :P [17:14:04] are you just hating on having multiple copies installed? [17:14:55] Not really [17:15:00] I just use hte WMF vendor git repo [17:15:11] if ( MW_PHPUNIT_TEST ) { [17:15:11] include_once stream_resolve_include_path( '/var/www/wiki/mediawiki/phpunit.phar' ); [17:15:11] } [17:15:15] I think that'll be my "fix" [17:15:17] ah. which has not dev deps in it [17:15:27] though, stream_resolve_include_path isn't need [17:15:30] Right, exactly [17:15:53] Reedy: just switch to mw-vagrant ;) [17:16:09] pfft, you and your new fangled vms ;-) [17:16:26] So hipster! [17:16:35] if ( MW_PHPUNIT_TEST ) { [17:16:35] include_once ( '/var/www/wiki/mediawiki/phpunit.phar-old' ); [17:16:35] } [17:21:13] undefined constant... [17:21:17] * Reedy grumbles [17:21:22] oh, that's not in hte test [17:21:25] defined() [17:33:40] if ( defined( 'MW_PHPUNIT_TEST' ) && MW_PHPUNIT_TEST ) { [17:33:40] include_once ( '/var/www/wiki/mediawiki/phpunit-old.phar' ); [17:33:40] } [17:33:42] hackhackhack [17:35:45] Can someone merge https://gerrit.wikimedia.org/r/#/c/300525/ to fix some annoying logspam please? [17:35:53] PHP Notice: Second parameter should not be a timeout. [Called from TorExitNodes::loadExitNodes_Onionoo in /var/www/wiki/mediawiki/extensions/TorBlock/includes/TorExitNodes.php at line 170] in /var/www/wiki/mediawiki/core/includes/debug/MWDebug.php on line 309 [17:36:37] I guess that'll be some noise in prod too [18:39:49] dear unit tests [18:39:55] why the fuck are you failing post extension registration [18:39:58] the config is still the same [18:45:01] xoxo, [18:45:03] reedy [18:45:09] ty [18:45:40] it vaguely feels like something is more subtley broken in the curren version(s) [21:00:22] Reedy: and https://gerrit.wikimedia.org/r/#/c/300587/ [21:00:39] Yup [21:00:48] I keep going down other rabbit holes :) [21:01:25] ori: We could do with getting the other trusted-hosts stuff merged too soon [21:01:30] tidy those up [21:01:47] Let me test your commit [21:03:23] ori: Do we really need to keep cdb support? [21:03:27] Or literally only till we migrate over? [21:03:35] Or being nice to other people that may use it? [21:34:25] ori: ^^ [21:34:26] yeah, I think we should keep it [21:34:29] heh [21:34:35] FOR EVAH? [21:34:35] it will still be faster on Zend [21:34:45] Did we keep it everwhere else we replaced it? [21:34:51] yes [21:35:04] ah ok [21:55:14] rebased, because of extension.json stuff [21:59:08] reedy@ubuntu64-web-esxi:/var/www/wiki/mediawiki/core/extensions/TrustedXFF$ MW_INSTALL_PATH=/var/www/wiki/mediawiki/core php generate.php /tmp/xff.php [21:59:19] It seems to be still trying to write a cdb [22:07:21] ori: realpath turns /tmp/xff.php into false [22:09:00] that's broken, but not broken by my change [22:09:09] yeah [22:09:12] just trying to test it :) [22:09:30] i wonder why that call to realpath() is there at all [22:09:32] it's not needed [22:10:16] Blame brion in 2009 [22:10:36] guess we should remove it [22:11:06] * Reedy carries on [22:19:33] ostriches: is there I way I can get rid of the operations/mediawiki-config[master]: prefix in email subjects? [22:19:48] ori: I think it was symlinked into the extension dir at one point... I seem to recall moving it out [22:20:07] legoktm: Nerp. One template for errrybody <3 [22:20:08] uncommon dir on the apaches or similar [22:20:28] even if it's a symlink, so what? [22:20:57] ostriches: :( I have mail filters to sort everything in subfolders so I don't need that extra context... [22:21:47] I will survive though [22:21:47] Sorry :( [22:21:56] it's alright, the rest of the gerrit changes are absolutely awesome <3 [22:22:04] :D [22:22:12] I closed like 35 bugs today! [22:54:09] legoktm: ostriches: the prefixes are great, i can now ignore backports at a glance! [22:54:49] MatmaRex: I had thunderbird set different colors on emails with a non Gerrit-Branch: master header [22:55:35] legoktm: setting up thunderbird filters is so braindead though, i try not to touch them often [22:55:54] i already have a bunch for all the bots, for gerrit merges, and such