Last modified: 2013-11-13 20:21:11 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 T56762, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 54762 - find a way to deploy PHPUnit on production machines
find a way to deploy PHPUnit on production machines
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Continuous integration (Other open bugs)
wmf-deployment
All All
: High normal (vote)
: ---
Assigned To: Antoine "hashar" Musso (WMF)
:
Depends on:
Blocks: 53594
  Show dependency treegraph
 
Reported: 2013-09-29 11:50 UTC by Antoine "hashar" Musso (WMF)
Modified: 2013-11-13 20:21 UTC (History)
3 users (show)

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


Attachments

Description Antoine "hashar" Musso (WMF) 2013-09-29 11:50:59 UTC
Our first Jenkins runner (gallium) had PHPUnit installed using pear.  We then upgraded it from time to time using the pear command.

This has at least two issues:

- we blindly install from a third party repository
- the update has to be done manually on each slave (currently two: gallium and lanthanum).

We would need to streamline PHPUnit upgrade process. Either by having it provided by a Debian package or using git-deploy.

Culprits:
- the Debian package ship 3.6.x while we are relying on PHPUnit 3.7.x
- there is no tutorials for git-deploy


This prevents us from running PHPUnit jobs on any slaves (bug 53594)
Comment 1 Antoine "hashar" Musso (WMF) 2013-10-22 09:37:39 UTC
Got to find a solution with ops. Not sure how to do it though.
Comment 2 Antoine "hashar" Musso (WMF) 2013-10-29 11:45:37 UTC
So pear basically sucks which is not a breaking news. I instead relied on composer.

The git repository integration/phpunit hold a snapshot of PHPUnit has installed via composer. Related changes:

https://gerrit.wikimedia.org/r/92508 README + composer.json
https://gerrit.wikimedia.org/r/92509 result of composer install


The MediaWiki core PHPUnit wrapper can be pointed to it using --with-phpunitdir.

 php phpunit.php --with-phpunitdir /contint-phpunit/vendor/phpunit/phpunit


Will attempt to integrate that with the deployment system.
Comment 3 Gerrit Notification Bot 2013-10-29 11:53:50 UTC
Change 92510 had a related patch set uploaded by Hashar:
deployment: integration/phpunit for Jenkins CI slaves

https://gerrit.wikimedia.org/r/92510
Comment 4 Gerrit Notification Bot 2013-10-29 15:00:45 UTC
Change 92510 merged by Akosiaris:
deployment: integration/phpunit for Jenkins CI slaves

https://gerrit.wikimedia.org/r/92510
Comment 5 Antoine "hashar" Musso (WMF) 2013-10-29 15:22:20 UTC
# YAY  : 'finish' for 'integration/phpunit' completed successfully (now at integration/phpunit-20131029-151743)



Now using the deployment system!!!!!!!
Comment 6 Antoine "hashar" Musso (WMF) 2013-10-29 15:28:29 UTC
So we get deployment now :-]

Still have to update our jobs / macro / shell script, which is now bug 56317.
Comment 7 Antoine "hashar" Musso (WMF) 2013-11-13 20:21:11 UTC
Same as been done for php code sniffer using integration/phpcs.git

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


Navigation
Links