Last modified: 2014-11-20 01:50:32 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 T57668, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55668 - [upstream] Jenkins: jsduck test is sometimes passing when the build contains warnings
[upstream] Jenkins: jsduck test is sometimes passing when the build contains ...
Status: PATCH_TO_REVIEW
Product: Wikimedia
Classification: Unclassified
Continuous integration (Other open bugs)
wmf-deployment
All All
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
: upstream
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-13 04:47 UTC by Ori Livneh
Modified: 2014-11-20 01:50 UTC (History)
4 users (show)

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


Attachments

Description Ori Livneh 2013-10-13 04:47:58 UTC
Excerpted from <https://integration.wikimedia.org/ci/job/mediawiki-core-jsduck/2677/console>:

> 04:26:40 [mediawiki-core-jsduck] $ /bin/bash /tmp/hudson3159025049392134101.sh
> 04:26:40 Running JSDuck with /srv/ssd/jenkins-slave/workspace/mediawiki-core-jsduck/maintenance/jsduck/config.json...
> 04:26:41 Warning: /srv/ssd/jenkins-slave/workspace/mediawiki-core-jsduck/resources/mediawiki/mediawiki.js:1352: @inheritdoc #newStyleTag - member not found
> 04:26:41 Warning: /srv/ssd/jenkins-slave/workspace/mediawiki-core-jsduck/resources/mediawiki/mediawiki.Title.js:301: Unknown type HTMLImageElement|jQuery
> 04:26:42 Build step 'Execute shell' marked build as failure
> 04:26:42 Finished: FAILURE

Neither warning is related to my change, as far as I can tell.

Please be more careful about making jobs voting; an unwarranted -1 is demoralizing and undermines reviewer confidence in the patch.
Comment 1 Antoine "hashar" Musso (WMF) 2013-10-13 14:53:44 UTC
The last merged change did pass jsduck:

https://gerrit.wikimedia.org/r/89229
https://integration.wikimedia.org/ci/job/mediawiki-core-jsduck/2672/


The bug is referencing change: https://gerrit.wikimedia.org/r/#/c/86867/ which now eventually pass.
Comment 2 Krinkle 2013-10-15 20:18:50 UTC
I'm rephrasing this bug to what is the real bug, which incidentally is contradictory to your premise.

Jobs should fail regardless of whether files that seemingly caused it were altered in said patch set. Master is always passing (enforced by our gate), and if a patchset made it fail, that needs to be addressed first. If someone bypassed the gate or if Jenkins was changed without being backwards compatible either that change needs to be rollbacked or someone is presumably already working on hotfixing the (whether or not anticipated) breakage.

I'm not necessarily saying jobs absolutely must fail if the error seems to have been there already without this patchset. Merely that the problem it is causing now is actually something very different, and in general I believe at at this point anything we'd do to "ignore" errors will do more harm than good (e.g. changing jshintrc can seriously alter and break things even though the error message will not appear to originate from that file, and changes might fix one error and introduce another).
Comment 3 Antoine "hashar" Musso (WMF) 2014-02-24 11:30:32 UTC
Worked around by making the jsduck Jenkins jobs to grep for 'Warning' and exit non zero in such a case: https://gerrit.wikimedia.org/r/#/c/113033/

Lowering priority (we have a workaround) and marking bug as depending on upstream.

Upstream bug is https://github.com/senchalabs/jsduck/issues/525
Comment 4 Gerrit Notification Bot 2014-11-20 01:50:29 UTC
Change 174619 had a related patch set uploaded by Krinkle:
jsduck: Remove redundant hack that searched jsduck.log for "Warning"

https://gerrit.wikimedia.org/r/174619

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


Navigation
Links