Skip to content

Commit 73dd3f0

Browse files
committed
Merge branch 'v10_0_0' into ci_ruby_3_5
2 parents 695be3f + e492eea commit 73dd3f0

File tree

24 files changed

+50
-174
lines changed

24 files changed

+50
-174
lines changed

.github/actions/run_multiverse/action.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,10 @@ runs:
1616
using: "composite"
1717
steps:
1818
# - curl is needed for Curb
19-
# - xslt is needed for older Nokogiris, RUBY_VERSION < 2.5
2019
# - sasl is needed for memcached
2120
- name: Install OS packages
2221
shell: bash
23-
run: sudo apt-get update; sudo apt-get install -y --no-install-recommends libcurl4-nss-dev libsasl2-dev libxslt1-dev
22+
run: sudo apt-get update; sudo apt-get install -y --no-install-recommends libcurl4-nss-dev libsasl2-dev
2423

2524
- name: Install Ruby ${{ inputs.ruby-version }}
2625
uses: ruby/setup-ruby@44511735964dcb71245e7e55f72539531f7bc0eb # tag v1.257.0

.github/actions/run_unit_tests/action.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@ runs:
1313
using: "composite"
1414
steps:
1515
# - curl is needed for Curb
16-
# - xslt is needed for older Nokogiris, RUBY_VERSION < 2.5
1716
# - sasl is needed for memcached
1817
- name: Install OS packages
1918
shell: bash
20-
run: sudo apt-get update; sudo apt-get install -y --no-install-recommends libcurl4-nss-dev libsasl2-dev libxslt1-dev
19+
run: sudo apt-get update; sudo apt-get install -y --no-install-recommends libcurl4-nss-dev libsasl2-dev
2120

2221
- name: Install Ruby ${{ inputs.ruby-version }}
2322
uses: ruby/setup-ruby@44511735964dcb71245e7e55f72539531f7bc0eb # tag v1.257.0
@@ -30,12 +29,6 @@ runs:
3029
key: ${{ inputs.ruby-version }}
3130
map: |
3231
{
33-
"2.4.10": {
34-
"rails": "norails,rails52,rails51,rails50,rails42,rails41,rails40"
35-
},
36-
"2.5.9": {
37-
"rails": "norails,rails61,rails60,rails52,rails51,rails50,rails42"
38-
},
3932
"2.6.10": {
4033
"rails": "norails,rails61,rails60,rails52,rails51,rails50,rails42"
4134
},

.github/actions/setup_mysql_tests/action.yml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,6 @@ inputs:
88
runs:
99
using: "composite"
1010
steps:
11-
# This allows the cache in the following step to be able to write files to the directory needed for mysql
12-
- if: inputs.ruby-version == '2.4.10'
13-
name: Prepare mysql directory
14-
shell: bash
15-
run: sudo chown -R $USER /usr/local
16-
17-
- if: inputs.ruby-version == '2.4.10'
18-
name: Cache mysql55
19-
id: mysql55-cache
20-
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # tag v4.2.3
21-
with:
22-
path: /usr/local/mysql55
23-
key: mysql55-install
24-
25-
- if: steps.mysql55-cache.outputs.cache-hit != 'true' && inputs.ruby-version == '2.4.10'
26-
name: Install mysql55
27-
shell: bash
28-
run: sudo ./test/script/install_mysql55
29-
3011
- name: Wait for/Check Mysql
3112
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # tag v3.0.2
3213
with:

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
strategy:
3737
fail-fast: false
3838
matrix:
39-
ruby-version: [2.4.10, 3.4.4, 3.5.0-preview1]
39+
ruby-version: [2.6.10, 3.4.4, 3.5.0-preview1]
4040
steps:
4141
- name: Configure git
4242
run: 'git config --global init.defaultBranch main'
@@ -56,7 +56,7 @@ jobs:
5656
fail-fast: false
5757
matrix:
5858
multiverse: [agent, ai, background, background_2, frameworks, httpclients, httpclients_2, hybrid_agent, rails, rest]
59-
ruby-version: [2.4.10, 3.4.4, 3.5.0-preview1]
59+
ruby-version: [2.6.10, 3.4.4, 3.5.0-preview1]
6060
steps:
6161
- name: Configure git
6262
run: 'git config --global init.defaultBranch main'
@@ -74,7 +74,7 @@ jobs:
7474
runs-on: ubuntu-22.04
7575
services:
7676
mongodb:
77-
image: ${{ contains(fromJson('["2.4.10"]'), matrix.ruby-version) && 'mongo:5.0.11' || 'mongo:latest' }}
77+
image: mongo:latest
7878
ports:
7979
- 27017:27017
8080
rabbitmq:
@@ -89,7 +89,7 @@ jobs:
8989
strategy:
9090
fail-fast: false
9191
matrix:
92-
ruby-version: [2.4.10, 3.4.4, 3.5.0-preview1]
92+
ruby-version: [2.6.10, 3.4.4, 3.5.0-preview1]
9393
steps:
9494
- name: Configure git
9595
run: 'git config --global init.defaultBranch main'
@@ -139,7 +139,7 @@ jobs:
139139
strategy:
140140
fail-fast: false
141141
matrix:
142-
ruby-version: [2.4.10, 3.4.4, 3.5.0-preview1]
142+
ruby-version: [2.6.10, 3.4.4, 3.5.0-preview1]
143143
steps:
144144
- name: Configure git
145145
run: 'git config --global init.defaultBranch main'
@@ -182,7 +182,7 @@ jobs:
182182
strategy:
183183
fail-fast: false
184184
matrix:
185-
ruby-version: [2.4.10, 3.4.4, 3.5.0-preview1]
185+
ruby-version: [2.6.10, 3.4.4, 3.5.0-preview1]
186186
steps:
187187
- name: Configure git
188188
run: 'git config --global init.defaultBranch main'
@@ -229,7 +229,7 @@ jobs:
229229
strategy:
230230
fail-fast: false
231231
matrix:
232-
ruby-version: [2.4.10, 3.4.4, 3.5.0-preview1]
232+
ruby-version: [2.6.10, 3.4.4, 3.5.0-preview1]
233233
steps:
234234
- name: Configure git
235235
run: 'git config --global init.defaultBranch main'
@@ -268,7 +268,7 @@ jobs:
268268
strategy:
269269
fail-fast: false
270270
matrix:
271-
ruby-version: [2.4.10, 3.4.4, 3.5.0-preview1]
271+
ruby-version: [2.6.10, 3.4.4, 3.5.0-preview1]
272272
steps:
273273
- name: Configure git
274274
run: 'git config --global init.defaultBranch main'

.github/workflows/ci_cron.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
strategy:
3737
fail-fast: false
3838
matrix:
39-
ruby-version: [2.4.10, 2.5.9, 2.6.10, 2.7.8, 3.0.7, 3.1.7, 3.2.8, 3.3.8, 3.4.4, 3.5.0-preview1]
39+
ruby-version: [2.6.10, 2.7.8, 3.0.7, 3.1.7, 3.2.8, 3.3.8, 3.4.4, 3.5.0-preview1]
4040
steps:
4141
- name: Configure git
4242
run: 'git config --global init.defaultBranch main'
@@ -54,7 +54,7 @@ jobs:
5454
fail-fast: false
5555
matrix:
5656
multiverse: [agent, ai, background, background_2, frameworks, httpclients, httpclients_2, hybrid_agent, rails, rest]
57-
ruby-version: [2.4.10, 2.5.9, 2.6.10, 2.7.8, 3.0.7, 3.1.7, 3.2.8, 3.3.8, 3.4.4, 3.5.0-preview1]
57+
ruby-version: [2.6.10, 2.7.8, 3.0.7, 3.1.7, 3.2.8, 3.3.8, 3.4.4, 3.5.0-preview1]
5858
steps:
5959
- name: Configure git
6060
run: 'git config --global init.defaultBranch main'
@@ -73,7 +73,7 @@ jobs:
7373
runs-on: ubuntu-22.04
7474
services:
7575
mongodb:
76-
image: ${{ contains(fromJson('["2.4.10"]'), matrix.ruby-version) && 'mongo:5.0.11' || 'mongo:latest' }}
76+
image: mongo:latest
7777
ports:
7878
- 27017:27017
7979
rabbitmq:
@@ -88,7 +88,7 @@ jobs:
8888
strategy:
8989
fail-fast: false
9090
matrix:
91-
ruby-version: [2.4.10, 2.5.9, 2.6.10, 2.7.8, 3.0.7, 3.1.7, 3.2.8, 3.3.8, 3.4.4, 3.5.0-preview1]
91+
ruby-version: [2.6.10, 2.7.8, 3.0.7, 3.1.7, 3.2.8, 3.3.8, 3.4.4, 3.5.0-preview1]
9292
steps:
9393
- name: Configure git
9494
run: 'git config --global init.defaultBranch main'
@@ -139,7 +139,7 @@ jobs:
139139
strategy:
140140
fail-fast: false
141141
matrix:
142-
ruby-version: [2.4.10, 2.5.9, 2.6.10, 2.7.8, 3.0.7, 3.1.7, 3.2.8, 3.3.8, 3.4.4, 3.5.0-preview1]
142+
ruby-version: [2.6.10, 2.7.8, 3.0.7, 3.1.7, 3.2.8, 3.3.8, 3.4.4, 3.5.0-preview1]
143143
steps:
144144
- name: Configure git
145145
run: 'git config --global init.defaultBranch main'
@@ -183,7 +183,7 @@ jobs:
183183
strategy:
184184
fail-fast: false
185185
matrix:
186-
ruby-version: [2.5.9, 2.6.10, 2.7.8, 3.0.7, 3.1.7, 3.2.8, 3.3.8, 3.4.4, 3.5.0-preview1]
186+
ruby-version: [2.6.10, 2.7.8, 3.0.7, 3.1.7, 3.2.8, 3.3.8, 3.4.4, 3.5.0-preview1]
187187
steps:
188188
- name: Configure git
189189
run: 'git config --global init.defaultBranch main'
@@ -231,7 +231,7 @@ jobs:
231231
strategy:
232232
fail-fast: false
233233
matrix:
234-
ruby-version: [2.4.10, 2.5.9, 2.6.10, 2.7.8, 3.0.7, 3.1.7, 3.2.8, 3.3.8, 3.4.4, 3.5.0-preview1]
234+
ruby-version: [2.6.10, 2.7.8, 3.0.7, 3.1.7, 3.2.8, 3.3.8, 3.4.4, 3.5.0-preview1]
235235
steps:
236236
- name: Configure git
237237
run: 'git config --global init.defaultBranch main'
@@ -271,7 +271,7 @@ jobs:
271271
strategy:
272272
fail-fast: false
273273
matrix:
274-
ruby-version: [2.4.10, 2.5.9, 2.6.10, 2.7.8, 3.0.7, 3.1.7, 3.2.8, 3.3.8, 3.4.4, 3.5.0-preview1]
274+
ruby-version: [2.6.10, 2.7.8, 3.0.7, 3.1.7, 3.2.8, 3.3.8, 3.4.4, 3.5.0-preview1]
275275
steps:
276276
- name: Configure git
277277
run: 'git config --global init.defaultBranch main'

.github/workflows/scripts/generate_release_notes.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ def build_metadata
3535
titles.each do |t|
3636
category = t.split(':').first
3737
case category
38+
when 'Breaking Change'
39+
metadata[:features] << t.delete_prefix('Breaking Change: ')
3840
when 'Feature'
3941
metadata[:features] << t.delete_prefix('Feature: ')
4042
when 'Bugfix'

.github/workflows/scripts/setup_bundler

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,9 @@ function using_old_rails {
1414
[[ $RAILS_VERSION =~ .*"4".* ]]
1515
}
1616

17-
function using_old_ruby {
18-
# example RUBY_VERSION strings:
19-
# '2.4.10' => true, starts with "2", next digit is not a "6" or "7"
20-
# '2.7.7' => false, starts with "2", next digit is "7"
21-
# '3.1.3' => false, does not start with "2"
22-
echo "DEBUG: RUBY_VERSION = $RUBY_VERSION"
23-
[[ $RUBY_VERSION =~ ^2\.[^67] ]]
24-
}
25-
2617
function update_to_desired_rubygems_version {
2718
# Older rubies come with older Rubygems and we need 3.0.6 to
2819
# correctly install Bundler 1.17 for the multiverse test suite
29-
3020
if [[ $RUBY_VERSION =~ ^2\.[^7] ]]; then
3121
echo "DEBUG: running 'gem update --system 3.0.6 --force'"
3222
gem update --system 3.0.6 --force >/dev/null
@@ -56,17 +46,6 @@ function install_desired_bundler_version {
5646
gem list bundler
5747
}
5848

59-
function configure_bundler {
60-
if ! [[ $RUBY_VERSION =~ ^2\.4 ]]; then
61-
echo "DEBUG: Ruby is not at version 2.4.x, skipping 'bundler config'"
62-
return
63-
fi
64-
65-
# add mysql specific config for bundler when we are using older mysql
66-
echo "DEBUG: running 'bundle config'"
67-
bundle config --global build.mysql2 --with-mysql-config=/usr/local/mysql55/bin/mysql_config
68-
}
69-
7049
function install_ruby_version_specific_gems {
7150
if using_jruby; then
7251
echo "DEBUG: Skipping specific gem installation, as JRuby is in use"
@@ -104,7 +83,6 @@ function set_up_bundler {
10483

10584
update_to_desired_rubygems_version
10685
install_desired_bundler_version
107-
configure_bundler
10886
}
10987

11088
echo "DEBUG: setting up Bundler"

.rubocop.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -878,9 +878,8 @@ Naming/VariableNumber:
878878
Performance/BindCall:
879879
Enabled: false
880880

881-
# TODO: OLD RUBIES - Requires 2.5
882881
Performance/DeletePrefix:
883-
Enabled: false
882+
Enabled: true
884883

885884
# TODO: OLD RUBIES - Requires 2.7
886885
Performance/MapCompact:
@@ -1237,12 +1236,8 @@ Style/LineEndConcatenation:
12371236
Enabled: false
12381237
# SafeAutoCorrect: false
12391238

1240-
# TODO: OLD RUBIES - enable this cop after support for Ruby <= 2.5 has been
1241-
# dropped. NewRelic::Agent::InfiniteTracing::Transformer.hash_to_attributes
1242-
# currently does `values.map {}.to_h`. Newer Rubies should
1243-
# use `values.to_h {}` instead.
12441239
Style/MapToHash:
1245-
Enabled: false
1240+
Enabled: true
12461241

12471242
Style/MethodCallWithArgsParentheses:
12481243
Enabled: true

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
# New Relic Ruby Agent Release Notes
22

3-
## v9.23.0
3+
## v10.0.0
44

55
- **Feature: Add sidekiq.ignore_retry_errors configuration option**
66

77
A new configuration option, `sidekiq.ignore_retry_errors`, has been added to control if Sidekiq job retries are captured. Retry errors are captured by default, but now if `sidekiq.ignore_retry_errors` is set to `true`, the agent will ignore exceptions raised during Sidekiq's retry attempts and will only report the error if the job permanently fails. Thank you [DonGiulio](https://github.com/DonGiulio) for recognizing this improvement and contributing a solution. [PR#3317](https://github.com/newrelic/newrelic-ruby-agent/pull/3317)
88

9+
- **Breaking Change: Removed support for Ruby 2.4 and 2.5**
10+
Support for Ruby versions 2.4 and 2.5 has been removed. The new minimum required Ruby version is now 2.6. [PR#3314](https://github.com/newrelic/newrelic-ruby-agent/pull/3314)
11+
12+
## v9.23.0
13+
914
- **Feature: Deprecation notice for recording deployments using Capistrano**
1015

1116
Sending application deployment information using a Capistrano recipe is deprecated and will be removed in agent version 10.0.0. For recording deployments, please see our guide to [Change Tracking](https://docs.newrelic.com/docs/change-tracking/change-tracking-introduction/) for a list of available options.

infinite_tracing/lib/infinite_tracing/connection.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ def license_key
157157

158158
def request_headers_map
159159
headers = NewRelic::Agent.agent.service.instance_variable_get(:@request_headers_map) || NewRelic::EMPTY_HASH
160-
# transform_keys only 2.5+, but infinite tracing is 2.5+ only also
161160
headers.transform_keys(&:downcase)
162161
end
163162

0 commit comments

Comments
 (0)