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

Rebase latest changes from dev into k2 #2395

Merged
merged 158 commits into from
Jan 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
158 commits
Select commit Hold shift + click to select a range
30d21d8
Merge pull request #2102 from newrelic/dev
tannalynn Jun 26, 2023
15ae327
Merge pull request #2124 from newrelic/dev
kaylareopelle Jul 11, 2023
6ee96fe
Merge pull request #2163 from newrelic/dev
tannalynn Aug 15, 2023
b2fd83c
Merge pull request #2169 from newrelic/dev
tannalynn Aug 16, 2023
ec96144
Merge pull request #2174 from newrelic/dev
tannalynn Aug 18, 2023
e9db0f0
Merge pull request #2202 from newrelic/dev
fallwith Sep 12, 2023
a8d0550
CI: test against JRuby v9.4.4.0
fallwith Oct 23, 2023
c2c9110
Async-HTTP: don't test with JRuby, catch errors
fallwith Oct 23, 2023
c66a921
multiverse helpers: relax errors check for JRuby
fallwith Oct 24, 2023
a23b37b
multiverse: additional JRuby relaxation
fallwith Oct 25, 2023
d4abfae
JRuby: permit extras
fallwith Oct 26, 2023
1b98e99
Cleanup of duplicated constants from individual HTTP wrapper classes …
dinsley Oct 26, 2023
53a7834
Updated http_rb and net_http to use LHOST vs HOST
dinsley Oct 26, 2023
aa90eeb
Fix the consistency of Agent to agent across the project
dinsley Oct 27, 2023
3dd67bb
ignoring test cases: JRuby helper
fallwith Oct 27, 2023
6d23441
test: fix first_call_for usage
fallwith Oct 27, 2023
9d9ba5f
Merge pull request #2289 from newrelic/dev
kaylareopelle Oct 30, 2023
4f6c0cf
Merge pull request #2294 from dinsley/http-client-wrapper-constant-cl…
kaylareopelle Oct 31, 2023
9483116
Addressed feedback relating to missed documentation updates
dinsley Oct 31, 2023
e4324f7
Add tests for async_find_by_sql
hannahramadan Nov 1, 2023
219250d
Update newrelic_rpm.gemspec
washu Nov 1, 2023
1295db2
Rubocop autocorrections for v1.57.2
fallwith Nov 1, 2023
68fadc2
Merge pull request #2304 from washu/patch-1
fallwith Nov 1, 2023
e619b7e
Add version constraint
hannahramadan Nov 1, 2023
73cc973
if -> unless
hannahramadan Nov 1, 2023
cb72bb5
Merge pull request #2295 from dinsley/fix-agent-usage-consistency
kaylareopelle Nov 1, 2023
ae6893d
CONTRIBUTING.md - remove Slack workspace mention
fallwith Nov 1, 2023
7ef6e79
Merge pull request #2305 from newrelic/lycwgrzlevpvvwu-3826
fallwith Nov 1, 2023
3198efa
stop testing 8T with Ruby < 2.7
fallwith Nov 1, 2023
c4dc981
removes old deprecated newrelic_cmd bin and associated code, and rena…
dinsley Nov 2, 2023
8ea394e
8T: use older grpc gem version for Ruby 2.6
fallwith Nov 2, 2023
077f66a
8T: revert grpc version bump
fallwith Nov 2, 2023
b200e8d
Merge pull request #2306 from newrelic/8T278+
fallwith Nov 2, 2023
718d03e
Merge pull request #2307 from dinsley/rename-bin-newrelic-to-newrelic…
fallwith Nov 2, 2023
f5eb421
Few more async tests
hannahramadan Nov 2, 2023
ec8b62d
Lower threshold branch
hannahramadan Nov 3, 2023
c6e15ac
Merge pull request #2308 from newrelic/simplecov_threshold
hannahramadan Nov 3, 2023
bda5ca2
Merge branch 'dev' into find_by_sql_tests
hannahramadan Nov 3, 2023
075b5c2
Rename method
hannahramadan Nov 3, 2023
972bfd5
Merge pull request #2303 from newrelic/find_by_sql_tests
hannahramadan Nov 3, 2023
dfb5adf
JRuby 9.4.4.0 -> 9.4.5.0
fallwith Nov 8, 2023
9d2a075
Merge branch 'dev' into jruby9440
fallwith Nov 8, 2023
c43aaf0
CHANGELOG: remove dead links
fallwith Nov 10, 2023
4d1f6a7
Merge pull request #2314 from newrelic/CfQaPMp3dH4
fallwith Nov 10, 2023
1551068
latest async-http: require Ruby 2.7+ for now
fallwith Nov 10, 2023
06242fb
Merge pull request #2315 from newrelic/do_not_test_latest_async_http_…
fallwith Nov 10, 2023
bc159eb
JRuby CI: set JAVA_OPTS
fallwith Nov 13, 2023
0a5efb5
CI: test with Ruby 3.3.0-preview3
fallwith Nov 14, 2023
93e3e83
Merge pull request #2318 from newrelic/ruby330preview2
tannalynn Nov 14, 2023
d81121f
pin async-io to <1.37 on ruby <2.7
tannalynn Nov 15, 2023
0bbd74d
Merge pull request #2319 from newrelic/pin_asyncio_version
tannalynn Nov 15, 2023
a78ac44
Simplify CRuby GC.stat info fetching
fallwith Nov 17, 2023
46a8ca9
Merge pull request #2320 from newrelic/_why_and_zed_and_wayne
fallwith Nov 17, 2023
0ff6e60
avoid compiling gRPC with Ruby 3.3
fallwith Nov 18, 2023
b72ddb9
re-enable testing async-http with Ruby 2.5 & 2.6
fallwith Nov 18, 2023
16e766f
CI: relax 'exactly' to 'at least' for JRuby's sake
fallwith Nov 18, 2023
c4e6268
renamed MriVM toCRubyVM
haiderashfaq Nov 18, 2023
3a6b10e
Merge pull request #2327 from haiderashfaq/rename_mri_vm_to_c_ruby_vm
fallwith Nov 18, 2023
b260f13
Merge pull request #2326 from newrelic/nogrpcfor33
fallwith Nov 20, 2023
093c239
Merge pull request #2325 from newrelic/you_down_with_old_rubies_yeah_…
fallwith Nov 20, 2023
0c1ca75
JRuby: target Rails 7+ for base unit tests
fallwith Nov 20, 2023
7bcfbfa
JRuby compact WIP
fallwith Nov 20, 2023
1d7cc6e
JRuby WIP
fallwith Nov 20, 2023
9a6319a
use dup instead of a mutex
fallwith Nov 21, 2023
10c91a4
JRuby CI: re-enable multiverse tests
fallwith Nov 21, 2023
3cde380
Merge branch 'dev' into perform_all_later
hannahramadan Nov 21, 2023
e306aab
use retry for JRuby multiverse tests
fallwith Nov 21, 2023
bbe3a1e
use ubuntu 20 for JRuby CI
fallwith Nov 21, 2023
085e302
JRuby CI: run 'bundle exec' directly
fallwith Nov 22, 2023
3d5bee4
JRuby CI: individual suites
fallwith Nov 22, 2023
3aff9f6
JRuby CI: retry individual suites
fallwith Nov 22, 2023
9d2c735
JRUBY and JAVA opts
fallwith Nov 22, 2023
56a2374
JRuby CI: ubuntu 20, 4g
fallwith Nov 22, 2023
5d8025a
Test ActiveJob perform_all_later
hannahramadan Nov 22, 2023
987ec5c
Add more jobs to method test
hannahramadan Nov 22, 2023
7ed7d10
JRuby CI: use --dev
fallwith Nov 22, 2023
e4f2bba
Merge pull request #2330 from newrelic/perform_all_later
hannahramadan Nov 22, 2023
3591276
CI JRuby: Ubuntu 22
fallwith Nov 22, 2023
ac9c6a4
CI JRuby: temporarily disable retries
fallwith Nov 22, 2023
404f85e
CI JRuby: drop JRuby version
fallwith Nov 22, 2023
a84f7f8
JRuby CI: serviceless
fallwith Nov 23, 2023
a2cf64b
JRuby CI: bump to v9.4.5.0
fallwith Nov 23, 2023
238a281
JRuby CI: more service removal
fallwith Nov 23, 2023
ec4336a
Merge branch 'dev' into jruby9440
fallwith Nov 23, 2023
3015db8
remove unnecessary :: prefix
fallwith Nov 23, 2023
2f04619
remove retry_command
fallwith Nov 23, 2023
da4b4e4
async-http: use suite_condition to skip JRuby
fallwith Nov 27, 2023
43978ef
Merge pull request #2282 from newrelic/jruby9440
fallwith Nov 27, 2023
cea3eb0
Add Docker cgroups v2 tests to cross agent tests
kaylareopelle Nov 28, 2023
45bc958
Update test/fixtures/cross_agent_tests/README.md
kaylareopelle Nov 28, 2023
1c2e0ee
Merge pull request #2334 from newrelic/update_cross_agent_tests
kaylareopelle Nov 28, 2023
dab5775
don't log the license key even in debug/audit
fallwith Nov 30, 2023
389ccd6
additional work to not log the license key
fallwith Dec 1, 2023
681ccc5
new_relic_service: don't waste a variable
fallwith Dec 1, 2023
2bbd5e9
Merge pull request #2339 from newrelic/plub
fallwith Dec 1, 2023
f4f1da1
replaced asterisk string literal occurrences with constant
haiderashfaq Dec 2, 2023
8d177f3
replaced asterisk string literal occurrences with constant
haiderashfaq Dec 3, 2023
713200b
Merge pull request #2344 from haiderashfaq/replace_asterisk_string_li…
fallwith Dec 4, 2023
baec21e
Exclude the js_agent_loader JS from logs/connect
fallwith Dec 12, 2023
6f5e4f4
Merge pull request #2359 from newrelic/exclude_js_agent_loader
fallwith Dec 12, 2023
2b4a767
Remove 'Update system configuration page' step
kaylareopelle Dec 12, 2023
b59d82a
Merge pull request #2361 from newrelic/remove-agent-api-updates
kaylareopelle Dec 12, 2023
77c2b89
Test Ruby 3.3.0-rc1
kaylareopelle Dec 18, 2023
2a37525
Update setup-ruby SHA
kaylareopelle Dec 18, 2023
d8048bf
Update ruby/setup-ruby to v1.162.0
kaylareopelle Dec 18, 2023
ebc74b5
Add Falcon as recognized server
Dec 19, 2023
50899c5
Merge pull request #2370 from newrelic/test-3-3-0-rc-1
kaylareopelle Dec 20, 2023
9f6d983
Merge pull request #2372 from newrelic/update-setup-ruby
tannalynn Dec 20, 2023
9321b89
Update DOCKER.md
kaylareopelle Dec 20, 2023
ea16b45
Update config doc opening
kaylareopelle Dec 20, 2023
1bafa17
Use root path, "/" to get cluster_name
kaylareopelle Dec 20, 2023
7c770dc
Remove dependency on base64
Earlopain Dec 22, 2023
3791ee7
Add CHANGELOG entry
kaylareopelle Dec 22, 2023
c71c777
Merge pull request #2375 from newrelic/update-docker-instructions
kaylareopelle Dec 22, 2023
934b0a2
Update lib/tasks/helpers/config.html.erb
kaylareopelle Dec 22, 2023
319a517
Merge pull request #2378 from Earlopain/base64-dep
tannalynn Dec 22, 2023
0014784
rails edge can only run on ruby 3.1 and above
tannalynn Jan 2, 2024
75223bc
Merge pull request #2377 from newrelic/test_root_for_cluster_name
kaylareopelle Jan 2, 2024
7250fe8
Merge pull request #2376 from newrelic/config_doc_updates
kaylareopelle Jan 2, 2024
7348f6e
multiverse for rails edge failures
tannalynn Jan 2, 2024
20c2151
Merge pull request #2380 from newrelic/rails_edge_only_3_1_plus
tannalynn Jan 2, 2024
90be0c8
bump ruby version to 3.3.0
tannalynn Jan 2, 2024
316c85e
Update .github/workflows/ci.yml
tannalynn Jan 2, 2024
bc25a9e
fix missed version
tannalynn Jan 2, 2024
c5502d5
Merge branch 'bump_ruby_version' of github.com:newrelic/newrelic-ruby…
tannalynn Jan 2, 2024
b2d1c99
Merge pull request #2381 from newrelic/bump_ruby_version
tannalynn Jan 2, 2024
a61d084
Add changelog entry for base64 PR
kaylareopelle Jan 2, 2024
4f41d61
Update CHANGELOG.md
kaylareopelle Jan 2, 2024
ac8e70d
Add Falcon as a recognized webserver
Jan 3, 2024
b98e5d5
Lower simplecov threshold
Jan 3, 2024
ec352f2
Merge pull request #2385 from newrelic/simplecov_threshold
hannahramadan Jan 3, 2024
1abd790
Merge pull request #2382 from newrelic/base64-changelog-entry
kaylareopelle Jan 3, 2024
f0af57e
Merge branch 'dev' into falcon_instrumentation
Jan 3, 2024
4899dfd
Add CHANGELOG
hannahramadan Jan 4, 2024
5e2ff03
Code review improvment
hannahramadan Jan 4, 2024
01befa0
Merge pull request #2383 from newrelic/falcon_instrumentation
hannahramadan Jan 4, 2024
52ec362
dont create spans for ruby/thread and ruby/fiber
tannalynn Jan 5, 2024
4672266
add changelog entry
tannalynn Jan 5, 2024
ba8ec9d
Update lib/new_relic/agent/tracer.rb
tannalynn Jan 6, 2024
f519cc0
refactor(local_env): update methods
fransan6 Jan 7, 2024
ce95239
Merge pull request #2390 from fransan6/refactor-local-env-methods
fallwith Jan 8, 2024
318683c
ViewComponent base instrumentation
Dec 14, 2023
b101b88
Code review edits
Dec 18, 2023
427ad20
Config update
Dec 18, 2023
d57e3e9
ViewComponent tests
Dec 22, 2023
d746f68
Apply suggestions from code review
hannahramadan Jan 3, 2024
732d23f
Add CHANGELOG
hannahramadan Jan 4, 2024
d115441
test version change
hannahramadan Jan 5, 2024
70c3c77
Add yield
hannahramadan Jan 5, 2024
a0e188c
Update tests and version test
hannahramadan Jan 8, 2024
b95e861
Merge pull request #2389 from newrelic/remove_thread_fiber_spans
tannalynn Jan 8, 2024
76d431d
dont install when traces newrelic defined
tannalynn Jan 8, 2024
5ebc4ef
Merge branch 'dev' into view_component
tannalynn Jan 8, 2024
38199be
Merge pull request #2367 from newrelic/view_component
tannalynn Jan 8, 2024
4266f65
bump version
newrelic-ruby-agent-bot Jan 8, 2024
13243df
Merge pull request #2392 from newrelic/prerelease_updates_9.7.0-pre
tannalynn Jan 8, 2024
3b699da
add comment
tannalynn Jan 11, 2024
fd98f88
Merge pull request #2391 from newrelic/dont_install_async_instrumenta…
tannalynn Jan 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading