Last modified: 2013-06-19 12:47:04 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 T51808, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 49808 - jslint doesn't run on Parsoid gerrit patches
jslint doesn't run on Parsoid gerrit patches
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Continuous integration (Other open bugs)
wmf-deployment
All All
: Unprioritized normal (vote)
: ---
Assigned To: Antoine "hashar" Musso (WMF)
: code-update-regression
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-19 11:54 UTC by ssastry
Modified: 2013-06-19 12:47 UTC (History)
3 users (show)

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


Attachments

Description ssastry 2013-06-19 11:54:44 UTC
jslint stopped running on Parsoid gerrit patches since sometime yesterday (June 18th) morning.

https://gerrit.wikimedia.org/r/#/c/69437/ (no jslint)

vs

https://gerrit.wikimedia.org/r/#/c/69254/ (jslint)
Comment 1 Antoine "hashar" Musso (WMF) 2013-06-19 12:28:11 UTC
The last build of mwext-Parsoid-jslint has been completed on June 17th 22:58:27 UTC.  That points to a Zuul configuration change https://gerrit.wikimedia.org/r/#/c/69260/ merged a minute before.

The regex has been changed:

 -     - '^.*\.js$'
 +     - '\.(js|json|jshint.*)$'

The reason is Zuul use re.match() which look for a match at the beginning of the string (this is different from re.search() that looks anywhere: http://docs.python.org/2/library/re.html#search-vs-match ).

Thus the regex would match a file named .js .json or .jshint* , not the expectation.

I am reverting the patch and will submit a new regex.
Comment 2 Antoine "hashar" Musso (WMF) 2013-06-19 12:29:26 UTC
Reverted in https://gerrit.wikimedia.org/r/#/c/69485/
Comment 3 Gerrit Notification Bot 2013-06-19 12:39:49 UTC
Related URL: https://gerrit.wikimedia.org/r/69486 (Gerrit Change I6b1120c1b8c382ba4d64186efad363c47052a7c9)
Comment 4 Antoine "hashar" Musso (WMF) 2013-06-19 12:47:04 UTC
a 'recheck' on parsoid change  https://gerrit.wikimedia.org/r/69477 does trigger the jslint.

On mediawiki/core https://gerrit.wikimedia.org/r/#/c/69487/
- change to .jshintrc triggers the jslint job
- addition of a single js file 'foobar.js' triggers it to

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


Navigation
Links