Failing spec: rspec ./spec/lib/gitlab/usage_data_spec.rb:264 # Gitlab::UsageData usage_activity_by_stage_manage includes imports usage data
Job #3790837160 failed for 069f99f2:
Gitlab::UsageData
usage_activity_by_stage_manage
includes imports usage data (FAILED - 1)
Failures:
1) Gitlab::UsageData usage_activity_by_stage_manage includes imports usage data
Failure/Error:
expect(described_class.usage_activity_by_stage_manage(described_class.monthly_time_range_db_params)).to include(
{
bulk_imports: {
gitlab_v1: 1
},
project_imports: {
bitbucket: 1,
bitbucket_server: 1,
git: 1,
gitea: 1,
expected {:bulk_imports => {:gitlab_v1 => #<Integer(1)>}, :events => #<Float(0.0)>, :group_imports => {:gitlab_migrati...e" => #<Integer(0)>, "two-factor-via-webauthn-device" => #<Integer(0)>}, :users_created => #<Integer(14)>} to include {:project_imports => {:bitbucket => 1, :bitbucket_server => 1, :git => 1, :gitea => 1, :github => 1, :gitlab => 1, :gitlab_migration => 1, :gitlab_project => 1, :manifest => 1, :total => 9}, :issue_imports => {:jira => 1, :fogbugz => 1, :phabricator => 1, :csv => 1}}
Diff:
@@ -1,5 +1,11 @@
-:bulk_imports => {:gitlab_v1=>1},
-:group_imports => {:gitlab_migration=>1, :group_import=>1},
-:issue_imports => {:csv=>1, :fogbugz=>1, :jira=>1, :phabricator=>1},
-:project_imports => {:bitbucket=>1, :bitbucket_server=>1, :git=>1, :gitea=>1, :github=>1, :gitlab=>1, :gitlab_migration=>1, :gitlab_project=>1, :manifest=>1, :total=>9},
+:bulk_imports => {:gitlab_v1=>#<Integer(1)>},
+:events => #<Float(0.0)>,
+:group_imports => {:gitlab_migration=>1, :group_import=>#<Integer(1)>},
+:groups => #<Integer(1)>,
+:issue_imports => {:csv=>#<Integer(1)>, :fogbugz=>0, :jira=>#<Integer(1)>, :phabricator=>0},
+:omniauth_providers => ["alicloud", "cas3", "github", "bitbucket", "dingtalk", "gitlab", "google_oauth2", "facebook", "twitter", "jwt", "auth0", "salesforce", "atlassian_oauth2"],
+:project_imports => {:bitbucket=>0, :bitbucket_server=>0, :git=>0, :gitea=>0, :github=>0, :gitlab=>0, :gitlab_migration=>1, :gitlab_project=>1, :manifest=>0, :total=>9},
+:unique_users_all_imports => #<Integer(5)>,
+:user_auth_by_provider => {"alicloud"=>#<Integer(0)>, "atlassian_oauth2"=>#<Integer(0)>, "auth0"=>#<Integer(0)>, "bitbucket"=>#<Integer(0)>, "cas3"=>#<Integer(0)>, "dingtalk"=>#<Integer(0)>, "facebook"=>#<Integer(0)>, "github"=>#<Integer(0)>, "gitlab"=>#<Integer(0)>, "google_oauth2"=>#<Integer(0)>, "jwt"=>#<Integer(0)>, "salesforce"=>#<Integer(0)>, "standard"=>#<Integer(0)>, "twitter"=>#<Integer(0)>, "two-factor"=>#<Integer(0)>, "two-factor-via-u2f-device"=>#<Integer(0)>, "two-factor-via-webauthn-device"=>#<Integer(0)>},
+:users_created => #<Integer(14)>,
# ./spec/lib/gitlab/usage_data_spec.rb:315:in `block (3 levels) in <main>'
# ./spec/spec_helper.rb:509:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:501:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:497:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:59:in `with_raw_context'
# ./spec/spec_helper.rb:497:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:239:in `block (2 levels) in <top (required)>'
# ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <main>'
# ./spec/support/redis.rb:17:in `block (3 levels) in <main>'
# ./spec/support/database/prevent_cross_joins.rb:108:in `block (3 levels) in <main>'
# ./spec/support/database/prevent_cross_joins.rb:62:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:108:in `block (2 levels) in <main>'
Finished in 12.88 seconds (files took 36.95 seconds to load)
1 example, 1 failure
Failed examples:
rspec ./spec/lib/gitlab/usage_data_spec.rb:264 # Gitlab::UsageData usage_activity_by_stage_manage includes imports usage data
FOSS only
It seems those flaky failures only happen with FOSS_ONLY=1
.
Edited by Peter Leitzen