Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade rubocop #1838

Closed
7 of 29 tasks
geigerj opened this issue Nov 16, 2017 · 7 comments · Fixed by #1923
Closed
7 of 29 tasks

Upgrade rubocop #1838

geigerj opened this issue Nov 16, 2017 · 7 comments · Fixed by #1923
Assignees
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@geigerj
Copy link
Contributor

geigerj commented Nov 16, 2017

What

Currently, we pin rubocop to <= 0.35.1. Upgrade to the latest version. This will require a review of our configuration and/or updating the many files that fail the linter under the latest version. This might be a good backlog item for a fixit.

Why

This has a low-severity vulnerability in which other users on a shared filesystem may be able to corrupt local rubocop output, and GitHub is recommending an upgrade to ~> 0.49.0. See https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-8418, rubocop/rubocop#4336.

Progress

  • gcloud
  • google-cloud
  • google-cloud-bigquery
  • google-cloud-bigtable
  • google-cloud-container
  • google-cloud-core
  • google-cloud-dataproc
  • google-cloud-datastore
  • google-cloud-debugger
  • google-cloud-dlp
  • google-cloud-dns
  • google-cloud-env
  • google-cloud-error_reporting
  • google-cloud-firestore
  • google-cloud-language
  • google-cloud-logging
  • google-cloud-monitoring
  • google-cloud-os_login
  • google-cloud-pubsub
  • google-cloud-resource_manager
  • google-cloud-spanner
  • google-cloud-speech
  • google-cloud-storage
  • google-cloud-trace
  • google-cloud-translate
  • google-cloud-video_intelligence
  • google-cloud-vision
  • stackdriver
  • stackdriver-core
@geigerj geigerj added priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Nov 16, 2017
@geigerj geigerj self-assigned this Nov 16, 2017
@quartzmo
Copy link
Member

Just for the record, Rubocop was pinned around Jan 14, 2016 in #522 with this comment:

The latest rubocop release added a large number of new rules, and several of them break on our code. I 100% support the move to pin the dependency on the previous release so we can take time to evaluate the new rules and make the changes needed, or disable them.

So it seems safe enough to finally move forward with this upgrade.

@blowmage blowmage assigned blowmage and unassigned geigerj Dec 18, 2017
@blowmage
Copy link
Contributor

@geigerj The latest Rubocop drops support for Ruby 2.0. We have already dropped Ruby 2.0 from Travis-CI because we can't find an OS vm that will run the most current and 2.0. What are your thoughts about dropping Ruby 2.0 from the CI builds as part of fixing this issue?

@geigerj
Copy link
Contributor Author

geigerj commented Jan 12, 2018

@blowmage Did you end up dropping support in the end? IIRC we retained Ruby 2.0 support only because it continued to be the default system Ruby on OS X.

@blowmage
Copy link
Contributor

blowmage commented Jan 12, 2018

@geigerj I ended up downgrading from Rubocop 0.52.1 to 0.50.0, which is the last release that still supports Ruby 2.0.

FWIW, I would expect more and more gems to start dropping Ruby 2.0, as it was EOL'd nearly a year ago.

https://www.ruby-lang.org/en/news/2016/02/24/support-plan-of-ruby-2-0-0-and-2-1/

@geigerj
Copy link
Contributor Author

geigerj commented Jan 12, 2018

@blowmage Right, in general, we should not commit to supporting EOL versions of Ruby; this was an exceptional case due to OS X.

@frankyn Could you weigh in on the importance of continued support for Ruby 2.0 due to OS X?

@frankyn
Copy link
Contributor

frankyn commented Jan 13, 2018

I'm okay with dropping support for EOL Ruby 2.0. Mac OS X High Sierra updated the system Ruby to 2.3.3.

I didn't mean to reopen.

@frankyn frankyn reopened this Jan 13, 2018
@frankyn frankyn closed this as completed Jan 13, 2018
@dazuma
Copy link
Member

dazuma commented Jan 13, 2018

Ditto on dropping Ruby 2.0. I'm also okay with generally promoting a best practice of using a custom Ruby install instead of the system Ruby, for those actually doing Ruby development work on OSX.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants