Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize GitHub Actions execution #840

Closed
ytsarev opened this issue Jan 24, 2022 · 1 comment
Closed

Optimize GitHub Actions execution #840

ytsarev opened this issue Jan 24, 2022 · 1 comment

Comments

@ytsarev
Copy link
Member

ytsarev commented Jan 24, 2022

We have quite an amount of duplication in action triggering given the parallel reaction to both push and pull_request

We can try to optimize it with https://github.com/fkirc/skip-duplicate-actions

kuritka added a commit that referenced this issue Jan 26, 2022
related to #840

skipping already finished workflows, NOT concurrent (different PR)

I've been doing investigations about canceling workflows (https://github.com/fkirc/skip-duplicate-actions).
The action works by checking in pre_job whether the pipe has already been run. Then in the main job there is a condition
that either continues processing or skips the job.

This results in ALWAYS running all workflows, even duplicate ones. The difference is that the duplicates will
terminate at a different point. We will still see a lot of green runs.

It's a bit different than I imagined (not starting or CANCEL the duplicate at all).
I found out that I can cancel the workflow programmatically via HTTP POST. So if we
create different custom ction, we can cancel on top and probably delete cancelled job.

Signed-off-by: kuritka <kuritka@gmail.com>
kuritka added a commit that referenced this issue Jan 28, 2022
related to #840

skipping already finished workflows, NOT concurrent (different PR)

I've been doing investigations about canceling workflows (https://github.com/fkirc/skip-duplicate-actions).
The action works by checking in pre_job whether the pipe has already been run. Then in the main job there is a condition
that either continues processing or skips the job.

This results in ALWAYS running all workflows, even duplicate ones. The difference is that the duplicates will
terminate at a different point. We will still see a lot of green runs.

It's a bit different than I imagined (not starting or CANCEL the duplicate at all).
I found out that I can cancel the workflow programmatically via HTTP POST. So if we
create different custom ction, we can cancel on top and probably delete cancelled job.

Signed-off-by: kuritka <kuritka@gmail.com>
kuritka added a commit that referenced this issue Mar 22, 2022
related to #840

skipping already finished workflows, NOT concurrent (different PR)

I've been doing investigations about canceling workflows (https://github.com/fkirc/skip-duplicate-actions).
The action works by checking in pre_job whether the pipe has already been run. Then in the main job there is a condition
that either continues processing or skips the job.

This results in ALWAYS running all workflows, even duplicate ones. The difference is that the duplicates will
terminate at a different point. We will still see a lot of green runs.

It's a bit different than I imagined (not starting or CANCEL the duplicate at all).
I found out that I can cancel the workflow programmatically via HTTP POST. So if we
create different custom ction, we can cancel on top and probably delete cancelled job.

Signed-off-by: kuritka <kuritka@gmail.com>
@kuritka
Copy link
Collaborator

kuritka commented Jun 29, 2022

/resolved; #844

@kuritka kuritka closed this as completed Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants