Flaky test './spec/requests/git_http_spec.rb[1:3:2:3:1]' # Git HTTP requests when terms are enforced when the user accepted the terms behaves like pushes are allowed allows pushes
Job #960150213 failed for gitlab-org/security/gitlab@2df72825109e818b8e78946ed40335a3125d0bef:
1) getting project label information behaves like querying a GraphQL type with labels performance batches queries for labels by title
# See: https://gitlab.com/gitlab-org/gitlab/-/issues/217767
Failure/Error:
expect { run_query(multi_selection) }
.to issue_same_number_of_queries_as { run_query(single_selection) }
Expected 15 queries, but got 16
SELECT "personal_access_tokens".* FROM "personal_access_tokens" WHERE "personal_access_tokens"."token_digest" = 'yikC6Ada39Kdc6b1ht7649nh9ZAOaue+nVeLj6TL+e4=' LIMIT 1 /*application:test,correlation_id:8f932bc0de5b4c40fa8bb9026e673350*/
SAVEPOINT active_record_3 /*application:test,correlation_id:8f932bc0de5b4c40fa8bb9026e673350*/
SELECT "licenses".* FROM "licenses" ORDER BY "licenses"."id" DESC LIMIT 100 /*application:test,correlation_id:8f932bc0de5b4c40fa8bb9026e673350*/
SELECT "licenses".* FROM "licenses" ORDER BY "licenses"."id" DESC LIMIT 100 /*application:test,correlation_id:8f932bc0de5b4c40fa8bb9026e673350*/
INSERT INTO "personal_access_tokens" ("user_id", "name", "expires_at", "created_at", "updated_at", "scopes", "token_digest") VALUES (2598, 'PAT 1322', '2021-01-18', '2021-01-13 11:35:24.420543', '2021-01-13 11:35:24.420543', '---
- api
', 'yikC6Ada39Kdc6b1ht7649nh9ZAOaue+nVeLj6TL+e4=') RETURNING "id" /*application:test,correlation_id:8f932bc0de5b4c40fa8bb9026e673350*/
RELEASE SAVEPOINT active_record_3 /*application:test,correlation_id:8f932bc0de5b4c40fa8bb9026e673350*/
SELECT "personal_access_tokens".* FROM "personal_access_tokens" WHERE "personal_access_tokens"."token_digest" = 'yikC6Ada39Kdc6b1ht7649nh9ZAOaue+nVeLj6TL+e4=' LIMIT 1 /*application:test,controller:graphql,action:execute,correlation_id:9655794b-76c7-4b59-8c42-6d7c4c448160*/
SELECT "licenses".* FROM "licenses" ORDER BY "licenses"."id" DESC LIMIT 100 /*application:test,controller:graphql,action:execute,correlation_id:9655794b-76c7-4b59-8c42-6d7c4c448160*/
SELECT 1 AS one FROM "geo_nodes" LIMIT 1 /*application:test,controller:graphql,action:execute,correlation_id:9655794b-76c7-4b59-8c42-6d7c4c448160*/
UPDATE "personal_access_tokens" SET "last_used_at" = '2021-01-13 11:35:24.443725' WHERE "personal_access_tokens"."id" = 1323 /*application:test,controller:graphql,action:execute,correlation_id:9655794b-76c7-4b59-8c42-6d7c4c448160*/
SELECT "users".* FROM "users" WHERE "users"."id" = 2598 LIMIT 1 /*application:test,controller:graphql,action:execute,correlation_id:9655794b-76c7-4b59-8c42-6d7c4c448160*/
SELECT "projects"."id" AS t0_r0, "projects"."name" AS t0_r1, "projects"."path" AS t0_r2, "projects"."description" AS t0_r3, "projects"."created_at" AS t0_r4, "projects"."updated_at" AS t0_r5, "projects"."creator_id" AS t0_r6, "projects"."namespace_id" AS t0_r7, "projects"."last_activity_at" AS t0_r8, "projects"."import_url" AS t0_r9, "projects"."visibility_level" AS t0_r10, "projects"."archived" AS t0_r11, "projects"."avatar" AS t0_r12, "projects"."merge_requests_template" AS t0_r13, "projects"."star_count" AS t0_r14, "projects"."merge_requests_rebase_enabled" AS t0_r15, "projects"."import_type" AS t0_r16, "projects"."import_source" AS t0_r17, "projects"."approvals_before_merge" AS t0_r18, "projects"."reset_approvals_on_push" AS t0_r19, "projects"."merge_requests_ff_only_enabled" AS t0_r20, "projects"."issues_template" AS t0_r21, "projects"."mirror" AS t0_r22, "projects"."mirror_last_update_at" AS t0_r23, "projects"."mirror_last_successful_update_at" AS t0_r24, "projects"."mirror_user_id" AS t0_r25, "projects"."shared_runners_enabled" AS t0_r26, "projects"."runners_token" AS t0_r27, "projects"."build_coverage_regex" AS t0_r28, "projects"."build_allow_git_fetch" AS t0_r29, "projects"."build_timeout" AS t0_r30, "projects"."mirror_trigger_builds" AS t0_r31, "projects"."pending_delete" AS t0_r32, "projects"."public_builds" AS t0_r33, "projects"."last_repository_check_failed" AS t0_r34, "projects"."last_repository_check_at" AS t0_r35, "projects"."container_registry_enabled" AS t0_r36, "projects"."only_allow_merge_if_pipeline_succeeds" AS t0_r37, "projects"."has_external_issue_tracker" AS t0_r38, "projects"."repository_storage" AS t0_r39, "projects"."repository_read_only" AS t0_r40, "projects"."request_access_enabled" AS t0_r41, "projects"."has_external_wiki" AS t0_r42, "projects"."ci_config_path" AS t0_r43, "projects"."lfs_enabled" AS t0_r44, "projects"."description_html" AS t0_r45, "projects"."only_allow_merge_if_all_discussions_are_resolved" AS t0_r46, "projects"."repository_size_limit" AS t0_r47, "projects"."printing_merge_request_link_enabled" AS t0_r48, "projects"."auto_cancel_pending_pipelines" AS t0_r49, "projects"."service_desk_enabled" AS t0_r50, "projects"."cached_markdown_version" AS t0_r51, "projects"."delete_error" AS t0_r52, "projects"."last_repository_updated_at" AS t0_r53, "projects"."disable_overriding_approvers_per_merge_request" AS t0_r54, "projects"."storage_version" AS t0_r55, "projects"."resolve_outdated_diff_discussions" AS t0_r56, "projects"."remote_mirror_available_overridden" AS t0_r57, "projects"."only_mirror_protected_branches" AS t0_r58, "projects"."pull_mirror_available_overridden" AS t0_r59, "projects"."jobs_cache_index" AS t0_r60, "projects"."external_authorization_classification_label" AS t0_r61, "projects"."mirror_overwrites_diverged_branches" AS t0_r62, "projects"."pages_https_only" AS t0_r63, "projects"."external_webhook_token" AS t0_r64, "projects"."packages_enabled" AS t0_r65, "projects"."merge_requests_author_approval" AS t0_r66, "projects"."pool_repository_id" AS t0_r67, "projects"."runners_token_encrypted" AS t0_r68, "projects"."bfg_object_map" AS t0_r69, "projects"."detected_repository_languages" AS t0_r70, "projects"."merge_requests_disable_committers_approval" AS t0_r71, "projects"."require_password_to_approve" AS t0_r72, "projects"."emails_disabled" AS t0_r73, "projects"."max_pages_size" AS t0_r74, "projects"."max_artifacts_size" AS t0_r75, "projects"."pull_mirror_branch_prefix" AS t0_r76, "projects"."remove_source_branch_after_merge" AS t0_r77, "projects"."marked_for_deletion_at" AS t0_r78, "projects"."marked_for_deletion_by_user_id" AS t0_r79, "projects"."autoclose_referenced_issues" AS t0_r80, "projects"."suggestion_commit_message" AS t0_r81, "routes"."id" AS t1_r0, "routes"."source_id" AS t1_r1, "routes"."source_type" AS t1_r2, "routes"."path" AS t1_r3, "routes"."created_at" AS t1_r4, "routes"."updated_at" AS t1_r5, "routes"."name" AS t1_r6 FROM "projects" LEFT OUTER JOIN "routes" ON "routes"."source_type" = 'Project' AND "routes"."source_id" = "projects"."id" WHERE ((LOWER(routes.path) = LOWER('namespace1385/project1414'))) /*application:test,controller:graphql,action:execute,correlation_id:9655794b-76c7-4b59-8c42-6d7c4c448160*/
SELECT "namespaces".* FROM "namespaces" WHERE "namespaces"."type" = 'Group' AND "namespaces"."id" = 2976 AND "namespaces"."type" = 'Group' LIMIT 1 /*application:test,controller:graphql,action:execute,correlation_id:9655794b-76c7-4b59-8c42-6d7c4c448160*/
SELECT "project_features".* FROM "project_features" WHERE "project_features"."project_id" = 1438 LIMIT 1 /*application:test,controller:graphql,action:execute,correlation_id:9655794b-76c7-4b59-8c42-6d7c4c448160*/
SELECT "labels".* FROM "labels" WHERE "labels"."type" = 'ProjectLabel' AND "labels"."project_id" = 1438 AND "labels"."title" = 'label98' ORDER BY "labels"."title" ASC /*application:test,controller:graphql,action:execute,correlation_id:9655794b-76c7-4b59-8c42-6d7c4c448160*/
SELECT "labels".* FROM "labels" WHERE "labels"."type" = 'ProjectLabel' AND "labels"."project_id" = 1438 AND "labels"."title" = 'matching::label99' ORDER BY "labels"."title" ASC /*application:test,controller:graphql,action:execute,correlation_id:9655794b-76c7-4b59-8c42-6d7c4c448160*/
Shared Example Group: "querying a GraphQL type with labels" called from ./spec/requests/api/graphql/project/labels_query_spec.rb:12
# ./spec/support/shared_examples/graphql/label_fields.rb:114:in `block (3 levels) in <top (required)>'
# ./spec/spec_helper.rb:344:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:335:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:331:in `block (3 levels) in <top (required)>'
# ./spec/spec_helper.rb:331:in `block (2 levels) in <top (required)>'
Failures:
1) Git HTTP requests when terms are enforced when the user accepted the terms behaves like pushes are allowed allows pushes
Failure/Error: result = super
Redis::TimeoutError:
Connection timed out
Shared Example Group: "pushes are allowed" called from ./spec/requests/git_http_spec.rb:941
# ./lib/gitlab/instrumentation/redis_interceptor.rb:40:in `read'
# ./lib/gitlab/instrumentation/redis_interceptor.rb:15:in `call'
# ./lib/gitlab/instrumentation/redis_interceptor.rb:15:in `call'
# ./lib/gitlab/redis/wrapper.rb:18:in `block in with'
# ./lib/gitlab/redis/wrapper.rb:18:in `with'
# ./spec/support/redis/redis_helpers.rb:13:in `redis_queues_cleanup!'
# ./spec/support/sidekiq.rb:10:in `gitlab_sidekiq_inline'
# ./spec/support/sidekiq.rb:17:in `block (2 levels) in <top (required)>'
# ------------------
# --- Caused by: ---
# IO::EAGAINWaitReadable:
# Resource temporarily unavailable - read would block
# ./lib/gitlab/instrumentation/redis_interceptor.rb:40:in `read'
Finished in 15 minutes 56 seconds (files took 56.24 seconds to load)
3370 examples, 1 failure, 1 pending
Failed examples:
rspec './spec/requests/git_http_spec.rb[1:3:2:3:1]' # Git HTTP requests when terms are enforced when the user accepted the terms behaves like pushes are allowed allows pushes