Skip to content

Releases: urcomputeringpal/checkrun-timechart-action

v0.0.8

17 May 00:00
9de4251
Compare
Choose a tag to compare

v0.0.7, but released from the correct base branch.

Full Changelog: v0.0.7...v0.0.8

v0.0.7

16 May 23:52
cf00dfc
Compare
Choose a tag to compare

What's Changed

  • remove warning support, replace with summary by @jnewland in #8

Full Changelog: v0.0.6...v0.0.7

v0.0.6

27 Oct 13:47
4f27479
Compare
Choose a tag to compare
  • Support all events with a sha #5
  • WARNING input to output timechart as an warning-level annotation #7

v0.0.5

08 Oct 23:09
f781961
Compare
Choose a tag to compare
  • Don't fail in the presence of Check Runs with duplicate names across multiple Check Suites

v0.0.4

13 May 16:51
Compare
Choose a tag to compare

checkrun-timechart-action

A GitHub Action that displays a timechart of CheckRuns related to a given sha. Useful for debugging the performance of GitHub Actions workflows. Uses the legendary bt.sh for ASCII timechart display.

Example output

[    5.000s ] ├──┤                                                       * YAMBURGER
[    0.000s ]  .                                                         * kubevalidator
[    8.000s ]             ├────┤                                         * kubectl-diff (code)
[    7.000s ]             ├───┤                                          * kubectl-diff (cameras)
[   10.000s ]               ├──────┤                                     * kubectl-diff (geryon)
[   10.000s ]               ├──────┤                                     * kubectl-diff (kubernetes-dashboard)
[    0.000s ]               .                                            * deploy-label
[   80.762s ]                ├─────────────────────────────────────────┤ * bt
[    0.000s ]                .                                           * deploy
[    0.000s ]                .                                           * kubectl-apply
[    0.000s ]                .                                           * required-builds
[    8.000s ]                         ├────┤                             * kubectl-diff (home-assistant)
[    8.000s ]                         ├────┤                             * kubectl-diff (motion)
[   11.000s ]                           ├──────┤                         * kubectl-diff (kube-system)
[    8.000s ]                           ├────┤                           * kubectl-diff (mysql)
[    6.000s ]                                     ├──┤                   * kubectl-diff (unifi)
[    0.000s ]                                                     .      * diff

     one '.' unit is less than:    1.249s
                    total time:   71.522s

Usage

This action can be run as the last step in a workflow:

      - name: checkrun-timechart
        uses: urcomputeringpal/[email protected]
        env:
          GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
        with:
          SHA: "${{ github.event.pull_request.head.sha }}"
          TRACE_START: "${{ github.event.pull_request.updated_at }}"

OR as a separate workflow entirely using a preceeding step that waits for other CheckRuns to complete:

name: checkrun-timechart
on:
  pull_request:
    types: [synchronize]

jobs:
  checkrun-timechart:
    runs-on: ubuntu-latest
    steps:
      - name: wait
        uses: "WyriHaximus/github-action-wait-for-status@4c9e58820905eb246e88a413c39a9104cccf7e80"
        with:
          ignoreActions: checkrun-timechart
        env:
          GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

      - name: checkrun-timechart
        uses: urcomputeringpal/[email protected]
        env:
          GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
        with:
          SHA: "${{ github.event.pull_request.head.sha }}"
          TRACE_START: "${{ github.event.pull_request.updated_at }}"

Acknowledgements