Skip to content

ci: update workflows to use dorny/paths-filter#30

Merged
jinghao-jia merged 1 commit intomainfrom
ci
Apr 25, 2025
Merged

ci: update workflows to use dorny/paths-filter#30
jinghao-jia merged 1 commit intomainfrom
ci

Conversation

@chinrw
Copy link
Member

@chinrw chinrw commented Apr 25, 2025

Enabling Require status checks to pass can leave workflows un-triggered when GitHub’s built-in path filters decide nothing relevant changed, which in turn blocks PR merges because the required checks remain in the Pending state.

Replace the native path filter with dorny/paths-filter:

  • The workflow is always triggered, satisfying the required-check.
  • Non-essential jobs are still skipped based on path rules, preventing resource waste.

Enabling **Require status checks to pass** can leave workflows
un-triggered when GitHub’s built-in path filters decide nothing
relevant changed, which in turn blocks PR merges because the required
checks remain in the `Pending` state.

Replace the native path filter with **dorny/paths-filter**:

- The workflow is always triggered, satisfying the required-check.
- Non-essential jobs are still skipped based on path rules, preventing
  resource waste.

Signed-off-by: Ruowen Qin <ruowenq2@illinois.edu>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the CI workflows to use the dorny/paths-filter action so that workflows always trigger while non-critical jobs are skipped based on file changes.

  • Removed native paths-ignore filtering from workflows
  • Added a new "changes" job that uses dorny/paths-filter for both meson and memcached_benchmark workflows
  • Updated job dependencies to conditionally run based on the filtering outputs

Reviewed Changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/rustfmt.yml Removed paths-ignore configuration for triggering
.github/workflows/meson.yml Introduced a changes job and conditionally run jobs
.github/workflows/memcached_benchmark.yml Added a changes job and a redundant filter step in the build job
Files not reviewed (1)
  • .github/workflows/nix.yml: Language not supported

Comment on lines +37 to +42
- id: filter
uses: dorny/paths-filter@v3
with:
filters: |
bench:
- 'tools/memcached_benchmark/**'
Copy link

Copilot AI Apr 25, 2025

Choose a reason for hiding this comment

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

The additional usage of dorny/paths-filter in the 'build' job appears redundant since the 'changes' job already provides the necessary filtering output. Consider removing this step to streamline workflow execution.

Suggested change
- id: filter
uses: dorny/paths-filter@v3
with:
filters: |
bench:
- 'tools/memcached_benchmark/**'

Copilot uses AI. Check for mistakes.
@jinghao-jia jinghao-jia merged commit 5d16b46 into main Apr 25, 2025
13 checks passed
@jinghao-jia jinghao-jia deleted the ci branch April 25, 2025 07:59
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