Last modified: 2014-04-11 12:33: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 T56665, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 54665 - maintenance/checkLess.php should be a PHPUnit test and run by extension suite
maintenance/checkLess.php should be a PHPUnit test and run by extension suite
Status: VERIFIED FIXED
Product: MediaWiki
Classification: Unclassified
Unit tests (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: 1.23.0 release
Assigned To: Sam Smith
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-26 20:58 UTC by Juliusz Gonera
Modified: 2014-04-11 12:33 UTC (History)
7 users (show)

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


Attachments

Description Juliusz Gonera 2013-09-26 20:58:46 UTC
We have LESS support in core now. Since it is a language that compiles to CSS, we should have a Jenkins job verifying that all the LESS files compile without errors.

Ori suggested that the job should go over all the registered ResourceLoader modules, fetch LESS files from them and run the compiler on each of them to see if there are any errors.
Comment 1 Brion Vibber 2013-10-03 17:25:33 UTC
(In reply to comment #0)
> Ori suggested that the job should go over all the registered ResourceLoader
> modules, fetch LESS files from them and run the compiler on each of them to
> see if there are any errors.


maintenance/checkLess.php landed a couple days ago which does exactly this, so it should be relatively easy to run such a job if there's already the infrastructure to run things like phpunit tests.
Comment 2 Antoine "hashar" Musso (WMF) 2013-10-04 09:01:49 UTC
We will want to make checkLess.php a PHP unit test and have it run in the main suite as well as in the extension test suite.  This way the existing test job will magically check less files.
Comment 3 Antoine "hashar" Musso (WMF) 2013-11-29 19:22:22 UTC
Moving to MediaWiki > Unit tests.

maintenance/checkLess.php should be slightly refactored so we can call the less checking from our PHPUnit unit tests.

That would be need to be called in the extensions test suite as well in order to check less validity for extensions.
Comment 4 Antoine "hashar" Musso (WMF) 2013-12-18 09:15:10 UTC
Rephrasing summary, the checkLess.php needs to be done a class that would be callable from our PHPUnit test suite.  That resulting test class should be called by the extension test suite to have Jenkins check LESS files for us.
Comment 5 Gerrit Notification Bot 2014-03-04 12:07:26 UTC
Change 116735 had a related patch set uploaded by Phuedx:
[WIP] Add a framework to validate resources

https://gerrit.wikimedia.org/r/116735
Comment 6 Gerrit Notification Bot 2014-03-17 14:48:06 UTC
Change 119055 had a related patch set uploaded by Phuedx:
Add a LESS test suite

https://gerrit.wikimedia.org/r/119055
Comment 7 Gerrit Notification Bot 2014-03-17 14:49:09 UTC
Change 116735 abandoned by Phuedx:
[WIP] Add a framework to validate resources

Reason:
Superseded by Iedb8dc31e4817d8b4e40b655cf9b8fb092979e90.

https://gerrit.wikimedia.org/r/116735
Comment 8 Gerrit Notification Bot 2014-04-01 03:14:46 UTC
Change 119055 merged by jenkins-bot:
Add a LESS test suite

https://gerrit.wikimedia.org/r/119055
Comment 9 Matthew Flaschen 2014-04-01 05:44:23 UTC
I put it in the wrong suite.
Comment 10 Krinkle 2014-04-02 17:53:50 UTC
Change-Id: I1a15a0d8aba05b774f072673787b712f6ba97fcd
> Put LESS test back into extension suite in XML
Comment 11 Antoine "hashar" Musso (WMF) 2014-04-11 12:33:41 UTC
Confirmed to verify extensions as well.  I like how the maintenance/checkLess.php is now a wrapper around the PHPUnit tests.

Excellent work thank you!

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


Navigation
Links