Hi Željko, thanks a lot! I have some issues with how the environment
variables are handled, I left some comments in gerrit. There is one other
thing that should be changed if possible: we have two different modes of
the test (upload new file, upload existing file) which hit different code
paths in PHP, so the script should look like this:

...
DEV/bin/python tests/api/upload-wizard_tests.py --username "Selenium_user"
--api_url "https://commons.wikimedia.org/w/api.php";
DEV/bin/python tests/api/upload-wizard_tests.py --gen_new_image --username
"Selenium_user" --api_url "https://commons.wikimedia.org/w/api.php";

best
Gergő


On Mon, Jan 27, 2014 at 8:59 AM, Željko Filipin <[email protected]>wrote:

> On Fri, Jan 24, 2014 at 11:53 PM, Aaron Arcos <[email protected]>wrote:
>
>> Just changed <https://gerrit.wikimedia.org/r/#/c/109335/> the script to
>> support environment variables (MEDIAWIKI_USER and MEDIAWIKI_PASSWORD).
>>
>
> Thanks, but I have forgot that since we use different users and passwords
> at different sites we need something a bit more complicated. I did my best
> to implement the change, but my Python-fu is not the best[1].
>
> Also, we would like to get this script to run against every beta build.
>>
>
> I am not sure I understood you. I have created two Jenkins jobs[2]. One
> runs at commons.wikimedia.org, the other one at
> commons.wikimedia.beta.wmflabs.org. The first one runs every 6 hours, the
> second one pulls Git repository every minute and runs if there are new
> commits. Both jobs ping #wikimedia-qa IRC channel every time the job
> finishes (pass or fail). Also, both jobs send e-mail notification (to
> [email protected] [email protected] [email protected]
> [email protected]) if the job fails.
>
> Let me know if something needs to be changed[3].
>
> Željko
> --
> 1: https://gerrit.wikimedia.org/r/#/c/109661
> 2: https://wmf.ci.cloudbees.com/view/r-uw/
> 3: https://gerrit.wikimedia.org/r/#/c/109680/
>
_______________________________________________
QA mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/qa

Reply via email to