← Catalogue

ruby_exception

An unhandled Ruby exception - a backtrace frame naming the error class.

rubyruntimetoolmatcher

Open in playgroundFile on GitHubHistory

Install: ci-doctor matchers add official/ruby_exception

matchers/ruby/ruby_exception/matcher.yaml

id: ruby_exceptionrole: toolclassification: [ruby, runtime]description: An unhandled Ruby exception - a backtrace frame naming the error class.pattern: \.rb:\d+:in .+\(\w*(Error|Exception)\)before: 2after: 10

In bundles

allruby

Fixtures

Framing stripped per provider. Highlighted lines are what this matcher selects; the marked line is the anchor.

ruby_rake_exceptionOpen in playground

1Current runner version: '2.336.0'
2##[group]Operating System
3Ubuntu
424.04.4
5LTS
6##[endgroup]
7Secret source: Actions
8Prepare workflow directory
9Prepare all required actions
10Complete job name: ruby_rake_exception
11##[group]Set up job
12Image: ubuntu-24.04
13Runner name: 'GitHub Actions 12'
14##[endgroup]
15Download action repository 'actions/checkout@v4'
16Download action repository 'actions/cache@v4'
17##[group]Run actions/checkout@v4
18 with:
19 fetch-depth: 20
20 lfs: false
21##[endgroup]
22Syncing repository: acme/ledger
23##[group]Getting Git version info
24Working directory is '/home/runner/work/ledger/ledger'
25##[endgroup]
26/usr/bin/git checkout --progress --force 8ad41f02
27##[group]Run actions/cache@v4
28 with:
29 path: ~/.cache
30 key: Linux-deps-8ad41f02
31##[endgroup]
32Received 41943040 of 41943040 (100.0%), 40.0 MBs/sec
33Cache restored from key: Linux-deps-8ad41f02
34##[group]Run bundle exec rake db:migrate
35bundle exec rake db:migrate
36shell: /usr/bin/bash -e {0}
37##[endgroup]
38== 20240612093000 AddLoyaltyTierToCustomers: migrating ========================
39-- add_column(:customers, :loyalty_tier, :string)
40 -> 0.0182s
41-- backfill_existing_customers()
42rake aborted!
43StandardError: An error has occurred, all later migrations canceled:
44
45undefined method `default_tier' for nil (NoMethodError)
46/builds/team/shop/db/migrate/20240612093000_add_loyalty_tier_to_customers.rb:8:in `up': undefined method `default_tier' for nil (NoMethodError)
47/builds/team/shop/lib/tasks/migrate.rake:12:in `block (2 levels) in <top (required)>'
48/builds/team/shop/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:281:in `block in execute'
49Tasks: TOP => db:migrate
50(See full trace by running task with --trace)
51##[error]Process completed with exit code 1.
52##[group]Post Run actions/checkout@v4
53##[endgroup]
54/usr/bin/git version
55git version 2.54.0
56##[group]Post Run actions/upload-artifact@v4
57##[endgroup]
58Artifact upload complete.
59##[warning]log/migrate.log: no matching files. Ensure that the artifact path is relative to the working directory
60Post job cleanup.
61Cleaning up orphan processes