Skip to content

GraphQL API for "instance runner" failures

Add API for Display 2 most recent runner failures for insta... (#413096 - closed) Add failure_status filter to https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/graphql/resolvers/ci/all_jobs_resolver.rb#L5-5

Problems to solve

According to the prod database, 1 in every 500 builds is a runner system failure.

Target GraphQL query

{
  jobs(first: 2, statuses: [FAILED], runnerTypes: [INSTANCE_TYPE], failureReason: [RUNNER_SYSTEM_FAILURE] ) {
    nodes {
      runner {
        id
        description
        adminUrl
      }
      status
      detailedStatus {
        ...
      }
      trace {
        htmlSummary(lastLines: 2)
      }
    }
  }
}

This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.

Edited by Pedro Pombeiro