[03:43:23] sometimes git gui blame is almost too clever [03:43:40] I asked it where a line in parserTest.inc came from, and it said Setup.php [04:28:21] which is true, a lot of this global setup code has been blindly copied from Setup.php [04:28:28] if ( $wgStyleDirectory === false ) { [04:28:28] $wgStyleDirectory = "$IP/skins"; [04:28:28] } [13:17:50] tgr|away: Reviewed 307893. Also, re your question from two days ago, ApiMain's "permissions" (mostly useless IMO), "data types", and "credits" aren't included in ApiSandbox. [15:35:25] hashar im wondering could you help me with https://phabricator.wikimedia.org/P3964 please? [15:35:29] im getting this error [15:35:43] [02-Sep-2016 16:17:46 Europe/London] PHP Notice: Array to string conversion in /home/randomwi/public_html/en/includes/skins/Skin.php on line 872 [15:35:43] [02-Sep-2016 16:17:46 Europe/London] PHP Warning: strpos() expects parameter 1 to be string, array given in /home/randomwi/public_html/en/includes/OutputPage.php on line 3598 [15:36:08] from patch https://gerrit.wikimedia.org/r/#/c/193434/ [15:37:36] it isent from that patch [15:37:43] i did some minor changes i have uploaded yet [15:37:49] due to it showing errors in the log [15:37:59] which i did not notice before i uploaded it. [15:41:52] or legoktm ^^ please? [15:58:51] hashar: how hard would it get jenkins in mysql strict mode? [16:01:10] or ostriches do you know how i can fix that error ^^ please? [16:01:15] I want it so we can do [16:01:48] $wgLogo = [ 'png' => "path/to/png", 'svg' => "path/to/svg" ]; [16:02:22] and also stay backword compat with wgLogo so we can still do $wgLogo = "path/to/logo"; [16:05:02] Why does it need fallback? Just do svg or png and be done with it? [16:05:12] Transforming $wgLogo into an array seems overly complicated [16:05:43] ostriches because for internet explorer 8 users [16:05:47] who doint support svg [16:05:53] and old android os. [16:05:56] Then you shouldn't use an svg logo :) [16:06:02] But you can [16:06:04] A wiki should pick one or the other :) [16:06:08] since you can do an svg with png [16:06:12] like we support in less [16:06:33] .background-image-svg( @svg, @fallback ) { [16:07:27] I honestly don't see the utility. [16:07:47] oh [16:07:57] ostriches what about this https://gerrit.wikimedia.org/r/#/c/193434/62/includes/resourceloader/ResourceLoaderSkinModule.php [16:07:58] * ostriches removes self as reviewer [16:39:17] AaronSchulz: there is task about switching to mysql strict mode [16:39:24] https://phabricator.wikimedia.org/T119371 [16:39:32] and parent has a bunch of sub tasks as well https://phabricator.wikimedia.org/T108255 [16:39:51] i guess if we get the proper mysql/mariadb package and one find out the proper setting to enable it, that is doable ;] [16:43:40] hasharAwayy: you can do it per-session via SET [16:43:56] we issue some stuff via SET already...I wonder how much would break :) [17:04:41] * AaronSchulz makes a patch [17:32:11] AaronSchulz: https://gerrit.wikimedia.org/r/#/c/308205/ and https://gerrit.wikimedia.org/r/#/c/308200/, latter is super trivial [17:49:58] AaronSchulz: I have a feeling this is gonna break shit :p https://gerrit.wikimedia.org/r/#/c/308208/ [17:58:08] ostriches: did you check LQT? [17:58:16] Nerp [17:58:35] that broke legoktm's patch with one of the globals [18:09:39] ostriches: let's not...I have a patchto re-do everything. Someone just needs to review SemanticForms and FlaggedRevs to make sure it won't break them [18:10:06] Ugh, I'm neck deep in SemanticForms right now [18:10:11] It's such a pile of crap [18:11:39] https://phabricator.wikimedia.org/T144366#2597458 [18:13:23] Yeahhh [18:14:12] legoktm: Relatedly, if we find a way to pass a title to transformMsg() in SF_AutoeditAPI.php, I can kill the optionality of $title in transformMsg() [18:14:28] That's the *only* caller without a title passed [18:15:50] I hear you can use global $wgTitle; ;-) [18:16:01] Hehehee, make it SemanticForms' fault? [18:16:03] I can do that ;-) [18:16:06] https://gerrit.wikimedia.org/r/#/c/308212/ lol [18:16:31] AaronSchulz was too fast. [18:16:54] ostriches: the class extends ApiBase...would $this->getTitle() not work? [18:17:10] oh nvm, that's Special:BadTitle blah blah [18:17:20] It's only used for parsing context of a message. [18:17:26] * ostriches shrugs [18:17:39] eh fuck it, wgtitle it is [18:21:19] still reading that code... [18:21:20] > Uncomment once compatibility to pre1.21 [18:21:24] legoktm: https://gerrit.wikimedia.org/r/#/c/308213/ [18:21:28] how far back does it try to support? [18:21:50] Whatever the answer, the real answer is "too far" [18:22:04] legoktm: wait what about flaggedrevs? [18:22:41] AaronSchulz: it creates an EditPage object and I didn't have time that day to trace how it is used and whether it depended upon globals [18:23:48] I can put it on my todo list to look [18:24:02] I used to remember off the top of my head...now, not so much ;) [18:24:43] thanks :) [18:25:33] Yay I win! https://gerrit.wikimedia.org/r/#/c/308215/ [18:28:50] legoktm: It kinda sucks tbh. SemanticForms seems very widely used by people, but it's basically abandonware. [18:28:58] How it works and doesn't explode is beyond me... [18:32:18] Heh, adding the type hint made it go boom [18:36:06] ostriches: the sad part is that its not really abandoned...its still getting new features and stuff...just not following modern mw development [18:41:25] AaronSchulz: did you get a patch to SET strict mode ? :D [18:41:47] mostly passing [18:42:14] neat [19:04:02] * robla starts looking for where to merge this page: https://www.mediawiki.org/wiki/Parsoid/test_cases [19:14:47] robla: https://www.mediawiki.org/wiki/Parser_tests ? [19:15:33] cool, that looks like a good spot! thanks! [19:16:48] * robla had started yak shaving :-) [19:17:57] legoktm please could you merge https://gerrit.wikimedia.org/r/#/c/193434/ ? [19:19:02] no, I'll post on the task in a bit [19:19:09] Ok [19:19:41] legoktm did you manage to work on it and get it to work? This from last night? [21:16:34] hashar: https://gerrit.wikimedia.org/r/#/c/308220/ [21:19:33] oh [21:27:45] AaronSchulz: you renamed the variable :) Pretty sure you can add a small assertion in tests/phpunit/includes/page/WikiPageTest.php testDoDeleteArticle() [21:27:59] then I am not going to obsess over it :] [21:28:58] well after my STRICT patch lands, that kind of thing will fail a bunch of article delete tests [21:29:16] all I had to do was fix some RC fields...I thought it would be harder [21:29:37] it is almost midnight so not going to push that / CR+2 [21:29:58] note the live hack on wmf.17 would conflict whenever your patch land [21:30:11] hey great! [21:30:21] well that RE's job ;) [21:30:35] I assume we don't keep them around too long anyway [21:30:58] yeah :] [21:31:02] hashar: I mentioned renaming the variable, you had the chance to make me do it! [21:31:09] *do it then [21:31:11] heh [21:32:04] for STRICT patch, I dont know :] [21:32:18] if it lands and is enabled by default that is going to cause major havoc on other extensions [21:32:35] would be nice to feature switch it so we can enable it on beta and then CI [21:32:38] not by default in core [21:32:40] just CI [21:33:07] though jynus wants to get there *eventually* maybe [21:33:11] yeah [21:33:12] definitely [21:33:27] might want to enable it on beta a bit before turning it on for CI [21:33:48] or the other way around I dont know. I guess it is too late for me [21:33:54] it already passes CI, so isn't it fine? [21:34:06] on mediawiki/core ? [21:34:08] I had to base it on top of my deletion fix plus an RC fix [21:34:13] to get it to pass [21:34:17] the trick is [21:34:36] once enabled , wide range of extensions will start to fail [21:34:50] cause we do not run all extensions tests when a mediawiki core patch is proposed [21:35:11] which -extensions do we run for the extensions tests run on core changes? [21:35:15] just wmf extensions? [21:35:20] not to say that test coverage is far from complete . A recent example is a serie of patches that broke LQT :( [21:35:36] that only got caught on prod (since nothing exercise LQT on beta [21:35:44] well the test well NOT get us ready for prod, we will do logging first [21:35:47] (CI only uses a subset of wmf extensions) [21:36:00] I'm thinking CI, then logging (after CI to not spam logs so hard), then eventually prod [21:36:03] but it's quite far out [21:36:16] someone has a logging patch for warnings from '15 or something [21:36:42] well beta logging in there somewhere too ;) [21:36:45] maybe before prod [21:36:52] might save some log spam [21:37:39] then [21:37:59] maybe the strict mode in test suite will be unnoticed [21:38:07] might want to announce it [21:38:25] then if we can get a patch to flip it easily, we can get it enabled on beta and catch a wide range of stuff [21:39:12] AaronSchulz: also reach out to DBAs :] [21:39:15] sure they will love that [21:40:12] I am crashing to bed. Well done Aaron! [21:41:27] see you [21:43:04] AaronSchulz: https://gerrit.wikimedia.org/r/#/c/308283/