Skip to content

GitLab Next

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 39,511
    • Issues 39,511
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 1,222
    • Merge requests 1,222
  • Requirements
    • Requirements
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
    • Value stream
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.org
  • GitLabGitLab
  • Issues
  • #327668

Closed
Open
Created Apr 14, 2021 by Albert Salim@alberts-gitlab🔴Maintainer

Broken test in ee/spec/services/ee/issuable/bulk_update_service_spec.rb

https://gitlab.com/gitlab-org/gitlab/-/jobs/1177940284

Failures:
  1) Issuable::BulkUpdateService with epics updating labels when epics are enabled behaves like updates issuables attribute succeeds and returns the correct number of issuables updated
     Failure/Error:
             items.each do |issuable|
               next unless can?(current_user, :"update_#{type}", issuable)
       
               update_class.new(issuable.issuing_parent, current_user, params).execute(issuable)
             end
     NoMethodError:
       undefined method `_reflect_on_association' for Metrics:Module
     Shared Example Group: "updates issuables attribute" called from ./ee/spec/services/ee/issuable/bulk_update_service_spec.rb:205
     # ./app/services/issuable/bulk_update_service.rb:51:in `update_issuables'
     # ./app/services/issuable/bulk_update_service.rb:16:in `execute'
     # ./ee/spec/services/ee/issuable/bulk_update_service_spec.rb:11:in `block (2 levels) in <top (required)>'
     # ./ee/spec/services/ee/issuable/bulk_update_service_spec.rb:15:in `block (3 levels) in <top (required)>'
     # ./spec/spec_helper.rb:361:in `block (3 levels) in <top (required)>'
     # ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
     # ./spec/spec_helper.rb:352:in `block (2 levels) in <top (required)>'
     # ./spec/spec_helper.rb:348:in `block (3 levels) in <top (required)>'
     # ./lib/gitlab/application_context.rb:31:in `with_raw_context'
     # ./spec/spec_helper.rb:348:in `block (2 levels) in <top (required)>'
  2) Issuable::BulkUpdateService with epics updating labels when epics are disabled behaves like does not update issuables attribute does not update attribute
     Failure/Error:
             items.each do |issuable|
               next unless can?(current_user, :"update_#{type}", issuable)
       
               update_class.new(issuable.issuing_parent, current_user, params).execute(issuable)
             end
     NoMethodError:
       undefined method `_reflect_on_association' for Metrics:Module
     Shared Example Group: "does not update issuables attribute" called from ./ee/spec/services/ee/issuable/bulk_update_service_spec.rb:213
     # ./app/services/issuable/bulk_update_service.rb:51:in `update_issuables'
     # ./app/services/issuable/bulk_update_service.rb:16:in `execute'
     # ./ee/spec/services/ee/issuable/bulk_update_service_spec.rb:11:in `block (2 levels) in <top (required)>'
     # ./ee/spec/services/ee/issuable/bulk_update_service_spec.rb:26:in `block (5 levels) in <top (required)>'
     # ./ee/spec/services/ee/issuable/bulk_update_service_spec.rb:26:in `block (4 levels) in <top (required)>'
     # ./ee/spec/services/ee/issuable/bulk_update_service_spec.rb:25:in `each'
     # ./ee/spec/services/ee/issuable/bulk_update_service_spec.rb:25:in `block (3 levels) in <top (required)>'
     # ./spec/spec_helper.rb:361:in `block (3 levels) in <top (required)>'
     # ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
     # ./spec/spec_helper.rb:352:in `block (2 levels) in <top (required)>'
     # ./spec/spec_helper.rb:348:in `block (3 levels) in <top (required)>'
     # ./lib/gitlab/application_context.rb:31:in `with_raw_context'
     # ./spec/spec_helper.rb:348:in `block (2 levels) in <top (required)>'
  3) Issuable::BulkUpdateService with epics updating labels when issuable_ids contain external epics updates epics that belong to the parent group or descendants
     Failure/Error:
             items.each do |issuable|
               next unless can?(current_user, :"update_#{type}", issuable)
       
               update_class.new(issuable.issuing_parent, current_user, params).execute(issuable)
             end
     NoMethodError:
       undefined method `_reflect_on_association' for Metrics:Module
     # ./app/services/issuable/bulk_update_service.rb:51:in `update_issuables'
     # ./app/services/issuable/bulk_update_service.rb:16:in `execute'
     # ./ee/spec/services/ee/issuable/bulk_update_service_spec.rb:11:in `block (2 levels) in <top (required)>'
     # ./ee/spec/services/ee/issuable/bulk_update_service_spec.rb:222:in `block (5 levels) in <top (required)>'
     # ./spec/spec_helper.rb:361:in `block (3 levels) in <top (required)>'
     # ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
     # ./spec/spec_helper.rb:352:in `block (2 levels) in <top (required)>'
     # ./spec/spec_helper.rb:348:in `block (3 levels) in <top (required)>'
     # ./lib/gitlab/application_context.rb:31:in `with_raw_context'
     # ./spec/spec_helper.rb:348:in `block (2 levels) in <top (required)>'
Finished in 16 minutes 20 seconds (files took 57.25 seconds to load)
2649 examples, 3 failures, 2 pending
Failed examples:
rspec ./ee/spec/services/ee/issuable/bulk_update_service_spec.rb:14 # Issuable::BulkUpdateService with epics updating labels when epics are enabled behaves like updates issuables attribute succeeds and returns the correct number of issuables updated
rspec './ee/spec/services/ee/issuable/bulk_update_service_spec.rb[1:2:1:2:1:1]' # Issuable::BulkUpdateService with epics updating labels when epics are disabled behaves like does not update issuables attribute does not update attribute
rspec ./ee/spec/services/ee/issuable/bulk_update_service_spec.rb:221 # Issuable::BulkUpdateService with epics updating labels when issuable_ids contain external epics updates epics that belong to the parent group or descendants
Edited Apr 14, 2021 by Albert Salim
Assignee
Assign to
Time tracking