Re: [Wikitech-l] The difference between fileexists-no-change and backend-fail-alreadyexists for action=upload

2019-11-19 Thread Chen Xinyan
[merged thread] Hi Bawolff and Daniel, This explanation makes sense, as I'm running the same set of unit tests on 3 different environments, each environment runs in parallel with one another. And I've just realized 20191116051316 is just a timestamp with accuracy up to seconds XD So for now

Re: [Wikitech-l] The difference between fileexists-no-change and backend-fail-alreadyexists for action=upload

2019-11-18 Thread bawolff
So fileexists-no-change happens when your uploading a new version of a file, MediaWiki calculates the sha1 sum, and notices that the img_sha1 field in the db for the current version of the file is the same as what was just calculated for the new file. Which probably (although not necessarily now

[Wikitech-l] The difference between fileexists-no-change and backend-fail-alreadyexists for action=upload

2019-11-15 Thread Chen Xinyan
Hi there, Hope I've found the correct list for asking this question. I was setting up a CI test case for my MediaWiki Client Library to run a bot that will upload a file to https://en.wikipedia.beta.wmflabs.org in chunked stash mode. For most of the time, when I perform the final upload with