[13:18:42] hello. this site https://gerrit.wikimedia.org/r/ has changed, i do not see how to comment... reply button on top creates strange big comment [13:19:05] on top of a issue page, and i wanted to comment to an issue [13:19:19] not, change page [13:20:28] for example i open an other change, not my : https://gerrit.wikimedia.org/r/#/c/243869/ [13:20:44] also same is here [13:22:10] i see reply button works another way now [14:19:13] how in earth did he land on this channel [15:27:08] hello [15:29:13] phpunit does not work now. i do not remember very surely how i used it , i tried this way now : [15:29:23] C:\xampp\htdocs\mediawiki\tests\phpunit> [15:30:01] C:\xampp\php\php-cgi.exe phpunit.php exampel_dir\dir\file.php [15:30:20] it just says: [15:30:22] "X-Powered-By: PHP/5.5.34 [15:30:23] Content-type: text/html" [15:30:25] and an empty line. [15:30:34] it just says: [15:30:35] "X-Powered-By: PHP/5.5.34 [15:30:37] Content-type: text/html" [15:30:38] and an empty line. [15:31:28] qdb: the #wikimedia-tech and #mediawiki channels are probably better places to get help. This channel is a left over from a now disbanded WMF development team [15:32:30] thank you [15:35:08] qdb: I think you are using the wrong php executable from xampp. Try using php.exe instead for php-cgi.exe [15:35:52] thank you [15:36:47] PHPUnit not found. Please install it and other dev dependencies by [15:36:49] running `composer install` in MediaWiki root directory. [15:37:45] i reinstalled xampp, maybe it is for that [15:38:04] installed new version [15:38:53] http://www.techflirt.com/install-composer-xampp [15:39:34] composer is a php package manager. MediaWiki uses it to install libraries and development utilities like phpunit [15:41:04] I haven't used Windows for quite a while, so I'm mostly only going to be of help as a "let me google that for you" proxy. There should be some Windows users in the #wikimedia-tech, #mediawiki, and #wikimedia-dev channels [15:41:30] thank you [17:10:02] Krinkle: when you're working on https://phabricator.wikimedia.org/T146510 , could you also briefly look at https://phabricator.wikimedia.org/T145566 and think whether it could be related, or isn't and just happened at the same time? [23:02:13] bd808: ping? [23:02:24] SMalyshev: pong [23:02:49] bd808: oh cool :) do you per chance remember if there's a way in vagrant to create a new language wiki easily? [23:04:48] well... sort of. The best example is probably something like -- https://github.com/wikimedia/mediawiki-vagrant/blob/master/puppet/modules/role/manifests/echo.pp#L60-L78 [23:05:09] bascially making a new wiki is easy, but then you have to configure it [23:05:32] bd808: hmm that's in puppet... can I do it on my local instance then? [23:05:41] I mean add puppet commands like this? [23:06:58] sure. make a manifest in puppet/modules/local/manifests and then add that class name to a "classes" key in vagrant/puppet/hieradata/local.yaml [23:07:13] there's a tutorial somewhere... [23:07:17] bd808: huh interesting I'll try that! [23:07:32] bd808: but no command line script or something to do the same? [23:08:38] nope. At least not that I know of [23:08:57] the local puppet class is documented (such as it is) at https://www.mediawiki.org/w/index.php?title=File:MediaWiki-Vagrant_Tech_Talk_2014Q4.pdf&page=20 and the following slides [23:09:39] bd808: ok thanks a lot! will try with puppet [23:11:05] It wouldn't be too hard to add a command to the plugin like `vagrant local-role foo` that would stub out the foo.pp file and add it to local.yaml [23:11:29] needs a verb [23:11:44] execution in the kingdom of nouns! [23:11:50] :) [23:13:11] list, create, edit, enable, and disable sub-commands would make a more polished feature [23:13:13] bd808: do I have to use a special name? I tried with ::role::ruwiki and I get "Could not find class ::role::ruwiki" [23:13:28] it will be ::local::... [23:13:35] oh! [23:13:53] unless you put it in puppet/modules/role/manifests/ruwiki.pp [23:14:38] We really should have a role that sets up 5-10 languages with proper config [23:14:48] bd808: yeah we should :) [23:15:00] SMalyshev: patches welcome ;) [23:16:48] bd808: hmmm I just might... can you do parametrized roles? [23:17:03] bd808: ok, this looks suspiciously like it worked... thanks! [23:17:04] yeah, with hiera data [23:17:28] bd808: what about just vagrant role enable language --language he,hy,ceb ? [23:17:45] that would take some deep magic [23:17:45] I mean command line params [23:18:31] it probably /could/ be done, but I'm not sure it's worth the work [23:18:43] ok... how about loops? Does puppet allow loops - i.e. instantiate this template with this array of parameters? [23:19:19] so I could say multilang::languages: 'he,hy,fr' in hiera and have puppet generate wikis for these langs? [23:19:20] not really, except if you use some hiera specific magic to instantiate a define for each item in a list [23:19:35] which might not be bad for a bunch of langs role [23:20:00] what you mean by instantiate a define? [23:21:02] In Puppet there are 2 fundamental building blocks, classes which are globally unique and defines which can have multiple realizations in the object graph [23:21:18] so something like mediawiki::wiki is a define [23:21:32] there can be lots, each just has to have a unique title [23:21:48] but role::mediawiki is a class and there can be only one [23:22:45] so there is a puppet function that you can tell to take a list of dicts from hiera and stamp out a given define for each dict in the list [23:22:55] bd808: right. so is there a way to map array of something to array of define(something)? [23:23:14] bd808: oh ok you just answered my question :) [23:23:32] that sounds like what I need [23:25:46] https://docs.puppet.com/puppet/latest/reference/function.html#createresources [23:26:44] I guess create_resources isn't technically a hiera function (core puppet instead). But it's mostly useful with a list that comes from hiera [23:33:00] great, I'll try to use this one