View CI job logs in the Web IDE
When tests fail on my merge requests, I want to be able to fix the failing tests while looking at the failure output in the logs, so that I know exactly which file, function, and line the issue occurred at. We should make it easy to view the logs of the last commit in the Web IDE.
Proposal
From the CI pipeline panel in the Web IDE right sidebar, I will be able to open a job trace in the editor.
I should be able to view a job trace side by side with source code so that I can fix any failures.
I will need to commit my changes to trigger a new pipeline, to see if my changes fix the failure.
Designs
Design notes
- The log is text wrapped and not horizontally scrollable.
- The hover effect of the "open in new tab" icon is shown here. This applies to both the job id next to the job name.
- The empty log message must only appear for jobs that ran successfully or were aborted midway.
- For jobs that never ran, the "View logs" button must be hidden in the jobs pane.
Links
Split from https://gitlab.com/gitlab-org/gitlab-ce/issues/44604#note_72086510
Edited by Jeethu Karthik