-
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
Deny rubygems-update
injection
#4108
Conversation
61a0bc7
to
bacd3fe
Compare
`rubygems-update` `setup.rb` re-execs itself when `RUBYOPT` is detected, which causes endless looping because injection adds it back immediately. See: https://github.com/rubygems/rubygems/blob/90c90addee4bda3130cf44f1321eebf162367d1b/setup.rb#L13-L20 Coverage is twofold: - Deny on `--disable-gems`: gems are required for ruby injector - Deny on `setup.rb`: This may be wide-catching but we don't want to instrument any of them anyway.
bacd3fe
to
20f2fa5
Compare
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.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4108 +/- ##
==========================================
- Coverage 97.77% 97.77% -0.01%
==========================================
Files 1350 1350
Lines 81062 81062
Branches 4085 4085
==========================================
- Hits 79259 79256 -3
- Misses 1803 1806 +3 ☔ View full report in Codecov by Sentry. |
BenchmarksBenchmark execution time: 2024-11-13 12:52:22 Comparing candidate commit 20f2fa5 in PR branch Found 1 performance improvements and 0 performance regressions! Performance is the same for 28 metrics, 2 unstable metrics. scenario:method instrumentation
|
What does this PR do?
Coverage is twofold:
--disable-gems
: gems are required for ruby injectorsetup.rb
: This may be wide-catching but we don't want to instrument any of them anyway.Motivation:
rubygems-update
setup.rb
re-execs itself whenRUBYOPT
is detected, which causes endless looping because injection adds it back immediately.See: https://github.com/rubygems/rubygems/blob/90c90addee4bda3130cf44f1321eebf162367d1b/setup.rb#L13-L20
Change log entry
Additional Notes:
JIRA
How to test the change?