1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-08-04 13:48:56 +02:00
unleash.unleash/.github
Kitsios Konstantinos 84748aaff0
[CI]: Cancel CI runs that become obsolete (#10339)
## About the changes
Currently, if a PR is open and a push happens, the **e2e:frontend**
workflow will start running. If, shortly after a subsequent push on the
*same* PR happens, the workflow will start running again without
cancelling the previous (now obsolete) run. With these changes, the
first run would be cancelled, thus **saving compute resources** (see
below for quantity) that can be used to **speed up your overall CI/CD**,
without sacrificing functionality, since the second run will contain the
changes from the first push as well. 🌱

### Example
Here is an example of the behaviour described above: the commit
`b1b2e61` triggered
[this](https://github.com/Unleash/unleash/actions/runs/14493085673/)
workflow run, and shortly after the commit `9997fe1`, that happened on
top of the first commit, triggered
[this](https://github.com/Unleash/unleash/actions/runs/14493089012/)
workflow. Both workflows ran till the end, spending approximately 8 CPU
minutes each. With the proposed changes, the first run would be
cancelled, hence saving ~8 CPU minutes and clearing the queue for other
workflows. Note that this is an example of a single concurrent run; the
accumulated gain for all PRs would be higher, with a lower estimate at
**2 CPU hours** over the last few months.

The same holds for these workflow(s) as well: Dependency review, PR ->
Build Docs.

### Context
Hi,

We are a team of [researchers](https://www.ifi.uzh.ch/en/zest.html) from
University of Zurich and we are currently working on energy
optimizations in GitHub Actions workflows.

Kindly let us know (here or in the email below) if you would like more
details, if you want to reject the proposed changes for other reasons,
or if you have any question whatsoever.

Best regards,  
[Konstantinos
Kitsios](https://www.ifi.uzh.ch/en/zest/team/konstantinos_kitsios.html)
konstantinos.kitsios@uzh.ch
2025-07-17 11:22:44 +01:00
..
ext-logos chore: update readme 2021-06-13 23:26:20 +02:00
workflows [CI]: Cancel CI runs that become obsolete (#10339) 2025-07-17 11:22:44 +01:00
dashboard.png docs: Readme update dashboard screenshot (#953) 2021-09-23 21:19:10 +02:00
deploy-digital.svg chore: Added Deploy To Digital Ocean Button (#874) 2021-06-21 14:15:33 +02:00
deploy-heroku-20.png fix: styles to docs 2021-06-05 00:25:35 +02:00
docker-compose.test.yml chore: openapi-diff on PRs (#10100) 2025-06-10 16:51:12 +02:00
FUNDING.yml
github_header_opaque_landscape.svg chore: update unleash banner in readme (#7178) 2024-05-28 10:42:17 +03:00
github_online_demo.svg readme: Update online demo image (#2528) 2022-11-24 13:35:23 +00:00
github_unleash_users.svg fix: Add unleash users image 2022-04-08 13:19:24 +02:00
Logo_DarkBlue_Transparent_Portrait.png fix: update README.md 2021-06-04 19:31:28 +02:00
Logo_DarkBlue_Transparent_Portrait.svg fix: update README.md 2021-06-04 19:35:43 +02:00
logo.png fix: proper logo 2021-06-04 23:26:40 +02:00
stale.yml Meta: use org-wide stale bot config (#1789) 2022-07-05 15:59:11 +02:00
Unleash_architecture.svg docs: improve introduction section 2021-06-14 21:48:19 +02:00
unleash-logo.svg