Last week I saw this in a WMF internal chat: "Now we just need to make it a weeee easier to edit the Deployments calendar. (or…is there an easier way than squinting at wikitext tables and copy/pasting templates?)"
I'm sure that a number of y'all can relate to this. The https://wikitech.wikimedia.org/wiki/Deployments page is pretty nice to read as a human and not too bad for bots. Editing it though can be a bit painful as that pull quote implies. I decided I would try to do something about that. The result is a tool at https://schedule-deployment.toolforge.org/.
The new "Wikimedia Deployment Scheduler" tool tries to make adding your Gerrit change to a backport window as simple as possible. All it needs from you is the Gerrit change number, your IRC nick, and the backport window you want to use. Using some python magic, including the always useful mwparserfromhell library, it finds the right place in [[wikitech:Deployments]] to insert your request for deployment.
To make things even easier, Gerrit will now show you a "Schedule backport of this change" link underneath the commit message for changes that are eligible for a backport deployment. What changes are those? Any open, unmerged change on the master branch of operations/mediawiki-config.git or changes on "wmf/*" branches in mediawiki/core.git, mediawiki/extensions/*.git, or mediawiki/skins/*.git.
Thanks to Antoine Musso and Tyler Cipriani for their help and encouragement in building this tool. If you are interested in seeing what the Gerrit integration needed, check out https://gerrit.wikimedia.org/r/plugins/gitiles/operations/software/gerrit/+/7ea913b^!/
Bryan
Hi,
I already used this feature before you sent the email and found it very useful. I especially like the link from gerrit.
Thanks,
Dreamy Jazz
English Wikipedia CheckUser, Admin and Arb Clerk. Software Engineer working at the Wikimedia Foundation
On Wed, 5 Jun 2024 at 16:14, Bryan Davis bd808@wikimedia.org wrote:
Last week I saw this in a WMF internal chat: "Now we just need to make it a weeee easier to edit the Deployments calendar. (or…is there an easier way than squinting at wikitext tables and copy/pasting templates?)"
I'm sure that a number of y'all can relate to this. The https://wikitech.wikimedia.org/wiki/Deployments page is pretty nice to read as a human and not too bad for bots. Editing it though can be a bit painful as that pull quote implies. I decided I would try to do something about that. The result is a tool at https://schedule-deployment.toolforge.org/.
The new "Wikimedia Deployment Scheduler" tool tries to make adding your Gerrit change to a backport window as simple as possible. All it needs from you is the Gerrit change number, your IRC nick, and the backport window you want to use. Using some python magic, including the always useful mwparserfromhell library, it finds the right place in [[wikitech:Deployments]] to insert your request for deployment.
To make things even easier, Gerrit will now show you a "Schedule backport of this change" link underneath the commit message for changes that are eligible for a backport deployment. What changes are those? Any open, unmerged change on the master branch of operations/mediawiki-config.git or changes on "wmf/*" branches in mediawiki/core.git, mediawiki/extensions/*.git, or mediawiki/skins/*.git.
Thanks to Antoine Musso and Tyler Cipriani for their help and encouragement in building this tool. If you are interested in seeing what the Gerrit integration needed, check out < https://gerrit.wikimedia.org/r/plugins/gitiles/operations/software/gerrit/+/... ^!/>
Bryan
Bryan Davis Wikimedia Foundation Principal Software Engineer Boise, ID USA [[m:User:BDavis_(WMF)]] irc: bd808 _______________________________________________ Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org To unsubscribe send an email to wikitech-l-leave@lists.wikimedia.org https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/
٩( ๑╹ ꇴ╹)۶
On Wed, Jun 5, 2024 at 11:27 AM Dreamy Jazz dreamyjazzwikipedia@gmail.com wrote:
Hi,
I already used this feature before you sent the email and found it very useful. I especially like the link from gerrit.
Thanks,
Dreamy Jazz
English Wikipedia CheckUser, Admin and Arb Clerk. Software Engineer working at the Wikimedia Foundation
On Wed, 5 Jun 2024 at 16:14, Bryan Davis bd808@wikimedia.org wrote:
Last week I saw this in a WMF internal chat: "Now we just need to make it a weeee easier to edit the Deployments calendar. (or…is there an easier way than squinting at wikitext tables and copy/pasting templates?)"
I'm sure that a number of y'all can relate to this. The https://wikitech.wikimedia.org/wiki/Deployments page is pretty nice to read as a human and not too bad for bots. Editing it though can be a bit painful as that pull quote implies. I decided I would try to do something about that. The result is a tool at https://schedule-deployment.toolforge.org/.
The new "Wikimedia Deployment Scheduler" tool tries to make adding your Gerrit change to a backport window as simple as possible. All it needs from you is the Gerrit change number, your IRC nick, and the backport window you want to use. Using some python magic, including the always useful mwparserfromhell library, it finds the right place in [[wikitech:Deployments]] to insert your request for deployment.
To make things even easier, Gerrit will now show you a "Schedule backport of this change" link underneath the commit message for changes that are eligible for a backport deployment. What changes are those? Any open, unmerged change on the master branch of operations/mediawiki-config.git or changes on "wmf/*" branches in mediawiki/core.git, mediawiki/extensions/*.git, or mediawiki/skins/*.git.
Thanks to Antoine Musso and Tyler Cipriani for their help and encouragement in building this tool. If you are interested in seeing what the Gerrit integration needed, check out < https://gerrit.wikimedia.org/r/plugins/gitiles/operations/software/gerrit/+/... ^!/>
Bryan
Bryan Davis Wikimedia Foundation Principal Software Engineer Boise, ID USA [[m:User:BDavis_(WMF)]] irc: bd808 _______________________________________________ Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org To unsubscribe send an email to wikitech-l-leave@lists.wikimedia.org
https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/
Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org To unsubscribe send an email to wikitech-l-leave@lists.wikimedia.org https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/
Looks great, any chance we could have it generate a iCal file to import into our favourite calendar app as well (I have missed a non-zero amount of merge windows cause I got the timezones wrong and/or forgot about it) Regards, Sohom Datta --- Open-source contributor @Wikimedia, @Chromium
On Wed, Jun 5, 2024 at 11:49 AM Andrew Otto otto@wikimedia.org wrote:
٩( ๑╹ ꇴ╹)۶
On Wed, Jun 5, 2024 at 11:27 AM Dreamy Jazz dreamyjazzwikipedia@gmail.com wrote:
Hi,
I already used this feature before you sent the email and found it very useful. I especially like the link from gerrit.
Thanks,
Dreamy Jazz
English Wikipedia CheckUser, Admin and Arb Clerk. Software Engineer working at the Wikimedia Foundation
On Wed, 5 Jun 2024 at 16:14, Bryan Davis bd808@wikimedia.org wrote:
Last week I saw this in a WMF internal chat: "Now we just need to make it a weeee easier to edit the Deployments calendar. (or…is there an easier way than squinting at wikitext tables and copy/pasting templates?)"
I'm sure that a number of y'all can relate to this. The https://wikitech.wikimedia.org/wiki/Deployments page is pretty nice to read as a human and not too bad for bots. Editing it though can be a bit painful as that pull quote implies. I decided I would try to do something about that. The result is a tool at https://schedule-deployment.toolforge.org/.
The new "Wikimedia Deployment Scheduler" tool tries to make adding your Gerrit change to a backport window as simple as possible. All it needs from you is the Gerrit change number, your IRC nick, and the backport window you want to use. Using some python magic, including the always useful mwparserfromhell library, it finds the right place in [[wikitech:Deployments]] to insert your request for deployment.
To make things even easier, Gerrit will now show you a "Schedule backport of this change" link underneath the commit message for changes that are eligible for a backport deployment. What changes are those? Any open, unmerged change on the master branch of operations/mediawiki-config.git or changes on "wmf/*" branches in mediawiki/core.git, mediawiki/extensions/*.git, or mediawiki/skins/*.git.
Thanks to Antoine Musso and Tyler Cipriani for their help and encouragement in building this tool. If you are interested in seeing what the Gerrit integration needed, check out < https://gerrit.wikimedia.org/r/plugins/gitiles/operations/software/gerrit/+/... ^!/>
Bryan
Bryan Davis Wikimedia Foundation Principal Software Engineer Boise, ID USA [[m:User:BDavis_(WMF)]] irc: bd808 _______________________________________________ Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org To unsubscribe send an email to wikitech-l-leave@lists.wikimedia.org
https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/
Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org To unsubscribe send an email to wikitech-l-leave@lists.wikimedia.org
https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/
Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org To unsubscribe send an email to wikitech-l-leave@lists.wikimedia.org https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/
On Wed, Jun 5, 2024 at 9:52 AM Sohom Datta dattasohom1@gmail.com wrote:
Looks great, any chance we could have it generate a iCal file to import into our favourite calendar app as well (I have missed a non-zero amount of merge windows cause I got the timezones wrong and/or forgot about it) Regards, Sohom Datta
That seems like it would be possible. The phabricator board for the tool is at https://phabricator.wikimedia.org/project/board/7210/ and the source code is at https://gitlab.wikimedia.org/toolforge-repos/schedule-deployment. Bug reports, feature requests, and patches are welcome! :)
Bryan
Love this! TYSM to all involved
On Wed, Jun 5, 2024 at 4:14 PM Bryan Davis bd808@wikimedia.org wrote:
Last week I saw this in a WMF internal chat: "Now we just need to make it a weeee easier to edit the Deployments calendar. (or…is there an easier way than squinting at wikitext tables and copy/pasting templates?)"
I'm sure that a number of y'all can relate to this. The https://wikitech.wikimedia.org/wiki/Deployments page is pretty nice to read as a human and not too bad for bots. Editing it though can be a bit painful as that pull quote implies. I decided I would try to do something about that. The result is a tool at https://schedule-deployment.toolforge.org/.
The new "Wikimedia Deployment Scheduler" tool tries to make adding your Gerrit change to a backport window as simple as possible. All it needs from you is the Gerrit change number, your IRC nick, and the backport window you want to use. Using some python magic, including the always useful mwparserfromhell library, it finds the right place in [[wikitech:Deployments]] to insert your request for deployment.
To make things even easier, Gerrit will now show you a "Schedule backport of this change" link underneath the commit message for changes that are eligible for a backport deployment. What changes are those? Any open, unmerged change on the master branch of operations/mediawiki-config.git or changes on "wmf/*" branches in mediawiki/core.git, mediawiki/extensions/*.git, or mediawiki/skins/*.git.
Thanks to Antoine Musso and Tyler Cipriani for their help and encouragement in building this tool. If you are interested in seeing what the Gerrit integration needed, check out < https://gerrit.wikimedia.org/r/plugins/gitiles/operations/software/gerrit/+/... ^!/>
Bryan
Bryan Davis Wikimedia Foundation Principal Software Engineer Boise, ID USA [[m:User:BDavis_(WMF)]] irc: bd808 _______________________________________________ Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org To unsubscribe send an email to wikitech-l-leave@lists.wikimedia.org https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/
On Wed, Jun 5, 2024 at 9:13 AM Bryan Davis bd808@wikimedia.org wrote:
The new "Wikimedia Deployment Scheduler" tool tries to make adding your Gerrit change to a backport window as simple as possible. All it needs from you is the Gerrit change number, your IRC nick, and the backport window you want to use. Using some python magic, including the always useful mwparserfromhell library, it finds the right place in [[wikitech:Deployments]] to insert your request for deployment.
To make things even easier, Gerrit will now show you a "Schedule backport of this change" link underneath the commit message for changes that are eligible for a backport deployment. What changes are those? Any open, unmerged change on the master branch of operations/mediawiki-config.git or changes on "wmf/*" branches in mediawiki/core.git, mediawiki/extensions/*.git, or mediawiki/skins/*.git.
Several folks who tried to use the new scheduling tool on Thursday ran into a problem where the tool would tell them that their change had been scheduled, but the Deployments page was actually not updated. I eventually figured out that my logic for finding the right place in the page to make the insert was easily confused by a common manual edit where folks would overwrite the instructions placeholder with their own change. This bug has now been fixed. I have also added a few more checks to try and detect similar issues in the future where the tool accidentally makes a null edit.
Bryan
wikitech-l@lists.wikimedia.org