Commit 910efaa
ci(hailo): point cache keys at the workspace-root Cargo.lock (iter 227)
iter-219 (workspace re-inclusion, ADR-178 Gap E) removed the
per-crate `crates/ruvector-hailo-cluster/Cargo.lock` — but the
hailo-backend-audit workflow's two `actions/cache@v4` keys still
hashed that now-missing path:
key: ${{ runner.os }}-cargo-${{ hashFiles('crates/ruvector-hailo-cluster/Cargo.lock') }}
`hashFiles()` returns an empty string when the pattern matches
nothing. So both cache keys would have collapsed to the constant
prefix `${{ runner.os }}-cargo-` (and `-cargo-test-`) on every run —
every PR, every branch, every commit would have shared the same
cache slot, defeating the cache invalidation iter-178 set up.
Either falsely-stale build artifacts on a dep change, or chronic
cache misses depending on how the runners' eviction policy
shook out.
Fix: point both keys at the workspace-root `Cargo.lock`, which is
canonical post-iter-219. Same parallel as iter-224's cargo-audit
fix that handled the matching deny-vs-audit drift.
Validated:
- yaml parses (`python3 -c 'import yaml; yaml.safe_load(...)'`)
- root Cargo.lock exists at the new path
- Pattern matches GitHub Actions' relative-to-GITHUB_WORKSPACE
semantic for `hashFiles()` — Cargo.lock at repo root is
correctly resolved without a path prefix.
Pure CI hygiene; no code change. Catches the third post-iter-219
side effect (after iter-224's cargo-audit ignores and iter-226's
real-hardware verification).
Co-Authored-By: claude-flow <ruv@ruv.net>1 parent cabd295 commit 910efaa
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
101 | 107 | | |
102 | 108 | | |
103 | 109 | | |
| |||
116 | 122 | | |
117 | 123 | | |
118 | 124 | | |
119 | | - | |
| 125 | + | |
| 126 | + | |
120 | 127 | | |
121 | 128 | | |
122 | 129 | | |
| |||
0 commit comments