Last modified: 2014-04-09 19:59:41 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 T59572, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57572 - Setup linting / phpunit tests for wikimedia/wikimania-scholarships
Setup linting / phpunit tests for wikimedia/wikimania-scholarships
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Continuous integration (Other open bugs)
wmf-deployment
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-26 00:32 UTC by Chad H.
Modified: 2014-04-09 19:59 UTC (History)
5 users (show)

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


Attachments

Description Chad H. 2013-11-26 00:32:26 UTC
New project, not MediaWiki-related at all.

Mostly PHP/JS, so linting would be nice. Also have some rudimentary PHPUnit tests, so running those would be nice too.

Normal gate-and-submit workflow is dandy.
Comment 1 Antoine "hashar" Musso (WMF) 2013-11-26 11:33:42 UTC
Need to slightly refactor Jenkins Job Builder configuration to provide basic macro that will make that easy.
Comment 2 Gerrit Notification Bot 2013-11-26 11:47:12 UTC
Change 97726 had a related patch set uploaded by Hashar:
phpunit job + wikimedia/wikimania-scholarships

https://gerrit.wikimedia.org/r/97726
Comment 3 Gerrit Notification Bot 2013-11-26 11:48:21 UTC
Change 97726 merged by jenkins-bot:
phpunit job + wikimedia/wikimania-scholarships

https://gerrit.wikimedia.org/r/97726
Comment 4 Gerrit Notification Bot 2013-11-26 11:52:19 UTC
Change 97727 had a related patch set uploaded by Hashar:
triggers for wikimedia/wikimania-scholarships

https://gerrit.wikimedia.org/r/97727
Comment 5 Gerrit Notification Bot 2013-11-26 11:53:13 UTC
Change 97727 merged by jenkins-bot:
triggers for wikimedia/wikimania-scholarships

https://gerrit.wikimedia.org/r/97727
Comment 6 Gerrit Notification Bot 2013-11-26 11:54:34 UTC
Change 97728 had a related patch set uploaded by Hashar:
Jenkins job validation (DO NOT SUBMIT)

https://gerrit.wikimedia.org/r/97728
Comment 7 Gerrit Notification Bot 2013-11-26 11:59:53 UTC
Change 97729 had a related patch set uploaded by Hashar:
phpunit-junit builder missed full path to phpunit

https://gerrit.wikimedia.org/r/97729
Comment 8 Gerrit Notification Bot 2013-11-26 12:01:15 UTC
Change 97729 merged by jenkins-bot:
phpunit-junit builder missed full path to phpunit

https://gerrit.wikimedia.org/r/97729
Comment 9 Gerrit Notification Bot 2013-11-26 12:03:06 UTC
Change 97728 abandoned by Hashar:
Jenkins job validation (DO NOT SUBMIT)

https://gerrit.wikimedia.org/r/97728
Comment 10 Antoine "hashar" Musso (WMF) 2013-11-26 12:13:04 UTC
The php jobs have been deployed. Now need to have the project pass jshint, thus you get some changes to review:

https://gerrit.wikimedia.org/r/97730  configure jshint
https://gerrit.wikimedia.org/r/97731  fix jshint issues
Comment 11 Bryan Davis 2013-11-26 17:34:27 UTC
jshint fixes are merged. \o/

I think it would be nice to add phpcs to this project too. I'd actually like phpcs lenient to be voting on this code I think but only if the vendor directory can be excluded. I don't want to have folks be tempted to edit code that we pull in via composer.
Comment 12 Bryan Davis 2013-11-26 17:35:42 UTC
Chad also fixed a gerrit permissions problem that was keeping the "submit" part of "gate-and-submit" from working.
Comment 13 Gerrit Notification Bot 2013-12-02 12:32:05 UTC
Change 97728 restored by Hashar:
Jenkins job validation (DO NOT SUBMIT)

https://gerrit.wikimedia.org/r/97728
Comment 14 Gerrit Notification Bot 2013-12-02 12:33:41 UTC
Change 98501 had a related patch set uploaded by Hashar:
wikimedia-wikimania-scholarships-jslint now voting

https://gerrit.wikimedia.org/r/98501
Comment 15 Gerrit Notification Bot 2013-12-02 12:34:06 UTC
Change 98501 merged by jenkins-bot:
wikimedia-wikimania-scholarships-jslint now voting

https://gerrit.wikimedia.org/r/98501
Comment 16 Antoine "hashar" Musso (WMF) 2013-12-02 14:21:48 UTC
still need phpcs jobs
Comment 17 Bryan Davis 2013-12-19 01:33:24 UTC
Removing block on deploy
Comment 18 Gerrit Notification Bot 2013-12-31 12:12:41 UTC
Change 97728 abandoned by Hashar:
Jenkins job validation (DO NOT SUBMIT)

https://gerrit.wikimedia.org/r/97728
Comment 19 Bryan Davis 2014-01-10 16:45:40 UTC
It would be nice if we could add a lint job that validates that the data/i18n/*.json files are valid json. I don't know if jshint could be used to do this validation or if it would require some other lint program.
Comment 20 Antoine "hashar" Musso (WMF) 2014-01-13 14:01:32 UTC
(In reply to comment #19)
> It would be nice if we could add a lint job that validates that the
> data/i18n/*.json files are valid json. I don't know if jshint could be used
> to do this validation or if it would require some other lint program.

That is now bug 58279 "add a JSON linter for CI"
Comment 21 Bryan Davis 2014-04-09 19:59:41 UTC
I think all of the work for this was completed when Antoine closed bug 58279.

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


Navigation
Links