I’m trying to cache my Ruby gems installation but the cache does not seem to stick.
Build output start and end look okay and have no warnings:
... Checking cache for test/master... Successfully extracted cache ... ... Creating cache test/master... Created cache
ls shows that dependencies are nicely on disk (about 70MB in size)
Here is a part of my .gitlab-ci.yml
test: stage: test image: "ruby:2.4" services: - postgres:latest variables: RAILS_ENV: test POSTGRES_DB: app_test DATABASE_URL: "postgresql://postgres:postgres@postgres:5432/$POSTGRES_DB" cache: paths: - vendor/ruby/ before_script: - ruby -v - bundle install -j $(nproc) --path vendor - ls -lah vendor script: - bundle exec rubocop . - bundle exec rails db:migrate - bundle exec rails db:seed - bundle exec rails test
This happens on DigitalOcean hosted shared runner. Is there to turn on more cache debugging output?