Skip to content

Commit f7ab0a7

Browse files
committed
[tosa] : Fix LIT test failures on Windows due emission order of tosa.const_shape
1 parent f331a8e commit f7ab0a7

File tree

2 files changed

+47
-46
lines changed

2 files changed

+47
-46
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ jobs:
105105
uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
106106
with:
107107
path: ${{ env.CACHE_DIR }}
108-
key: build-test-cpp-asserts-windows-${{ matrix.torch-version }}-v2-${{ github.sha }}
108+
# Use as cache key a PR number if a pull request and otherwise the commit hash. This reuses the cache for a PR irrespective of the commit hash. Otherwise, it uses commit hash for merges into the main branch
109+
key: build-test-cpp-asserts-windows-${{ matrix.torch-version }}-v2-${{ github.event.number || github.sha }}
109110
restore-keys: |
110111
build-test-cpp-asserts-windows-${{ matrix.torch-version }}-v2-
111112
@@ -132,7 +133,7 @@ jobs:
132133
if: ${{ !cancelled() }}
133134
with:
134135
path: ${{ env.CACHE_DIR }}
135-
key: build-test-cpp-asserts-windows-${{ matrix.torch-version }}-v2-${{ github.sha }}
136+
key: build-test-cpp-asserts-windows-${{ matrix.torch-version }}-v2-${{ github.event.number || github.sha }}
136137

137138
# todo: enable when use of `signal` for timeout is enhanced to be platform-agnostic
138139
# - name: Integration tests (torch-${{ matrix.torch-version }})

0 commit comments

Comments
 (0)