Skip to content

ci: cancel in-progress test and lint workflows on new commits#6393

Merged
khanhtc1202 merged 3 commits into
pipe-cd:masterfrom
Ayushmore1214:ci-add-concurrency
Jan 9, 2026
Merged

ci: cancel in-progress test and lint workflows on new commits#6393
khanhtc1202 merged 3 commits into
pipe-cd:masterfrom
Ayushmore1214:ci-add-concurrency

Conversation

@Ayushmore1214
Copy link
Copy Markdown
Contributor

What this PR does:

  • Adds workflow concurrency to cancel in-progress test and lint runs
    when new commits are pushed to the same branch or pull request.
    Why we need it:

Which issue(s) this PR fixes:
Reduces unnecessary CI usage

Does this PR introduce a user-facing change?:No

  • How are users affected by this change:
  • Is this breaking change:
  • How to migrate (if breaking change):

Signed-off-by: Ayush More <ayushmore42595@gmail.com>
@eeshaanSA
Copy link
Copy Markdown
Contributor

cc @khanhtc1202 @Warashi

Comment thread .github/workflows/test.yaml Outdated
- 'feat/*'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@Ayushmore1214 Should we change this condition to ensure commit to master and release-* branches are already tested (no skip)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good point — agreed 👍

Comment thread .github/workflows/lint.yaml Outdated
- "feat/*"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Signed-off-by: Ayush More <ayushmore42595@gmail.com>
Signed-off-by: Ayush More <ayushmore42595@gmail.com>
@Ayushmore1214
Copy link
Copy Markdown
Contributor Author

@khanhtc1202 made the changes !

Copy link
Copy Markdown
Member

@khanhtc1202 khanhtc1202 left a comment

Choose a reason for hiding this comment

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

Thank you 👍

@khanhtc1202 khanhtc1202 enabled auto-merge (squash) January 9, 2026 10:35
@khanhtc1202 khanhtc1202 merged commit 63119aa into pipe-cd:master Jan 9, 2026
42 checks passed
khanhtc1202 pushed a commit that referenced this pull request Jan 9, 2026
* ci: cancel in-progress test and lint workflows on new commits

Signed-off-by: Ayush More <ayushmore42595@gmail.com>

* Update lint.yaml

Signed-off-by: Ayush More <ayushmore42595@gmail.com>

* Update test.yaml

Signed-off-by: Ayush More <ayushmore42595@gmail.com>

---------

Signed-off-by: Ayush More <ayushmore42595@gmail.com>
@github-actions github-actions Bot mentioned this pull request May 11, 2026
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.

CI: Cancel in-progress workflows on new commits to improve efficiency

3 participants