A profiler for GitHub Actions workflow
Download executable from Releases. If you want to install HEAD version, run go get
.
go get github.com/utgwkk/github-actions-profiler/cmd/github-actions-profiler
arguments | type | description |
---|---|---|
access-token |
string |
An access token |
cache |
bool |
Enable disk cache (Default: true ) |
cache-dir |
string |
Where to store cache data |
concurrency |
int |
Concurrency of GitHub API client (Default: 2) |
number-of-job |
int |
The number of job to analyze |
format |
string |
Output format (Default: table , Supported: table , json , tsv , markdown ) |
job-name-regexp |
string |
Filter regular expression for a job name |
owner |
string |
Repository owner name |
repository |
string |
Repository name |
reverse |
bool |
Reverse the result of sort |
sort |
string |
A field name to sort by (Default: number , Supported: number , min , max , median , mean , p50 , p90 , p95 , p99 ) |
verbose |
bool |
Verbose mode |
workflow-file |
string |
Workflow file name (without .github/workflows/ ) |
You may pass access-token
with GITHUB_ACTIONS_PROFILER_TOKEN
environment variable.
You may set configuration with a TOML file and pass it with --config <path to config.toml>
.
access-token = "YOUR_ACCESS_TOKEN"
cache = true
cache-dir = "/tmp/cache/dir"
number-of-job = 50
format = "table"
job-name-regexp = "Perl"
owner = "your-name"
repository = "your-repository"
reverse = true
sort = "max"
workflow-file = "ci.yml"
Job: Perl 5.32
+--------+----------+----------+----------+----------+----------+-----------+------------+------------+----------------------------------------------------+
| Number | Min | Median | Mean | P50 | P90 | P95 | P99 | Max | Name |
+--------+----------+----------+----------+----------+----------+-----------+------------+------------+----------------------------------------------------+
| 1 | 2.000000 | 3.000000 | 3.430769 | 3.000000 | 5.000000 | 5.000000 | 5.000000 | 5.000000 | Set up job |
| 2 | 1.000000 | 1.000000 | 1.307692 | 1.000000 | 2.000000 | 3.000000 | 3.000000 | 3.000000 | Run actions/checkout@v2 |
| 3 | 0.000000 | 1.000000 | 1.138462 | 1.000000 | 2.000000 | 2.500000 | 5.000000 | 6.000000 | Run actions/cache@v2 |
| 4 | 1.000000 | 2.000000 | 2.000000 | 2.000000 | 2.000000 | 2.500000 | 3.000000 | 3.000000 | Set up Perl |
| 5 | 0.000000 | 0.000000 | 0.000000 | 0.000000 | 0.000000 | 0.000000 | 0.000000 | 0.000000 | Remove Perl Problem Matcher |
| 6 | 0.000000 | 0.000000 | 7.323077 | 0.000000 | 2.500000 | 26.000000 | 176.500000 | 178.000000 | Run cpanm -L local |
| | | | | | | | | | --installdeps . |
| 7 | 0.000000 | 2.000000 | 1.553846 | 2.000000 | 3.000000 | 4.000000 | 5.000000 | 6.000000 | Run cpanm -L local |
| | | | | | | | | | Test2::Plugin::GitHub::Actions::AnnotateFailedTest |
| 8 | 2.000000 | 2.000000 | 2.466667 | 2.000000 | 3.000000 | 4.000000 | 4.000000 | 4.000000 | Run prove -Ilocal/lib/perl5 |
| | | | | | | | | | -Ilib -lv t |
| 13 | 0.000000 | 0.000000 | 0.371429 | 0.000000 | 1.000000 | 1.000000 | 1.000000 | 1.000000 | Post Run actions/cache@v2 |
| 14 | 0.000000 | 0.000000 | 0.200000 | 0.000000 | 1.000000 | 1.000000 | 1.000000 | 1.000000 | Post Run actions/checkout@v2 |
| 15 | 0.000000 | 0.000000 | 0.338462 | 0.000000 | 1.000000 | 1.000000 | 1.500000 | 2.000000 | Post Run actions/cache@v2 |
| 16 | 0.000000 | 0.000000 | 0.033333 | 0.000000 | 0.000000 | 0.000000 | 0.500000 | 1.000000 | Post Run actions/checkout@v2 |
| 17 | 0.000000 | 0.000000 | 0.033333 | 0.000000 | 0.000000 | 0.000000 | 0.500000 | 1.000000 | Complete job |
+--------+----------+----------+----------+----------+----------+-----------+------------+------------+----------------------------------------------------+