Last modified: 2014-01-30 15:09:28 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T60923, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 58923 - Schedule jobs to run "extensions/UploadWizard/test/api/upload-wizard_tests.py' at appropriate times.
Schedule jobs to run "extensions/UploadWizard/test/api/upload-wizard_tests.py...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
UploadWizard (Other open bugs)
master
All All
: Normal enhancement (vote)
: ---
Assigned To: Željko Filipin
:
Depends on:
Blocks: 58555
  Show dependency treegraph
 
Reported: 2013-12-23 23:30 UTC by aarcos.wiki
Modified: 2014-01-30 15:09 UTC (History)
8 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description aarcos.wiki 2013-12-23 23:30:43 UTC
Basic smoke tests for the UploadWizard have been created, they need to be run for the following use cases:

0) Sanity checks before deployment of a release to any of our environments (alpha, beta, prod). These and other integration/end-to-end tests should be run and if failures found the deployment stops.
1) These tests and other end-to-end tests can be run continuously against production to check the sanity of the UploadWizard functionality, once/twice a day.
Comment 1 aarcos.wiki 2014-01-09 15:50:15 UTC
First step will be to run this agains production every 6h and notify 'multimedia@lists.wikimedia.org' and #wikimedia-multimedia if something goes wrong.
Comment 2 Rob Lanphier 2014-01-10 18:24:07 UTC
Hi Aaron, I think it's good to figure out some visible place for these alerts, but please don't use the multimedia@ mailing list (or any mailing list primarily focused on human discussion) for automated alerts.  There are 120 subscribers to the mailing list right now, most of which can't do anything about the alerts, and some of which don't particularly care about production issues on our sites because they're interested in multimedia features in MediaWiki on their sites.  If we need to use a currently existing mailing list, we should ask about using operations@, since that one already has ample precedent for automated alerts of system health.
Comment 3 Željko Filipin 2014-01-22 16:42:51 UTC
Cloudbees Python documentation:

http://developer.cloudbees.com/bin/view/DEV/Python
Comment 4 Gerrit Notification Bot 2014-01-22 16:45:28 UTC
Change 108924 had a related patch set uploaded by Zfilipin:
WIP Run UploadWizard API tests at CloudBees

https://gerrit.wikimedia.org/r/108924
Comment 5 Željko Filipin 2014-01-23 12:21:29 UTC
For related discussion on QA mailing list, search for "Run UploadWizard API integration test against production" at http://lists.wikimedia.org/pipermail/qa/2014-January/date.html#start
Comment 6 Željko Filipin 2014-01-23 12:26:03 UTC
I have started working on this[1][2]. Looks like there is a problem[3]:

...
+ DEV/bin/pip install -rtest/api/requirements.txt
Downloading/unpacking wikitools>=1.1 (from -r test/api/requirements.txt (line 1))
  Downloading wikitools-1.1.1.tar.gz
  Running setup.py (path:/scratch/jenkins/workspace/UploadWizard-commons.wikimedia.org/DEV/build/wikitools/setup.py) egg_info for package wikitools
    
Downloading/unpacking poster>=0.8 (from -r test/api/requirements.txt (line 2))
  Downloading poster-0.8.1.tar.gz
  Running setup.py (path:/scratch/jenkins/workspace/UploadWizard-commons.wikimedia.org/DEV/build/poster/setup.py) egg_info for package poster
    
Downloading/unpacking PIL>=1.1.7 (from -r test/api/requirements.txt (line 3))
  Could not find any downloads that satisfy the requirement PIL>=1.1.7 (from -r test/api/requirements.txt (line 3))
  Some externally hosted files were ignored (use --allow-external PIL to allow).
Cleaning up...
No distributions at all found for PIL>=1.1.7 (from -r test/api/requirements.txt (line 3))
...

1: https://wmf.ci.cloudbees.com/view/r-uw/
2: https://gerrit.wikimedia.org/r/#/c/108924/
3: https://wmf.ci.cloudbees.com/view/r-uw/job/UploadWizard-commons.wikimedia.org/2/console
Comment 7 Gerrit Notification Bot 2014-01-23 12:34:15 UTC
Change 109080 had a related patch set uploaded by Zfilipin:
WIP Using PIL 1.1.6 instead of 1.1.7

https://gerrit.wikimedia.org/r/109080
Comment 8 Željko Filipin 2014-01-23 15:42:38 UTC
I not familiar with python at all. I did my best, but it still does not work.

Jenkins job configuration:

https://gerrit.wikimedia.org/r/#/c/108924/

requirements.txt:

https://gerrit.wikimedia.org/r/#/c/109080/

Jenkins job log:

https://wmf.ci.cloudbees.com/job/UploadWizard-commons.wikimedia.org/13/console
Comment 9 Gerrit Notification Bot 2014-01-24 01:25:52 UTC
Change 109080 merged by jenkins-bot:
Change requirements.txt so that PIL actually installs on Cloudbees

https://gerrit.wikimedia.org/r/109080
Comment 10 Gerrit Notification Bot 2014-01-27 15:46:05 UTC
Change 109661 had a related patch set uploaded by Zfilipin:
MEDIAWIKI_PASSWORD_VARIABLE environment variable points to the variable that contains the password

https://gerrit.wikimedia.org/r/109661
Comment 11 Gerrit Notification Bot 2014-01-27 16:56:10 UTC
Change 109680 had a related patch set uploaded by Zfilipin:
WIP Run UploadWizard API integration test

https://gerrit.wikimedia.org/r/109680
Comment 12 Gerrit Notification Bot 2014-01-27 16:57:18 UTC
Change 108924 abandoned by Zfilipin:
WIP Run UploadWizard API tests at CloudBees

Reason:
moved to https://gerrit.wikimedia.org/r/#/c/109680/

https://gerrit.wikimedia.org/r/108924
Comment 13 Gerrit Notification Bot 2014-01-27 17:16:28 UTC
Change 109680 merged by Cmcmahon:
WIP Run UploadWizard API integration test

https://gerrit.wikimedia.org/r/109680
Comment 14 Gerrit Notification Bot 2014-01-28 11:35:47 UTC
Change 109871 had a related patch set uploaded by Zfilipin:
WIP Run UploadWizard API integration test

https://gerrit.wikimedia.org/r/109871
Comment 15 Gerrit Notification Bot 2014-01-29 03:28:59 UTC
Change 109661 merged by jenkins-bot:
Add functionality to specify the MEDIAWIKI_PASSWORD_VARIABLE environment variable that points to the variable that contains the password

https://gerrit.wikimedia.org/r/109661
Comment 16 Željko Filipin 2014-01-29 13:48:22 UTC
Marked as resolved. Please reopen is something still needs to be done.
Comment 17 Gerrit Notification Bot 2014-01-30 15:09:28 UTC
Change 109871 merged by jenkins-bot:
Run UploadWizard API integration test

https://gerrit.wikimedia.org/r/109871

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links