Skip to content

Commit 2fca516

Browse files
authored
[testnet_conway] Fix flaky changed-files CI by using full clone in path filter jobs (#6348)
## Motivation Backport of #6346 to `testnet_conway`. This is where the failures are currently happening. The `changed-files` jobs using `dorny/paths-filter` intermittently fail with: ``` fatal: shallow file has changed since we read it git exit code 128 ``` See #6346 for the full root cause analysis. ## Proposal Add `fetch-depth: 0` to the `actions/checkout` step in every `changed-files` job that feeds into `dorny/paths-filter` in `testnet_conway` workflows. Files changed: `rust.yml`, `web.yml`, `explorer.yml`. ## Test Plan Same as #6346. Eliminates the shallow clone deepening loop by construction. ## Release Plan - Nothing to do / These changes follow the usual release cycle. ## Links - Main branch PR: #6346 - [reviewer checklist](https://github.com/linera-io/linera-protocol/blob/main/CONTRIBUTING.md#reviewer-checklist)
1 parent 7258f7b commit 2fca516

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/explorer.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ jobs:
3232
should-run: ${{ steps.files-changed.outputs.paths }}
3333
steps:
3434
- uses: actions/checkout@v4
35+
with:
36+
fetch-depth: 0
3537
- name: Filter paths
3638
uses: dorny/paths-filter@v3
3739
id: files-changed

.github/workflows/rust.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ jobs:
4242
should-run: ${{ steps.files-changed.outputs.paths }}
4343
steps:
4444
- uses: actions/checkout@v4
45+
with:
46+
fetch-depth: 0
4547
- name: Filter paths
4648
uses: dorny/paths-filter@v3
4749
id: files-changed

.github/workflows/web.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ jobs:
4040
should-run: ${{ steps.files-changed.outputs.paths }}
4141
steps:
4242
- uses: actions/checkout@v4
43+
with:
44+
fetch-depth: 0
4345
- name: Filter paths
4446
uses: dorny/paths-filter@v3
4547
id: files-changed

0 commit comments

Comments
 (0)