From ae8b576c7e52686baf344bae0c4e85d23f80da58 Mon Sep 17 00:00:00 2001 From: Timofey Solomko Date: Wed, 3 Jun 2026 13:40:25 +0800 Subject: [PATCH] [CI] Cache test files themselves instead of lfs It was discovered that Swift Linux containers do not contain git-lfs, which makes it impossible to restore cache on linux jobs. By caching test files directly we will not need git-lfs. --- azure-pipelines.yml | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index bf9254ee..fed4df08 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -30,9 +30,9 @@ stages: displayName: 'Generate assets-id' - task: Cache@2 inputs: - key: '"swc_test_files_v4_" | "$(lfsRev)"' - path: '.git/modules/Tests/Test Files/lfs' - displayName: 'Cache lfs of test files' + key: '"swc_test_files_v5_" | "$(lfsRev)"' + path: 'Tests/Test Files' + displayName: 'Cache test files' - script: | set -e -o xtrace cd "Tests/Test Files" @@ -75,7 +75,6 @@ stages: - script: | set -e -o xtrace git submodule update --init --recursive - cp "Tests/Test Files/gitattributes-copy" "Tests/Test Files/.gitattributes" displayName: 'Update submodules' - script: | set -e -o xtrace @@ -84,14 +83,9 @@ stages: displayName: 'Generate assets-id' - task: Cache@2 inputs: - key: '"swc_test_files_v4_" | "$(lfsRev)"' - path: '.git/modules/Tests/Test Files/lfs' - displayName: 'Cache lfs of test files' - - script: | - set -e -o xtrace - cd "Tests/Test Files" - git lfs checkout - displayName: 'Checkout test files' + key: '"swc_test_files_v5_" | "$(lfsRev)"' + path: 'Tests/Test Files' + displayName: 'Cache test files' - script: | set -e -o xtrace xcrun simctl list > /dev/null