(CI job) GraphQL Timeout on validation of query
Some query validations are timing out. The timeout is 0.2 seconds (defined in https://gitlab.com/gitlab-org/gitlab/blob/cd54700c365c3fcfb4b28d8dfe62095291f673d8/app/graphql/gitlab_schema.rb#L38-38). Recently (week of 15th March onwards) we're getting some timeouts during query validations. Initially it errored out, but that was fixed. Now we see the timeout message.
Here are the recent errors:
After the fix in !114809 (merged), we now see :
ERROR /builds/gitlab-org/gitlab/ee/app/assets/javascripts/security_dashboard/graphql/queries/instance_vulnerabilities.query.graphql: Timeout on validation of query
##########
#
# 1 GraphQL query out of 758 failed validation:
# - /builds/gitlab-org/gitlab/ee/app/assets/javascripts/security_dashboard/graphql/queries/instance_vulnerabilities.query.graphql
#
##########
https://gitlab.com/gitlab-org/gitlab/-/jobs/3949344378
Job #3942725978 failed for 55bba418:
OK /builds/gitlab-org/gitlab/app/assets/javascripts/vue_shared/components/runner_instructions/graphql/get_runner_setup.query.graphql
OK /builds/gitlab-org/gitlab/app/assets/javascripts/vue_shared/security_reports/graphql/queries/security_report_merge_request_download_paths.query.graphql
OK /builds/gitlab-org/gitlab/app/assets/javascripts/vue_shared/security_reports/graphql/queries/security_report_pipeline_download_paths.query.graphql
SKIP /builds/gitlab-org/gitlab/app/assets/javascripts/work_items/graphql/add_hierarchy_child.mutation.graphql: client query
rake aborted!
NoMethodError: undefined method `join' for nil:NilClass
/builds/gitlab-org/gitlab/lib/tasks/gitlab/graphql.rake:90:in `block (5 levels) in <main>'
/builds/gitlab-org/gitlab/lib/tasks/gitlab/graphql.rake:88:in `each'
/builds/gitlab-org/gitlab/lib/tasks/gitlab/graphql.rake:88:in `block (4 levels) in <main>'
/builds/gitlab-org/gitlab/lib/tasks/gitlab/graphql.rake:80:in `each'
/builds/gitlab-org/gitlab/lib/tasks/gitlab/graphql.rake:80:in `flat_map'
/builds/gitlab-org/gitlab/lib/tasks/gitlab/graphql.rake:80:in `block (3 levels) in <main>'
/builds/gitlab-org/gitlab/vendor/ruby/3.0.0/gems/sentry-ruby-core-5.1.1/lib/sentry/rake.rb:26:in `execute'
/builds/gitlab-org/gitlab/vendor/ruby/3.0.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
/builds/gitlab-org/gitlab/vendor/ruby/3.0.0/gems/bundler-2.4.8/lib/bundler/cli/exec.rb:58:in `load'
/builds/gitlab-org/gitlab/vendor/ruby/3.0.0/gems/bundler-2.4.8/lib/bundler/cli/exec.rb:58:in `kernel_load'
/builds/gitlab-org/gitlab/vendor/ruby/3.0.0/gems/bundler-2.4.8/lib/bundler/cli/exec.rb:23:in `run'
/builds/gitlab-org/gitlab/vendor/ruby/3.0.0/gems/bundler-2.4.8/lib/bundler/cli.rb:492:in `exec'
/builds/gitlab-org/gitlab/vendor/ruby/3.0.0/gems/bundler-2.4.8/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/builds/gitlab-org/gitlab/vendor/ruby/3.0.0/gems/bundler-2.4.8/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
/builds/gitlab-org/gitlab/vendor/ruby/3.0.0/gems/bundler-2.4.8/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
/builds/gitlab-org/gitlab/vendor/ruby/3.0.0/gems/bundler-2.4.8/lib/bundler/cli.rb:34:in `dispatch'
/builds/gitlab-org/gitlab/vendor/ruby/3.0.0/gems/bundler-2.4.8/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
/builds/gitlab-org/gitlab/vendor/ruby/3.0.0/gems/bundler-2.4.8/lib/bundler/cli.rb:28:in `start'
/builds/gitlab-org/gitlab/vendor/ruby/3.0.0/gems/bundler-2.4.8/exe/bundle:45:in `block in <top (required)>'
/builds/gitlab-org/gitlab/vendor/ruby/3.0.0/gems/bundler-2.4.8/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
/builds/gitlab-org/gitlab/vendor/ruby/3.0.0/gems/bundler-2.4.8/exe/bundle:33:in `<top (required)>'
/usr/local/bin/bundle:25:in `load'
/usr/local/bin/bundle:25:in `<main>'
Tasks: TOP => gitlab:graphql:validate
(See full trace by running task with --trace)
Cleaning up project directory and file based variables 00:01
ERROR: Job failed: exit code 1
Edited by charlie ablett