Skip to content

Resolve "Show `failure_reason` in jobs view content section"

What does this MR do?

Part of https://gitlab.com/gitlab-org/gitlab-ce/issues/41111. Displays a verbose failure reason on Job detail page: root/minimal-ruby-app-test/-/jobs/23

Are there points in the code the reviewer needs to double check?

The HAML part that was removed included some permissions check.

After following the stack on the API ruby code, those permissions seem to be checked to expose the retry_path, so the frontend is relying on retry_path to know if user is authorised.The HAML part that was removed included some permissions check.

~~After following the stack on the API ruby code, those permissions seem to be checked to expose the retry_path, so the frontend is relying on retry_path to know if user is authorised.~~~ ^ Fixed.

Why was this MR needed?

Currently when a job fails, we have no direct way to know which is the problem. The only option is to look at job details and read the output log, where we can possibly see some error message. This MR display the error on the job detail page

Screenshots (if relevant)

For failed job

Screen_Shot_2018-04-01_at_1.09.30_PM

For an allowed to fail job

Screen_Shot_2018-04-01_at_1.09.20_PM

For a job with no log

Screen_Shot_2018-04-01_at_1.25.21_PM

When retry button is not primary

Screen_Shot_2018-04-13_at_12.41.28_PM

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #44271 (closed)

To do

Implement the following tasks:

  • Display failure message frontend
  • Transform 'retry' button to primary button if needed frontend
  • Display 'No job log' statement, if there's no job log. backend
Edited by Grzegorz Bizon

Merge request reports