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

Cancel prev runs for bench and nix #2335

Merged
merged 3 commits into from
Nov 9, 2021
Merged

Conversation

jneira
Copy link
Member

@jneira jneira commented Nov 9, 2021

  • It is working really well to the test workflow

@pepeiborra
Copy link
Collaborator

If I understand correctly this is a new feature of Github CI providing built-in support to deal with duplicate actions.
So far we have been using a third-party action to do this (fkirc/skip-duplicate-actions).

It is working really well to the test workflow

It looks like the test workflow now has both mechanisms enabled, is that what we want?

- id: skip_check
uses: fkirc/skip-duplicate-actions@v3.4.0
with:
cancel_others: false
paths_ignore: '["**/docs/**", "**.md", "**/LICENSE", "install/**", "**.nix", "flake.lock", "**/README.md", "FUNDING.yml", ".circleci/**"]'

concurrency:
group: ${{ github.head_ref }}-${{ github.workflow }}
cancel-in-progress: true

@jneira
Copy link
Member Author

jneira commented Nov 9, 2021

It looks like the test workflow now has both mechanisms enabled, is that what we want?

Oh i forgot to set it to false as i did for the test workflow, thanks. However we are using other features of skip-duplicate-actions so i would keep it around (like in test workflow)

@pepeiborra
Copy link
Collaborator

It looks like the test workflow now has both mechanisms enabled, is that what we want?

Oh i forgot to set it to false as i did for the test workflow, thanks. However we are using other features of skip-duplicate-actions so i would keep it around (like in test workflow)

Can you elaborate on why we need both?

@jneira
Copy link
Member Author

jneira commented Nov 9, 2021

Can you elaborate on why we need both?

Cause we are using skip-duplicate-actions for skipping tests in the current workflow by file paths changed by the pr. It is interesting enough to keep it until we find an alternative.

@pepeiborra
Copy link
Collaborator

So if we are keeping it, why not keep using it to cancel duplicate runs as it already does? In other words, what's the motivation for this PR?

@jneira
Copy link
Member Author

jneira commented Nov 9, 2021

So if we are keeping it, why not keep using it to cancel duplicate runs as it already does? In other words, what's the motivation for this PR?

Oh sorry, i should had linked the first pr adding it to the test workflow: #2310

In short: cancelling previous runs was not working in most cases due to permissions (when the pr is from another repo)

@jneira
Copy link
Member Author

jneira commented Nov 9, 2021

uh oh funct-tests are hanging in windows 9.0.1 here 🤦

will disable it again

@jneira jneira merged commit 44fa1d7 into haskell:master Nov 9, 2021
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

Successfully merging this pull request may close these issues.

3 participants