Skip to content

Cycle Analytics: Seeding data breaks on Projects::MASS_INSERT_NAME_START

Summary

Seeding cycle analytics data breaks on Projects::MASS_INSERT_NAME_START

Steps to reproduce

Run SEED_CYCLE_ANALYTICS=true bundle exec rake db:seed_fu FILTER=cycle_analytics

What is the current bug behavior?

The script fails throwing the following error;

== Seed from /Users/martinwortschack/workspace/gdk-ee/gitlab/db/fixtures/development/17_cycle_analytics.rb
**************************************************
⛔️ WARNING: Sidekiq testing API enabled, but this is not the test environment.  Your jobs will not go to Redis.
**************************************************
rake aborted!
NameError: uninitialized constant Projects::MASS_INSERT_NAME_START
/Users/martinwortschack/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/active_support.rb:79:in `block in load_missing_constant'
/Users/martinwortschack/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/active_support.rb:8:in `without_bootsnap_cache'
/Users/martinwortschack/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/active_support.rb:79:in `rescue in load_missing_constant'
/Users/martinwortschack/.rvm/gems/ruby-2.6.3/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/active_support.rb:58:in `load_missing_constant'
/Users/martinwortschack/workspace/gdk-ee/gitlab/lib/gitlab/seeder.rb:27:in `block (2 levels) in <module:ProjectSeed>'
/Users/martinwortschack/.rvm/gems/ruby-2.6.3/gems/activerecord-5.2.3/lib/active_record/relation.rb:288:in `instance_exec'
/Users/martinwortschack/.rvm/gems/ruby-2.6.3/gems/activerecord-5.2.3/lib/active_record/relation.rb:288:in `_exec_scope'
/Users/martinwortschack/.rvm/gems/ruby-2.6.3/gems/activerecord-5.2.3/lib/active_record/scoping/named.rb:186:in `block in scope'
(eval):220:in `block (3 levels) in run_file'
/Users/martinwortschack/workspace/gdk-ee/gitlab/lib/gitlab/seeder.rb:87:in `quiet'
(eval):216:in `block (2 levels) in run_file'

What is the expected correct behavior?

Cycle analytics data to be populated

Edited by Dan Jensen