Last modified: 2014-11-20 13:38:50 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 T71245, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69245 - rubocop should run after patch set submission to every repo that has Ruby code
rubocop should run after patch set submission to every repo that has Ruby code
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Quality Assurance (Other open bugs)
wmf-deployment
All All
: Normal normal (vote)
: ---
Assigned To: Željko Filipin
zfilipin
:
Depends on:
Blocks: 60335
  Show dependency treegraph
 
Reported: 2014-08-07 15:28 UTC by Željko Filipin
Modified: 2014-11-20 13:38 UTC (History)
5 users (show)

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


Attachments

Description Željko Filipin 2014-08-07 15:28:48 UTC
Bug 63469 implemented basic Ruby syntax check for all repos that have Ruby code.

The next step is to run a linter.

Dan has suggested rubocop[1]. As far as I can see it is the most popular ruby linter[2].

1: https://rubygems.org/gems/rubocop
2: https://www.ruby-toolbox.com/categories/code_metrics
Comment 1 Antoine "hashar" Musso (WMF) 2014-08-08 13:54:38 UTC
We need a way to install rubocop. We can probably have it run on labs instance and use gem to install it on job run.

We found out a way to share a gem repository on instances which thus act as a cache preventing to fetch the gem again and again.  The snippet is:

          # Shared cache of gems to avoid hitting rubygems all the time
          # See https://github.com/bundler/bundler/issues/2856
          export GEM_HOME="$WORKSPACE/../gems"

Then gem install.


Ideally, we should have rubocop packaged for Debian and have it installed via puppet. I think ops have some utilities to easily create packages from gems.
Comment 2 Gerrit Notification Bot 2014-08-08 15:03:20 UTC
Change 152918 had a related patch set uploaded by Zfilipin:
WIP Added builder that runs rubocop, Ruby linter

https://gerrit.wikimedia.org/r/152918
Comment 3 Gerrit Notification Bot 2014-08-08 15:38:31 UTC
Change 152926 had a related patch set uploaded by Zfilipin:
WIP Run rubocop, Ruby linter, for all repositories that have Ruby code

https://gerrit.wikimedia.org/r/152926
Comment 4 Antoine "hashar" Musso (WMF) 2014-08-11 15:14:25 UTC
rubocop will have to be packaged for Debian so we can easily run it. Zeljkof filled https://rt.wikimedia.org/Ticket/Display.html?id=8103
Comment 5 Željko Filipin 2014-09-02 12:50:22 UTC
Looks like we will have to install rubocop as a gem somewhere in labs. Waiting for Antoine to get back.
Comment 6 Gerrit Notification Bot 2014-10-10 13:14:24 UTC
Change 152926 abandoned by Hashar:
Run rubocop, Ruby linter, for all repositories that have Ruby code

Reason:
The continuous integration configuration files are now held in integration/config.git with Zuul layout files being under /zuul/layout.yaml

If there still is an interest in this patch, please port it to the new repository integration/config.git

https://gerrit.wikimedia.org/r/152926
Comment 7 Gerrit Notification Bot 2014-10-14 12:56:25 UTC
Change 166563 had a related patch set uploaded by Zfilipin:
Added job template and builder that runs rubocop, Ruby linter

https://gerrit.wikimedia.org/r/166563
Comment 8 Gerrit Notification Bot 2014-10-14 12:57:04 UTC
Change 152918 abandoned by Zfilipin:
Added job template and builder that runs rubocop, Ruby linter

Reason:
Moved to https://gerrit.wikimedia.org/r/#/c/166563/

https://gerrit.wikimedia.org/r/152918
Comment 9 Gerrit Notification Bot 2014-10-15 15:51:30 UTC
Change 166563 merged by jenkins-bot:
rubocop and lint for all repos having Ruby code

https://gerrit.wikimedia.org/r/166563
Comment 10 Gerrit Notification Bot 2014-10-15 19:46:40 UTC
Change 166805 had a related patch set uploaded by Hashar:
zuul: move rubocop jobs to experimental

https://gerrit.wikimedia.org/r/166805
Comment 11 Gerrit Notification Bot 2014-10-16 14:11:07 UTC
Change 166805 merged by Hashar:
zuul: move rubocop jobs to experimental

https://gerrit.wikimedia.org/r/166805
Comment 12 Gerrit Notification Bot 2014-10-20 13:04:20 UTC
Change 167549 had a related patch set uploaded by Zfilipin:
WIP Move Gemfile and Gemfile.lock to the repository root

https://gerrit.wikimedia.org/r/167549
Comment 13 Gerrit Notification Bot 2014-10-20 13:08:15 UTC
Change 167566 had a related patch set uploaded by Zfilipin:
WIP run "bundle install" before cd-ing into browser folder

https://gerrit.wikimedia.org/r/167566
Comment 14 Gerrit Notification Bot 2014-10-20 14:50:11 UTC
Change 167578 had a related patch set uploaded by Zfilipin:
Set up RuboCop

https://gerrit.wikimedia.org/r/167578
Comment 15 Gerrit Notification Bot 2014-10-20 15:00:38 UTC
Change 167581 had a related patch set uploaded by Zfilipin:
Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/167581
Comment 16 Gerrit Notification Bot 2014-10-20 15:21:27 UTC
Change 167584 had a related patch set uploaded by Zfilipin:
Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/167584
Comment 17 Gerrit Notification Bot 2014-10-20 15:38:58 UTC
Change 167589 had a related patch set uploaded by Zfilipin:
Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/167589
Comment 18 Gerrit Notification Bot 2014-10-21 10:59:59 UTC
Change 167774 had a related patch set uploaded by Zfilipin:
Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/167774
Comment 19 Gerrit Notification Bot 2014-10-21 11:06:10 UTC
Change 167566 merged by jenkins-bot:
Run "bundle install" before cd-ing into browser folder

https://gerrit.wikimedia.org/r/167566
Comment 20 Gerrit Notification Bot 2014-10-21 11:10:48 UTC
Change 167777 had a related patch set uploaded by Zfilipin:
Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/167777
Comment 21 Gerrit Notification Bot 2014-10-21 12:40:08 UTC
Change 167788 had a related patch set uploaded by Zfilipin:
Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/167788
Comment 22 Gerrit Notification Bot 2014-10-21 13:04:27 UTC
Change 167792 had a related patch set uploaded by Zfilipin:
Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/167792
Comment 23 Gerrit Notification Bot 2014-10-21 13:13:55 UTC
Change 167794 had a related patch set uploaded by Zfilipin:
Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/167794
Comment 24 Gerrit Notification Bot 2014-10-21 13:29:22 UTC
Change 167578 merged by jenkins-bot:
Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/167578
Comment 25 Gerrit Notification Bot 2014-10-21 13:33:05 UTC
Change 167797 had a related patch set uploaded by Zfilipin:
Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/167797
Comment 26 Gerrit Notification Bot 2014-10-21 13:46:02 UTC
Change 167800 had a related patch set uploaded by Zfilipin:
Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/167800
Comment 27 Gerrit Notification Bot 2014-10-21 13:50:46 UTC
Change 167801 had a related patch set uploaded by Zfilipin:
Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/167801
Comment 28 Gerrit Notification Bot 2014-10-21 13:51:35 UTC
Change 167802 had a related patch set uploaded by Hashar:
Enable rubocop on mediawiki/{selenium,ruby/api}

https://gerrit.wikimedia.org/r/167802
Comment 29 Gerrit Notification Bot 2014-10-21 13:57:57 UTC
Change 167803 had a related patch set uploaded by Zfilipin:
Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/167803
Comment 30 Gerrit Notification Bot 2014-10-21 14:01:02 UTC
Change 167804 had a related patch set uploaded by Zfilipin:
Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/167804
Comment 31 Gerrit Notification Bot 2014-10-21 14:04:05 UTC
Change 167805 had a related patch set uploaded by Zfilipin:
Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/167805
Comment 32 Gerrit Notification Bot 2014-10-21 14:39:41 UTC
Change 167802 merged by jenkins-bot:
Enable rubocop on mediawiki/{selenium,ruby/api}

https://gerrit.wikimedia.org/r/167802
Comment 33 Gerrit Notification Bot 2014-10-21 14:45:55 UTC
Change 167811 had a related patch set uploaded by Zfilipin:
Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/167811
Comment 34 Gerrit Notification Bot 2014-10-21 14:49:20 UTC
Change 167813 had a related patch set uploaded by Zfilipin:
Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/167813
Comment 35 Gerrit Notification Bot 2014-10-21 15:35:21 UTC
Change 167823 had a related patch set uploaded by Zfilipin:
[BrowserTest] Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/167823
Comment 36 Gerrit Notification Bot 2014-10-21 15:40:31 UTC
Change 167824 had a related patch set uploaded by Zfilipin:
Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/167824
Comment 37 Gerrit Notification Bot 2014-10-21 15:44:33 UTC
Change 167825 had a related patch set uploaded by Zfilipin:
Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/167825
Comment 38 Gerrit Notification Bot 2014-10-21 15:48:48 UTC
Change 167826 had a related patch set uploaded by Zfilipin:
Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/167826
Comment 39 Gerrit Notification Bot 2014-10-21 16:24:13 UTC
Change 167823 merged by jenkins-bot:
[BrowserTest] Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/167823
Comment 40 Gerrit Notification Bot 2014-10-21 16:24:30 UTC
Change 167826 merged by jenkins-bot:
Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/167826
Comment 41 Gerrit Notification Bot 2014-10-21 16:24:46 UTC
Change 167825 merged by jenkins-bot:
Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/167825
Comment 42 Gerrit Notification Bot 2014-10-21 16:27:11 UTC
Change 167811 merged by jenkins-bot:
Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/167811
Comment 43 Gerrit Notification Bot 2014-10-21 16:27:15 UTC
Change 167805 merged by jenkins-bot:
Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/167805
Comment 44 Gerrit Notification Bot 2014-10-21 16:32:29 UTC
Change 167804 merged by jenkins-bot:
Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/167804
Comment 45 Gerrit Notification Bot 2014-10-21 16:32:33 UTC
Change 167801 merged by jenkins-bot:
Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/167801
Comment 46 Gerrit Notification Bot 2014-10-21 16:32:37 UTC
Change 167800 merged by jenkins-bot:
Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/167800
Comment 47 Gerrit Notification Bot 2014-10-21 16:32:42 UTC
Change 167797 merged by jenkins-bot:
Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/167797
Comment 48 Gerrit Notification Bot 2014-10-21 16:32:52 UTC
Change 167792 merged by jenkins-bot:
Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/167792
Comment 49 Gerrit Notification Bot 2014-10-21 16:39:51 UTC
Change 167777 merged by jenkins-bot:
Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/167777
Comment 50 Gerrit Notification Bot 2014-10-21 16:40:03 UTC
Change 167774 merged by jenkins-bot:
Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/167774
Comment 51 Gerrit Notification Bot 2014-10-21 16:40:06 UTC
Change 167584 merged by jenkins-bot:
Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/167584
Comment 52 Gerrit Notification Bot 2014-10-21 16:40:11 UTC
Change 167581 merged by jenkins-bot:
Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/167581
Comment 53 Gerrit Notification Bot 2014-10-21 16:42:16 UTC
Change 167824 merged by jenkins-bot:
Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/167824
Comment 54 Gerrit Notification Bot 2014-10-21 16:42:32 UTC
Change 167813 merged by jenkins-bot:
Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/167813
Comment 55 Gerrit Notification Bot 2014-10-21 16:55:48 UTC
Change 167803 merged by jenkins-bot:
Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/167803
Comment 56 Gerrit Notification Bot 2014-10-21 16:55:52 UTC
Change 167788 merged by jenkins-bot:
Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/167788
Comment 57 Gerrit Notification Bot 2014-10-21 20:04:14 UTC
Change 167549 merged by jenkins-bot:
Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/167549
Comment 58 Gerrit Notification Bot 2014-10-22 09:13:56 UTC
Change 168056 had a related patch set uploaded by Zfilipin:
Run RuboCop and Ruby jobs for CentralAuth

https://gerrit.wikimedia.org/r/168056
Comment 59 Gerrit Notification Bot 2014-10-22 10:00:30 UTC
Change 168056 merged by jenkins-bot:
Run RuboCop and Ruby jobs for CentralAuth

https://gerrit.wikimedia.org/r/168056
Comment 60 Gerrit Notification Bot 2014-10-22 11:25:00 UTC
Change 168061 had a related patch set uploaded by Zfilipin:
Enable RuboCop jobs for all repositories where it was experimental

https://gerrit.wikimedia.org/r/168061
Comment 61 Gerrit Notification Bot 2014-10-22 16:38:47 UTC
Change 167589 merged by jenkins-bot:
Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/167589
Comment 62 Gerrit Notification Bot 2014-10-23 10:08:18 UTC
Change 168264 had a related patch set uploaded by Zfilipin:
Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/168264
Comment 63 Gerrit Notification Bot 2014-10-23 10:41:48 UTC
Change 168267 had a related patch set uploaded by Zfilipin:
WIP Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/168267
Comment 64 Gerrit Notification Bot 2014-10-23 11:03:43 UTC
Change 168270 had a related patch set uploaded by Zfilipin:
WIP Run RuboCop and Ruby syntax check for mediawiki-vagrant

https://gerrit.wikimedia.org/r/168270
Comment 65 Gerrit Notification Bot 2014-10-23 19:44:38 UTC
Change 168267 merged by jenkins-bot:
tests: Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/168267
Comment 66 Gerrit Notification Bot 2014-10-29 17:43:28 UTC
Change 168061 merged by Dduvall:
Enable RuboCop jobs for all repositories where it was experimental

https://gerrit.wikimedia.org/r/168061
Comment 67 Gerrit Notification Bot 2014-11-04 14:55:58 UTC
Change 167794 merged by jenkins-bot:
Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/167794
Comment 68 Gerrit Notification Bot 2014-11-09 00:00:26 UTC
Change 168264 merged by jenkins-bot:
Prepare repository for running RuboCop after every push to Gerrit

https://gerrit.wikimedia.org/r/168264
Comment 69 Željko Filipin 2014-11-20 13:38:50 UTC
Rubocop is now running. Still not voting. Searching for new repositories with ruby code is reported as a separate bug.

https://phabricator.wikimedia.org/T1332

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


Navigation
Links