Hello, 

to ensure my understanding is correct, is the correct way to do dblists changes nowadays to first change yaml and then run composer build? From first reading the email, I thought it's automated by CI, but it's clearly not <https://gerrit.wikimedia.org/r/c/operations/mediawiki-config/+/553449>. 

Best,
Martin

út 26. 11. 2019 v 21:51 odesílatel James Forrester <jforrester@wikimedia.org> napsal:
Sorry, forgot to CC this list.

---------- Forwarded message ---------
From: James Forrester <jforrester@wikimedia.org>
Date: Tue, 26 Nov 2019 at 12:50
Subject: Production config dblists are now auto-generated at merge time from YAML
To: Wikimedia developers <wikitech-l@lists.wikimedia.org>


Hey all,

[Unless you're writing Wikimedia production MediaWiki-land configuration changes, you can ignore this note.]

As part of my work on moving variant configuration in static files[0], I've just merged and deployed a change to how dblists work. They are now auto-generated at merge time[1] (except for the very few lists which are live-computed in production, which remain). The lists are calculated from the per-wiki YAML files in wmf-config/config (and if you try to change the dblist files manually, CI will error at you).

Changes to dblist memberships are quite rare, and this will enforce that we don't make mistakes. (As part of this deployment, I removed three duplicate entries and noted several irregularities we probably didn't intend.)

This means that if you're writing a change that previously would have meant manually editing the dblist files, you now have to touch the YAML file instead (and run composer build locally, or use CI to tell you what to change).

This mostly affects the creation of new wikis (which should now be slightly simpler), plus a few major features currently enabled through dblists. For an example, if you were to remove FlaggedRevisions from Chechen Wikipedia, you'd now need to edit cewiki.yaml[2] to remove the " - flaggedrevs" line, as well as changes to InitialiseSettings.php.

This work unblocks some of the future re-architecting of config, which I've mentioned before, as part of the long-term plan to move Wikimedia production into containers. Configuration traits related to FR will inherit from flaggedrevs.yaml, and static-like code in CommonSettings.php (and in this case, flaggedrevs.php) can be significantly shrunk.

If anything has broken or has become, if you have any questions, or want to talk about things, I'd be happy to discuss, here, on IRC, or on Phabricator.

Thanks!


Yours,
--
James D. Forrester (he/him or they/themself)


--
James D. Forrester (he/him or they/themself)

--
To unsubscribe from this group and stop receiving emails from it, send an email to sitereq-l+unsubscribe@wikimedia.org.