Skip to content

Commit 83c2541

Browse files
facontidavideclaude
andcommitted
Use disable_file_fixes + network_filter instead of rm -rf
The Codecov CLI walks the git index and crashes with FileNotFoundError when tracked files are deleted. Use disable_file_fixes to skip the file-reading step, and network_filter to restrict source discovery. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 0341a5e commit 83c2541

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

.github/workflows/cmake_ubuntu.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -96,20 +96,14 @@ jobs:
9696
--ignore-errors unused
9797
lcov --list coverage.info
9898
99-
- name: Prune directories from Codecov file discovery
100-
run: |
101-
# Remove directories we don't want Codecov to report as source files.
102-
# Coverage data for these was already stripped by lcov above.
103-
# Note: 3rdparty/ is kept because the CLI resolves file references from it.
104-
rm -rf examples sample_nodes tests tools \
105-
include/behaviortree_cpp/contrib \
106-
include/behaviortree_cpp/flatbuffers
107-
10899
- name: Upload coverage reports to Codecov
109100
uses: codecov/codecov-action@v5
110101
with:
111102
files: coverage.info
112103
flags: unittests
113104
disable_search: true
105+
disable_file_fixes: true
114106
plugins: noop
107+
network_filter: >-
108+
include/behaviortree_cpp/,src/
115109
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)