-
Notifications
You must be signed in to change notification settings - Fork 607
Release 10.0.0 #3376
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
Draft
github-actions
wants to merge
312
commits into
main
Choose a base branch
from
dev
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Release 10.0.0 #3376
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…oyments Remove `newrelic deployments` and Capistrano support
Rename `bin/newrelic` to `bin/newrelic_rpm`
…c/newrelic-ruby-agent into rename_activejob_segment
Rename ActiveJob segments
Co-authored-by: Kayla Reopelle <[email protected]>
Co-authored-by: Kayla Reopelle <[email protected]>
Co-authored-by: Kayla Reopelle <[email protected]>
Remove Language Agent Security Policies (LASP)
….com/newrelic/newrelic-ruby-agent into record_custom_event_raise_on_invalid
…nvalid Validate `record_custom_event` type
Fix async-http CI failures
Contributor
Author
SimpleCov Report
|
## Summary Fixes test failure when running with Bundler 4.0+ by skipping a test that validates behavior for old Bundler versions that no longer applies. ## Problem The test `test_rubygems_specs_works_with_all_specs_when_installed_specs_is_absent` was failing with Bundler 4.0.3+ because: - Bundler 4.0 removed `Bundler.rubygems.all_specs` in favor of `Bundler.rubygems.installed_specs` - The test was attempting to simulate old Bundler behavior by stubbing `respond_to?` and then calling `all_specs` - Since `all_specs` no longer exists in Bundler 4.0+, this raises a `Bundler::RemovedError` ## Solution Added a skip condition to the test when running with Bundler 4.0+, as the scenario it tests (old Bundler without `installed_specs`) is no longer relevant for modern Bundler versions. The implementation code in `lib/new_relic/helper.rb` already handles this correctly by: 1. First checking if `installed_specs` is available (Bundler 2.5.12+) 2. Falling back to `all_specs` only for very old Bundler versions
This PR fixing warning when run test. ``` ❯ bundle exec rake /Users/ydah/newrelic-ruby-agent/test/new_relic/agent/configuration/default_source_test.rb:313: warning: assigned but unused variable - default /Users/ydah/newrelic-ruby-agent/test/new_relic/agent/configuration/sampler_config_validator_test.rb:46: warning: assigned but unused variable - config_value /Users/ydah/newrelic-ruby-agent/test/new_relic/agent/datastores_test.rb:188: warning: assigned but unused variable - elapsed /Users/ydah/newrelic-ruby-agent/test/new_relic/agent/transaction/distributed_tracing_test.rb:590: warning: assigned but unused variable - parent_priority /Users/ydah/newrelic-ruby-agent/test/new_relic/agent/transaction/distributed_tracing_test.rb:663: warning: assigned but unused variable - parent_sampled /Users/ydah/newrelic-ruby-agent/test/new_relic/dependency_detection_test.rb:477: warning: assigned but unused variable - execution_took_place /Users/ydah/newrelic-ruby-agent/test/new_relic/newrelicyml_test.rb:115: warning: assigned but unused variable - config_hash ```
1. Migrate to the plugin system in .rubocop.yml (replaced `require` with `plugins`). 2. Rename `Naming/PredicateName` to `Naming/PredicatePrefix`. 3. Remove redundant `Metrics/AbcSize` disable directives from: - lib/new_relic/agent/instrumentation/curb/chain.rb - lib/new_relic/agent/span_event_primitive.rb - lib/new_relic/agent/transaction.rb
Update CI to Ruby 4.0.0
Fix test compatibility with Bundler 4.0+ (all_specs removal)
Introduce version comparison helper method(s)
Fix warning when run test
Bump rubocop and related plugin versions
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Automated PR for 10.0.0 release