Skip to content

Commit

Permalink
[FLINK-24875][ci] Eagerly create cache directories
Browse files Browse the repository at this point in the history
The cache task fails if the cache directory does not exist, which can happen if you get a cache miss and no test creates said directory.
  • Loading branch information
zentol committed Nov 16, 2021
1 parent 50bcbff commit 0d186fb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tools/azure-pipelines/e2e-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ jobs:
echo "##vso[task.setvariable variable=skip;]0"
fi
displayName: Check if Docs only PR
# the cache task does not create directories on a cache miss, and can later fail when trying to tar the directory if the test haven't created it
# this may for example happen if a given directory is only used by a subset of tests, which are run in a different 'group'
- bash: |
mkdir -p $(MAVEN_CACHE_FOLDER)
mkdir -p $(E2E_CACHE_FOLDER)
mkdir -p $(E2E_TARBALL_CACHE)
mkdir -p $(DOCKER_IMAGES_CACHE_FOLDER)
displayName: Create cache directories
- task: Cache@2
inputs:
key: $(CACHE_KEY)
Expand Down

0 comments on commit 0d186fb

Please sign in to comment.