Skip to content
New issue

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

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

Already on GitHub? # to your account

Update to Ruby 2.7.2 #4207

Merged
merged 22 commits into from
Feb 19, 2021
Merged

Update to Ruby 2.7.2 #4207

merged 22 commits into from
Feb 19, 2021

Conversation

tijcolem
Copy link
Collaborator

Update ruby from 2.5.5 to 2.7.2 and include test package of openstudio-gems.

resolves #4134 (see checklist of items).

Outstanding issues:

The above two can be done separately as they are released.

Before merging we should merge outstanding PRs that are ready as this will require CI changes going forward. CI will need to have 2.7.2 to run ruby tests.

Please read OpenStudio Pull Requests to better understand the OpenStudio Pull Request protocol.

Pull Request Author

Add to this list or remove from it as applicable. This is a simple templated set of guidelines.

Review Checklist

This will not be exhaustively relevant to every PR.

  • Perform a Code Review on GitHub
  • Code Style, strip trailing whitespace, etc.
  • All related changes have been implemented: model changes, model tests, FT changes, FT tests, VersionTranslation, OS App
  • Labeling is ok
  • If defect, verify by running develop branch and reproducing defect, then running PR and reproducing fix
  • If feature, test running new feature, try creative ways to break it
  • CI status: all green or justified

@tijcolem
Copy link
Collaborator Author

Here the CI results for the full build on Jenkins:

https://ci.commercialbuildings.dev/blue/organizations/jenkins/openstudio-develop-nightly/detail/openstudio-develop-nightly/929/pipeline

And results running regression

ruby-2.7.2
https://github.com/NREL/OpenStudio-resources/runs/1931058793?check_suite_focus=true

vs
latest develop
https://github.com/NREL/OpenStudio-resources/actions/runs/580238602

The ruby test bundle_git need to update but those are the only unit tests that are currently failing (minus the filtered ones).

@tijcolem
Copy link
Collaborator Author

not sure what's going with the python bindings. Perhaps something broke related to the ruby change.

# This isn't ideal but there really is no available method to add specs for our use case.
# Using self.dirs=() works for ruby official gems but since it appends the dir paths with 'specifications' it breaks for bundled gem specs
def self.add_spec spec
warn "Gem::Specification.add_spec is deprecated and will be removed in RubyGems 3.0" unless Gem::Deprecate.skip
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not ideal but not sure what do here since this method is now remove in rubygems > 3.0.
I think it's easy this or patching ruby source.

@tijcolem
Copy link
Collaborator Author

last commits should resolve the bundle git failures.

@tijcolem tijcolem self-assigned this Feb 19, 2021
@tijcolem tijcolem requested a review from jmarrec February 19, 2021 15:29
@brianlball
Copy link
Contributor

@jmarrec I think we are over the limit of pypi... says we are over the 10GB limit.

@kbenne
Copy link
Contributor

kbenne commented Feb 19, 2021

@tijcolem have you or can you attempt to trigger a nuget package build? I want to double check that it still works so there are no surprises at release time.

@tijcolem
Copy link
Collaborator Author

@kbenne Here's a link to the nuget 32/64 bit package.

https://openstudio-ci-builds.s3-us-west-2.amazonaws.com/ruby_272/OpenStudio.3.1.1-alpha.nupkg

@brianlball I'll try and free up some space.

@tijcolem
Copy link
Collaborator Author

@brianlball @jmarrec I free'd up a bunch of space on test.pypi.org. We'll have to implement a scrubber of some form as the limits of 10GB get filled fairly quickly. We had about 60 python packages.

@kbenne
Copy link
Contributor

kbenne commented Feb 19, 2021

I'm going to go ahead and merge, but in testing this I uncovered the following issue that should be addressed. I'm pretty sure it is unrelated to this ruby change.

#4216

@kbenne kbenne merged commit 988dd3f into develop Feb 19, 2021
@kbenne kbenne deleted the ruby_272 branch February 19, 2021 23:05
@jmarrec
Copy link
Collaborator

jmarrec commented Feb 21, 2021

@brianlball @jmarrec I free'd up a bunch of space on test.pypi.org. We'll have to implement a scrubber of some form as the limits of 10GB get filled fairly quickly. We had about 60 python packages.

I noticed that. As owner, I got one email per package deleted :)

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update Ruby to 2.7.0
4 participants