Page MenuHomePhabricator

Remove lines from Gemfile that are used by RVM
Closed, ResolvedPublic

Description

Repositories that have ruby code have Gemfile. Example from mediawiki-selenium:

#ruby=ruby-2.1.1
#ruby-gemset=mediawiki_selenium

source "https://rubygems.org"

gemspec

The first two lines are for RVM. We do not officially recommend RVM any more. If a Gemfile starts with:

#ruby=ruby-(...)
#ruby-gemset=(...)

the above two lines should be removed from the Gemfile.

The list of repositories where the change should be made:

https://github.com/search?q=org%3Awikimedia+%22ruby-gemset%22&type=Code

Event Timeline

zeljkofilipin raised the priority of this task from to Medium.
zeljkofilipin updated the task description. (Show Details)
zeljkofilipin changed Security from none to None.

I'm for leaving it to maintainers of each repo whether they want to use/recommend RVM, but leaving it out of new repos. For those that do want to recommend it, .ruby-version and .ruby-gemset files are a less intrusive alternative.

Since we're the maintainers of mediawiki_selenium and mediawiki_api, I vote to use the latter option. :)

zeljkofilipin lowered the priority of this task from Medium to Low.Nov 20 2014, 2:51 PM

+1 for .ruby-version and .ruby-gemset !

-1 from me on introducing more files that just a few people use. If somebody needs those files, they are free to add them locally, and add them to .gitignore.

zeljkofilipin removed hashar as the assignee of this task.
zeljkofilipin removed a subscriber: Cmcmahon.
This comment was removed by zeljkofilipin.
zeljkofilipin updated the task description. (Show Details)
zeljkofilipin moved this task from In Progress to Ruby on the Browser-Tests-Infrastructure board.

Updated list for extensions only:

$:foo\> cd /wikimedia/git/mediawiki-extensions/
$:foo\> grep -R -F 'gemset' .
./PoolCounter/Gemfile:#ruby-gemset=PoolCounter
./Wikibase/Gemfile:# ruby-gemset=Wikibase
./Wikidata/extensions/Wikibase/Gemfile:# ruby-gemset=Wikibase

So if I was a new contributor here (this task is tagged as good first task), what would I be supposed to do?
Clarification welcome in the task desc.

Hi I'm interested to work on this, Do I remove RVM on github and make a pull request or do I remove it and push to gerrit for review ?

@Harjotsingh Gerrit :-} The repositories on Github are usually just mirrors.

Also you can usually reach both of us in the freenode IRC channel #wikimedia-releng though I am not connected this morning.

Change 342181 had a related patch set uploaded (by Harjotsingh):
[mediawiki/extensions/PoolCounter] Remove RVM lines from PoolCounter extension

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

Change 342184 had a related patch set uploaded (by Harjotsingh):
[mediawiki/extensions/Wikidata] Remove RVM lines from Wikidata extension

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

I don't know if it is the right way, but I added different commits for different extensions.
Wanted to ask if it is right before adding commits for other extensions.

Change 342181 merged by jenkins-bot:
[mediawiki/extensions/PoolCounter] Remove RVM lines from PoolCounter extension

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

Excellent @Harjotsingh . I got the change for PoolCounter merged. Looks like you can do the others.

The one for Wikidata should be done in Wikibase instead, I gave the whole explanation on the Gerrit change https://gerrit.wikimedia.org/r/342184

Change 342189 had a related patch set uploaded (by Harjotsingh):
[mediawiki/extensions/Wikibase] Remove RVM lines from Wikibase extension

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

Change 342184 abandoned by Harjotsingh:
Remove RVM lines from Wikidata extension

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

@hashar Some file show in https://github.com/search?q=org%3Awikimedia+%22ruby-gemset%22&type=Code are gitignore files, what should I do with them as they are ignored by git ?

@Harjotsingh only remove the mentioned two lines for Gemfiles. Cleaning up .gitignore files can be another task.

Change 342189 merged by jenkins-bot:
[mediawiki/extensions/Wikibase] Remove RVM lines from Wikibase extension

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

Change 342216 had a related patch set uploaded (by Harjotsingh):
[mediawiki/ruby/api] Remove RVM lines from MediaWiki API from Ruby

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

Change 342216 merged by jenkins-bot:
[mediawiki/ruby/api] Remove RVM lines from MediaWiki API from Ruby

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

Change 342249 had a related patch set uploaded (by Harjotsingh):
[wikimedia/TransparencyReport] Remove RVM lines from Transparency Report

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

@zeljkofilipin Removed the lines from all files except the .gitignore files

Change 342249 merged by Zfilipin:
[wikimedia/TransparencyReport] Remove RVM lines from Transparency Report

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

TransparencyReport report is configured in a strange way. I had to click "submit" and then the commit got merged.