Failing test spec/requests/api/graphql/ci/runner_spec.rb:131
Summary
Related incident gitlab-org/quality/engineering-productivity/master-broken-incidents#399 (closed)
Job failing https://gitlab.com/gitlab-org/gitlab/-/jobs/3463382854
Error
1st Try error in ./spec/requests/api/graphql/ci/runner_spec.rb:131:
expected {"accessLevel"=>"NOT_PROTECTED", "active"=>true, "adminUrl"=>nil, "architectureName"=>nil, "contacted...unner"=>true, "deleteRunner"=>true, "readRunner"=>true, "updateRunner"=>true}, "version"=>"adfe156"} to match (a hash including {"adminUrl" => nil, "id" => "gid://gitlab/Ci::Runner/22", "tagList" => ["tag1", "tag2"]})
Diff:
@@ -1,36 +1,71 @@
-(a hash including {"adminUrl" => nil, "id" => "gid://gitlab/Ci::Runner/22", "tagList" => ["tag1", "tag2"]})
+"accessLevel" => "NOT_PROTECTED",
+"active" => true,
+"adminUrl" => nil,
+"architectureName" => nil,
+"contactedAt" => "2022-12-13T00:08:26Z",
+"createdAt" => "2022-12-13T02:08:26Z",
+"description" => "Group runner 1",
+"editAdminUrl" => nil,
+"executorName" => "shell",
+"groups" => {"edges"=>[{"cursor"=>"MQ"}], "nodes"=>[{"actualRepositorySizeLimit"=>0.0, "additionalPurchasedStorageSize"=>0.0, "allowStaleRunnerPruning"=>false, "autoDevopsEnabled"=>nil, "avatarUrl"=>nil, "billableMembersCount"=>1, "containerRepositoriesCount"=>0, "containsLockedProjects"=>false, "crossProjectPipelineAvailable"=>false, "dependencyProxyBlobCount"=>0, "dependencyProxyImageCount"=>0, "dependencyProxyImagePrefix"=>"localhost/group1/dependency_proxy/containers", "dependencyProxyTotalSize"=>"0 Bytes", "description"=>"", "descriptionHtml"=>"", "emailsDisabled"=>nil, "enforceFreeUserCap"=>false, "epicsEnabled"=>false, "fullName"=>"group1", "fullPath"=>"group1", "id"=>"gid://gitlab/Group/1511", "isTemporaryStorageIncreaseEnabled"=>false, "lfsEnabled"=>false, "mentionsDisabled"=>nil, "name"=>"group1", "path"=>"group1", "projectCreationLevel"=>"maintainer", "repositorySizeExcessProjectCount"=>0, "requestAccessEnabled"=>true, "requireTwoFactorAuthentication"=>false, "shareWithGroupLock"=>false, "sharedRunnersSetting"=>"ENABLED", "storageSizeLimit"=>0.0, "subgroupCreationLevel"=>"maintainer", "temporaryStorageIncreaseEndsOn"=>nil, "totalRepositorySize"=>0.0, "totalRepositorySizeExcess"=>0.0, "twoFactorGracePeriod"=>48, "visibility"=>"public", "webUrl"=>"http://localhost/groups/group1"}], "pageInfo"=>{"endCursor"=>"MQ", "hasNextPage"=>false, "hasPreviousPage"=>false, "startCursor"=>"MQ"}},
+"id" => "gid://gitlab/Ci::Runner/22",
+"ipAddress" => "127.0.0.1",
+"jobCount" => 0,
+"jobExecutionStatus" => "IDLE",
+"jobs" => {"count"=>0, "edges"=>[], "nodes"=>[], "pageInfo"=>{"endCursor"=>nil, "hasNextPage"=>false, "hasPreviousPage"=>false, "startCursor"=>nil}},
+"locked" => false,
+"maintenanceNote" => nil,
+"maintenanceNoteHtml" => "",
+"maximumTimeout" => 600,
+"ownerProject" => nil,
+"paused" => false,
+"platformName" => "darwin",
+"privateProjectsMinutesCostFactor" => 1.0,
+"projectCount" => nil,
+"projects" => nil,
+"publicProjectsMinutesCostFactor" => 0.0,
+"revision" => "a",
+"runUntagged" => true,
+"runnerType" => "GROUP_TYPE",
+"shortSha" => "osxY1Dup",
+"status" => "OFFLINE",
+"tagList" => ["tag2", "tag1"],
+"tokenExpiresAt" => nil,
+"upgradeStatus" => nil,
+"userPermissions" => {"assignRunner"=>true, "deleteRunner"=>true, "readRunner"=>true, "updateRunner"=>true},
+"version" => "adfe156",
Shared Example Group: "retrieval with no admin url" called from ./spec/requests/api/graphql/ci/runner_spec.rb:466
# ./spec/requests/api/graphql/ci/runner_spec.rb:137:in `block (3 levels) in <main>'
# ./spec/spec_helper.rb:417:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:409:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:405:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:59:in `with_raw_context'
# ./spec/spec_helper.rb:405:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:241:in `block (2 levels) in <top (required)>'
# ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <main>'
# ./spec/support/flaky_tests.rb:27:in `block (2 levels) in <main>'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (3 levels) in <main>'
# ./spec/support/database/prevent_cross_joins.rb:60:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (2 levels) in <main>'
Finished in 11.88 seconds (files took 47.67 seconds to load)
2 examples, 1 failure
Failed examples:
rspec ./spec/requests/api/graphql/ci/runner_spec.rb:131 # Query.runner(id) by non-admin user behaves like retrieval with no admin url retrieves expected fields
Steps to reproduce
Proposed Resolution
Please refer to the Resolution guidance to learn more about resolution of broken master.
Job #3463382854 failed for 57d6bb59:
Edited by Alina Mihaila