spec/tasks/gitlab/usage_data_rake_spec.rb | gitlab:usage data take tasks generate_and_send generate_ci_template_events generates /Users/remy/Code/GitLab/gdk/gitlab/lib/gitlab/usage_data_counters/known_events/ci_templates.yml
Summary
This looks order-dependent and caused by an earlier test.
Steps to reproduce
bin/rspec spec/services/ci/pipeline_processing/atomic_processing_service_spec.rb spec/services/merge_requests/refresh_service_spec.rb spec/policies/merge_request_policy_spec.rb spec/tasks/gitlab/usage_data_rake_spec.rb
Error:
1) gitlab:usage data take tasks generate_and_send generate_ci_template_events generates /Users/remy/Code/GitLab/gdk/gitlab/lib/gitlab/usage_data_counters/known_events/ci_templates.yml
Failure/Error: data = YAML.safe_load(template.content, aliases: true)
Psych::DisallowedClass:
Tried to load unspecified class: Gitlab::Ci::Config::Yaml::Tags::Reference
# ./lib/gitlab/usage_data_counters/ci_template_unique_counter.rb:46:in `block in all_included_templates'
# ./lib/gitlab/usage_data_counters/ci_template_unique_counter.rb:43:in `tap'
# ./lib/gitlab/usage_data_counters/ci_template_unique_counter.rb:43:in `all_included_templates'
# ./lib/gitlab/usage_data_counters/ci_template_unique_counter.rb:49:in `block (2 levels) in all_included_templates'
# ./lib/gitlab/usage_data_counters/ci_template_unique_counter.rb:47:in `each'
# ./lib/gitlab/usage_data_counters/ci_template_unique_counter.rb:47:in `block in all_included_templates'
# ./lib/gitlab/usage_data_counters/ci_template_unique_counter.rb:43:in `tap'
# ./lib/gitlab/usage_data_counters/ci_template_unique_counter.rb:43:in `all_included_templates'
# ./lib/tasks/gitlab/usage_data.rake:70:in `implicit_auto_devops_includes'
# ./lib/tasks/gitlab/usage_data.rake:46:in `block (3 levels) in <main>'
# ./spec/support/helpers/rake_helpers.rb:6:in `run_rake_task'
# ./spec/tasks/gitlab/usage_data_rake_spec.rb:82:in `block (4 levels) in <main>'
# ./spec/tasks/gitlab/usage_data_rake_spec.rb:76:in `block (4 levels) in <main>'
# ./spec/spec_helper.rb:415:in `block (3 levels) in <main>'
# ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:407:in `block (2 levels) in <main>'
# ./spec/spec_helper.rb:403:in `block (3 levels) in <main>'
# ./lib/gitlab/application_context.rb:59:in `with_raw_context'
# ./spec/spec_helper.rb:403:in `block (2 levels) in <main>'
# ./spec/spec_helper.rb:239:in `block (2 levels) in <main>'
# ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <main>'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (3 levels) in <main>'
# ./spec/support/database/prevent_cross_joins.rb:60:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (2 levels) in <main>'
# -e:1:in `<main>'
Proposed Resolution
Please refer to the Resolution guidance to learn more about resolution of broken master.