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

Bump Ruby to 3.2.6 #3063

Merged
merged 1 commit into from
Nov 21, 2024
Merged

Bump Ruby to 3.2.6 #3063

merged 1 commit into from
Nov 21, 2024

Conversation

davidgisbey
Copy link
Contributor

@davidgisbey davidgisbey commented Nov 21, 2024

Description

We've had to revert out Ruby bump to 3.3.6 due to an issue with the load traffic job. We were getting the following error:

Google::Cloud::CanceledError: 1:CANCELLED. debug_error_string:
{
  UNKNOWN:Error received from peer {
    created_time:"2024-11-20T22:00:03.584412449+00:00",
    grpc_status:1,
    grpc_message:"CANCELLED"
  }
} (Google::Cloud::CanceledError)
/usr/local/bundle/ruby/3.3.0/gems/google-analytics-data-v1beta-0.13.1/lib/google/analytics/data/v1beta/analytics_data/client.rb:369:

Looking at the gems repo we can see that someone else has opened an issue for the same error here

govuk-ruby-base (https://github.com/alphagov/govuk-ruby-images/blob/93c59fe31019cc0621f607ac6bbb0683b111e1b6/README.md?plain=1#L8) only takes minor version of Ruby so we can't bump to say 3.3.4 as the production apps will use to the latest stable Ruby version (3.3.6) which will break the rake task.

This bumps Ruby to the latest 3.2 version which is 3.2.6. Once the issue has been resolved we can then bump this to 3.3.6 (or a later version if one is released).

Testing

I've deployed this out to to integration and manually kicked off the load traffic rake task to check it's working and then deleted the job.

Trello card

https://trello.com/c/xG4hrLyP/2169-investigate-fixing-the-search-api-loadpagetraffic-job

We've had to revert out Ruby bump to 3.3.6 due to an issue with the load
traffic job. We were getting the following error:

```
oogle::Cloud::CanceledError: 1:CANCELLED. debug_error_string:
{
  UNKNOWN:Error received from peer {
    created_time:"2024-11-20T22:00:03.584412449+00:00",
    grpc_status:1,
    grpc_message:"CANCELLED"
  }
} (Google::Cloud::CanceledError)
/usr/local/bundle/ruby/3.3.0/gems/google-analytics-data-v1beta-0.13.1/lib/google/analytics/data/v1beta/analytics_data/client.rb:369:
```

Looking the gems repo we can see that someone else has opened an issue
for the same error googleapis/google-cloud-ruby#27448

govuk-ruby-base (https://github.com/alphagov/govuk-ruby-images/blob/93c59fe31019cc0621f607ac6bbb0683b111e1b6/README.md?plain=1#L8)
only takes minor version of Ruby so we can't bump higher than 3.2 or the production
apps will defer to the latest stable Ruby version which will break the
rake task.

This bumps Ruby to the latest 3.2 version which is 3.2.6. Once the issue
has been resolved we can then bump this to 3.3.6 (or a later version
if one is released).
@davidgisbey davidgisbey marked this pull request as ready for review November 21, 2024 15:08
Copy link
Member

@kevindew kevindew left a comment

Choose a reason for hiding this comment

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

Nice one, I think you're missing a word in the PR description "Looking at"

@davidgisbey
Copy link
Contributor Author

thanks good spot. Have fixed 👍

@davidgisbey davidgisbey merged commit 9f8256e into main Nov 21, 2024
6 checks passed
@davidgisbey davidgisbey deleted the bump-ruby-version-to-3.2.6 branch November 21, 2024 15:22
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