-
Notifications
You must be signed in to change notification settings - Fork 373
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
ekump/upgrade to rubocop 1.50.0 #3147
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -255,9 +255,8 @@ def stack_frame_to_function_id(backtrace_location) | |
is_expected.to have(4).items | ||
|
||
# All but last are unique | ||
(0..-2).each do |i| | ||
3.times do |i| | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ivoanjo wanted to bring this to your attention. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh wow, thanks for spotting it! The good news is -- this test is only for the old profiler codepath, that is off by default and no customers should be using anymore. The new profiler has similar specs, but in different files, and doesn't have this bug as far as I can spot it. (The old profiler, along with this file are going to be deleted in Q4; I've mostly been finishing up a few other features before I come and remove all of this.) |
||
stack_sample = stack_samples[i] | ||
|
||
expect(sample[i].to_h).to eq( | ||
location_id: stack_sample.frames.collect { |f| stack_frame_to_location_id(f) }, | ||
value: [stack_sample.cpu_time_interval_ns, stack_sample.wall_time_interval_ns], | ||
|
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.
The regex changes are just removing redundant escape characters