ruby_exception
An unhandled Ruby exception - a backtrace frame naming the error class.
rubyruntimetoolmatcher
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
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
1Running with gitlab-runner 16.9.1 (d773c4a1)
2 on ruby-runner-04 Rb3Mn8Kw, system ID: s_44dd55ee66ff
3Preparing the "docker" executor
4 Using Docker executor with image ruby:3.3 ...
5Using Docker executor with image ruby:3.3 ...
6Using docker image sha256:9a8b7c6d5e4f for ruby:3.3 with digest ruby@sha256:2b1c...
7Preparing environment
8Running on runner-rb3mn8kw-project-29-concurrent-2...
9Fetching changes with git depth set to 50...
10Checking out ae44d013 as detached HEAD...
11Checking cache for bundler-3.3-default...
12Successfully extracted cache
13$ bundle exec rake db:migrate
14== 20240612093000 AddLoyaltyTierToCustomers: migrating ========================
15-- add_column(:customers, :loyalty_tier, :string)
16 -> 0.0182s
17-- backfill_existing_customers()
18rake aborted!
19StandardError: An error has occurred, all later migrations canceled:
20
21undefined method `default_tier' for nil (NoMethodError)
22/builds/team/shop/db/migrate/20240612093000_add_loyalty_tier_to_customers.rb:8:in `up': undefined method `default_tier' for nil (NoMethodError)
23/builds/team/shop/lib/tasks/migrate.rake:12:in `block (2 levels) in <top (required)>'
24/builds/team/shop/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/lib/rake/task.rb:281:in `block in execute'
25Tasks: TOP => db:migrate
26(See full trace by running task with --trace)
27Running after_script
28$ echo "migration failed, rolling back deploy"
29migration failed, rolling back deploy
30Uploading artifacts for failed job
31WARNING: log/migrate.log: no matching files. Ensure that the artifact path is relative to the working directory
32ERROR: Job failed: exit code 1