Commit 5194f6c
authored
fix: warm cache pre-commit and uv cache path bugs (#1389)
## Summary
- Fix `pre-commit: command not found` in warmDepsCache — pre-commit is
inside hatch's default env, use `hatch run pre-commit install-hooks`
- Fix UV cache path mismatch — `setup-uv` overrides `UV_CACHE_DIR` to a
temp path, but cache save/restore uses `~/.cache/uv`. Pin `UV_CACHE_DIR:
/home/runner/.cache/uv` in job env so `setup-uv` respects it and paths
align.
## Test plan
> Note: I had done a temp change to trigger `warmDepsCache` on the PR
for testing
- [x] Verify warmDepsCache run succeeds
[Ref](https://github.com/databricks/dbt-databricks/actions/runs/24276657026/job/70891669261?pr=1389)
- [x] Verify that we have correct artifacts uploaded - confirmed using
github API
- [x] All existing tests pass1 parent b0778e0 commit 5194f6c
2 files changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| |||
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
| 103 | + | |
102 | 104 | | |
103 | 105 | | |
104 | 106 | | |
| |||
154 | 156 | | |
155 | 157 | | |
156 | 158 | | |
| 159 | + | |
157 | 160 | | |
158 | 161 | | |
159 | 162 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
43 | 47 | | |
44 | 48 | | |
45 | 49 | | |
| |||
95 | 99 | | |
96 | 100 | | |
97 | 101 | | |
98 | | - | |
| 102 | + | |
99 | 103 | | |
100 | 104 | | |
101 | 105 | | |
| |||
0 commit comments