-
Notifications
You must be signed in to change notification settings - Fork 375
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
DEBUG-2334 upgrade steep & rbs #3950
Conversation
b21fe9e
to
530869c
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3950 +/- ##
=======================================
Coverage 97.85% 97.85%
=======================================
Files 1303 1303
Lines 78139 78139
Branches 3894 3894
=======================================
+ Hits 76461 76464 +3
+ Misses 1678 1675 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 LGTM. The appsec signature change doesn't look correct, but it seems OK to me to merge this PR and then drop a note to the appsec folks to decide what to do with it.
def self.enabled: -> bool | ||
def enabled: -> bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't look correct 🤔. Including this module in a class does not seem to cause a class to have a #enabled
method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a case of soutaro/steep#1232.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 LGTM. The appsec signature change doesn't look correct, but it seems OK to me to merge this PR and then drop a note to the appsec folks to decide what to do with it.
Thinking about the appsec settings situation and soutaro/steep#1232, my impression is that steep would not produce anything useful for that entire file anyway given it has a totally wrong understanding of what |
3fafd5b
to
9ab6ac6
Compare
* master: DEBUG-2334 upgrade steep & rbs (DataDog#3950) [🤖] Update Latest Dependency: https://github.com/DataDog/dd-trace-rb/actions/runs/10976621387
What does this PR do?
This PR upgrades steep and rbs to current versions.
For rbs, current version is somehow a 3.6 preview - I constrained it to a 3.5 release instead of using the preview. Can upgrade to the preview if this is more desirable.
Motivation:
To type check the code tracking component (#3942) I need type definitions for RubyVM::InstructionSequence which I added in ruby/rbs#2027 to upstream. When I tried to use master of rbs in dd-trace-rb I received several type check errors. This PR repairs the errors to permit usage of current steep & rbs.
Additional Notes:
defined?
returns nil or a string, not a bool.!!
was added in several places to cast the return value to a boolean.self.enabled
toenabled
in appsec fixes the test suite but I don't know why it wasself.enabled
before.How to test the change?
Unsure? Have a question? Request a review!