Martin Urbanec
8aba9ff144
new_wikis_handler: Wiki creators should sync project logos before IS.php
...
Otherwise, IS.php will refer to a non-existent URL for a brief
period.
2020-07-29 19:26:55 +02:00
Amir Sarabadani
388766bfef
Merge pull request #15 from urbanecm/get-file-from-gerrit-404
...
new_wikis_handler: Make get_file_from_gerrit support 404s
2020-07-14 16:49:09 +02:00
Martin Urbanec
44cb589cfd
new_wikis_handler: Print only one Checking row
...
Plus prepend T to the task number to make it more obvious
2020-07-14 14:43:51 +00:00
Martin Urbanec
eda3c0632a
new_wikis_handler: Make get_file_from_gerrit support 404s
...
Previously, the function threw fatal on a 404.
2020-07-14 14:43:18 +00:00
Amir Sarabadani
82b90d32a9
Do not use the new python formatting system
...
The python3 version in ToolForge doesn't support it yet and it fails
with
File "/data/project/phabbot/phabbot/new_wikis_handler.py", line 211
if f"'{language_code}'" in pywikibot:
^
SyntaxError: invalid syntax
2020-07-14 00:08:43 +02:00
Amir Sarabadani
0dc6cadee3
Fixes for new wiki handler
...
- Adding more debug stuff so we know what's going on
- Making the cron work 4 times a day instead of one
2020-07-11 14:28:19 +02:00
Martin Urbanec
8fb88d5eda
new_wikis_handler: Simplify DNS checkbox's logic
...
Instead of determining where the change should be made,
let's try to resolve. This will catch "extremely special"
wikis like T256545, but also (rare) cases "patch merged, but DNS
fails for whatever reason".
2020-07-10 20:50:08 +00:00
Martin Urbanec
0b2010dded
new_wikis_handler: dbname never includes dashes, instead, it uses underscores
...
zh-classical.wikipedia.org should map to zh_classicalwiki
2020-07-10 20:24:21 +00:00
Amir Sarabadani
a4796e5b68
Fully automate new wikis creation reporter
2020-05-30 16:51:55 +02:00
Amir Sarabadani
86e4f3df10
Add instructions for creations
...
Making less prone to typos, mistakes, etc.
2020-05-20 15:41:09 +02:00
Amir Sarabadani
016fac156a
Start new_wikis_handler.py
...
Starting the script to eliminate the toil in creating new wikis:
https://landing.google.com/sre/sre-book/chapters/eliminating-toil/
For now, it only takes a bug id and outputs the checklist of stuff that
are done and stuff that needs to be done.
2020-05-19 11:16:25 +02:00