Last modified: 2014-07-22 01:26:12 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 T69734, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 67734 - Setup QUnit tests on Jenkins for Flow
Setup QUnit tests on Jenkins for Flow
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: 2014-07-09 15:57 UTC by Jon
Modified: 2014-07-22 01:26 UTC (History)
5 users (show)

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


Attachments

Description Jon 2014-07-09 15:57:18 UTC
Flow has QUnit tests but it fails to run them on merge.
Let's fix that asap.
Comment 1 Gerrit Notification Bot 2014-07-10 08:44:47 UTC
Change 145251 had a related patch set uploaded by Hashar:
qunit job for Flow

https://gerrit.wikimedia.org/r/145251
Comment 2 Gerrit Notification Bot 2014-07-10 08:45:38 UTC
Change 145252 had a related patch set uploaded by Hashar:
qunit job for Flow

https://gerrit.wikimedia.org/r/145252
Comment 3 Gerrit Notification Bot 2014-07-10 08:47:13 UTC
Change 145252 merged by jenkins-bot:
qunit job for Flow

https://gerrit.wikimedia.org/r/145252
Comment 4 Gerrit Notification Bot 2014-07-10 08:50:56 UTC
Change 145253 had a related patch set uploaded by Hashar:
Make Flow qunit job non voting

https://gerrit.wikimedia.org/r/145253
Comment 5 Gerrit Notification Bot 2014-07-10 08:51:16 UTC
Change 145253 merged by jenkins-bot:
Make Flow qunit job non voting

https://gerrit.wikimedia.org/r/145253
Comment 6 Antoine "hashar" Musso (WMF) 2014-07-10 08:53:09 UTC
The qunit job has 4 assertions failing https://integration.wikimedia.org/ci/job/mwext-Flow-qunit/1/console

It is now triggered when a patch is proposed but I make the job non voting with https://gerrit.wikimedia.org/r/145253  . Once qunit pass, one can revert https://gerrit.wikimedia.org/r/145253 and get it deployed on gallium + zuul being reloaded and it will vote again :)
Comment 7 Gerrit Notification Bot 2014-07-10 08:55:08 UTC
Change 145251 merged by jenkins-bot:
qunit job for Flow

https://gerrit.wikimedia.org/r/145251
Comment 8 Jon 2014-07-10 18:15:06 UTC
You're a superstar! I have no idea why they are failing though. They pass fine for me locally... any ideas?
Comment 9 Antoine "hashar" Musso (WMF) 2014-07-10 18:59:55 UTC
Oh I would be a superstar if I had proposed a patch to fix all of the tests :-D

The job is setup to fetch some dependencies: AbuseFilter,SpamBlacklist,CheckUser,Mantle

Now with the errors:

00:00:11.640 MobileFrontend view - global failure...ERROR
00:00:11.641 >> Message: TypeError: 'undefined' is not a function (evaluating 'mw.user.isAnon()')
00:00:11.641 >> http://localhost:9412/jenkins-mwext-Flow-qunit-1/load.php?debug=false&lang=en&modules=ext.flow.new%2Ctemplating%7Cext.flow.new.handlebars%2Chistory%7Cext.flow.vendor.jquery.ba-throttle-debounce%7Cext.flow.vendor.storer%7Cjquery.conditionalScroll&skin=vector&version=20140710T084851Z&*:13


Seems like it is a badly named test in Mantle. Would indicate that we should add MobileFrontend as a dependency.

---

00:00:22.936 mediawiki.util - $content...ERROR
00:00:22.937 >> Message: mw.util.$content instance of jQuery
<snip>
00:00:22.942 >> TypeError: 'null' is not an object (evaluating 'mw.util.$content.length')


That one I have no clue.
Comment 10 Gerrit Notification Bot 2014-07-10 19:01:10 UTC
Change 145405 had a related patch set uploaded by Hashar:
Flow qunit job depends on MobileFrontend

https://gerrit.wikimedia.org/r/145405
Comment 11 Gerrit Notification Bot 2014-07-10 19:06:52 UTC
Change 145405 merged by jenkins-bot:
Flow qunit job depends on MobileFrontend

https://gerrit.wikimedia.org/r/145405
Comment 12 Antoine "hashar" Musso (WMF) 2014-07-10 19:07:56 UTC
Adding MobileFrontend as a dependency does not change much https://integration.wikimedia.org/ci/job/mwext-Flow-qunit/16/consoleFull
Comment 13 Jon 2014-07-10 20:09:41 UTC
MobileFrontend is not a dependency... the test that seems to fail is in core which is what is confusing me.

Out of interest shouldn't we just run tests against the Flow group?
Comment 14 Antoine "hashar" Musso (WMF) 2014-07-10 21:39:21 UTC
> Out of interest shouldn't we just run tests against the Flow group?

I don't think we can do that.   We will middle term have a common qunit job for all extensions, making sure they don't break each others :-D


> MobileFrontend is not a dependency... the test that seems to fail is in core which is what is confusing me.

Maybe you are exercise a part of core code which is not covered by core qunit tests ? Or the hooks are playing in :-(

We would need a way to reproduce the issue reliably so it can be investigated.
Comment 15 Jon 2014-07-11 18:41:36 UTC
The tests are still failing for me and it seems unrelated to MobileFrontend.. an issue in mediawiki.util https://integration.wikimedia.org/ci/job/mwext-Flow-qunit/82/console

I think MobileFrontend can safely be dropped as a dependency.
Comment 16 Antoine "hashar" Musso (WMF) 2014-07-21 20:36:31 UTC
According to Bug 68188 - "core mediawiki.util test failing in Flow qunit Jenkins jobs", the job is passing now.

One should edit Zuul configuration file in ssh://gerrit.wikimedia.org:29418/integration/zuul-config.git and drop the block:

   - name: ^mwext-Flow-qunit$  # bug 67734
    voting: false

Then review / merge / deploy on gallium as usual :-)
Comment 17 Jon 2014-07-21 22:04:22 UTC
You can make this happen now.
It might motivate people to merge the other patch ;-)
Comment 18 Gerrit Notification Bot 2014-07-21 22:06:39 UTC
Change 148244 had a related patch set uploaded by Jdlrobson:
Make Flow QUnit tests voting

https://gerrit.wikimedia.org/r/148244
Comment 19 Gerrit Notification Bot 2014-07-22 01:25:28 UTC
Change 148244 merged by jenkins-bot:
Make Flow QUnit tests voting

https://gerrit.wikimedia.org/r/148244
Comment 20 Antoine "hashar" Musso (WMF) 2014-07-22 01:26:12 UTC
And it is now voting!

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


Navigation
Links