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

Fix concurrency grouping to allow multiple parallel manual dispatches of a job. #7689

Conversation

bzbarsky-apple
Copy link
Contributor

  1. Adds concurrency bits to a few workflows that did not have them but should.

  2. Fixes concurrency grouping for "workflow_dispatch" to use the run
    number (which is unique for each dispatch for a given (repo, workflow)
    pair) so that a new manual dispatch does not cancel a
    previously-running one. This allows doing multiple manual dispatches
    to try to reproduce intermittent issues.

Problem

Trying to manually dispatch multiple copies of a workflow ends up canceling all but the latest dispatch, since they all have the same sha.

Change overview

Use the run number as the grouping for the "workflow_dispatch" trigger.

Testing

Manually dispatches some workflows and they all ran.

… of a job.

1) Adds concurrency bits to a few workflows that did not have them but should.

2) Fixes concurrency grouping for "workflow_dispatch" to use the run
   number (which is unique for each dispatch for a given (repo, workflow)
   pair) so that a new manual dispatch does not cancel a
   previously-running one.  This allows doing multiple manual dispatches
   to try to reproduce intermittent issues.
@bzbarsky-apple
Copy link
Contributor Author

For review purposes, most of this PR was generated with:

perl -pi -e "s/^    group: \\\${{ github.workflow }}-\\\${{ github.event_name == 'pull_request' && github.event.number \|\| github.sha }}/    group: \\\${{ github.workflow }}-\\\${{ (github.event_name == 'pull_request' && github.event.number) || (github.event_name == 'workflow_dispatch' && github.run_number) || github.sha }}/" .github/workflows/* 

@bzbarsky-apple
Copy link
Contributor Author

@woody-apple woody-apple merged commit a2e125b into project-chip:master Jun 16, 2021
@bzbarsky-apple bzbarsky-apple deleted the multiple-manual-workflow-dispatch branch June 16, 2021 22:24
sharadb-amazon pushed a commit to sharadb-amazon/connectedhomeip that referenced this pull request Jun 17, 2021
… of a job. (project-chip#7689)

1) Adds concurrency bits to a few workflows that did not have them but should.

2) Fixes concurrency grouping for "workflow_dispatch" to use the run
   number (which is unique for each dispatch for a given (repo, workflow)
   pair) so that a new manual dispatch does not cancel a
   previously-running one.  This allows doing multiple manual dispatches
   to try to reproduce intermittent issues.
nikita-s-wrk pushed a commit to nikita-s-wrk/connectedhomeip that referenced this pull request Sep 23, 2021
… of a job. (project-chip#7689)

1) Adds concurrency bits to a few workflows that did not have them but should.

2) Fixes concurrency grouping for "workflow_dispatch" to use the run
   number (which is unique for each dispatch for a given (repo, workflow)
   pair) so that a new manual dispatch does not cancel a
   previously-running one.  This allows doing multiple manual dispatches
   to try to reproduce intermittent issues.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants