Skip to content

Commit 352392f

Browse files
authored
Clean prek cache before running static checks (apache#56788)
* Update CI image checks to clean cache before running prek * Add description to change for future investigations
1 parent d8b3300 commit 352392f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/ci-image-checks.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,10 @@ jobs:
155155
platform: ${{ inputs.platform }}
156156
save-cache: false
157157
- name: "Static checks"
158-
run: prek --all-files --show-diff-on-failure --color always
158+
# We have added cache cleaning here as otherwise it was failing on rst-backticks hook
159+
# This increases the time of this step from ~9 minutes 25 seconds to ~12 minutes 37 seconds
160+
# If we want to remove the first part, we need to find root cause of the problem
161+
run: prek cache clean && prek --all-files --show-diff-on-failure --color always
159162
env:
160163
VERBOSE: "false"
161164
SKIP: ${{ inputs.skip-prek-hooks }}

0 commit comments

Comments
 (0)