[00:00:01] depending on the complexity of the php you have been using, you might also consider making the tool pure python if that's where your most important business logic lives today [00:00:23] Gouvernathor: https://wikitech.wikimedia.org/wiki/Help:Toolforge/Build_Service#Build_and_deploy [00:01:46] We are working towards more automated systems for this, but today you need to ssh to a bastion, run a command to trigger a build, and then run a different command to restart your webservice [00:02:48] that's not a bad thing, I don't really want my tool to update by itself [00:03:08] I can do a .sh or a job to do it in one command if needed [00:03:48] the trouble is that I'm not sure (tending to being sure that not) that 3.10 will suffice [00:04:58] and I'm really not looking forward to migrating the php to python, considering that just today we migrated from html to php with a lot of leftover redirects [00:05:27] that does sound unfortunate [00:08:36] I'm not seeing any esoteric modules used in newarch.py or westminster.py. Is there a specific part that you know blosws up with python 3.9? [00:10:23] westminster.py is crap and I'm rewriting it, so nothing critical as of now but it curbs what I can do in it. Currently the `int|None` annotation throws but it's not really vital to the code execution [00:11:04] however newarch.py is supposed to be replaced by a call to the parliamentarch module in which I heavily use parametric typing which is exclusive to py3.12 [00:11:18] * bd808 has _feelings_ about mypy [00:12:44] the feels are basically that there are many strongly typed languages in the world and folks who want strong typing should use them instead of messing perfectly good duck typed languages ;) [00:13:49] typing in python is just a nice suggestion, the nice thing is that you can tell some lines to be ignored [00:14:30] Gouvernathor: you might also consider splitting into a PHP tool that presents you general UI and a python tool that builds your svgs and whatever else with the PHP tool generating links to the python tool [00:15:42] that will require splitting into 2 repos ? [00:17:14] for the build service, probably yes. You could do different branches in the same repo too I guess [00:18:02] two independant branches in the same repo, with no mergeability between them ? that's probably worse [00:18:25] if the php8.2 image works fine for your php though you could keep using that if you wanted [00:18:31] I'd rather just stick with 3.9 for as long as possible tbh [00:19:34] python3 being in the php8.2 image is mostly an accident I think. We won't be actively removing it, but future php containers are not guaranteed to have any python at all [00:21:14] Ok, I'll open that as a maintenance issue [00:21:45] using a custom image would be our solution for that, if it happens [00:47:56] So, my 4 solutions are basically [00:47:57] - do nothing and stick to 3.9, while python remains shipped in the php container [00:47:57] - use 2 tools, a python one and a php one [00:47:58] - make a custom image and be bound to 3.10 as of now [00:47:58] - convert the php to a full python thing [09:49:09] !log superpes@tools-bastion-13 tools.stewardbots Restarted StewardBot out of IRC [09:49:12] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools.stewardbots/SAL [10:14:41] Taking a wild guess this is the right channel :D wanting to test a couple of things on https://gitlab.devtools.wmcloud.org, could someone approve my account when they get a moment? [10:20:52] TheresNoTime: try -gitlab :-) [10:21:59] ah that makes sense [11:30:51] Hello, I'd like to inquire about NGINX support on Toolforge. If it is supported, is there any documentation available for deploying applications using NGNIX on Toolforge, such as writing configuration files? Any help or information is much appreciated! :) [11:43:21] @b289zhan I may suggest you send an email to cloud@lists.wikimedia.org with some details about what you want to achieve [14:00:31] !log superpes@tools-bastion-13 tools.stewardbots Restarted SULWatcher out of IRC [14:00:33] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools.stewardbots/SAL [14:55:34] @b289zhan: you could install nginx in a custom container using the build service and the Aptfile buildpack. There are not any existing shared containers that use nginx as the webserver. [14:58:04] !log superpes@tools-bastion-13 tools.stewardbots Restarted StewardBot out of IRC [14:58:06] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools.stewardbots/SAL [15:00:33] There are 2 layers of nginx between every webservice tool and the internet, but neither of them will directly serve your application content. They are both reverse proxies that add various routing features to the platform. [18:39:03] In order to use trove instance on vm I'll need to install mariadb too on the vm, right? (yup, I have never used trove) [18:51:18] If you want to use the cli from the vm, you'll need mariadb-client. [22:05:45] !log bd808@tools-bastion-12 tools.wikibugs Built new image from git hash e6134784 (T364575) [22:05:49] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools.wikibugs/SAL [22:33:51] !log bd808@tools-bastion-12 tools.wikibugs Restarted irc job (T364575) [22:33:55] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools.wikibugs/SAL