Skip to content

Commit

Permalink
Merge pull request #2393 from newrelic/dev
Browse files Browse the repository at this point in the history
Release 9.7.0
  • Loading branch information
tannalynn authored Jan 10, 2024
2 parents 9d9ba5f + 13243df commit fe9d4ab
Show file tree
Hide file tree
Showing 138 changed files with 899 additions and 505 deletions.
4 changes: 2 additions & 2 deletions .github/actions/simplecov-report/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ branding:
inputs:
failedThreshold:
description: Failed threshold (line)
default: "94.08"
default: "93.5"
required: false
failedThresholdBranch:
description: Failed threshold (branch)
default: "85.5"
default: "71.5"
required: false
resultPath:
description: "json path"
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
- name: Configure git
run: 'git config --global init.defaultBranch main'
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag v3.5.0
- uses: ruby/setup-ruby@bc1dd263b68cb5626dbb55d5c89777d79372c484 # tag v1.151.0
- uses: ruby/setup-ruby@360dc864d5da99d54fcb8e9148c14a84b90d3e88 # tag v1.165.1
with:
ruby-version: '3.2'
ruby-version: '3.3'
- run: bundle
- run: rubocop

Expand All @@ -32,7 +32,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby-version: [2.4.10, 3.2.2]
ruby-version: [2.4.10, 3.3.0]
steps:
- name: Configure git
run: 'git config --global init.defaultBranch main'
Expand All @@ -45,7 +45,7 @@ jobs:
run: sudo apt-get update; sudo apt-get install -y --no-install-recommends libcurl4-nss-dev libsasl2-dev libxslt1-dev

- name: Install Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@bc1dd263b68cb5626dbb55d5c89777d79372c484 # tag v1.151.0
uses: ruby/setup-ruby@360dc864d5da99d54fcb8e9148c14a84b90d3e88 # tag v1.165.1
with:
ruby-version: ${{ matrix.ruby-version }}

Expand All @@ -58,7 +58,7 @@ jobs:
"2.4.10": {
"rails": "norails,rails42,rails52"
},
"3.2.2": {
"3.3.0": {
"rails": "norails,rails61,rails70"
}
}
Expand Down Expand Up @@ -186,7 +186,7 @@ jobs:
fail-fast: false
matrix:
multiverse: [agent, background, background_2, database, frameworks, httpclients, httpclients_2, rails, rest]
ruby-version: [2.4.10, 3.2.2]
ruby-version: [2.4.10, 3.3.0]

steps:
- name: Configure git
Expand All @@ -200,7 +200,7 @@ jobs:
run: sudo apt-get update; sudo apt-get install -y --no-install-recommends libcurl4-nss-dev libsasl2-dev libxslt1-dev

- name: Install Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@bc1dd263b68cb5626dbb55d5c89777d79372c484 # tag v1.151.0
uses: ruby/setup-ruby@360dc864d5da99d54fcb8e9148c14a84b90d3e88 # tag v1.165.1
with:
ruby-version: ${{ matrix.ruby-version }}

Expand Down Expand Up @@ -286,14 +286,14 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby-version: [2.5.9, 3.2.2]
ruby-version: [2.7.8, 3.3.0]
steps:
- name: Configure git
run: 'git config --global init.defaultBranch main'
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag v3.5.0

- name: Install Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@bc1dd263b68cb5626dbb55d5c89777d79372c484 # tag v1.151.0
uses: ruby/setup-ruby@360dc864d5da99d54fcb8e9148c14a84b90d3e88 # tag v1.165.1
with:
ruby-version: ${{ matrix.ruby-version }}

Expand Down Expand Up @@ -333,7 +333,7 @@ jobs:
- name: Configure git
run: 'git config --global init.defaultBranch main'
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag v3.5.0
- uses: ruby/setup-ruby@bc1dd263b68cb5626dbb55d5c89777d79372c484 # tag v1.151.0
- uses: ruby/setup-ruby@360dc864d5da99d54fcb8e9148c14a84b90d3e88 # tag v1.165.1
with:
ruby-version: '3.1'
- run: bundle
Expand All @@ -352,5 +352,5 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
resultPath: lib/coverage_results/.last_run.json
failedThreshold: 94.08
failedThresholdBranch: 85.5
failedThreshold: 93.5
failedThresholdBranch: 71.5
20 changes: 10 additions & 10 deletions .github/workflows/ci_cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Configure git
run: 'git config --global init.defaultBranch main'
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag v3.5.0
- uses: ruby/setup-ruby@5311f05890856149502132d25c4a24985a00d426 # tag v1.153.0
- uses: ruby/setup-ruby@360dc864d5da99d54fcb8e9148c14a84b90d3e88 # tag v1.165.1
with:
ruby-version: '3.2'
- run: bundle
Expand All @@ -36,7 +36,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby-version: [2.4.10, 2.5.9, 2.6.10, 2.7.8, 3.0.6, 3.1.4, 3.2.2, 3.3.0-preview2]
ruby-version: [2.4.10, 2.5.9, 2.6.10, 2.7.8, 3.0.6, 3.1.4, 3.2.2, 3.3.0]

steps:
- name: Configure git
Expand All @@ -50,7 +50,7 @@ jobs:
run: sudo apt-get update; sudo apt-get install -y --no-install-recommends libcurl4-nss-dev libsasl2-dev libxslt1-dev

- name: Install Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@5311f05890856149502132d25c4a24985a00d426 # tag v1.153.0
uses: ruby/setup-ruby@360dc864d5da99d54fcb8e9148c14a84b90d3e88 # tag v1.165.1
with:
ruby-version: ${{ matrix.ruby-version }}

Expand All @@ -70,18 +70,18 @@ jobs:
"rails": "norails,rails61,rails60,rails52,rails51,rails50,rails42"
},
"2.7.8": {
"rails": "norails,rails61,rails60,rails70,railsedge"
"rails": "norails,rails61,rails60,rails70"
},
"3.0.6": {
"rails": "norails,rails61,rails60,rails70,railsedge"
"rails": "norails,rails61,rails60,rails70"
},
"3.1.4": {
"rails": "norails,rails61,rails70,railsedge"
},
"3.2.2": {
"rails": "norails,rails61,rails70,railsedge"
},
"3.3.0-preview2": {
"3.3.0": {
"rails": "norails,rails61,rails70,railsedge"
}
}
Expand Down Expand Up @@ -200,7 +200,7 @@ jobs:
fail-fast: false
matrix:
multiverse: [agent, background, background_2, database, frameworks, httpclients, httpclients_2, rails, rest]
ruby-version: [2.4.10, 2.5.9, 2.6.10, 2.7.8, 3.0.6, 3.1.4, 3.2.2, 3.3.0-preview2]
ruby-version: [2.4.10, 2.5.9, 2.6.10, 2.7.8, 3.0.6, 3.1.4, 3.2.2, 3.3.0]
steps:
- name: Configure git
run: 'git config --global init.defaultBranch main'
Expand All @@ -213,7 +213,7 @@ jobs:
run: sudo apt-get update; sudo apt-get install -y --no-install-recommends libcurl4-nss-dev libsasl2-dev libxslt1-dev

- name: Install Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@5311f05890856149502132d25c4a24985a00d426 # tag v1.153.0
uses: ruby/setup-ruby@360dc864d5da99d54fcb8e9148c14a84b90d3e88 # tag v1.165.1
with:
ruby-version: ${{ matrix.ruby-version }}

Expand Down Expand Up @@ -278,14 +278,14 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby-version: [2.5.9, 2.6.10, 2.7.8, 3.0.6, 3.1.4, 3.2.2, 3.3.0-preview2]
ruby-version: [2.7.8, 3.0.6, 3.1.4, 3.2.2, 3.3.0]
steps:
- name: Configure git
run: 'git config --global init.defaultBranch main'
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag v3.5.0

- name: Install Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@5311f05890856149502132d25c4a24985a00d426 # tag v1.153.0
uses: ruby/setup-ruby@360dc864d5da99d54fcb8e9148c14a84b90d3e88 # tag v1.165.1
with:
ruby-version: ${{ matrix.ruby-version }}

Expand Down
108 changes: 18 additions & 90 deletions .github/workflows/ci_jruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,8 @@ on:
workflow_dispatch:

jobs:
unit_tests:
jruby_unit_tests:
runs-on: ubuntu-22.04
services:
mysql:
image: mysql:5.7
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
ports:
- "3306:3306"
strategy:
fail-fast: false
steps:
Expand All @@ -24,9 +16,9 @@ jobs:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag v3.5.0

- name: Install JRuby
uses: ruby/setup-ruby@bc1dd263b68cb5626dbb55d5c89777d79372c484 # tag v1.151.0
uses: ruby/setup-ruby@af848b40be8bb463a751551a1180d74782ba8a72 # tag v1.162.0
with:
ruby-version: jruby-9.4.3.0
ruby-version: jruby-9.4.5.0

- name: Bundle
run: bundle install
Expand All @@ -36,85 +28,19 @@ jobs:
with:
timeout_minutes: 30
max_attempts: 2
command: bundle exec rake test:env[norails,rails61,rails60]
command: bundle exec rake test:env[norails,rails61]
env:
VERBOSE_TEST_OUTPUT: true
DB_PORT: ${{ job.services.mysql.ports[3306] }}
JRUBY_OPTS: --dev --debug

JAVA_OPTS: --add-opens java.base/sun.nio.ch=org.jruby.dist --add-opens java.base/java.io=org.jruby.dist
JRUBY_OPTS: --dev

jruby_multiverse:
runs-on: ubuntu-22.04
services:
elasticsearch7:
image: elasticsearch:7.16.2
env:
discovery.type: single-node
ports:
- 9200:9200
options: >-
--health-cmd "curl http://localhost:9200/_cluster/health"
--health-interval 10s
--health-timeout 5s
--health-retries 10
elasticsearch8:
image: elasticsearch:8.4.2
env:
discovery.type: single-node
xpack.security.enabled: false
ports:
- 9250:9200
options: >-
--health-cmd "curl http://localhost:9200/_cluster/health"
--health-interval 10s
--health-timeout 5s
--health-retries 10
memcached:
image: memcached:latest
ports:
- 11211:11211
options: >-
--health-cmd "timeout 5 bash -c 'cat < /dev/null > /dev/udp/127.0.0.1/11211'"
--health-interval 10s
--health-timeout 5s
--health-retries 5
mongodb:
image: mongo:5.0.11
ports:
- 27017:27017
mysql:
image: mysql:5.7
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
ports:
- "3306:3306"
postgres:
image: postgres:latest
ports:
- 5432:5432
rabbitmq:
image: rabbitmq:latest
ports:
- 5672:5672
options: >-
--health-cmd "rabbitmq-diagnostics -q check_port_connectivity"
--health-interval 10s
--health-timeout 5s
--health-retries 5
redis:
image: redis
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
strategy:
fail-fast: false
matrix:
multiverse: [agent, background, background_2, database, frameworks, httpclients, httpclients_2, rails, rest]
suite: [active_support_broadcast_logger, active_support_logger, activemerchant, agent_only, async_http, bare, deferred_instrumentation, grape, high_security, httpclient, httprb, httpx, json, logger, marshalling, rack, resque, roda, roda_agent_disabled, sequel, sinatra, sinatra_agent_disabled, stripe, thread, tilt, typhoeus]

steps:
- name: Configure git
run: 'git config --global init.defaultBranch main'
Expand All @@ -123,22 +49,24 @@ jobs:
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag v3.5.0

- name: Install JRuby
uses: ruby/setup-ruby@bc1dd263b68cb5626dbb55d5c89777d79372c484 # tag v1.151.0
uses: ruby/setup-ruby@af848b40be8bb463a751551a1180d74782ba8a72 # tag v1.162.0
with:
ruby-version: jruby-9.4.3.0
ruby-version: jruby-9.4.5.0

- name: Bundle
run: bundle install

- name: Run Multiverse Tests
run: ./.github/workflows/scripts/retry_command
env:
TEST_CMD: "bundle exec rake test:multiverse[group=${{ matrix.multiverse }}]"
uses: nick-fields/retry@943e742917ac94714d2f408a0e8320f2d1fcafcd # tag v2.8.3
with:
timeout_minutes: 20
max_attempts: 3
command: "bundle exec rake test:multiverse[${{ matrix.suite }}]"
env:
VERBOSE_TEST_OUTPUT: true
RETRY_ATTEMPTS: 5
SERIALIZE: 1
DB_PORT: ${{ job.services.mysql.ports[3306] }}
JRUBY_OPTS: --dev --debug
JAVA_OPTS: --add-opens java.base/sun.nio.ch=org.jruby.dist --add-opens java.base/java.io=org.jruby.dist -Xmx4g -Xms512m
JRUBY_OPTS: --dev

- name: Annotate errors
if: ${{ failure() }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/config_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
pull-requests: write
steps:
- name: Install Ruby 3.2
uses: ruby/setup-ruby@7d546f4868fb108ed378764d873683f920672ae2 # tag v1.149.0
uses: ruby/setup-ruby@af848b40be8bb463a751551a1180d74782ba8a72 # tag v1.162.0
with:
ruby-version: 3.2

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/performance_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag v3.5.0
with:
ref: 'main'
- uses: ruby/setup-ruby@7d546f4868fb108ed378764d873683f920672ae2 # tag v1.149.0
- uses: ruby/setup-ruby@af848b40be8bb463a751551a1180d74782ba8a72 # tag v1.162.0
with:
ruby-version: '3.2'
- run: bundle
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ name: Create Prerelease
on:
workflow_dispatch:

jobs:
jobs:
create_prerelease:
runs-on: ubuntu-22.04
permissions:
contents: write
pull-requests: write
steps:
- name: Install Ruby 3.2
uses: ruby/setup-ruby@7d546f4868fb108ed378764d873683f920672ae2 # tag v1.149.0
uses: ruby/setup-ruby@af848b40be8bb463a751551a1180d74782ba8a72 # tag v1.162.0
with:
ruby-version: 3.2

Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:
TITLE: "Prerelease ${{env.prerelease_tag}}"
BODY: "Updates the version number, changelog, and newrelic.yml (if it needs updating). This is an automated PR."
LABEL: prerelease

- name: Create pre release tag
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # tag v0.1.15
with:
Expand Down
Loading

0 comments on commit fe9d4ab

Please sign in to comment.