From e873c0e907ac6f95a3add47e6c260defc420f183 Mon Sep 17 00:00:00 2001 From: prrao87 Date: Tue, 3 Nov 2026 15:22:48 -0500 Subject: [PATCH] ci: key the python rust cache on the root crates' manifests --- .github/workflows/python-test.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 0155c96..f3c0a51 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -44,8 +44,14 @@ jobs: with: save-if: ${{ github.ref == 'refs/heads/main' }} shared-key: "lance-csr-python" - # maturin builds the bindings crate, which sits outside the workspace. - workspaces: crates/lance-csr-python + # maturin builds the bindings crate, which sits outside the root + # workspace. The root workspace is listed too so the cache key hashes + # the manifests of lance-csr and lance-csr-catalog, which the bindings + # use by path; otherwise a dependency or feature change there keeps + # restoring a stale cache. Its target directory is never built here. + workspaces: | + . -> target + crates/lance-csr-python -> target - name: Install dependencies run: | sudo apt update