Failure relating failure issue due to unexpected token
https://gitlab.com/gitlab-org/gitlab/-/jobs/5451090759#L2900
/usr/local/lib/ruby/3.0.0/json/common.rb:216:in `parse': 809: unexpected token at '# Logfile created on 2023-11-03 02:05:47 +0000 by logger.rb/v1.4.3 (JSON::ParserError)
/builds/gitlab-org/gitlab/.gems/gems/activesupport-7.0.8/lib/active_support/logger_thread_safe_level.rb:21:in `local_level': uninitialized constant ActiveSupport::LoggerThreadSafeLevel::IsolatedExecutionState (NameError)
from /builds/gitlab-org/gitlab/.gems/gems/activesupport-7.0.8/lib/active_support/logger_thread_safe_level.rb:37:in `level'
from /builds/gitlab-org/gitlab/.gems/gems/activesupport-7.0.8/lib/active_support/logger_thread_safe_level.rb:54:in `add'
from /builds/gitlab-org/gitlab/.gems/gems/activesupport-7.0.8/lib/active_support/logger.rb:26:in `block (2 levels) in broadcast'
from /usr/local/lib/ruby/3.0.0/logger.rb:495:in `debug'
from /usr/local/lib/ruby/3.0.0/forwardable.rb:238:in `debug'
from /builds/gitlab-org/gitlab/.gems/gems/gitlab_quality-test_tooling-0.9.3/lib/gitlab_quality/test_tooling/system_logs/finders/json_log_finder.rb:24:in `rescue in block in find'
from /builds/gitlab-org/gitlab/.gems/gems/gitlab_quality-test_tooling-0.9.3/lib/gitlab_quality/test_tooling/system_logs/finders/json_log_finder.rb:21:in `block in find'
from /builds/gitlab-org/gitlab/.gems/gems/gitlab_quality-test_tooling-0.9.3/lib/gitlab_quality/test_tooling/system_logs/finders/json_log_finder.rb:20:in `foreach'
from /builds/gitlab-org/gitlab/.gems/gems/gitlab_quality-test_tooling-0.9.3/lib/gitlab_quality/test_tooling/system_logs/finders/json_log_finder.rb:20:in `find'
from /builds/gitlab-org/gitlab/.gems/gems/gitlab_quality-test_tooling-0.9.3/lib/gitlab_quality/test_tooling/system_logs/system_logs_formatter.rb:19:in `block in system_logs_summary_markdown'
from /builds/gitlab-org/gitlab/.gems/gems/gitlab_quality-test_tooling-0.9.3/lib/gitlab_quality/test_tooling/system_logs/system_logs_formatter.rb:17:in `each'
from /builds/gitlab-org/gitlab/.gems/gems/gitlab_quality-test_tooling-0.9.3/lib/gitlab_quality/test_tooling/system_logs/system_logs_formatter.rb:17:in `system_logs_summary_markdown'
from /builds/gitlab-org/gitlab/.gems/gems/gitlab_quality-test_tooling-0.9.3/lib/gitlab_quality/test_tooling/report/relate_failure_issue.rb:290:in `system_log_errors_section'
from /builds/gitlab-org/gitlab/.gems/gems/gitlab_quality-test_tooling-0.9.3/lib/gitlab_quality/test_tooling/report/relate_failure_issue.rb:277:in `new_issue_description'
from /builds/gitlab-org/gitlab/.gems/gems/gitlab_quality-test_tooling-0.9.3/lib/gitlab_quality/test_tooling/report/report_as_issue.rb:103:in `create_issue'
from /builds/gitlab-org/gitlab/.gems/gems/gitlab_quality-test_tooling-0.9.3/lib/gitlab_quality/test_tooling/report/relate_failure_issue.rb:122:in `create_issue'
from /builds/gitlab-org/gitlab/.gems/gems/gitlab_quality-test_tooling-0.9.3/lib/gitlab_quality/test_tooling/report/relate_failure_issue.rb:82:in `relate_failure_to_issue'
from /builds/gitlab-org/gitlab/.gems/gems/gitlab_quality-test_tooling-0.9.3/lib/gitlab_quality/test_tooling/report/relate_failure_issue.rb:60:in `block (2 levels) in run!'
from /builds/gitlab-org/gitlab/.gems/gems/gitlab_quality-test_tooling-0.9.3/lib/gitlab_quality/test_tooling/test_results/base_test_results.rb:18:in `each'
from /builds/gitlab-org/gitlab/.gems/gems/gitlab_quality-test_tooling-0.9.3/lib/gitlab_quality/test_tooling/test_results/base_test_results.rb:18:in `each'
from /builds/gitlab-org/gitlab/.gems/gems/gitlab_quality-test_tooling-0.9.3/lib/gitlab_quality/test_tooling/report/relate_failure_issue.rb:59:in `block in run!'
from /builds/gitlab-org/gitlab/.gems/gems/gitlab_quality-test_tooling-0.9.3/lib/gitlab_quality/test_tooling/test_results/builder.rb:25:in `block in test_results_per_file'
from /builds/gitlab-org/gitlab/.gems/gems/gitlab_quality-test_tooling-0.9.3/lib/gitlab_quality/test_tooling/test_results/builder.rb:12:in `each'
from /builds/gitlab-org/gitlab/.gems/gems/gitlab_quality-test_tooling-0.9.3/lib/gitlab_quality/test_tooling/test_results/builder.rb:12:in `test_results_per_file'
from /builds/gitlab-org/gitlab/.gems/gems/gitlab_quality-test_tooling-0.9.3/lib/gitlab_quality/test_tooling/report/relate_failure_issue.rb:54:in `run!'
from /builds/gitlab-org/gitlab/.gems/gems/gitlab_quality-test_tooling-0.9.3/lib/gitlab_quality/test_tooling/report/report_as_issue.rb:33:in `invoke!'
from /builds/gitlab-org/gitlab/.gems/gems/gitlab_quality-test_tooling-0.9.3/exe/relate-failure-issue:60:in `<top (required)>'
from /builds/gitlab-org/gitlab/.gems/bin/relate-failure-issue:25:in `load'
from /builds/gitlab-org/gitlab/.gems/bin/relate-failure-issue:25:in `<top (required)>'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.26/lib/bundler/cli/exec.rb:58:in `load'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.26/lib/bundler/cli/exec.rb:58:in `kernel_load'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.26/lib/bundler/cli/exec.rb:23:in `run'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.26/lib/bundler/cli.rb:486:in `exec'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.26/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.26/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.26/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.26/lib/bundler/cli.rb:31:in `dispatch'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.26/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.26/lib/bundler/cli.rb:25:in `start'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.26/exe/bundle:48:in `block in <top (required)>'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.26/lib/bundler/friendly_errors.rb:120:in `with_friendly_errors'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.26/exe/bundle:36:in `<top (required)>'
from /usr/local/bin/bundle:23:in `load'
from /usr/local/bin/bundle:23:in `<main>'
/usr/local/lib/ruby/3.0.0/json/common.rb:216:in `parse': 809: unexpected token at '# Logfile created on 2023-11-03 02:05:47 +0000 by logger.rb/v1.4.3 (JSON::ParserError)
'
from /usr/local/lib/ruby/3.0.0/json/common.rb:216:in `parse'
from /builds/gitlab-org/gitlab/.gems/gems/gitlab_quality-test_tooling-0.9.3/lib/gitlab_quality/test_tooling/system_logs/finders/json_log_finder.rb:22:in `block in find'
from /builds/gitlab-org/gitlab/.gems/gems/gitlab_quality-test_tooling-0.9.3/lib/gitlab_quality/test_tooling/system_logs/finders/json_log_finder.rb:20:in `foreach'
from /builds/gitlab-org/gitlab/.gems/gems/gitlab_quality-test_tooling-0.9.3/lib/gitlab_quality/test_tooling/system_logs/finders/json_log_finder.rb:20:in `find'
from /builds/gitlab-org/gitlab/.gems/gems/gitlab_quality-test_tooling-0.9.3/lib/gitlab_quality/test_tooling/system_logs/system_logs_formatter.rb:19:in `block in system_logs_summary_markdown'
from /builds/gitlab-org/gitlab/.gems/gems/gitlab_quality-test_tooling-0.9.3/lib/gitlab_quality/test_tooling/system_logs/system_logs_formatter.rb:17:in `each'
from /builds/gitlab-org/gitlab/.gems/gems/gitlab_quality-test_tooling-0.9.3/lib/gitlab_quality/test_tooling/system_logs/system_logs_formatter.rb:17:in `system_logs_summary_markdown'
from /builds/gitlab-org/gitlab/.gems/gems/gitlab_quality-test_tooling-0.9.3/lib/gitlab_quality/test_tooling/report/relate_failure_issue.rb:290:in `system_log_errors_section'
from /builds/gitlab-org/gitlab/.gems/gems/gitlab_quality-test_tooling-0.9.3/lib/gitlab_quality/test_tooling/report/relate_failure_issue.rb:277:in `new_issue_description'
from /builds/gitlab-org/gitlab/.gems/gems/gitlab_quality-test_tooling-0.9.3/lib/gitlab_quality/test_tooling/report/report_as_issue.rb:103:in `create_issue'
from /builds/gitlab-org/gitlab/.gems/gems/gitlab_quality-test_tooling-0.9.3/lib/gitlab_quality/test_tooling/report/relate_failure_issue.rb:122:in `create_issue'
from /builds/gitlab-org/gitlab/.gems/gems/gitlab_quality-test_tooling-0.9.3/lib/gitlab_quality/test_tooling/report/relate_failure_issue.rb:82:in `relate_failure_to_issue'
from /builds/gitlab-org/gitlab/.gems/gems/gitlab_quality-test_tooling-0.9.3/lib/gitlab_quality/test_tooling/report/relate_failure_issue.rb:60:in `block (2 levels) in run!'
from /builds/gitlab-org/gitlab/.gems/gems/gitlab_quality-test_tooling-0.9.3/lib/gitlab_quality/test_tooling/test_results/base_test_results.rb:18:in `each'
from /builds/gitlab-org/gitlab/.gems/gems/gitlab_quality-test_tooling-0.9.3/lib/gitlab_quality/test_tooling/test_results/base_test_results.rb:18:in `each'
from /builds/gitlab-org/gitlab/.gems/gems/gitlab_quality-test_tooling-0.9.3/lib/gitlab_quality/test_tooling/report/relate_failure_issue.rb:59:in `block in run!'
from /builds/gitlab-org/gitlab/.gems/gems/gitlab_quality-test_tooling-0.9.3/lib/gitlab_quality/test_tooling/test_results/builder.rb:25:in `block in test_results_per_file'
from /builds/gitlab-org/gitlab/.gems/gems/gitlab_quality-test_tooling-0.9.3/lib/gitlab_quality/test_tooling/test_results/builder.rb:12:in `each'
from /builds/gitlab-org/gitlab/.gems/gems/gitlab_quality-test_tooling-0.9.3/lib/gitlab_quality/test_tooling/test_results/builder.rb:12:in `test_results_per_file'
from /builds/gitlab-org/gitlab/.gems/gems/gitlab_quality-test_tooling-0.9.3/lib/gitlab_quality/test_tooling/report/relate_failure_issue.rb:54:in `run!'
from /builds/gitlab-org/gitlab/.gems/gems/gitlab_quality-test_tooling-0.9.3/lib/gitlab_quality/test_tooling/report/report_as_issue.rb:33:in `invoke!'
from /builds/gitlab-org/gitlab/.gems/gems/gitlab_quality-test_tooling-0.9.3/exe/relate-failure-issue:60:in `<top (required)>'
from /builds/gitlab-org/gitlab/.gems/bin/relate-failure-issue:25:in `load'
from /builds/gitlab-org/gitlab/.gems/bin/relate-failure-issue:25:in `<top (required)>'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.26/lib/bundler/cli/exec.rb:58:in `load'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.26/lib/bundler/cli/exec.rb:58:in `kernel_load'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.26/lib/bundler/cli/exec.rb:23:in `run'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.26/lib/bundler/cli.rb:486:in `exec'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.26/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.26/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.26/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.26/lib/bundler/cli.rb:31:in `dispatch'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.26/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.26/lib/bundler/cli.rb:25:in `start'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.26/exe/bundle:48:in `block in <top (required)>'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.26/lib/bundler/friendly_errors.rb:120:in `with_friendly_errors'
from /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.3.26/exe/bundle:36:in `<top (required)>'
from /usr/local/bin/bundle:23:in `load'
from /usr/local/bin/bundle:23:in `<main>'
Steps to reproduce locally
- Use
activesupport (7.0.8)
in specs here: https://gitlab.com/gitlab-org/ruby/gems/gitlab_quality-test_tooling/-/blob/main/Gemfile.lock?ref_type=heads#L18-18 bundle exec rspec
- Many
uninitialized constant ActiveSupport::LoggerThreadSafeLevel::IsolatedExecutionState
errors occur
Edited by Jay McCure