Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Nov 20, 2023. It is now read-only.

mykter/gitlab-job-performance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gitlab-job-performance

Visualize the duration of GitLab jobs.

This tool uses the GitLab API to retrieve job duration information from a project, and graphs it.

You can filter by date, stage, or individual job.

Not extensively tested, but it's pretty simple so if you hit edge cases I didn't, it should be easy to fix-up! Pull requests welcome.

Examples

Setup:

pip install -r requirements.txt
 export GITLAB_TOKEN=<my personal access token>

Show job duration over time, for all jobs in the build stage, excluding jobs that took over 10 minutes:

./gitlab-job-perf.py https://gitlab.example.com mygroup/myproj --cache=myproj.json --stage=build --ignore-over=600

Duration over time

Show distribution of the test job (exact name match) since 2020:

./gitlab-job-perf.py https://gitlab.example.com mygroup/myproj --dist --cache=myproj.json --job=^test$ --since=2020-01-01

Duration distribution

For additional options, run ./gitlab-job-perf.py --help

About

Visualize the duration of GitLab jobs

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages