[15:12:46] !log lucaswerkmeister@tools-sgebastion-10 tools.wd-image-positions deployed e4205d9cee (l10n updates: de, es, fr, it, zh-hant) [15:12:48] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools.wd-image-positions/SAL [15:43:49] !log lucaswerkmeister@tools-sgebastion-10 tools.lexeme-forms deployed 8fa2740a72 (README update, pulled without webservice restart) [15:43:52] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools.lexeme-forms/SAL [15:45:44] !log lucaswerkmeister@tools-sgebastion-10 tools.wd-image-positions deployed 8b677d25a9 (README update, pulled without webservice restart) [15:45:46] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools.wd-image-positions/SAL [17:04:34] !log lucaswerkmeister@tools-sgebastion-10 tools.lexeme-forms deployed c5618f5968 (set bot flag in bulk mode) [17:04:36] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools.lexeme-forms/SAL [17:12:58] are there any examples for Python tools with GitLab CI/CD on Wikimedia GitLab? [17:13:05] (I’d be happy with just the CI part fwiw ^^) [17:15:54] !log paws upgrade pywikibot T364188 [17:15:57] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Paws/SAL [17:15:57] T364188: New upstream release for Pywikibot - https://phabricator.wikimedia.org/T364188 [17:16:28] so far I’ve mainly found examples referring to kokkuri (e.g. https://gitlab.wikimedia.org/repos/releng/scap/-/blob/9f78c09df62b867831816e52797dee1080008f9d/.gitlab-ci.yml), which seems to be more image-based than I’m interested in [17:58:39] o_O apparently docker-registry.tools.wmflabs.org/toolforge-python311-sssd-base:latest has no pip in it, until you create and activate a venv, then there’s a pip in the venv [17:58:49] idk where the venv module even installs the pip from then [18:08:54] lucaswerkmeister: What's the URL of your repo?> [18:08:57] ? [18:10:09] I can take a look any maybe make some suggestions. [18:11:15] lucaswerkmeister: The official example from Gitlab: https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Python.gitlab-ci.yml [18:15:39] dancy: I think I just made it work, I’ll push it in a moment [18:15:47] 👍🏾 [18:15:53] but I was interested in Toolforge-specific examples because e.g. I imagine we want specific images [18:18:08] hmm.. how about https://gitlab.wikimedia.org/toolforge-repos/wikibugs2/-/blob/main/.gitlab-ci.yml?ref_type=heads ? [18:21:04] here’s what I got: https://gitlab.wikimedia.org/toolforge-repos/wd-image-positions/-/commit/e8d438134b0af397f1e71ef976a09fadcce33dce [18:21:23] `image: python:$PYTHON_VERSION` – does that just use the python image from dockerhub then? [18:21:55] I guess toolforge-repos aren’t using the trusted runners mentioned in https://www.mediawiki.org/wiki/GitLab/Workflows/CI ? [18:22:39] That's right. [18:22:52] I see [18:22:57] That said, I recommend using an image from the wikimedia registry for efficiency. [18:23:32] (or toolforge's registry) [18:23:38] ah, I was about to ask [18:23:56] since the non-toolforge registry doesn’t have as many python images afaict [18:24:02] I’d just have to know that bookworm means 3.11 [18:24:09] haha, right.. [18:24:36] alright, I’ll leave that tab open and probably copy some things from there later [18:24:46] e.g. PYTHONDONTWRITEBYTECODE and the whole cache part [18:24:56] but for now I’m happy it’s working at all :) [18:25:07] thanks! [18:25:09] Nod. I recommend using the caching stuff. [18:25:14] You're welcome. Glad it's working [18:27:09] !log lucaswerkmeister@tools-sgebastion-10 tools.wd-image-positions deployed e8d438134b (add GitLab CI for T363626; pulled without webservice restart) [18:27:13] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools.wd-image-positions/SAL [18:45:12] https://doc.wikimedia.org/Wikibase/master/js/rest-api/#/items/addItem - Any idea by when this endpoint will be available on production? And is there any alternative to creating Wikidata items by API currently? [18:51:36] you can create items using `action=wbeditentity` in the Action API [19:06:02] Thanks. I was exploring this as well but I thought if Wikibase API would be ready soon, I would use that instead. (re @lucaswerkmeister: you can create items using action=wbeditentity in the Action API) [20:14:46] !log lucaswerkmeister@tools-sgebastion-10 tools.wd-image-positions deployed e5e9116fc9 (optimize GitLab CI; pulled without webservice restart) [20:14:49] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools.wd-image-positions/SAL [20:20:57] sbassett: no, Andrew already did it. And I think you can also do it yourself via browser if needed again. [20:37:05] !log devtools deleting buster deployment server deploy-1004, replaced by deploy-1006 - T360964 [20:37:09] Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Devtools/SAL [20:37:09] T360964: replace buster machines in devtools project - https://phabricator.wikimedia.org/T360964