gitlab-ci logs say "Successfully extracted cache" when it hasn't
Trying to use gitlab-ci cache feature to share files between stages of the same pipeline says it works when it doesn't:
From the end of the 'publishing' pipeline:
...
Creating cache 936aaa570352df2092511814a231af7a9d004771...
sbt-stash/: found 210 matching files
Created cache
Job succeeded
But then from the downstream 'subscribing' job trying to use it:
Checking cache for 936aaa570352df2092511814a231af7a9d004771...
Successfully extracted cache
$ set -eu
$ ls -R sbt-stash/
ls: sbt-stash/: No such file or directory
ERROR: Job failed: exit code 1
It seems like "Successfully extracted cache" is untrue.
In gitlab-ci.yaml:
cache:
paths:
- sbt-stash/
key: "$CI_COMMIT_SHA"