Add progressive loading to job logs
What does this MR do and why?
This MR adds a feature to load previous job logs allowing users to look through large logs instead of having to download and parse the raw log.
Related to #342138 (closed)
Screenshots or screen recordings
How to set up and validate locally
- Create a new project
- Add a new
.gitlab-ci.yml
to generate a long log, such as:long doggo ipsum: stage: test script: - for X in {1..40000}; do printf "%04d - %s\n" $X 'Doggo ipsum very jealous pupper doge, shooberino clouds ur givin me a spook.'; done
- Commit the change
- Go to the pipeline of the commit
- Open the job
- See the Showing last n KiB of log (n being a number close to 512, depending on the line length)
- Click on the Load additional 512 kb button
- See that previous lines are loaded and prepended to the current log lines
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.