spec/models/analytics/cycle_analytics/project_stage_spec.rb failure
Job #1492444958 failed for gitlab-foss@c74c13e2:
FOSS_ONLY=1 bundle exec rspec spec/models/analytics/cycle_analytics/project_stage_spec.rb
1) Analytics::CycleAnalytics::ProjectStage behaves like value stream analytics stage #event_hash creates different hash record for different event configurations
Failure/Error: create(factory, start_event_identifier: :issue_created, end_event_identifier: :issue_first_mentioned_in_commit)
ActiveRecord::RecordInvalid:
Validation failed: End event not allowed for the given start event
Shared Example Group: "value stream analytics stage" called from ./spec/models/analytics/cycle_analytics/project_stage_spec.rb:19
# ./spec/support/shared_examples/models/cycle_analytics_stage_shared_examples.rb:161:in `block (4 levels) in <top (required)>'
# ./spec/support/shared_examples/models/cycle_analytics_stage_shared_examples.rb:160:in `block (3 levels) in <top (required)>'
# ./spec/spec_helper.rb:390:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:381:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:377:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:377:in `block (2 levels) in <top (required)>'
2) Analytics::CycleAnalytics::ProjectStage behaves like value stream analytics stage #event_hash when the stage event hash changes deletes the old, unused stage event hash record
Failure/Error: stage.update!(end_event_identifier: :merge_request_first_deployed_to_production)
ActiveRecord::RecordInvalid:
Validation failed: End event not allowed for the given start event
Shared Example Group: "value stream analytics stage" called from ./spec/models/analytics/cycle_analytics/project_stage_spec.rb:19
# ./spec/support/shared_examples/models/cycle_analytics_stage_shared_examples.rb:172:in `block (4 levels) in <top (required)>'
# ./spec/spec_helper.rb:390:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:381:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:377:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:377:in `block (2 levels) in <top (required)>'
3) Analytics::CycleAnalytics::ProjectStage behaves like value stream analytics stage #event_hash when the stage event hash changes does not delete used stage event hash record
Failure/Error: stage.update!(end_event_identifier: :merge_request_first_deployed_to_production)
ActiveRecord::RecordInvalid:
Validation failed: End event not allowed for the given start event
Shared Example Group: "value stream analytics stage" called from ./spec/models/analytics/cycle_analytics/project_stage_spec.rb:19
# ./spec/support/shared_examples/models/cycle_analytics_stage_shared_examples.rb:183:in `block (4 levels) in <top (required)>'
# ./spec/spec_helper.rb:390:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:381:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:377:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:377:in `block (2 levels) in <top (required)>'
Edited by Kyle Wiebers