Skip to content
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 at stop when task fail #489

Merged
merged 4 commits into from Apr 4, 2023
Merged

Debug at stop when task fail #489

merged 4 commits into from Apr 4, 2023

Conversation

ksss
Copy link
Contributor

@ksss ksss commented Apr 3, 2023

Probrem

If the rake task terminates with some error, starting a postmortem session with the debug gem will start in the rescue block of Rake::Application#standard_exception_handling, making debugging is difficult.

Rakefile

task :demo do
  aaa
end
$ bundle exec rdbg -c -- rake demo
[4, 13] in ~/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/bin/rake
     4| #
     5| # The application 'rake' is installed as part of a gem, and
     6| # this file is here to facilitate running it.
     7| #
     8|
=>   9| require 'rubygems'
    10|
    11| Gem.use_gemdeps
    12|
    13| version = ">= 0.a"
=>#0	<main> at ~/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/bin/rake:9
(rdbg) config set postmortem true    # command
postmortem = true                  # CONTROL: Enable postmortem debug (default: false)
(rdbg) c    # continue command
rake aborted!
NameError: undefined local variable or method `aaa' for main:Object
/Users/ksss/src/github.com/ksss/rake/Rakefile:35:in `block in <top (required)>'
/Users/ksss/src/github.com/ksss/rake/exe/rake:27:in `<top (required)>'
Tasks: TOP => demo
(See full trace by running task with --trace)
Enter postmortem mode with #<NameError: undefined local variable or method `aaa' for main:Object>
  /Users/ksss/src/github.com/ksss/rake/Rakefile:35:in `block in <top (required)>'
  /Users/ksss/src/github.com/ksss/rake/lib/rake/task.rb:281:in `block in execute'
  /Users/ksss/src/github.com/ksss/rake/lib/rake/task.rb:281:in `each'
  /Users/ksss/src/github.com/ksss/rake/lib/rake/task.rb:281:in `execute'
  /Users/ksss/src/github.com/ksss/rake/lib/rake/task.rb:219:in `block in invoke_with_call_chain'
  /Users/ksss/src/github.com/ksss/rake/lib/rake/task.rb:199:in `synchronize'
  /Users/ksss/src/github.com/ksss/rake/lib/rake/task.rb:199:in `invoke_with_call_chain'
  /Users/ksss/src/github.com/ksss/rake/lib/rake/task.rb:188:in `invoke'
  /Users/ksss/src/github.com/ksss/rake/lib/rake/application.rb:160:in `invoke_task'
  /Users/ksss/src/github.com/ksss/rake/lib/rake/application.rb:116:in `block (2 levels) in top_level'
  /Users/ksss/src/github.com/ksss/rake/lib/rake/application.rb:116:in `each'
  /Users/ksss/src/github.com/ksss/rake/lib/rake/application.rb:116:in `block in top_level'
  /Users/ksss/src/github.com/ksss/rake/lib/rake/application.rb:125:in `run_with_threads'
  /Users/ksss/src/github.com/ksss/rake/lib/rake/application.rb:110:in `top_level'
  /Users/ksss/src/github.com/ksss/rake/lib/rake/application.rb:83:in `block in run'
  /Users/ksss/src/github.com/ksss/rake/lib/rake/application.rb:186:in `standard_exception_handling'
  /Users/ksss/src/github.com/ksss/rake/lib/rake/application.rb:80:in `run'
  /Users/ksss/src/github.com/ksss/rake/exe/rake:27:in `<top (required)>'
  /Users/ksss/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/bin/rake:25:in `load'
  /Users/ksss/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/bin/rake:25:in `<main>'

[218, 227] in ~/src/github.com/ksss/rake/lib/rake/task.rb
   218|           invoke_prerequisites(task_args, new_chain)
   219|           execute(task_args) if needed?
   220|         rescue Exception => ex
   221|           add_chain_to(ex, new_chain)
   222|           @invocation_exception = ex
=> 223|           raise ex
   224|         end
   225|       end
   226|     end
   227|     protected :invoke_with_call_chain
=>#0	Rake::Task#invoke_with_call_chain at ~/src/github.com/ksss/rake/lib/rake/task.rb:223
  #1	block in invoke_with_call_chain at ~/src/github.com/ksss/rake/lib/rake/task.rb:200
  # and 15 frames (use `bt' command for all frames)
(rdbg:postmortem)

Proposal

I propose to add a feature that will activate the debugger.
This feature will only work if the debug gem is already loaded and the environment variable RAKE_DEBUG=1 is attached.

$ RAKE_DEBUG=1 bundle exec rake demo
undefined local variable or method `aaa' for main:Object
[30, 36] in ~/src/github.com/ksss/rake/Rakefile
    30| end
    31|
    32| task default: :test
    33|
    34| task :demo do
=>  35|   aaa
    36| end
=>#0	block in <top (required)> at ~/src/github.com/ksss/rake/Rakefile:35
  #1	[C] Kernel.load at ~/.rbenv/versions/3.2.1/lib/ruby/3.2.0/bundler/cli/exec.rb:58
  # and 14 frames (use `bt' command for all frames)
(rdbg:postmortem)

Inspired by https://github.com/ko1/rspec-debug

collect_command_line_tasks(args)
end
end

def load_debug_at_stop_feature
return unless ['1', 'true'].include?(ENV["RAKE_DEBUG"])
Copy link
Member

@hsbt hsbt Apr 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we do this line simplify like return unless ENV["RAKE_DEBUG"]?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I agree with you.
This is a respecting the rspec-debug code. But simplifying it should be fine in most cases.

@hsbt hsbt merged commit 43c0177 into ruby:master Apr 4, 2023
41 checks passed
@hsbt
Copy link
Member

hsbt commented Apr 4, 2023

Thanks!

@ksss ksss deleted the debug branch April 4, 2023 07:24
xjunior pushed a commit to powerhome/power-tools that referenced this pull request Oct 30, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[@typescript-eslint/eslint-plugin](https://togithub.com/typescript-eslint/typescript-eslint)
| [`6.8.0` ->
`6.9.0`](https://renovatebot.com/diffs/npm/@typescript-eslint%2feslint-plugin/6.8.0/6.9.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@typescript-eslint%2feslint-plugin/6.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@typescript-eslint%2feslint-plugin/6.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@typescript-eslint%2feslint-plugin/6.8.0/6.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@typescript-eslint%2feslint-plugin/6.8.0/6.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[@typescript-eslint/parser](https://togithub.com/typescript-eslint/typescript-eslint)
| [`6.8.0` ->
`6.9.0`](https://renovatebot.com/diffs/npm/@typescript-eslint%2fparser/6.8.0/6.9.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@typescript-eslint%2fparser/6.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@typescript-eslint%2fparser/6.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@typescript-eslint%2fparser/6.8.0/6.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@typescript-eslint%2fparser/6.8.0/6.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [rake](https://togithub.com/ruby/rake)
([changelog](https://togithub.com/ruby/rake/blob/v13.0.6/History.rdoc))
| `13.0.6` -> `13.1.0` |
[![age](https://developer.mend.io/api/mc/badges/age/rubygems/rake/13.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/rubygems/rake/13.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/rubygems/rake/13.0.6/13.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/rubygems/rake/13.0.6/13.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>typescript-eslint/typescript-eslint
(@&#8203;typescript-eslint/eslint-plugin)</summary>

###
[`v6.9.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#690-2023-10-23)

[Compare
Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v6.8.0...v6.9.0)

##### Bug Fixes

- **eslint-plugin:** \[no-confusing-void-expression] handle unfixable
cases
([#&#8203;7674](https://togithub.com/typescript-eslint/typescript-eslint/issues/7674))
([7e52f27](https://togithub.com/typescript-eslint/typescript-eslint/commit/7e52f276ed5b8b2c0b76be02cb2e8a77892c10f2))
- **eslint-plugin:** \[no-unsafe-return] allow returning anything if
explicitly returning any
([#&#8203;7708](https://togithub.com/typescript-eslint/typescript-eslint/issues/7708))
([c6124b2](https://togithub.com/typescript-eslint/typescript-eslint/commit/c6124b2c93a53f11471cce8054388dec7a58f90b))

##### Features

- **eslint-plugin:** \[max-params] don't count `this: void` parameter
([#&#8203;7696](https://togithub.com/typescript-eslint/typescript-eslint/issues/7696))
([6398d3f](https://togithub.com/typescript-eslint/typescript-eslint/commit/6398d3fd0a576d8cdc957ec1b57929acacc60ba0)),
closes
[#&#8203;7538](https://togithub.com/typescript-eslint/typescript-eslint/issues/7538)
- **eslint-plugin:** \[naming-convention] add support for default and
namespace imports
([#&#8203;7269](https://togithub.com/typescript-eslint/typescript-eslint/issues/7269))
([bb15aae](https://togithub.com/typescript-eslint/typescript-eslint/commit/bb15aae877ae260f59aa5e6cfc338b1eefc6d85c))
- **eslint-plugin:** \[no-restricted-imports] support import = require
([#&#8203;7709](https://togithub.com/typescript-eslint/typescript-eslint/issues/7709))
([4c8edcf](https://togithub.com/typescript-eslint/typescript-eslint/commit/4c8edcfb7d3cc02d07d2329c87da4377c1cbf969))
- **eslint-plugin:** \[no-unsafe-enum-comparison] add switch suggestion
([#&#8203;7691](https://togithub.com/typescript-eslint/typescript-eslint/issues/7691))
([53d5263](https://togithub.com/typescript-eslint/typescript-eslint/commit/53d5263cee8e0b5ddc5de3321d27559c196e5b58)),
closes
[#&#8203;7643](https://togithub.com/typescript-eslint/typescript-eslint/issues/7643)
- **eslint-plugin:** \[prefer-readonly] private fields support
([#&#8203;7686](https://togithub.com/typescript-eslint/typescript-eslint/issues/7686))
([0e875bf](https://togithub.com/typescript-eslint/typescript-eslint/commit/0e875bf77a9d94dc74924245fabc36c0ae780977))

You can read about our [versioning
strategy](https://main--typescript-eslint.netlify.app/users/versioning)
and
[releases](https://main--typescript-eslint.netlify.app/users/releases)
on our website.

</details>

<details>
<summary>typescript-eslint/typescript-eslint
(@&#8203;typescript-eslint/parser)</summary>

###
[`v6.9.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#690-2023-10-23)

[Compare
Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v6.8.0...v6.9.0)

**Note:** Version bump only for package
[@&#8203;typescript-eslint/parser](https://togithub.com/typescript-eslint/parser)

You can read about our [versioning
strategy](https://main--typescript-eslint.netlify.app/users/versioning)
and
[releases](https://main--typescript-eslint.netlify.app/users/releases)
on our website.

</details>

<details>
<summary>ruby/rake (rake)</summary>

### [`v13.1.0`](https://togithub.com/ruby/rake/releases/tag/v13.1.0)

[Compare
Source](https://togithub.com/ruby/rake/compare/v13.0.6...v13.1.0)

#### What's Changed

- Added dependabot.yml for actions by
[@&#8203;hsbt](https://togithub.com/hsbt) in
[ruby/rake#416
- Add Ruby 3.1 to the CI matrix by
[@&#8203;petergoldstein](https://togithub.com/petergoldstein) in
[ruby/rake#415
- (Performance) Remove unnecessary I/O syscalls for FileTasks by
[@&#8203;da2x](https://togithub.com/da2x) in
[ruby/rake#393
- Skip test failure with JRuby by
[@&#8203;hsbt](https://togithub.com/hsbt) in
[ruby/rake#418
- Bump actions/checkout from 2 to 3 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#417
- Remove bin/rdoc by [@&#8203;tnir](https://togithub.com/tnir) in
[ruby/rake#421
- Remove bin/rake by [@&#8203;tnir](https://togithub.com/tnir) in
[ruby/rake#422
- Remove bin/bundle by [@&#8203;tnir](https://togithub.com/tnir) in
[ruby/rake#425
- Apply RuboCop linting for Ruby 2.3 by
[@&#8203;tnir](https://togithub.com/tnir) in
[ruby/rake#423
- Update rubocop to work with Ruby 2.4 compatible by
[@&#8203;tnir](https://togithub.com/tnir) in
[ruby/rake#424
- chore: fix typo in comments by
[@&#8203;tnir](https://togithub.com/tnir) in
[ruby/rake#429
- Use 'test' as workflow name on Actions by
[@&#8203;tnir](https://togithub.com/tnir) in
[ruby/rake#427
- docs: update CONTRIBUTING.rdoc by
[@&#8203;tnir](https://togithub.com/tnir) in
[ruby/rake#428
- Add RuboCop job to Actions by
[@&#8203;tnir](https://togithub.com/tnir) in
[ruby/rake#426
- Lock minitest-5.15.0 for Ruby 2.2 by
[@&#8203;hsbt](https://togithub.com/hsbt) in
[ruby/rake#442
- Eagerly require set in thread_pool.rb by
[@&#8203;jeremyevans](https://togithub.com/jeremyevans) in
[ruby/rake#440
- Avoid creating an unnecessary thread pool by
[@&#8203;jeremyevans](https://togithub.com/jeremyevans) in
[ruby/rake#441
- Add credit for maintenance in Rake 12/13 by
[@&#8203;tnir](https://togithub.com/tnir) in
[ruby/rake#443
- Sh fully echoes commands which error exit by
[@&#8203;MarkDBlackwell](https://togithub.com/MarkDBlackwell) in
[ruby/rake#147
- Correct RuboCop offenses by
[@&#8203;deivid-rodriguez](https://togithub.com/deivid-rodriguez) in
[ruby/rake#444
- \[StepSecurity] ci: Harden GitHub Actions by
[@&#8203;step-security-bot](https://togithub.com/step-security-bot) in
[ruby/rake#450
- Bump ruby/setup-ruby from 1.126.0 to 1.127.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#453
- Bump actions/checkout from 3.1.0 to 3.2.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#454
- Bump ruby/setup-ruby from 1.127.0 to 1.131.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#457
- Add ruby 3.2 to test matrix by
[@&#8203;hanneskaeufler](https://togithub.com/hanneskaeufler) in
[ruby/rake#458
- Bump ruby/setup-ruby from 1.131.0 to 1.133.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#459
- Bump actions/checkout from 3.2.0 to 3.3.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#463
- Bump ruby/setup-ruby from 1.133.0 to 1.133.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#462
- Bump ruby/setup-ruby from 1.133.1 to 1.133.2 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#464
- Bump ruby/setup-ruby from 1.133.2 to 1.134.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#466
- Missing 'do' on example by [@&#8203;zzak](https://togithub.com/zzak)
in
[ruby/rake#467
- Try to use dependabot automerge by
[@&#8203;hsbt](https://togithub.com/hsbt) in
[ruby/rake#470
- Rewrite auto-merge feature for dependabot by
[@&#8203;hsbt](https://togithub.com/hsbt) in
[ruby/rake#471
- Bump ruby/setup-ruby from 1.134.0 to 1.137.2 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#469
- Update bundler in Dependabot by
[@&#8203;ono-max](https://togithub.com/ono-max) in
[ruby/rake#472
- Bump ruby/setup-ruby from 1.137.2 to 1.138.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#473
- Update minitest requirement from 5.15.0 to 5.17.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#474
- Fix grammar in help text by
[@&#8203;mebezac](https://togithub.com/mebezac) in
[ruby/rake#381
- Try to use ruby/ruby/.github/workflows/ruby_versions.yml@master by
[@&#8203;hsbt](https://togithub.com/hsbt) in
[ruby/rake#475
- Bump lewagon/wait-on-check-action from 1.2.0 to 1.3.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#476
- Use GitHub Pages Action for generating rdoc page by
[@&#8203;hsbt](https://togithub.com/hsbt) in
[ruby/rake#477
- Bump ruby/setup-ruby from 1.138.0 to 1.143.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#478
- Update minitest requirement from 5.17.0 to 5.18.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#479
- Bump ruby/setup-ruby from 1.143.0 to 1.144.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#480
- Bump ruby/setup-ruby from 1.144.0 to 1.144.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#482
- Bump actions/deploy-pages from 1 to 2 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#481
- Bump ruby/setup-ruby from 1.144.1 to 1.144.2 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#484
- Update rubocop requirement from ~> 1.12.1 to ~> 1.48.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#485
- Bump ruby/setup-ruby from 1.144.2 to 1.145.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#487
- Update rubocop requirement from ~> 1.48.1 to ~> 1.49.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#488
- Support `#detailed_message` when task failed by
[@&#8203;ksss](https://togithub.com/ksss) in
[ruby/rake#486
- Debug at stop when task fail by
[@&#8203;ksss](https://togithub.com/ksss) in
[ruby/rake#489
- Drop to support Ruby 2.2 by [@&#8203;hsbt](https://togithub.com/hsbt)
in
[ruby/rake#492
- Bump ruby/setup-ruby from 1.145.0 to 1.146.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#491
- Update rubocop requirement from ~> 1.49.0 to ~> 1.50.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#493
- Bump up setup-ruby by [@&#8203;hsbt](https://togithub.com/hsbt) in
[ruby/rake#497
- Bump ruby/setup-ruby from 1.148.0 to 1.149.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#498
- Update rubocop requirement from ~> 1.50.1 to ~> 1.51.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#499
- Bump ruby/setup-ruby from 1.149.0 to 1.150.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#500
- Update rubocop requirement from ~> 1.51.0 to ~> 1.52.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#502
- Bump ruby/setup-ruby from 1.150.0 to 1.151.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#503
- Update development dependencies by
[@&#8203;hsbt](https://togithub.com/hsbt) in
[ruby/rake#505
- Bump ruby/setup-ruby from 1.151.0 to 1.152.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#506
- Bump actions/upload-pages-artifact from 1 to 2 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#508
- Bump actions/checkout from 3 to 4 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#513
- Bump ruby/setup-ruby from 1.152.0 to 1.153.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#514
- Bump actions/checkout from 4.0.0 to 4.1.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#516
- Bump ruby/setup-ruby from 1.153.0 to 1.154.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#517
- Bump ruby/setup-ruby from 1.154.0 to 1.155.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#518
- Bump ruby/setup-ruby from 1.155.0 to 1.156.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#519
- Bump actions/checkout from 4.1.0 to 4.1.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#520
- Bump ruby/setup-ruby from 1.156.0 to 1.157.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#521

#### New Contributors

- [@&#8203;petergoldstein](https://togithub.com/petergoldstein) made
their first contribution in
[ruby/rake#415
- [@&#8203;da2x](https://togithub.com/da2x) made their first
contribution in
[ruby/rake#393
- [@&#8203;dependabot](https://togithub.com/dependabot) made their first
contribution in
[ruby/rake#417
- [@&#8203;tnir](https://togithub.com/tnir) made their first
contribution in
[ruby/rake#421
- [@&#8203;step-security-bot](https://togithub.com/step-security-bot)
made their first contribution in
[ruby/rake#450
- [@&#8203;hanneskaeufler](https://togithub.com/hanneskaeufler) made
their first contribution in
[ruby/rake#458
- [@&#8203;ono-max](https://togithub.com/ono-max) made their first
contribution in
[ruby/rake#472
- [@&#8203;mebezac](https://togithub.com/mebezac) made their first
contribution in
[ruby/rake#381
- [@&#8203;ksss](https://togithub.com/ksss) made their first
contribution in
[ruby/rake#486

**Full Changelog**:
ruby/rake@v13.0.6...v13.1.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/powerhome/power-tools).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMS4yIiwidXBkYXRlZEluVmVyIjoiMzcuMzEuNSIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
xjunior pushed a commit to powerhome/audiences that referenced this pull request Oct 30, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [rake](https://togithub.com/ruby/rake)
([changelog](https://togithub.com/ruby/rake/blob/v13.0.6/History.rdoc))
| `13.0.6` -> `13.1.0` |
[![age](https://developer.mend.io/api/mc/badges/age/rubygems/rake/13.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/rubygems/rake/13.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/rubygems/rake/13.0.6/13.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/rubygems/rake/13.0.6/13.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>ruby/rake (rake)</summary>

### [`v13.1.0`](https://togithub.com/ruby/rake/releases/tag/v13.1.0)

[Compare
Source](https://togithub.com/ruby/rake/compare/v13.0.6...v13.1.0)

#### What's Changed

- Added dependabot.yml for actions by
[@&#8203;hsbt](https://togithub.com/hsbt) in
[ruby/rake#416
- Add Ruby 3.1 to the CI matrix by
[@&#8203;petergoldstein](https://togithub.com/petergoldstein) in
[ruby/rake#415
- (Performance) Remove unnecessary I/O syscalls for FileTasks by
[@&#8203;da2x](https://togithub.com/da2x) in
[ruby/rake#393
- Skip test failure with JRuby by
[@&#8203;hsbt](https://togithub.com/hsbt) in
[ruby/rake#418
- Bump actions/checkout from 2 to 3 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#417
- Remove bin/rdoc by [@&#8203;tnir](https://togithub.com/tnir) in
[ruby/rake#421
- Remove bin/rake by [@&#8203;tnir](https://togithub.com/tnir) in
[ruby/rake#422
- Remove bin/bundle by [@&#8203;tnir](https://togithub.com/tnir) in
[ruby/rake#425
- Apply RuboCop linting for Ruby 2.3 by
[@&#8203;tnir](https://togithub.com/tnir) in
[ruby/rake#423
- Update rubocop to work with Ruby 2.4 compatible by
[@&#8203;tnir](https://togithub.com/tnir) in
[ruby/rake#424
- chore: fix typo in comments by
[@&#8203;tnir](https://togithub.com/tnir) in
[ruby/rake#429
- Use 'test' as workflow name on Actions by
[@&#8203;tnir](https://togithub.com/tnir) in
[ruby/rake#427
- docs: update CONTRIBUTING.rdoc by
[@&#8203;tnir](https://togithub.com/tnir) in
[ruby/rake#428
- Add RuboCop job to Actions by
[@&#8203;tnir](https://togithub.com/tnir) in
[ruby/rake#426
- Lock minitest-5.15.0 for Ruby 2.2 by
[@&#8203;hsbt](https://togithub.com/hsbt) in
[ruby/rake#442
- Eagerly require set in thread_pool.rb by
[@&#8203;jeremyevans](https://togithub.com/jeremyevans) in
[ruby/rake#440
- Avoid creating an unnecessary thread pool by
[@&#8203;jeremyevans](https://togithub.com/jeremyevans) in
[ruby/rake#441
- Add credit for maintenance in Rake 12/13 by
[@&#8203;tnir](https://togithub.com/tnir) in
[ruby/rake#443
- Sh fully echoes commands which error exit by
[@&#8203;MarkDBlackwell](https://togithub.com/MarkDBlackwell) in
[ruby/rake#147
- Correct RuboCop offenses by
[@&#8203;deivid-rodriguez](https://togithub.com/deivid-rodriguez) in
[ruby/rake#444
- \[StepSecurity] ci: Harden GitHub Actions by
[@&#8203;step-security-bot](https://togithub.com/step-security-bot) in
[ruby/rake#450
- Bump ruby/setup-ruby from 1.126.0 to 1.127.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#453
- Bump actions/checkout from 3.1.0 to 3.2.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#454
- Bump ruby/setup-ruby from 1.127.0 to 1.131.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#457
- Add ruby 3.2 to test matrix by
[@&#8203;hanneskaeufler](https://togithub.com/hanneskaeufler) in
[ruby/rake#458
- Bump ruby/setup-ruby from 1.131.0 to 1.133.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#459
- Bump actions/checkout from 3.2.0 to 3.3.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#463
- Bump ruby/setup-ruby from 1.133.0 to 1.133.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#462
- Bump ruby/setup-ruby from 1.133.1 to 1.133.2 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#464
- Bump ruby/setup-ruby from 1.133.2 to 1.134.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#466
- Missing 'do' on example by [@&#8203;zzak](https://togithub.com/zzak)
in
[ruby/rake#467
- Try to use dependabot automerge by
[@&#8203;hsbt](https://togithub.com/hsbt) in
[ruby/rake#470
- Rewrite auto-merge feature for dependabot by
[@&#8203;hsbt](https://togithub.com/hsbt) in
[ruby/rake#471
- Bump ruby/setup-ruby from 1.134.0 to 1.137.2 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#469
- Update bundler in Dependabot by
[@&#8203;ono-max](https://togithub.com/ono-max) in
[ruby/rake#472
- Bump ruby/setup-ruby from 1.137.2 to 1.138.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#473
- Update minitest requirement from 5.15.0 to 5.17.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#474
- Fix grammar in help text by
[@&#8203;mebezac](https://togithub.com/mebezac) in
[ruby/rake#381
- Try to use ruby/ruby/.github/workflows/ruby_versions.yml@master by
[@&#8203;hsbt](https://togithub.com/hsbt) in
[ruby/rake#475
- Bump lewagon/wait-on-check-action from 1.2.0 to 1.3.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#476
- Use GitHub Pages Action for generating rdoc page by
[@&#8203;hsbt](https://togithub.com/hsbt) in
[ruby/rake#477
- Bump ruby/setup-ruby from 1.138.0 to 1.143.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#478
- Update minitest requirement from 5.17.0 to 5.18.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#479
- Bump ruby/setup-ruby from 1.143.0 to 1.144.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#480
- Bump ruby/setup-ruby from 1.144.0 to 1.144.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#482
- Bump actions/deploy-pages from 1 to 2 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#481
- Bump ruby/setup-ruby from 1.144.1 to 1.144.2 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#484
- Update rubocop requirement from ~> 1.12.1 to ~> 1.48.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#485
- Bump ruby/setup-ruby from 1.144.2 to 1.145.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#487
- Update rubocop requirement from ~> 1.48.1 to ~> 1.49.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#488
- Support `#detailed_message` when task failed by
[@&#8203;ksss](https://togithub.com/ksss) in
[ruby/rake#486
- Debug at stop when task fail by
[@&#8203;ksss](https://togithub.com/ksss) in
[ruby/rake#489
- Drop to support Ruby 2.2 by [@&#8203;hsbt](https://togithub.com/hsbt)
in
[ruby/rake#492
- Bump ruby/setup-ruby from 1.145.0 to 1.146.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#491
- Update rubocop requirement from ~> 1.49.0 to ~> 1.50.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#493
- Bump up setup-ruby by [@&#8203;hsbt](https://togithub.com/hsbt) in
[ruby/rake#497
- Bump ruby/setup-ruby from 1.148.0 to 1.149.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#498
- Update rubocop requirement from ~> 1.50.1 to ~> 1.51.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#499
- Bump ruby/setup-ruby from 1.149.0 to 1.150.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#500
- Update rubocop requirement from ~> 1.51.0 to ~> 1.52.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#502
- Bump ruby/setup-ruby from 1.150.0 to 1.151.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#503
- Update development dependencies by
[@&#8203;hsbt](https://togithub.com/hsbt) in
[ruby/rake#505
- Bump ruby/setup-ruby from 1.151.0 to 1.152.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#506
- Bump actions/upload-pages-artifact from 1 to 2 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#508
- Bump actions/checkout from 3 to 4 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#513
- Bump ruby/setup-ruby from 1.152.0 to 1.153.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#514
- Bump actions/checkout from 4.0.0 to 4.1.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#516
- Bump ruby/setup-ruby from 1.153.0 to 1.154.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#517
- Bump ruby/setup-ruby from 1.154.0 to 1.155.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#518
- Bump ruby/setup-ruby from 1.155.0 to 1.156.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#519
- Bump actions/checkout from 4.1.0 to 4.1.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#520
- Bump ruby/setup-ruby from 1.156.0 to 1.157.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[ruby/rake#521

#### New Contributors

- [@&#8203;petergoldstein](https://togithub.com/petergoldstein) made
their first contribution in
[ruby/rake#415
- [@&#8203;da2x](https://togithub.com/da2x) made their first
contribution in
[ruby/rake#393
- [@&#8203;dependabot](https://togithub.com/dependabot) made their first
contribution in
[ruby/rake#417
- [@&#8203;tnir](https://togithub.com/tnir) made their first
contribution in
[ruby/rake#421
- [@&#8203;step-security-bot](https://togithub.com/step-security-bot)
made their first contribution in
[ruby/rake#450
- [@&#8203;hanneskaeufler](https://togithub.com/hanneskaeufler) made
their first contribution in
[ruby/rake#458
- [@&#8203;ono-max](https://togithub.com/ono-max) made their first
contribution in
[ruby/rake#472
- [@&#8203;mebezac](https://togithub.com/mebezac) made their first
contribution in
[ruby/rake#381
- [@&#8203;ksss](https://togithub.com/ksss) made their first
contribution in
[ruby/rake#486

**Full Changelog**:
ruby/rake@v13.0.6...v13.1.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/powerhome/audiences).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMS41IiwidXBkYXRlZEluVmVyIjoiMzcuMzEuNSIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants