[02:41:08] [1/2] @cosmicalpha damn you /lh [02:41:08] [2/2] https://cdn.discordapp.com/attachments/1006789349498699827/1346673857691517038/image.png?ex=67c90b43&is=67c7b9c3&hm=1ca404c730724afb9c4eeb0f1dba09d26a4a6cfeb22c2d9b6048e3cf754c2bc2& [02:41:59] lol I can fix that for you in a bit if you want... (ManageInactiveWikis will also move so may wait till I finish that lol) [02:42:08] sure [02:42:26] Doing this PR on my phone at 10 pm isnt ideal anyways [02:42:49] I've been on a spree with patches lol [02:43:48] I do everything on my phone at 4AM lol [02:45:07] Do you teach classes [04:31:28] thanks for taking my task Eclair [04:31:47] was naive of me to hope it'll work, sadly [04:31:55] alerts are broken now lol [04:33:27] on mobile resolution only tho, switching to desktop it's all like nothing has changed [04:34:39] there's has to be a way ... [04:35:27] oh ope [04:35:35] wdym alerts are broken now? [04:35:48] tapping on bell brings nothing [04:35:50] ngl i honestly only tested if they count as notices in the ui thingy [04:35:56] both things are still there [04:35:57] ah, i kinda expect you to hide it w/ css ^^; [04:36:03] hm [04:36:18] unless if you want me to find a way to remove the elements outright? [04:36:23] well notifs still show only notifs [04:36:31] huh [04:37:32] https://cdn.discordapp.com/attachments/1006789349498699827/1346703152111550506/IMG_20250305_073718.jpg?ex=67c9268b&is=67c7d50b&hm=e23b23cb9cade92cf1e00930a238ac882f38ca64af4fa25a905b35f7a65ca0de& [04:38:36] https://files.catbox.moe/jvcbvi.png [04:38:41] (this is normally an alert) [04:39:15] it's like nothing has changed on my end [04:39:23] https://cdn.discordapp.com/attachments/1006789349498699827/1346703616454426644/IMG_20250305_073819.jpg?ex=67c926fa&is=67c7d57a&hm=48f8485b79cbcdb302a332733784473428d4950a4a4663ff649211e29736024c& [04:39:56] maybe it affects new events? unsure tbh ^^; [04:40:07] if you want, i can do a dummy edit on your local user page to test [04:40:19] can you make the other way round? [04:40:25] notifs to alerts [04:40:32] sure [04:40:44] comment on task ig [04:40:47] but then yeah, will need a test [04:43:00] done [04:45:46] merged, now ig we have to wait for the next puppet run? [04:47:19] either that, or i can ask to run puppet on all the mw* servers [04:51:53] uh [04:51:57] you have shell access right? [04:52:26] yeah, but i'm still in my "i don't fully know what i'm doing" stage, so i wanna have someone look over what i'm doing ^^; [04:52:47] https://meta.miraheze.org/wiki/Tech:Salt; it seems simple though [04:53:44] that’s not necessary in this case at all [04:53:48] ah okay [04:53:51] just being a bit paranoid then [04:54:03] (imagine if i don't have ssh access to puppet181) [04:54:26] to deploy, run `mwdeploy --config --pull config --servers all` on mwtask181 [04:54:34] Puppet isn’t in charge of deploying, you are [04:54:47] ah [04:54:55] oopsie [04:55:10] documentation gaps are fun [04:55:55] warning: unable to access '/home/blankeclair/.config/git/attributes': Permission denied [04:55:58] hmm [04:56:00] omoshiroi [04:56:07] doesn’t really matter [04:56:10] ah okay [04:56:13] omo what now [04:56:19] but what does matter is that the code is deployed now \:D [04:56:21] Indeed [04:56:28] how funny would it be if i deleted the config folde- [04:56:31] :Partyheze: [04:56:41] Puppet auto regenerates that [04:56:45] neat [04:56:45] so have it [04:56:47] there’s also two [04:57:14] I wonder if the PR didn’t work for Legroom because it wasn’t deployed lol [04:57:40] -r--r--r-- 1 www-data www-data 302 Sep 10 17:32 mwdeploy-client-cert.key [04:57:48] this file isn't supposed to have g=r,o=r right? [05:02:26] isn’t that something cloudflare related [05:02:32] I think it’s not critical at all [05:02:39] the read sensitive key is inside /var/ [05:02:46] and it’s named something real weird actually [05:03:04] I might be thinking of the ssl deploy key [05:03:10] not critical, but still odd that a private key is world-readable :p [05:03:22] i just logged out though, and i'm too lazy to plug my yubikey back in xD [05:04:06] lol [05:04:52] > runs `head mwdeploy-client-cert.key` [05:04:56] > forgets tiny file size [05:05:07] oops accidentally sent the whole key to my laptop x3 [05:05:28] (i tried `file` on it earlier to see if it's a priv or pub key, but all it said was ASCII text ¯\_(ツ)_/¯) [05:06:30] [1/3] yooo [05:06:30] [2/3] https://cdn.discordapp.com/attachments/1006789349498699827/1346710440390037557/IMG_20250305_080615.jpg?ex=67c92d55&is=67c7dbd5&hm=11a87779835b77c1a5d4b6068e6c1d8917290559086f072756337368ab210b0a& [05:06:30] [3/3] https://cdn.discordapp.com/attachments/1006789349498699827/1346710440625049620/IMG_20250305_080558.jpg?ex=67c92d55&is=67c7dbd5&hm=d8c19d1a0e566464ba1e9c9b1b9a5cdc82f2d0ee4f073031f3c1935f882918fe& [05:06:47] :ThinkingHardMH: [05:07:06] anyway, it's better in alerts methinks, thank u [05:07:16] will poke css later [05:07:33] might try to ask do this later on another wiki [05:07:51] huh, weird how it works for one but not the other [05:11:12] legbroom is a fun name [05:12:02] needed an alt to test, came up w/ this [05:12:06] witchcraft [05:12:43] config is pulled every 30m, right? [05:12:51] the original pr was merged like 4h ago [05:17:47] not anymore iirc [05:27:04] wha [05:28:59] I think I know why bell button doesn't work on mobile lol, the wordmark (being a link to main page) is overlapping [05:29:07] the page reloads [05:29:45] lol [05:29:46] thanks again claire :pupCoffeeMH: [05:29:49] yw :3 [05:30:10] sponsored by volunteering at school xD [05:48:00] fellas we are down again [05:48:02] 503 [06:57:33] wait what? [06:57:44] wait no, old message lol [06:57:46] thought i was in general [07:59:20] <.labster> Damn, I wish there was a way to run mediawiki tests without sending a patch to gerrit. [08:07:10] just put it in prod, duh [08:07:21] you also get free testing [08:11:22] you can run tests locally [08:12:50] <.labster> Nah, all I get is a thing saying it `Class "MediaWikiIntegrationTestCase" not found` [08:12:52] @blankeclair let's bring up c4 backups are still running but let's see what it does. If things start skyrocketing again let me know within the next hour or two and I'll kill backups. If I'm asleep someone else with access may be available by then. [08:13:23] I run them locally all the time (well used to now I do it less lol) [08:14:17] do you have mediawiki core installed like normally and composer (with dev dependencies) ran? [08:15:34] Our Github uses Wikimedia CI also so it's definitely possible to run outside of gerrit even too. We run basically exactly what Wikimedia runs using quibble docker images from Wikimedia. [08:15:54] <.labster> I downloaded the official package, maybe it would be better to grab the git repo, it's just so much bigger. [08:18:42] did you run composer install? [08:22:50] <.labster> yeah. composer install, composer update, composer update --dev [08:23:36] <.labster> [1/18] ```pi@raspberrypi /v/l/mediawiki-1.43.0> composer install [08:23:36] <.labster> [2/18] > MediaWiki\Composer\VersionChecker::onEvent [08:23:36] <.labster> [3/18] Installing dependencies from lock file (including require-dev) [08:23:36] <.labster> [4/18] Verifying lock file contents can be installed on current platform. [08:23:37] <.labster> [5/18] Nothing to install, update or remove [08:23:37] <.labster> [6/18] Generating optimized autoload files [08:23:37] <.labster> [7/18] 51 packages you are using are looking for funding. [08:23:38] <.labster> [8/18] Use the `composer fund` command to find out more! [08:23:38] <.labster> [9/18] > MediaWiki\Composer\ComposerVendorHtaccessCreator::onEvent [08:23:38] <.labster> [10/18] pi@raspberrypi /v/l/mediawiki-1.43.0> composer phpunit:entrypoint -- extensions/Lingo/tests/phpunit/Integration/ArticleAnnotationTest.php [08:23:39] <.labster> [11/18] > phpunit 'extensions/Lingo/tests/phpunit/Integration/ArticleAnnotationTest.php' [08:23:39] <.labster> [12/18] PHP Fatal error: Uncaught Error: Class "MediaWikiIntegrationTestCase" not found in /var/lib/mediawiki-1.43.0/extensions/Lingo/tests/phpunit/Integration/ArticleAnnotationTest.php:45 [08:23:40] <.labster> [13/18] Next PHPUnit\TextUI\RuntimeException: Class "MediaWikiIntegrationTestCase" not found in /var/lib/mediawiki-1.43.0/vendor/phpunit/phpunit/src/TextUI/Command.php:101 [08:23:40] <.labster> [14/18] Stack trace: [08:23:41] <.labster> [15/18] #0 /var/lib/mediawiki-1.43.0/vendor/phpunit/phpunit/phpunit(107): PHPUnit\TextUI\Command::main() [08:23:41] <.labster> [16/18] #1 /var/lib/mediawiki-1.43.0/vendor/bin/phpunit(123): include('...') [08:23:42] <.labster> [17/18] #2 {main} [08:23:42] <.labster> [18/18] thrown in /var/lib/mediawiki-1.43.0/vendor/phpunit/phpunit/src/TextUI/Command.php on line 101``` [08:26:28] > [05/03/2025 19:12] @blankeclair let's bring up c4 backups are still running but let's see what it does. If things start skyrocketing again let me know within the next hour or two and I'll kill backups. If I'm asleep someone else with access may be available by then. [08:26:31] cosmicalpha: oh okay [08:26:35] (still want me to bring them up?) [08:27:08] yep [08:27:25] Thats odd [08:27:33] mwdeploy running [08:27:50] Awesome thanks [08:27:57] done [08:28:22] .labster: `which phpunit`? [08:28:36] here's how i usually run unit tests: `sudo -u http ./vendor/bin/phpunit extensions/PageNotice/tests/phpunit` [08:31:42] <.labster> I'm pretty sure `composer phpunit:entrypoint` just runs the copy of phpunit in the vendor dir anyway. [08:33:43] @blankeclair for the record backups are on q anyway hopefully they finish soon. It actually seems they've been running for 26 hours I just didn't notice before lol [08:33:57] 26 hours?! [08:34:06] do our backups take that long omg [08:35:39] nevermind I must be tired. I misread something [08:35:56] oh okay [08:36:18] actually been 29 minutes, 10.94 seconds of CPU time. [08:36:42] wall time? [08:37:14] no cpu time [08:37:35] what about the wall time ^^; [08:37:52] I can't see that [08:38:49] huh okay [08:38:59] > Active: active (running) since Wed 2025-03-05 08:27:17 AEDT; 11h ago [08:39:02] it's this line [08:43:08] they've been running for a hours I did it a much more complicated way lol I missed that [08:43:20] [1/5] ``` [08:43:21] [2/5] universalomega@db181:~$ sudo awk '$1=="Mar" && $2>=4 {print; exit}' /var/log/db-backups/db-backups/db-backups.log | awk '{print $1, $2, $3}' | xargs -I{} [08:43:21] [3/5] bash -c 'start="{}"; end=$(sudo awk "END {print \$1, \$2, \$3}" /var/log/db-backups/db-backups/db-backups.log); start_epoch=$(date -d "$start" +%s); end_epoch=$(date -d "$end" +%s); elapsed=$((end_epoch - start_epoch)); echo "Elapsed time: $(date -u -d @$elapsed +"%H hours, %M minutes, %S seconds")"' [08:43:21] [4/5] Elapsed time: 05 hours, 42 minutes, 30 seconds [08:43:22] [5/5] ``` [08:44:36] what the [08:46:13] I can't believe I came up with that in 5 minutes lol [08:46:20] at nearly 2AM... [08:46:25] i don't know awk so i'm trying to understand what you wrote [08:47:27] In layman terms: extract timestamps from log file starting March 4th (yesterday) then continue until the end then extract the total duration between them and output the elapsed time [08:48:17] lemme try to reverse engineer this... [08:48:30] [1/2] `awk '$1=="Mar" && $2>=4 {print; exit}' /var/log/db-backups/db-backups/db-backups.log` [08:48:30] [2/2] get the first line for Mar 4, and exit [08:48:56] [1/2] `xargs -I{} bash -c 'start="{}";` [08:48:56] [2/2] set the variable start to the first line, i think [08:49:10] [1/2] `end=$(sudo awk "END {print \$1, \$2, \$3}" /var/log/db-backups/db-backups/db-backups.log);` [08:49:11] [2/2] gets the date from the last line... [08:49:17] my fucking god, that sure was something alright xD [08:49:26] not quite lol, get the first line for march 4th or greater, if there is none in March 4th it starts in March 5th. [08:49:38] ah yeah, forgor to mention that [08:50:16] lol yeah that was my 2AM 5 minute code from hell [09:12:02] Best code is written after midnight then you come back to it and wonder what the hell it even does 😂 [09:13:34] lmao yeah that will probably be what will happen [09:16:21] we should have ca rewrite managewiki [09:21:01] I did try that and gave up after about 10 minutes of like no this isn't happening. [09:21:12] CreateWiki was so much easier to rewrite lol [09:22:25] lmao [09:22:49] what if we rewrote SimpleBlogPage again? [09:29:11] What I really wanna do is write a reverse version of [[Extension:Nuke]] [09:29:11] [09:30:09] I cant imagine it would too difficult tbh [10:52:54] Hey Tech team, it looks like my echo notification bug is back, I am now getting ghost notifications from staffwiki, that I can not clear since it is a private wiki that I no longer have access to [14:50:39] What I miss [14:50:44] Reverse? [14:52:58] Pixldev yeah something to do the opposite, I’mma look into it later today [14:54:43] So recreate? [15:20:49] Yeah instead of a mass delete a mass undelete [17:35:43] Good luck to tech team on upcoming maintenance, may the machines behave as you command them today. [17:38:00] how soon? [17:38:03] it starts [17:41:21] <_arawynn> roughly in an hour [18:08:25] 36 minutes now [18:30:57] @Technology Team /MacFan4000 IRC side if you have any maintenance scripts running please stop them and know where they are so they can be restarted later. [18:31:33] nothing running for me ATM [18:31:47] Great thanks [20:58:27] maybe too late but also nothing for me 👍