CircleCI-Public / CircleCI-Public/path-filtering-orb

Path filtering not building when files deleted

Open
#99 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Shell
Stars
29
Forks
70
PR merge metrics
No merged PRs in 30d

Description

## Orb version:

1.0.0

## What happened:
Hi all,
We started using the path filtering orb for one of our pipelines recently.

- path-filtering/filter:
name: check-updated-files
mapping: |
src/JG.Abc/.* build-abc true
src/JG.Abc.Listener/.* build-abc-listener true
base-revision: main
config-path: .circleci/pipeline.yml

We have the above and it has been working fine but today we made a commit that removed 2 files.
```
src/JG.Abc/test.txt
src/JG.Abc.Listener/test.txt
```
And none of the pipelines ran when we pushed it. This feels like a bug?
More context:
A PR had 2 files (.txt) added by mistake. A commit deleted them. Following that commit, no pipeline ran. If our code relied on these 2 files being present and now they’re gone, the build would fail. This feels like a bug.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the report using the mapping in the issue and .circleci/pipeline.yml: first run it with matching files present, then remove src/JG.Abc/test.txt and src/JG.Abc.Listener/test.txt and push the deletion. Trace the path-filtering filter entry point to see how deleted paths are handled. Done means a deletion matching either mapping triggers the expected pipeline.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
ci-cd
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.