[01:05:21] oh yeah, i installed the syntax highligher extension, im on windows, it doesnt work out of the box, due to the aforementioned issues right? [01:06:03] Skizzerz: it's been 5.5 hours now :) [01:34:46] @LorenDB Juesto (@_discord_990316633094504468:t2bot.io) so the quick fix is to add the line `->environment( getenv() )` on line 267ish of `includes/Pygmentize.php` in the extension (add that line to the `boxedCommand` function) [02:03:49] or apply https://gerrit.wikimedia.org/r/c/mediawiki/extensions/SyntaxHighlight_GeSHi/+/852324 for a less quick/dirty fix [02:07:07] I was about to ask if you were going to upstream a fix ;P [02:16:17] Skizzerz: You seem to know a lot about SyntaxHighlight... [02:16:17] On our private wiki (with LOTS of customizations to the edit experience so that it all goes through the API via JavaScript) a user is unable to save a page because it has 57 syntaxhighlight blocks. The page is only 75KB. The backend response doesn't complete in time (30 seconds). I'm of the opinion that a) our cache setup is broken and b) some configuration is probably needed to give shell processes more memory for this use case. But, I [02:16:17] haven't had any opportunity to debug or diagnose the issue because the development is outsourced. But, people are blaming the syntaxhighlight extension "because it's known to be slow". [02:20:32] I understand that pygments is going to be resource intensive and that is an expensive parser tag, but I also know that it's used widely across WMF and 3rd party wikis since it's bundled. Do you have any rough guidelines on what limits should be put on usage? We were thinking of using an abuse filter to warn editors if they go over X tags in a single article. [02:20:58] which extension Skizzerz (@_discord_171809504462241793:t2bot.io) pygmentize? uhhhh the syntax highligher extension requires pygmentize? im talking about wiki [02:20:58] im talking about codemirror [02:22:35] @rundg subprocesses on windows are inherently more expensive to spin up compared to linux. Also if you're on an older MW version the shell command layer had some timeout issues that were fixed in later MW versions [02:23:17] Juesto (@_discord_990316633094504468:t2bot.io) this is for the SyntaxHighlight extension that provides the tag (which calls pygments behind-the-scenes) [02:23:23] Skizzerz: We're on Debian w/ REL1_35 [02:23:42] ah. you shouldn't have issues then [02:24:02] memory could be the issue, but debug logs should say more [02:24:42] consider installing firejail and ensuring things like cgroups are enabled in your kernel [02:24:55] i see, um, how about CodeMirror, aka syntax highlighthing for the editor? [02:24:55] Skizzerz: Thanks much! I'll try it out tomorrow. [02:25:44] The developer said that they traced it and pygments was called 5 times for the same tag... I find that hard to believe and suspect some custom code in the middle is responsible for repeated calls - if that is truly happening. [02:27:04] CodeMirror is all js. what issue are you having with it? [02:27:08] Anyway, I definitely need to setup an environment where I can log and debug. We're using Redis for cache, and I've already found numerous configuration issues with the cache. [02:27:43] oh nevermind then! [02:30:33] Thanks for the help Skizzerz [02:35:35] turns out that i do not see the syntax highlight icon in the toolbar if visualedit is in use [02:35:58] weird [02:36:01] now its working [02:36:13] i had the issue a moment ago that the pencil icon from codemirror does not show up [02:37:01] sorry and thanks [02:46:34] uhm [02:46:47] im having issues in Math status [02:47:17] Test Comparing the generated SVG with the reference failed. [02:47:17] Test Rendering Presentation MathML sample failed. [02:47:17] Test Checking if the link to SVG image is correct failed. [02:47:25] Returned string... (full message at ) [02:47:39] this is a windows host [02:48:25] https://mathoid-beta.wmflabs.org/ gives [02:48:25] Wikimedia Cloud Services Error [02:48:25] No proxy is configured for this host name. Please see our documentation on Wikitech for more information on configuring a proxy. [02:50:36] Juesto#8050: Is your Windows host hosted in WMFLabs? I don't think the wmflabs mathoid server/service is reachable from 'outside' [02:51:17] No, this might be some bug in Math extension? [02:51:34] i admit i do not have configurations for math in ls.php [02:51:57] why is it trying to contact that server? [02:53:55] I stand corrected: https://www.mediawiki.org/wiki/Extension:Math#Mathoid [02:53:55] The default setup uses wmflabs [02:55:10] so yeah [02:55:12] there's a issue with wmflabs? [02:57:16] There /could/ be, but I'd think if there were it would be visible in Phabricator, or in a services monitor. It's more likely some other aspect of configuration or local environment (firewall?) [02:57:37] its wikimedia [02:57:46] its giving 404 [02:57:50] I'm not very familiar with Math. Due to the complexities of setting it up, I've always used https://www.mediawiki.org/wiki/Extension:SimpleMathJax [02:58:07] I understand, thanks [02:58:11] i'll try that one [05:36:17] Would anyone mind taking a look at why these unit tests are failing? [05:36:21] https://integration.wikimedia.org/ci/job/mediawiki-quibble-vendor-mysql-php74-docker/13445/console [05:36:41] I get "08:28:47 Failed asserting that two arrays are equal.", but I am having a hard time figuring out why. [12:58:59] Skizzerz: unfortunately that patch doesn't seem to be helping anything :( [13:36:01] Another general MW question (sorry for acting like the n00b I am, but bear with me): I've got img_auth.php set up sucessfully; however, when I load a page with images, the image thumbnail(s) don't always load. Is there a known reason for this behavior? Is it normal behavior? [15:33:43] (do matrix people see discord replies or not?) [15:33:59] If that was supposed to be a reply to a messsage, no [15:42:14] no it wasnt but im just asking [15:45:36] The bridge is bi-directional. [15:47:23] I don't see any reply indicators [15:48:04] oh i see, thanks [15:48:23] i was talking about replies done in discord being seen in matrix [16:03:12] Yeah, I can see that last reply there. [16:03:13] taavi: well, it might make a difference if you weren't on IRC :)