Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8282225

GHA: Allow one concurrent run per PR only

XMLWordPrintable

    • b11

        Since last year, GHA allows concurrency control over GHA runs:
         https://github.blog/changelog/2021-04-19-github-actions-limit-workflow-run-or-job-concurrency/
         https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency

        Our GHA workflows trigger on every PR update, sometimes doing multiple runs per PR. This is seldom useful and wastes resources with our very large jobs. For example, one can push a commit, quickly realize there is a mistake, push another commit, and this would do *two* GHA runs, both taking many hours.

        I think we can say that only one run per branch is good, and all running/pending runs should be cancelled when a new run starts.

              shade Aleksey Shipilev
              shade Aleksey Shipilev
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: