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

workflows: fix concurrency group names #16711

Merged
merged 1 commit into from Jul 2, 2021

Conversation

nbusseneau
Copy link
Member

@nbusseneau nbusseneau commented Jun 30, 2021

Improve concurrency group names uniqueness, in particular for allowing testing workflow changes via pull_request events.

In the previous version, all pull_request-triggered runs would end up in the same concurrency group as the scheduled events, due to not having a github.event.issue object.

This new version proposes a new structure that should be unique for all types of testing, while still allowing runs of the same type to override each other:

Structure:

  • Workflow name
  • Event type
  • A unique identifier depending on event type:
    • schedule: SHA
    • issue_comment: PR number
    • pull_request: PR number

@nbusseneau nbusseneau added area/CI Continuous Integration testing issue or flake area/CI-improvement Topic or proposal to improve the Continuous Integration workflow release-note/ci This PR makes changes to the CI. labels Jun 30, 2021
@nbusseneau nbusseneau requested a review from pchaigno June 30, 2021 14:45
@nbusseneau nbusseneau force-pushed the pr/fix-workflows-concurrency-for-labels branch from 28b1774 to f73977d Compare June 30, 2021 14:52
Copy link
Member

@pchaigno pchaigno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (apart from the one comment below on labels).

I have reviewed carefully the first and only glanced at the others, but I assume they are the same (apart from trigger phrase & label).

.github/workflows/conformance-aks.yaml Outdated Show resolved Hide resolved
@nbusseneau
Copy link
Member Author

Requires #16735. Will unmark as draft once that one is merged.

@nbusseneau nbusseneau force-pushed the pr/fix-workflows-concurrency-for-labels branch 2 times, most recently from 01ad081 to ec42d21 Compare July 1, 2021 15:45
Improve concurrency group names uniqueness, in particular for allowing
testing workflow changes via `pull_request` events.

In the previous version, all `pull_request`-triggered runs would end up
in the same concurrency group as the `scheduled` events, due to not
having a `github.event.issue` object.

This new version proposes a new structure that should be unique for all
types of testing, while still allowing runs of the same type to override
each other:

Structure:
- Workflow name
- Event type
- A unique identifier depending on event type:
  - schedule: SHA
  - issue_comment: PR number
  - pull_request: PR number

Signed-off-by: Nicolas Busseneau <nicolas@isovalent.com>
@nbusseneau nbusseneau force-pushed the pr/fix-workflows-concurrency-for-labels branch from ec42d21 to 6cca627 Compare July 1, 2021 18:00
@nbusseneau nbusseneau marked this pull request as ready for review July 1, 2021 18:00
@nbusseneau nbusseneau requested review from a team as code owners July 1, 2021 18:01
@aanm aanm merged commit d1af0d3 into master Jul 2, 2021
@aanm aanm deleted the pr/fix-workflows-concurrency-for-labels branch July 2, 2021 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/CI Continuous Integration testing issue or flake area/CI-improvement Topic or proposal to improve the Continuous Integration workflow release-note/ci This PR makes changes to the CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants