Skip to content

Save GitHub actions concurrency by cancelling old runs #1644

Closed

Description

@antonpirker

Problem Statement

On each push to a PR the whole test suite is running. This always starts a lot of concurrent Github action workflows. (And we as sentry only have 180 concurrent workflows for the whole organization.

When there is a new commit pushed to a PR the still running workflows of the old commit should be canceled to free up workflows for other projects.

Solution Brainstorm

One can define a concurrency group and auto cancel old runs. Sentry and Getsentry project already did this.

See: https://github.com/getsentry/sentry/pull/38889/files

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions