This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch v1-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit 8736b86ac74eb910adeecd0f3fdd1c5fd40cdd50
Author: Jarek Potiuk <[email protected]>
AuthorDate: Tue Sep 15 02:24:15 2020 +0200

    Cache for kubernetes tests is updateable (#10945)
    
    The cache in Github Actions is immutable - once you create it
    it cannot be modified. That's why cache keys should contain
    hash of all files that are used to create the cache.
    
    Kubernetes cache key did not contain it, and as a side effect
    the cache from master kubernetes setup.py was used in the v1-10-test
    after the breeze changes were cherry-picked.
    
    (cherry picked from commit 83ed6bdb3f003f2f8c3c7eaeba338194064cecc9)
---
 .github/workflows/ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index b57fdbd..5e14f56 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -564,7 +564,7 @@ jobs:
           cache-name: cache-kubernetes-tests-virtualenv-v4
         with:
           path: .build/.kubernetes_venv
-          key: "${{ env.cache-name }}-${{ github.job }}-${{ 
hashFiles('setup.py') }}"
+          key: "${{ env.cache-name }}-${{ github.job }}-${{ 
hashFiles('setup.py') }}-v1"
       - name: "Kubernetes Tests"
         run: ./scripts/ci/kubernetes/ci_run_kubernetes_tests.sh
       - name: "Upload KinD logs"

Reply via email to