-
Notifications
You must be signed in to change notification settings - Fork 397
Fix ruby warnings when accessing undefined instance variables #5178
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
Merged
+10
−2
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
This comment has been minimized.
This comment has been minimized.
vpellan
reviewed
Dec 22, 2025
marcotc
approved these changes
Dec 22, 2025
Member
|
I feel like we need a Cop for this. |
Contributor
Steep should be able to catch that but this file is ignored. |
vpellan
approved these changes
Dec 23, 2025
p-datadog
pushed a commit
that referenced
this pull request
Jan 5, 2026
* master: (129 commits) Transports: remove api_version (#5164) DEBUG-4548 Telemetry: send events in forked children + telemetry metrics reset after fork (#5159) Ignore "leaked" pipe file descriptors in JRuby, improve diagnostics (#5188) debug-4548 Increase number of iterations for flakiness (#5184) [🤖] Update System Tests: https://github.com/DataDog/dd-trace-rb/actions/runs/20684824141 [🤖] Update System Tests: https://github.com/DataDog/dd-trace-rb/actions/runs/20616292456 (#5190) downgrade ffi for ruby 4.0 & 2.5 (#5189) Fix ruby warnings when accessing undefined instance variables (#5178) DEBUG-3499 DI: fix accounting when intrumenting upon class definition, add instr… (#5168) DEBUG-3499 RC: add diagnostics for invalid values (#5167) DEBUG-4548 Core: fix worker shutdown race (#5176) Retry system-test build (#5181) Fix Baggage type check (#5182) [🤖] Update System Tests: https://github.com/DataDog/dd-trace-rb/actions/runs/20487829791 (#5183) [🤖] Update Latest Dependency: https://github.com/DataDog/dd-trace-rb/actions/runs/20401889084 (#5180) DEBUG-3499 DI: do not instrument when there is already an installed probe with the same id (#5169) DEBUG-3499 DI: rework RC interface (#5165) set DI test duration upper bound to 1000 seconds (#5161) add missing supported config default value [🤖] Update System Tests: https://github.com/DataDog/dd-trace-rb/actions/runs/20401907816 (#5179) ...
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.
What does this PR do?
Adds
defined(@foo)guards when accessing instance variables that are initialized lazilyMotivation:
Remove
ruby -wwarnings I am seeing in local test runsChange log entry
None
Additional Notes:
How to test the change?
Existing CI