Amir Sarabadani
6929f56b9b
Add creating parent tickets for new wiki creations
...
Bug: T253439
2020-10-08 04:39:10 +02:00
Amir Sarabadani
b72da2b58f
Make patchforreview not remove tag if there's a link to a github PR
...
Not any link to github. This would help a lot in cleaning up with better
precision.
2020-09-29 15:03:19 +02:00
Amir Sarabadani
0c97322d2e
More improvements on new wikis handler
...
Preparing for the part of creating parent tasks.
2020-09-29 14:12:43 +02:00
Martin Urbanec
501463b05c
new_wikis_handler: Fix a typo
...
To avoid this:
[urbanecm@mwmaint2001 ~]$ mwscript extensions/CirrusSearch/Maintenance/UpdateSearchIndexConfig.php --wiki=arbcom_ruwiki --cluster=all
The MediaWiki script file "/srv/mediawiki/php-1.36.0-wmf.10/extensions/CirrusSearch/Maintenance/UpdateSearchIndexConfig.php" does not exist.
Lowercase "maintenance" seems to be the correct version.
2020-09-28 14:36:14 +02:00
Martin Urbanec
6cadc7147b
new_wikis_handler: Include UpdateSearchIndexConfig in creation instructions
...
Bug: T254331
2020-09-23 00:11:05 +02:00
Martin Urbanec
edd87fc1ff
column_mover: Add some automatization to user-urbanecm
2020-09-19 20:23:55 +02:00
Martin Urbanec
600ea016df
new_wiki_handler: For now, do not expect the wiki will be public
...
this can cause serious issues if unnoticed,
making the code to allow for passing visibility,
I'll fix the template etc. and make the code to fetch
the visibility from task soon.
2020-09-14 22:28:17 +02:00
Martin Urbanec
f086d0a15a
new_wiki_handler: Try to fix handle_analytics
2020-09-14 22:21:27 +02:00
Martin Urbanec
05faf29136
Kill spawned ssh agent in new_wikis_handler.sh wrapper script
2020-09-14 22:18:11 +02:00
Martin Urbanec
cba44a60e8
Run new wiki handler via the wrapper script
2020-09-14 21:56:34 +02:00
Martin Urbanec
b2f86ee5f8
Disable handle_analytics for now
...
it throws a fatal error, will fix later
2020-09-14 21:54:55 +02:00
Martin Urbanec
ae9a1c0e35
Add a wrapper script that spawns an agent for new_wiki_handler
2020-09-14 21:52:13 +02:00
Amir Sarabadani
b84cf9d064
Add the part to create parent task
...
This comes handy in case of creating new wikis.
2020-09-13 05:49:47 +02:00
Amir Sarabadani
9ddb439762
Tiny clean ups to patch makers
...
- Make it deduplicate
- Remove the temp one
2020-09-08 18:41:16 +02:00
Amir Sarabadani
47c00f28ba
Make CX and Analytics patches too
2020-08-29 23:51:34 +02:00
Amir Sarabadani
bd6ee7e894
Clean up the new_wikis_handler.py code
...
Splitting large functions to smaller one, DRY, PEP8, ...
2020-08-29 21:53:23 +02:00
Amir Sarabadani
0617aa1b9b
Add ability to override dbname
...
Some wikis have a different dbname than what can be found from their
urls, like T246945
2020-08-24 19:40:42 +02:00
Amir Sarabadani
7ace1cb220
Fix path for gerrit-creds.json
...
It's erroring now
2020-08-24 11:36:21 +02:00
Amir Sarabadani
1d784027bb
Create subticket and patch for new wikis
...
Create DNS and Wikimedia Messages patches for the new wikis
Most of the gerrit code is copied from library upgrader library:
https://gerrit.wikimedia.org/r/plugins/gitiles/labs/libraryupgrader
Bug: T253439
2020-08-15 19:15:58 +02:00
Amir Sarabadani
edc2501274
Add Gerritbot
...
To make automatic patches for new wikis
Bug: T253439
2020-08-15 16:27:01 +02:00
Martin Urbanec
78113030dc
new_wikis_handler: Wikis with different shard s3 needs db-*.php to be synced too
2020-08-11 11:23:41 +02:00
Amir Sarabadani
e04aa3a936
Use the closed wikis on s5 for creating new wikis
2020-08-11 10:49:08 +02:00
Amir Sarabadani
e7536e1dcd
Merge pull request #16 from urbanecm/shard
...
new_wikis_handler: Do not assume wiki will be always created at s3
2020-08-02 18:50:06 +02:00
Martin Urbanec
9b8c348e29
new_wikis_handler: Remove debug code
2020-08-02 18:48:16 +02:00
Martin Urbanec
7d1748b68d
new_wikis_handler: Do not assume wiki will be always created at s3
2020-08-02 18:45:41 +02:00
Martin Urbanec
3ab5adde3d
Fix cron permissions
...
Cron was previously marked as executable,
which doesn't make sense, as it isn't a binary file
or a script.
2020-07-29 19:28:39 +02:00
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
037e84cd22
Update wikidata sprint board
2020-07-15 16:28:47 +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
Amir Sarabadani
878de1b45b
Merge pull request #14 from urbanecm/double-checking-notices
...
new_wikis_handler: Print only one Checking row
2020-07-14 16:45:47 +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
Amir Sarabadani
78cde6376b
Merge pull request #13 from urbanecm/simplify-dns
...
new_wikis_handler: Simplify DNS checkbox's logic
2020-07-10 22:51:34 +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
Amir Sarabadani
26eb484799
Merge pull request #12 from urbanecm/fix-dbname-underscore
...
new_wikis_handler: dbname never includes dashes, instead, it uses und…
2020-07-10 22:26:53 +02: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
dbb3ee2c40
Fix the regex for patch-for-review comment checker
...
After upgrading gerrit, this broke as the URL schema changed.
2020-07-01 23:06:01 +02: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
Amir Sarabadani
4e6cac1ba5
Merge pull request #8 from RhinosF1/patch-2
...
Updated column mover config for user-rhinosf1
2020-05-15 16:43:43 +02:00
RhinosF1
c19a33bd10
Updated column mover config for user-rhinosf1
...
Incoming & Watching (Other) --> Radar
Miraheze Phab Reported Issues & Miraheze-Related Issues (not reported there) --> Miraheze-Linked
WMF Bugs --> Extensions & Core
WMF Config --> Configuration
Deployment is no longer auto-moved.
2020-05-15 14:26:19 +01:00
Amir Sarabadani
75ab3a019d
Merge pull request #7 from RhinosF1/patch-1
...
Change column names
2020-03-28 23:43:34 +01:00
RhinosF1
9270b50ea9
Change column names
2020-03-28 18:07:05 +00:00
Amir Sarabadani
00ca40df61
Merge pull request #6 from RhinosF1/patch-1
...
move * to 'Done' in 'User-RhinosF1' when 'Resolved'
2020-03-03 23:57:25 +01:00
RhinosF1
800686ed7d
Update column_mover.py
2020-03-03 22:56:09 +00:00
RhinosF1
1750f708e8
Update column_mover.py
2020-03-03 22:53:19 +00:00
RhinosF1
2ae0c535a4
move * to 'Done' in 'User-RhinosF1' when 'Resolved'
2020-03-03 22:35:08 +00:00