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

Upgraded to ruby 3.1.4 #3097

Merged
merged 5 commits into from
Apr 5, 2023
Merged

Upgraded to ruby 3.1.4 #3097

merged 5 commits into from
Apr 5, 2023

Conversation

ConnorSheremeta
Copy link
Contributor

@ConnorSheremeta ConnorSheremeta commented Mar 24, 2023

Upgraded to ruby 3.1.4 with necessary changes

Copy link
Member

@pgwillia pgwillia left a comment

Choose a reason for hiding this comment

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

Are you still planning to do this in steps?

#3091 (comment)

I'll look for the release prep PR before signing off on this one.

@ConnorSheremeta
Copy link
Contributor Author

#3096 has the prep for the release while still maintaining a functioning app. The short-hand hash syntax changes here was introduced with ruby 3.1 which give errors on 2.7.

@ConnorSheremeta
Copy link
Contributor Author

Screenshot from 2023-03-24 12-26-32
Unsure why CI still has this check that is stuck on expected? I believe I removed all references to 2.7 in push.yml... maybe this will go away when this PR is merged?

@pgwillia
Copy link
Member

pgwillia commented Mar 24, 2023

Screenshot from 2023-03-24 12-26-32 Unsure why CI still has this check that is stuck on expected? I believe I removed all references to 2.7 in push.yml... maybe this will go away when this PR is merged?

This check is stuck because it's one of our branch protection rules. Let's drop this check after we've started deploying with Ruby 3.1, in case we need a quick security release.

image

I was imagining the steps you were following

  • prep jupiter 2.4.5 to work with 2.7 and 3.1
  • release jupiter 2.4.5 -- communicate with Beau and Sean
  • deploy with ruby 2.7
  • deploy with ruby 3.1
  • complete transition of jupiter code to Ruby 3.1 via merging this PR
  • release jupiter 2.5 -- communicate with Beau and Sean
  • deploy with ruby 3.1, don't look back

@pgwillia
Copy link
Member

#3096 has the prep for the release while still maintaining a functioning app. The short-hand hash syntax changes here was introduced with ruby 3.1 which give errors on 2.7.

I wasn't clear, sorry. I meant the jupiter version bump PR with a commit like this. To prepare for cutting a release.

@ConnorSheremeta
Copy link
Contributor Author

Screenshot from 2023-03-24 12-26-32 Unsure why CI still has this check that is stuck on expected? I believe I removed all references to 2.7 in push.yml... maybe this will go away when this PR is merged?

This check is stuck because it's one of our branch protection rules. Let's drop this check after we've started deploying with Ruby 3.1, in case we need a quick security release.

image

I was imagining the steps you were following

  • prep jupiter 2.4.5 to work with 2.7 and 3.1
  • release jupiter 2.4.5 -- communicate with Beau and Sean
  • deploy with ruby 2.7
  • deploy with ruby 3.1
  • complete transition of jupiter code to Ruby 3.1 via merging this PR
  • release jupiter 2.5 -- communicate with Beau and Sean
  • deploy with ruby 3.1, don't look back

Screenshot from 2023-03-24 12-26-32 Unsure why CI still has this check that is stuck on expected? I believe I removed all references to 2.7 in push.yml... maybe this will go away when this PR is merged?

This check is stuck because it's one of our branch protection rules. Let's drop this check after we've started deploying with Ruby 3.1, in case we need a quick security release.

image

I was imagining the steps you were following

  • prep jupiter 2.4.5 to work with 2.7 and 3.1
  • release jupiter 2.4.5 -- communicate with Beau and Sean
  • deploy with ruby 2.7
  • deploy with ruby 3.1
  • complete transition of jupiter code to Ruby 3.1 via merging this PR
  • release jupiter 2.5 -- communicate with Beau and Sean
  • deploy with ruby 3.1, don't look back

Would those first two deployments just be on staging or all the way to prod? I'm trying to work out what benefits there would be to deploy three times with two version bumps rather than doing it in one version bump and one deployment after this is merged which is what I had envisioned.

@pgwillia
Copy link
Member

pgwillia commented Mar 24, 2023

I was imagining the steps you were following

  • prep jupiter 2.4.5 to work with 2.7 and 3.1
  • release jupiter 2.4.5 -- communicate with Beau and Sean
  • deploy with ruby 2.7
  • deploy with ruby 3.1
  • complete transition of jupiter code to Ruby 3.1 via merging this PR
  • release jupiter 2.5 -- communicate with Beau and Sean
  • deploy with ruby 3.1, don't look back

Would those first two deployments just be on staging or all the way to prod? I'm trying to work out what benefits there would be to deploy three times with two version bumps rather than doing it in one version bump and one deployment after this is merged which is what I had envisioned.

The benefit of the two version bumps is being able to roll back if any changes cause issues. There are two places I can see where we could potentially run into issues:

  • current changes in Jupiter (rack, rails, crawl delay, compatibility with Ruby 3.1)
  • changing the Ruby version

Suppose it's the first; we could revert to jupiter 2.4.4 and fix bugs before trying the ruby upgrade. If it's the second, we could back the Ruby version and troubleshoot before continuing. The disadvantage to combining both changes is that it will be more difficult to rule out where the bug originated.

I misunderstood your vision. Whatever you and Beau work out for deploying is fine by me. Do you have permission to change the branch protection rules?

@ConnorSheremeta
Copy link
Contributor Author

Makes sense, I feel like your approach is the way to go. I've pushed up a PR here for the 2.4.5 release. Yes, it does look like I have permission to change the branch protection rules

pgwillia
pgwillia previously approved these changes Mar 24, 2023
Copy link
Member

@pgwillia pgwillia left a comment

Choose a reason for hiding this comment

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

@ConnorSheremeta ConnorSheremeta changed the title Upgraded to ruby 3.1.3 Upgraded to ruby 3.1.4 Apr 4, 2023
Copy link
Member

@pgwillia pgwillia left a comment

Choose a reason for hiding this comment

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

👍

@ConnorSheremeta ConnorSheremeta merged commit 3350c67 into master Apr 5, 2023
@ConnorSheremeta ConnorSheremeta deleted the cds/upgrade-to-ruby-3.1 branch April 5, 2023 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants