Intermittent or order-dependent spec failure: spec/lib/gitlab/cycle_analytics/usage_data_spec.rb
Per https://gitlab.com/gitlab-org/gitlab-ce/-/jobs/56238289 (07432373):
Failures:
1) Gitlab::CycleAnalytics::UsageData#to_json when using postgresql behaves like a valid usage data result returns the aggregated usage data of every selected project
Failure/Error: expect(stage_values[op]).to eq(value)
expected: 0
got: 1
(compared using ==)
Shared Example Group: "a valid usage data result" called from ./spec/lib/gitlab/cycle_analytics/usage_data_spec.rb:93
# ./spec/lib/gitlab/cycle_analytics/usage_data_spec.rb:42:in `block (6 levels) in <top (required)>'
# ./spec/lib/gitlab/cycle_analytics/usage_data_spec.rb:38:in `each_pair'
# ./spec/lib/gitlab/cycle_analytics/usage_data_spec.rb:38:in `block (5 levels) in <top (required)>'
# ./spec/lib/gitlab/cycle_analytics/usage_data_spec.rb:32:in `each'
# ./spec/lib/gitlab/cycle_analytics/usage_data_spec.rb:32:in `block (4 levels) in <top (required)>'
# ./spec/spec_helper.rb:186:in `block (2 levels) in <top (required)>'
Finished in 13 minutes 10 seconds (files took 20 seconds to load)
1251 examples, 1 failure, 4 pending
Failed examples:
rspec './spec/lib/gitlab/cycle_analytics/usage_data_spec.rb[1:1:1:1:1]' # Gitlab::CycleAnalytics::UsageData#to_json when using postgresql behaves like a valid usage data result returns the aggregated usage data of every selected project
Files in the spec run:
spec/features/projects/pipelines/pipeline_spec.rb
spec/requests/api/commits_spec.rb
spec/features/boards/sidebar_spec.rb
spec/features/boards/add_issues_modal_spec.rb
spec/features/merge_request/user_selects_branches_for_new_mr_spec.rb
spec/features/issues/create_issue_for_single_discussion_in_merge_request_spec.rb
spec/serializers/pipeline_serializer_spec.rb
spec/services/merge_requests/create_from_issue_service_spec.rb
spec/services/groups/transfer_service_spec.rb
spec/models/project_services/mattermost_service_spec.rb
spec/features/projects/members/share_with_group_spec.rb
spec/features/projects/user_uploads_files_spec.rb
spec/features/explore/groups_list_spec.rb
spec/requests/api/v3/todos_spec.rb
spec/models/merge_request_diff_spec.rb
spec/services/merge_requests/rebase_service_spec.rb
spec/controllers/projects/labels_controller_spec.rb
spec/lib/gitlab/github_import/user_finder_spec.rb
spec/serializers/build_details_entity_spec.rb
spec/features/projects/merge_requests/user_comments_on_merge_request_spec.rb
spec/tasks/gitlab/git_rake_spec.rb
spec/requests/rack_attack_global_spec.rb
spec/features/projects/branches/new_branch_ref_dropdown_spec.rb
spec/features/search/user_searches_for_merge_requests_spec.rb
spec/controllers/projects/merge_requests/diffs_controller_spec.rb
spec/services/merge_requests/add_todo_when_build_fails_service_spec.rb
spec/controllers/projects/commits_controller_spec.rb
spec/workers/remove_expired_members_worker_spec.rb
spec/features/projects/members/sorting_spec.rb
spec/lib/gitlab/cycle_analytics/usage_data_spec.rb
Last touched in 522f4b2c /cc @tiagonbotelho