Private account of @Lucas_Werkmeister_WMDE (he/him, Berlin timezone). Anything I do here is on volunteer time, even if it looks work-related :)
User Details
- User Since
- Jun 5 2016, 4:36 PM (543 w, 6 d)
- Availability
- Available
- IRC Nick
- lucaswerkmeister
- LDAP User
- Lucas Werkmeister
- MediaWiki User
- Lucas Werkmeister [ Global Accounts ]
Yesterday
Thu, Nov 5
Tue, Nov 3
Mon, Nov 2
Uh, I have no idea why you’re asking me?
Thu, Oct 29
You don’t need to revert anything, I already added the extensions. Just wanted to leave a grumpy comment, I guess ^^
FWIW, I was relying on the fact that loading (not using) WikibaseCirrusSearch without CirrusSearch works perfectly fine in AC/DC CI – where I’m only loading WikibaseCirrusSearch to begin with because WikibaseMediaInfo in turn has a hard dependency it (I haven’t checked why). So I guess I’m cloning one more extension I don’t actually need :/
Wed, Oct 28
Fixed in Update undici, http-cookie-agent, tough-cookie; release pending.
Tue, Oct 27
Hm, the interaction between m3api-rest and m3api-oauth2 is actually its own open question in general… since Wikimedia production now returns HTTP-level OAuth errors (T419034), and presumably does so for both Action and REST API requests (whereas previously the Action API returned Action API errors and the REST API returned elefino), it would in principle be possible to make m3api-oauth2 listen for request errors from m3api-rest and do the automatic refresh dance under the hood. In fact, if I want m3api-rest to me moderately useful, that’s probably almost a requirement. But I’ll have to think about how to implement this in a way that makes sense.
Mon, Oct 26
Alright, thanks, I’ve approved the client now.
Wed, Oct 21
Fri, Oct 16
Oh, yes, your list probably needs to be a bit longer if you’re cloning a REL branch (we only recently squashed most of the submodules into Wikibase.git)… I just had a longer list for that: see commit.
FWIW I’ve had to work around the same issue in ACDC: https://github.com/lucaswerkmeister/ACDC/commit/8337d1f156
Mon, Oct 12
Does that mean I was wrong to reject the client/consumer?
Sun, Oct 11
Hm, as far as I can tell, this should have been rejected, both because the callbackUrl is a required field and because it must parse as a URL. But also, the URL really is completely empty in the database (checked via @Lucas_Werkmeister_WMDE’s production access):
Sat, Oct 10
Fri, Oct 9
I also added the file to Commons now (since I was confused why I couldn’t find it there and @Nemoralis was able to find this task), using CC BY-SA 4.0 as the Phabricator default license, so please shout if that’s not correct :)
Sep 27 2026
Sep 25 2026
I guess so… I kinda forgot that there was a plausible fix for this :D (I wasn’t very convinced by the “concurrent refresh” theory, because it didn’t seem to match how the users told me they were using the tool, but I guess after three months with no more issues it’s good enough.)
(FTR, @TheDJ already uploaded a patch for this before I created the task.)
Sep 24 2026
+1 – as I wrote in #wikimedia-cloud yesterday, I don’t find components a very relevant “entrypoint” given that most of my tools don’t have multiple components.
Sep 23 2026
There's an underlying security issue of trusting the deploy request with passing the configuration. As someone that is able to get the deploy token will be able to change the configuration at will (as opposed to currently, where they will only be able to trigger a deployment, that will pull the config from the already setup and trusted repo).
Aug 28 2026
I finally thought of a better way to work around this: port-forward MariaDB through SSH and then run mariadb-dump locally (after also threading the replica.my.cnf file through SSH so the local mariadb-dump can see it). https://github.com/lucaswerkmeister/home/commit/2593334c27
Aug 23 2026
Something seems to be broken again – Wikidata Lexeme Forms has a twn branch with a commit from 20 August, but no corresponding merge request.
Aug 21 2026
For search purposes: in the console this looks like
Aug 18 2026
Given T401993: [components-api] Add a "description" field to the deployment, this should probably be built on top of that – the CI pipeline submits an automatic description based on the commit message (or range) with the deployment (and an “enable SAL” flag, e.g. based on an envvar?), and the components API then logs that description (if enabled).
Can confirm it’s working now \o/
Aug 17 2026
(Still no trace of the error in the logs… I’m starting to think I should port more tools to OAuth 2 + mwoauth2, despite this bug, just so it’ll recur sooner. Though that means I also have to include the debug code everywhere.)
Thanks! \o/
Aug 16 2026
This was done some time ago in the context of another task.
IMHO we can call this resolved now, they’ve started adding versions again – currently Codex 2.5.1 is available on cdnjs. (2.6.0 and 2.6.2 aren’t, but I’m guessing they’ll add those eventually. codex-design-tokens and codex-icons both have 2.6.2 available. Note also that the cdnjs-index page on Toolforge is incomplete due to T431039.) Feel free to reopen if you disagree.
Aug 15 2026
Also per Taavi, “Checking your browser” (Cloudflare, I think?) also seems like a good title to blocklist.
Pointed out by Taavi: apparently @Mvolz already got us on Anubis’ good bots list, so this is mainly an issue with older Anubis installations (if I understand correctly).
Aug 13 2026
Jul 23 2026
(And, before the rethrow, remove the now-invalid access and refresh tokens from the session. And then it’s up to the user to catch the error and handle it by logging in again. Right?)
I just tried it out (by revoking the m3api-examples client at Special:OAuthManageMyGrants), and the result with current m3api-oauth2 is:
Edit: disregard, belongs in T431363.
I think there might still be a problem – the twn branch was just updated (Thu Jul 23 14:30:58 2026 +0200) but there’s still no merge request.
Can confirm it works again, thank you!
Jul 22 2026
I see, thanks! (I just noticed that Wikidata Image Positions has the same issue, but you also mentioned that in the comment over there.)
Jul 21 2026
Jul 15 2026
Looks like it, checking out that commit makes CI pass. Thanks!
Jul 12 2026
Yes, that’s correct :) we just got sidetracked for a bit. (And also, T431631 will improve the way this bugfix is implemented.)
Jul 9 2026
As I wrote in the GitHub issue:
Jul 8 2026
the “save session at the end of each request” approach
Well, given that refresh might transparently happen in the background at any time, I think you need to serialize the session at the end of each request anyway? (Or at least check if the new serialization is different from what’s currently stored, if you want to avoid triggering some “the session was touched, persist it now” mechanism of your web framework.) Though the current webapp examples don’t do this 🤔 I should check if that’s a real bug…
That’s a fair point. The docs for isCompleteOAuthSession() obliquely refer to a similar situation –
Jul 5 2026
If you don't want to break anything, and you want to start using "exports", then you need to list all the files that are currently accessible each as a separate import.
I’ve already made the decision, which is to not make any breaking changes to the imports at this time. But it sounds like it’s also possible to improve the situation for TypeScript without breaking anything else, so my questions at the moment are:
Jul 4 2026
(It might take a while for the error to show up again – the two reports I received about it so far were on 31 May and 3 July, so a bit over a month apart. Feel free to forget about this task in the meantime, and I’ll shout here when there’s something new to inspect ^^)
Jul 3 2026
(The only other Phabricator task with this error message is T268256, which was closed with no action after the error seemed to resolve itself. :/)
Tagging this with MediaWiki-extensions-OAuth in the hope that someone knows what might be going on or how it could be debugged.
I suppose an alternative solution would be to fetch the URLs for alternative solutions on demand as the user clicks that library version. In principle we could even do that in the browser – the CDNjs API is CORS-enabled – but that’s probably going to be blocked via CSP at some point (and also, not leaking IPs to Cloudflare is kind of the whole point of our CDNjs mirror, and it would be nice to extend the same courtesy to the developers using the Toolforge CDNjs front page). So that would require setting up a proper webservice, rather than just serving the static index.html.
Jul 2 2026
I’ll be honest, I’m very much inclined to agree with Past Lucas right now:
Jul 1 2026
Jun 30 2026
I’m not sure which tags to add to this (is it SRE territory?); CC @Krinkle who made the last few commits to w/robots.php.
Jun 23 2026
So the pull request I put forwards uses "exports" to make it so that in Node, importing the package imports the node version, and otherwise, the browser version. And with typing associated with it as well.
Jun 16 2026
Jun 15 2026
The constraint is declared on property P31 following the same pattern as other type-related constraints (TypeChecker, ValueTypeChecker, SymmetricChecker)
Jun 13 2026
Jun 9 2026
FYI: I’m not sure if it qualifies as a train blocker, but T428649: [regression] Duplicate p-tb (tools/toolbox) menu in Vector 2022 caused by watchstar/bookmark icon changes looks to me like a regression in this week’s train.
(Boring additional context: this breaks the browser tests of the AC/DC gadget, because opening the “tools” menu is no longer sufficient to make the portlet link visible. I initially wasn’t sure if this was a bug or an intentional change, but noticing that there are two elements with id="p-tb" on the page convinced me that it’s probably not intentional.)
Jun 3 2026
It’s working again, thanks \o/
May 30 2026
May 29 2026
Yes, e.g. Josh404Bot has the fourth-most batches on QuickStatements:
May 9 2026
Apr 29 2026
(The task title and/or description could probably still do with some refining. Arguably the user agent part is covered by T422686; but beyond that, I think site operators need the ability to send authorized requests so they get higher rate limits, and that’s what the second and third patch attached above try to do.)
Apr 28 2026
The above three patches are currently deployed on FactGrid, though it’s unclear how much they help. (The first one alone had no effect other than changing the error message a bit, see discussion; I haven’t yet heard back from the wiki editors about the other two changes.) They’re probably not ready for merging as-is, but more of a starting point. (But it would be nice to get something merged and backported soon, given that the rate limit rollout continues unabated.)
Apr 27 2026
Alright, replied something along those lines. Thanks.