Skip to content

Returning failure message for jobs graphql

Max Fan requested to merge 398197-not-return-failed-job-trace into master

What does this MR do and why?

Part of optimizing the pipelines#index endpoint, we'll need a replacement graphQL endpoint to provide the information

This MR adds the failure message to the graphql endpoint

See #398196 (comment 1364821898) for reasoning

Screenshots or screen recordings

image

How to set up and validate locally

  1. Have a job fail due to a known failure: https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/presenters/commit_status_presenter.rb#L3
  2. Locally go to: http://172.16.123.1:3000/-/graphql-explorer with the query in the screenshot above
  3. Failure message should be populated

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #398197 (closed)

Edited by Max Fan

Merge request reports