Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
223 commits
Select commit Hold shift + click to select a range
a28ed9d
wip
tannalynn Apr 24, 2025
8a51c9e
check ecs
tannalynn Apr 24, 2025
3e120e6
Create New Relic span as child of OTel span
kaylareopelle Apr 22, 2025
c349be3
Update desc spacing to match docs-eng changes
kaylareopelle Apr 30, 2025
6784718
Update config doc spacing
kaylareopelle Apr 30, 2025
39f069c
Merge branch 'update-default-source-spacing' of github.com:newrelic/n…
kaylareopelle Apr 30, 2025
0f0c846
Bump softprops/action-gh-release from 2.2.1 to 2.2.2
dependabot[bot] May 1, 2025
f2b1d81
Bump ruby/setup-ruby from 1.229.0 to 1.237.0
dependabot[bot] May 1, 2025
da8a4b4
Bump actions/download-artifact from 4.2.1 to 4.3.0
dependabot[bot] May 1, 2025
ec7cdfe
Update spacing in default source to match upstream
kaylareopelle May 1, 2025
4f6f260
Merge pull request #3163 from newrelic/update-default-source-spacing
kaylareopelle May 1, 2025
f89ce44
Limit psych installs for Ruby 2.5 and 2.6
kaylareopelle May 1, 2025
b2d28be
Merge pull request #3164 from newrelic/dependabot/github_actions/soft…
kaylareopelle May 1, 2025
b51f0da
Bump Ruby 3.3 and 3.4 patch versions
kaylareopelle May 1, 2025
fb882e3
Merge pull request #3165 from newrelic/dependabot/github_actions/ruby…
kaylareopelle May 1, 2025
4013e5a
Merge pull request #3166 from newrelic/dependabot/github_actions/acti…
kaylareopelle May 1, 2025
54d6abf
Get lambda release version from rake
kaylareopelle May 1, 2025
a0bda57
Add workflow_dispatch to lambda_release
kaylareopelle May 1, 2025
8006b49
Merge pull request #3168 from newrelic/psych-config-file-loading-test
kaylareopelle May 2, 2025
fc70ed8
Merge pull request #3171 from newrelic/fix-lambda-release
kaylareopelle May 2, 2025
88ff3a9
fixes for ecs
tannalynn May 2, 2025
653723d
Set async version for old async-http
kaylareopelle May 5, 2025
85c3dab
Merge pull request #3173 from newrelic/async-version-lock
kaylareopelle May 5, 2025
26d161e
Add async_gem_version condition for Ruby 3.1+
kaylareopelle May 5, 2025
d527aaa
added tests
tannalynn May 5, 2025
f135f10
Merge branch 'dev' into ecs_fargate
tannalynn May 5, 2025
aa6e632
Add async_gem_version condition for Ruby 3.1+
kaylareopelle May 5, 2025
837661e
Merge branch 'async-version-lock' of github.com:newrelic/newrelic-rub…
kaylareopelle May 5, 2025
4d8c3bd
Limit async-http old version testing to 3.3
kaylareopelle May 5, 2025
91e7843
make warnings go away
tannalynn May 5, 2025
252039b
Merge pull request #3155 from newrelic/hybrid-agent-nr-span-as-otel-c…
kaylareopelle May 5, 2025
04e51a7
Merge branch 'dev' into async-version-lock
kaylareopelle May 5, 2025
27b9e87
Lock 0.59.0 testing to Ruby 3.0 - 2.5
kaylareopelle May 5, 2025
d3ac38b
Merge pull request #3174 from newrelic/async-version-lock
kaylareopelle May 6, 2025
382f3b0
remove commented code
tannalynn May 6, 2025
164f516
Merge branch 'dev' into ecs_fargate
tannalynn May 6, 2025
5426271
Disable the URL checker cron
kaylareopelle May 6, 2025
2aa3952
Merge pull request #3175 from newrelic/disable-url-checker
kaylareopelle May 6, 2025
cf4fd3c
Merge branch 'dev' into ecs_fargate
tannalynn May 12, 2025
45eab25
add changelog entry
tannalynn May 12, 2025
57f329f
Update CHANGELOG.md
tannalynn May 13, 2025
37245aa
Enable "Starting transaction tests" in hybrid agent CAT
kaylareopelle Apr 30, 2025
ba8371a
add version_satisfied? method
kekke-n May 16, 2025
39abaaa
use assert method
kekke-n May 16, 2025
c6ebac8
add false test case
kekke-n May 16, 2025
a19f26d
Merge pull request #3172 from newrelic/ecs_fargate
tannalynn May 16, 2025
e557ac7
Update json_marshaller.rb
odaysec May 17, 2025
3d109e8
Update gem_notifier.rb
odaysec May 17, 2025
0845168
Consolidate "Unknown" constant values
tsubasa1122 May 19, 2025
15f5e2d
don't test httpx150 until we've investigated failures
tannalynn May 19, 2025
e4754f5
Merge pull request #3186 from newrelic/httpx_150
tannalynn May 19, 2025
284ec87
Merge pull request #3185 from tsubasa1122/2368
hannahramadan May 20, 2025
c997083
Tracer refactor
hannahramadan May 21, 2025
4b0efe7
Refactor methods for readability
kaylareopelle May 22, 2025
6971fc5
Add transaction patch tests w/flakiness
kaylareopelle May 23, 2025
cc0bc32
Disable transaction patch tests for now
kaylareopelle May 27, 2025
a5161fd
Enable injecting outbound trace context tests
kaylareopelle May 30, 2025
d7a8552
Fix Brewfile source
emmanuel-ferdman May 31, 2025
db226af
Bump ruby/setup-ruby from 1.237.0 to 1.244.0
dependabot[bot] Jun 1, 2025
3a43514
Add stub for txn.sampled? to be true in patch test
kaylareopelle Jun 2, 2025
517cd13
Rubocop - Style/StringLiterals
kaylareopelle Jun 2, 2025
91ba59a
Use 3.4.4 for testing
kaylareopelle Jun 2, 2025
a3b316e
Merge pull request #3192 from newrelic/dependabot/github_actions/ruby…
kaylareopelle Jun 2, 2025
88287d1
Merge pull request #3180 from newrelic/hybrid-agent-starting-transact…
kaylareopelle Jun 2, 2025
5d2bf65
Merge branch 'dev' into props
kaylareopelle Jun 2, 2025
9b82300
Update TODOs and comments
kaylareopelle Jun 2, 2025
f4779db
Remove unncessary rack gem from Envfile
kaylareopelle Jun 2, 2025
27644d6
Clean up propagator and add test
kaylareopelle Jun 2, 2025
809ec9c
Rubocop
kaylareopelle Jun 2, 2025
6078a30
Rubocop
kaylareopelle Jun 2, 2025
508236b
Update license header on TracePropagator
kaylareopelle Jun 2, 2025
9155fdc
refactor: replace version comparison with NewRelic::Helper.version_sa…
kekke-n May 21, 2025
42557d9
Merge pull request #3189 from newrelic/props
kaylareopelle Jun 3, 2025
4053034
Merge pull request #3191 from emmanuel-ferdman/dev
kaylareopelle Jun 3, 2025
a8eb9bc
Add changelog entry for Brewfile community PR
kaylareopelle Jun 3, 2025
40ec4b4
Merge pull request #3194 from newrelic/brewfile-changelog
kaylareopelle Jun 3, 2025
fed0778
Update lib/new_relic/agent/new_relic_service/json_marshaller.rb
odaysec Jun 4, 2025
b15eb48
Update .github/workflows/scripts/slack_notifications/gem_notifier.rb
odaysec Jun 4, 2025
72fb65e
Update .github/workflows/scripts/slack_notifications/gem_notifier.rb
odaysec Jun 4, 2025
e520587
Merge pull request #3183 from odaysec/patch-1
tannalynn Jun 4, 2025
6de8ffe
Update .github/workflows/scripts/slack_notifications/gem_notifier.rb
tannalynn Jun 4, 2025
f9e9d20
Merge pull request #3184 from odaysec/patch-2
tannalynn Jun 4, 2025
0a16bae
Use new method name
hannahramadan Jun 5, 2025
6ea1b4b
Merge pull request #3198 from newrelic/gem_notifier_update_method
hannahramadan Jun 5, 2025
06eb98a
Revert changes due to failing multiverse tests
kekke-n Jun 6, 2025
7dc91b0
change how we access response
tannalynn Jun 6, 2025
a851234
add changelog entry
tannalynn Jun 6, 2025
b41ba0b
Merge pull request #3203 from newrelic/httpx150
tannalynn Jun 6, 2025
a2cca8d
add testing for elasticsearch 9
tannalynn Jun 9, 2025
180e34f
add comment for elasticsearch 9 instructions
tannalynn Jun 9, 2025
bfd75b4
8 is the exact same as 9, so don't run 8 on CI anymore to prevent doc…
tannalynn Jun 9, 2025
122fdba
put elasticsearch in own group bc memory
tannalynn Jun 9, 2025
f3d4635
fix simplecov needs list
tannalynn Jun 9, 2025
3fa2660
fix naming
tannalynn Jun 9, 2025
2aa4eb9
add comment
tannalynn Jun 9, 2025
cb9c34c
oops
tannalynn Jun 9, 2025
e788f65
oops
tannalynn Jun 9, 2025
bd6c71b
typing is hard
tannalynn Jun 9, 2025
d0ca77e
elasticsearch 9 only on 2.6+
tannalynn Jun 9, 2025
246a5d7
Add support for extracting context from OpenTelemetry propagators
kaylareopelle May 30, 2025
5743972
Rename add_remote_context_to methods
kaylareopelle Jun 6, 2025
e79e0ef
Refactor to include tracestate
kaylareopelle Jun 6, 2025
8373471
Spacing and comment changes
kaylareopelle Jun 6, 2025
da43ddd
Apply tracestate, trace flags to OTel transaction
kaylareopelle Jun 9, 2025
0006c2e
Revert changes due to failing multiverse tests
kekke-n Jun 11, 2025
ae24118
Merge pull request #3205 from newrelic/elasticsearch9_ci_testing
tannalynn Jun 11, 2025
c1b3433
Revert changes due to failing multiverse tests
kekke-n Jun 11, 2025
5398c03
Improve verify_span_output helper
kaylareopelle Jun 11, 2025
e6c84a1
Update hybrid_agent.json fixture
kaylareopelle Jun 11, 2025
d8f51b1
Rubocop
kaylareopelle Jun 11, 2025
c20b72d
Remove unncessary safe nav operator
kaylareopelle Jun 11, 2025
eb826ef
Merge pull request #3206 from newrelic/span-output-fix
kaylareopelle Jun 11, 2025
5a51c6c
Add support for extracting context from OpenTelemetry propagators
kaylareopelle May 30, 2025
6a9f04e
Rename add_remote_context_to methods
kaylareopelle Jun 6, 2025
42ec128
Refactor to include tracestate
kaylareopelle Jun 6, 2025
6fd1892
Spacing and comment changes
kaylareopelle Jun 6, 2025
febf854
Apply tracestate, trace flags to OTel transaction
kaylareopelle Jun 9, 2025
8eb2cc5
Add attributes to spans
hannahramadan Jun 11, 2025
d74f4de
Add trace propagator tests
kaylareopelle Jun 11, 2025
12c717c
Fix tracestate
kaylareopelle Jun 12, 2025
b8af3a0
Undo attributes hash changes
hannahramadan Jun 12, 2025
b6fa9c3
add errors to hybrid agent
tannalynn Jun 12, 2025
5f652c7
Merge pull request #3209 from newrelic/fresh_hybrid_errors
tannalynn Jun 12, 2025
edd4aa1
Add tests
hannahramadan Jun 12, 2025
71a70cd
Merge branch 'dev' into ha_add_custom_attributes
hannahramadan Jun 12, 2025
8953eea
Appease rubocop
hannahramadan Jun 12, 2025
a892df2
Refactor trace state assignment and tests
kaylareopelle Jun 12, 2025
392993a
Update tests to sample txns
hannahramadan Jun 12, 2025
9a18329
Add tests for parsing tracestate
kaylareopelle Jun 13, 2025
12a1760
Merge pull request #3207 from newrelic/ha_add_custom_attributes
kaylareopelle Jun 13, 2025
b5d855c
Uncomment test
kaylareopelle Jun 13, 2025
3d21710
Merge branch 'dev' into inbound-dt-tests
kaylareopelle Jun 13, 2025
fc1ca5d
Merge branch 'inbound-dt-tests' of github.com:newrelic/newrelic-ruby-…
kaylareopelle Jun 13, 2025
9a86cbd
Rubocop
kaylareopelle Jun 13, 2025
4473954
Revert changes due to failing multiverse tests
kekke-n Jun 15, 2025
93893ab
attempt 1 of composite multiverse
tannalynn Jun 16, 2025
d4ee044
add shell
tannalynn Jun 16, 2025
002be54
comment out rubocop for now
tannalynn Jun 16, 2025
d3366a6
wip
tannalynn Jun 16, 2025
271629f
add logger ot bundler script
tannalynn Jun 16, 2025
41e9eac
add failing test to see how it'll look
tannalynn Jun 16, 2025
9689207
caaaan we move it
tannalynn Jun 16, 2025
89a785c
we can not move it
tannalynn Jun 16, 2025
e3b587b
remove test test
tannalynn Jun 16, 2025
b27ba17
try all multiverse
tannalynn Jun 16, 2025
20766ed
dont need it rn
tannalynn Jun 16, 2025
813dd86
add missing shell
tannalynn Jun 16, 2025
d7d7b96
add more gems to bundler setup
tannalynn Jun 16, 2025
0105b0a
set up schedule ci
tannalynn Jun 16, 2025
d9b3378
no more gem installs
tannalynn Jun 16, 2025
4c10e33
its mad
tannalynn Jun 16, 2025
ce819d6
Revert changes due to failing multiverse tests
kekke-n Jun 17, 2025
06326b6
update setup bundler
tannalynn Jun 17, 2025
1243ec4
add unit tests
tannalynn Jun 17, 2025
8b38ba5
forgot shell on bundler
tannalynn Jun 17, 2025
ba202cd
securerandom 0.4.1
tannalynn Jun 17, 2025
e585802
fix matching
tannalynn Jun 17, 2025
6f300e6
setupbundler
tannalynn Jun 17, 2025
370ca07
put simplecov back
tannalynn Jun 17, 2025
d39233b
setup bundler
tannalynn Jun 17, 2025
bdcf052
more gem versions
tannalynn Jun 17, 2025
7820eb9
add gem
tannalynn Jun 17, 2025
ed7b4a4
digest
tannalynn Jun 17, 2025
887a6cb
Merge pull request #3195 from newrelic/inbound-dt-tests
kaylareopelle Jun 17, 2025
73cdbde
retry twice
tannalynn Jun 18, 2025
1d43732
add comment
tannalynn Jun 18, 2025
b0f6878
remove services
tannalynn Jun 18, 2025
0ceb076
put postgres back
tannalynn Jun 18, 2025
c2128ea
step name fix
tannalynn Jun 18, 2025
add9ab8
Merge pull request #3210 from newrelic/composite_ci_actions
tannalynn Jun 18, 2025
bf5e861
Merge pull request #3182 from kekke-n/version-comparison-helper-method
kaylareopelle Jun 20, 2025
09d5b15
Add changelog for version_satisfied?
kaylareopelle Jun 20, 2025
8e44fb9
Merge pull request #3212 from newrelic/add-changelog-for-version-sati…
kaylareopelle Jun 23, 2025
f890c88
remove unnecessary cat configs
tannalynn Jun 25, 2025
5b11785
removed weird dt settings
tannalynn Jun 25, 2025
79ca34c
Merge pull request #3215 from newrelic/cat_http_tests
tannalynn Jun 26, 2025
d770225
add class scope to yard doc
tannalynn Jun 27, 2025
d7f51a7
Bump softprops/action-gh-release from 2.2.2 to 2.3.2
dependabot[bot] Jul 1, 2025
93cbd67
Bump ruby/setup-ruby from 1.244.0 to 1.245.0
dependabot[bot] Jul 1, 2025
2493142
Merge pull request #3216 from newrelic/class_method_yard
tannalynn Jul 1, 2025
f2da986
Update CODEOWNERS
chynesNR Jul 8, 2025
2ea1bdf
Update CODEOWNERS
chynesNR Jul 8, 2025
7443f09
add code.stacktrace attribute
tannalynn Jul 9, 2025
3df9d65
backtrace only added to params if over threshold
tannalynn Jul 9, 2025
0511795
add changelog entry
tannalynn Jul 9, 2025
3e25e0e
we dont need it
tannalynn Jul 9, 2025
9cca3c6
Log both the configs taken in by the source AND the result of the con…
tannalynn Jul 9, 2025
8499a37
log env source as well
tannalynn Jul 9, 2025
b084cb1
dup the hash for in case frozen
tannalynn Jul 9, 2025
ebce229
add changelog entry
tannalynn Jul 9, 2025
90111d5
make config tests match new logging
tannalynn Jul 9, 2025
0cd6467
Merge pull request #3220 from newrelic/datastore_stacktrace
tannalynn Jul 10, 2025
9f0bb35
update composite actions
tannalynn Jul 14, 2025
b08d7fe
Merge pull request #3217 from newrelic/dependabot/github_actions/soft…
tannalynn Jul 14, 2025
3696b77
Merge pull request #3218 from newrelic/dependabot/github_actions/ruby…
tannalynn Jul 14, 2025
876065e
Merge pull request #3221 from newrelic/improving_debug_logs
tannalynn Jul 14, 2025
cd5bf0b
Update gem notifier slack messaging
hannahramadan Jul 14, 2025
03d9c39
Add CI notifications for JRuby
hannahramadan Jul 15, 2025
d27e392
Add read permissions (security)
hannahramadan Jul 15, 2025
c0777cb
Merge pull request #3222 from newrelic/gem_notifier_fix
hannahramadan Jul 15, 2025
4ead6a7
Merge pull request #3224 from newrelic/ci_slack_udpates
hannahramadan Jul 16, 2025
a9bbdca
Edit test regex
hannahramadan Jul 16, 2025
880d49b
Merge pull request #3225 from newrelic/jruby_hybrid_agent_test_fix
hannahramadan Jul 16, 2025
0a31ddc
Replace all calls to JSON.load with JSON.parse
kaylareopelle Jul 21, 2025
0378ca3
Force ruby platform for rdkafka tests
kaylareopelle Jul 21, 2025
72fc854
Force platform on Ruby 3.1+
kaylareopelle Jul 21, 2025
b8317ef
Merge pull request #3229 from newrelic/rdkafka-platform
kaylareopelle Jul 21, 2025
b4dac56
Merge pull request #3230 from newrelic/parse
kaylareopelle Jul 22, 2025
fb5b4ae
bump version
newrelic-ruby-agent-bot Jul 24, 2025
04b4704
Update newrelic.yml generator
hannahramadan Jul 24, 2025
d5dc8dd
Add missing community entries
kaylareopelle Jul 24, 2025
7919029
Exempt bot from community label
kaylareopelle Jul 24, 2025
186ad7d
Use \t chars in config descriptions
kaylareopelle Jul 25, 2025
abac05a
Use delete! instead of gsub!
kaylareopelle Jul 25, 2025
9ecfdfe
:tea: :heart:
kaylareopelle Jul 25, 2025
388f057
Merge pull request #3235 from newrelic/yml_fix_tabs
kaylareopelle Jul 25, 2025
6b83d97
Merge branch 'dev' into prerelease_updates_9.20.0-pre
kaylareopelle Jul 25, 2025
406b31d
Update newrelic.yml to remove \t chars
kaylareopelle Jul 25, 2025
9ff6050
Merge pull request #3238 from newrelic/exempt-bot-from-community-label
kaylareopelle Jul 25, 2025
9375b93
Merge pull request #3239 from newrelic/pather-panchali
kaylareopelle Jul 25, 2025
3da4203
Merge pull request #3232 from newrelic/prerelease_updates_9.20.0-pre
kaylareopelle Jul 25, 2025
7fc6758
Add unknown constant changelog entry
kaylareopelle Jul 25, 2025
0a677f4
Merge pull request #3241 from newrelic/add-unknown-changelog-entry
kaylareopelle Jul 28, 2025
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
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Ruby agent code owners:
* @fallwith @hannahramadan @kaylareopelle @tannalynn
* @newrelic/RUBY
74 changes: 74 additions & 0 deletions .github/actions/run_multiverse/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: 'Run Multiverse'
description: 'run multiverse group tests'
inputs:
ruby-version:
description: 'What ruby version to install'
required: true
group:
description: 'What multiverse group to run'
required: true
pr-ci:
description: 'If this is run on PR'
required: true
default: true

runs:
using: "composite"
steps:
# - curl is needed for Curb
# - xslt is needed for older Nokogiris, RUBY_VERSION < 2.5
# - sasl is needed for memcached
- name: Install OS packages
shell: bash
run: sudo apt-get update; sudo apt-get install -y --no-install-recommends libcurl4-nss-dev libsasl2-dev libxslt1-dev

- name: Install Ruby ${{ inputs.ruby-version }}
uses: ruby/setup-ruby@a4effe49ee8ee5b8b5091268c473a4628afb5651 # tag v1.245.0
with:
ruby-version: ${{ inputs.ruby-version }}

- name: Prepare mysql for tests
uses: ./.github/actions/setup_mysql_tests
with:
ruby-version: ${{ inputs.ruby-version }}

- name: Setup bundler
shell: bash
run: ./.github/workflows/scripts/setup_bundler
env:
RUBY_VERSION: ${{ inputs.ruby-version }}

- name: Run Multiverse Tests
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # tag v3.0.2
with:
timeout_minutes: 60
max_attempts: 2
command: bundle exec rake test:multiverse[group="${{ inputs.group }}"]
env:
VERBOSE_TEST_OUTPUT: true
SERIALIZE: 1
COVERAGE: true
CI_FOR_PR: ${{ inputs.pr-ci}}
POSTGRES_USERNAME: postgres
POSTGRES_PASSWORD: password
MYSQL_PASSWORD: root
DB_PASSWORD: root
DB_PORT: ${{ job.services.mysql.ports[3306] }}
MYSQL_PORT: ${{ job.services.mysql.ports[3306] }}
MYSQL_HOST: 127.0.0.1

- name: Annotate errors
if: ${{ failure() }}
uses: ./.github/actions/annotate

- name: Save coverage results
if: ${{ inputs.pr-ci }} == 'true'
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # tag v4.6.2
with:
name: coverage-report-multiverse-${{ inputs.ruby-version }}-${{ inputs.group }}
path: lib/coverage_*/.resultset.json
include-hidden-files: true
retention-days: 2



101 changes: 101 additions & 0 deletions .github/actions/run_unit_tests/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
name: 'Run Unit tests'
description: 'run unit and env tests'
inputs:
ruby-version:
description: 'What ruby version to install'
required: true
pr-ci:
description: 'If this is run on PR'
required: true
default: true

runs:
using: "composite"
steps:
# - curl is needed for Curb
# - xslt is needed for older Nokogiris, RUBY_VERSION < 2.5
# - sasl is needed for memcached
- name: Install OS packages
shell: bash
run: sudo apt-get update; sudo apt-get install -y --no-install-recommends libcurl4-nss-dev libsasl2-dev libxslt1-dev

- name: Install Ruby ${{ inputs.ruby-version }}
uses: ruby/setup-ruby@a4effe49ee8ee5b8b5091268c473a4628afb5651 # tag v1.245.0
with:
ruby-version: ${{ inputs.ruby-version }}

- name: Set up mini-envs for ruby version
uses: ./.github/actions/variable-mapper
with:
key: ${{ inputs.ruby-version }}
map: |
{
"2.4.10": {
"rails": "norails,rails52,rails51,rails50,rails42,rails41,rails40"
},
"2.5.9": {
"rails": "norails,rails61,rails60,rails52,rails51,rails50,rails42"
},
"2.6.10": {
"rails": "norails,rails61,rails60,rails52,rails51,rails50,rails42"
},
"2.7.8": {
"rails": "norails,rails61,rails60,rails70,rails71"
},
"3.0.7": {
"rails": "norails,rails61,rails60,rails70,rails71"
},
"3.1.7": {
"rails": "norails,rails61,rails70,rails71,rails72"
},
"3.2.8": {
"rails": "norails,rails61,rails70,rails71,rails72,rails80,railsedge"
},
"3.3.8": {
"rails": "norails,rails61,rails70,rails71,rails72,rails80,railsedge"
},
"3.4.4": {
"rails": "norails,rails61,rails70,rails71,rails72,rails80,railsedge"
}
}


- name: Prepare mysql for tests
uses: ./.github/actions/setup_mysql_tests
with:
ruby-version: ${{ inputs.ruby-version }}

- name: Setup bundler
shell: bash
run: ./.github/workflows/scripts/setup_bundler
env:
RUBY_VERSION: ${{ matrix.ruby-version }}
RAILS_VERSION: ${{ env.rails }}
CI_FOR_PR: true

- name: Run Unit Tests
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # tag v3.0.2
with:
timeout_minutes: 30
max_attempts: 2
command: bundle exec rake test:env[${{ env.rails }}]
env:
DB_PORT: ${{ job.services.mysql.ports[3306] }}
VERBOSE_TEST_OUTPUT: true
COVERAGE: true
CI_FOR_PR: ${{ inputs.pr-ci}}

- name: Save coverage results
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # tag v4.6.2
with:
name: coverage-report-unit-tests-${{ inputs.ruby-version }}-${{ env.rails }}
path: lib/coverage_*/.resultset.json
include-hidden-files: true








40 changes: 40 additions & 0 deletions .github/actions/setup_mysql_tests/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: 'Set up mysql'
description: 'set up and cache mysql for tests'
inputs:
ruby-version:
description: 'What ruby version to install'
required: true

runs:
using: "composite"
steps:
# This allows the cache in the following step to be able to write files to the directory needed for mysql
- if: inputs.ruby-version == '2.4.10'
name: Prepare mysql directory
shell: bash
run: sudo chown -R $USER /usr/local

- if: inputs.ruby-version == '2.4.10'
name: Cache mysql55
id: mysql55-cache
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # tag v4.2.3
with:
path: /usr/local/mysql55
key: mysql55-install

- if: steps.mysql55-cache.outputs.cache-hit != 'true' && inputs.ruby-version == '2.4.10'
name: Install mysql55
shell: bash
run: sudo ./test/script/install_mysql55

- name: Wait for/Check Mysql
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # tag v3.0.2
with:
timeout_minutes: 1
max_attempts: 20
command: |
mysql --host 127.0.0.1 --port ${{ job.services.mysql.ports[3306] }} -uroot -proot -e "SHOW GRANTS FOR 'root'@'localhost'";
if [[ $? != 0 ]]; then
sleep 1;
fi

Loading
Loading