Last modified: 2012-09-08 11:27:23 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 T39276, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 37276 - hack Jenkins to test MobileFrontend (PHPUnit + Qunit)
hack Jenkins to test MobileFrontend (PHPUnit + Qunit)
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Continuous integration (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Antoine "hashar" Musso (WMF)
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-06-01 14:46 UTC by Antoine "hashar" Musso (WMF)
Modified: 2012-09-08 11:27 UTC (History)
6 users (show)

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


Attachments

Description Antoine "hashar" Musso (WMF) 2012-06-01 14:46:09 UTC
The mobile team is requiring some continuous integration love to avoid breaking all the various iPhone / Android whatever users. We thus want to test the MobileFrontend extensions, both PHPUnit tests and QUnit ones through TestSwarm

Jenkins needs a new job that would listen for MobileFrontend changes submitted to Gerrit. It would then:
- fetch a copy of MediaWiki core and MobileFrontend
- install the mw database, inject PHP configuration
- run PHPUnit tests for MobileFrontend, phpunit --filter MobileFrontend
- snapshot that to a public directory.
- submit a job request to TestSwarm

Success!
Comment 1 Jon 2012-06-02 12:29:31 UTC
also note bug 31876
Comment 2 Antoine "hashar" Musso (WMF) 2012-07-04 07:51:58 UTC
Need to poke that together with Wikidata extension: bug 37050

I did some update to the ant script to easily fetch/copy extensions from Gerrit.
Comment 3 Siebrand Mazeland 2012-09-03 11:35:25 UTC
PHPUnit tests are now run. See https://gerrit.wikimedia.org/r/#/c/22446/. Currently two tests fail, so no new patch sets can be merged until that's resolved.
Comment 4 Antoine "hashar" Musso (WMF) 2012-09-03 13:29:29 UTC
My attempts at fixing tests:

https://gerrit.wikimedia.org/r/#/c/22455/  move around some newlines (\n).

https://gerrit.wikimedia.org/r/#/c/22457/ disable tests that parse an url containing unicode. That does not work well with PHP parse_url().
Comment 5 Antoine "hashar" Musso (WMF) 2012-09-08 11:27:23 UTC
The newline issue was caused by Tidy. MaxSem fixed it properly with https://gerrit.wikimedia.org/r/#/c/22852/

So we have PHPUnit running from Jenkins now.

QUnit will be done via Testswarm which is being overhauled on labs. The project will include extensions too.

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


Navigation
Links