To make it easier for people to contribute and run the tool locally.
The new run.php is deployed, but I've left the cronjob uncommented because clone.sh is calling the wrong PHP file (see patch above).
run.php is giving "Error when saving: The content you supplied exceeds the article size limit of 2048 kilobytes." but I assume that's been happening for ages and can be ignored. I'll keep running clone and run manually until there are changes in extensions to confirm that everything is working as it should be.
I should learn to read the message in front of me! It was indeed trying to save a too-large page, because in the switch to the new structure we lost https://gerrit.wikimedia.org/r/c/labs/tools/extjsonuploader/+/530983
The size difference was
- old: 1,626,886 bytes
- new: 2,798,558 bytes
I've made a patch for that.
Also, there was a change in the src/vendor/ directory, which we should add into the new code:
diff vendor/hamstar/wikimate/Wikimate.php src/vendor/hamstar/wikimate/Wikimate.php 52c52 < $this->useragent = 'Wikimate '.self::VERSION.' (https://github.com/hamstar/Wikimate)'; --- > $this->useragent = 'User:Bawolff extension.json sync bot (using framework: Wikimate '.self::VERSION.' (https://github.com/hamstar/Wikimate))'; 260d259
For the time being, I've rolled the deployed version back to 979d702f40b874aad23b3fbd2ad2f13a45966d6e and restored the cronjob.