CI runner cache is not working
Summary
After upgrading to 9.0.0 the cache for all CI Jobs stopped working. This happens on a self hosted environment.
Steps to reproduce
Run a CI job for a Rails app with the following configuration:
before_script:
- ruby -v
- ls vendor
- gem install bundler --no-ri --no-rdoc
- bundle install -j $(nproc) --path vendor
- ls vendor
cache:
untracked: true
paths:
- vendor/ruby
What is the current bug behavior?
When bundler is run, all the gems are being installed. All the time.
What is the expected correct behavior?
Once the job runs for the first time, the gems are stored in a cache. The subsequent times its run the gems are not installed again. It uses the cache.
Relevant logs and/or screenshots
This is what I see over and over. All of my projects:
Skipping Git submodules setup
Checking cache for default...
Successfully extracted cache
$ ruby -v
ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux]
$ ls vendor
$ gem install bundler --no-ri --no-rdoc
Successfully installed bundler-1.14.6
1 gem installed
$ bundle install -j $(nproc) --path vendor
Fetching gem metadata from https://rubygems.org/.........
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Fetching https://github.com/rails/sass-rails.git
Installing i18n 0.8.1
Installing rake 12.0.0
Installing concurrent-ruby 1.0.5
Installing minitest 5.10.1
Installing thread_safe 0.3.6
Installing builder 3.2.3
Installing erubi 1.6.0
Installing mini_portile2 2.1.0
Installing nio4r 2.0.0 with native extensions
Installing rack 2.0.1
Installing websocket-extensions 0.1.2
Installing mime-types-data 3.2016.0521
Installing ast 2.3.0
Installing arel 8.0.0
Installing public_suffix 2.0.5
Installing bcrypt 3.1.11 with native extensions
Installing coderay 1.1.1
Installing ffi 1.9.18 with native extensions
Installing coffee-script-source 1.12.2
Installing execjs 2.7.0
Installing method_source 0.8.2
Installing thor 0.19.4
Installing debug_inspector 0.0.2 with native extensions
Installing database_cleaner 1.5.3
Installing orm_adapter 0.5.0
Installing formatador 0.2.5
Installing docile 1.1.5
Installing rb-fsevent 0.9.8
Installing ruby_dep 1.5.0
Installing lumberjack 1.0.11
Installing nenv 0.3.0
Installing shellany 0.0.1
Installing slop 3.6.0
Installing multi_json 1.12.1
Using json 2.0.2
Installing guard-compat 1.2.1
Installing powerpack 0.1.1
Installing puma 3.8.2 with native extensions
Installing pg 0.20.0 with native extensions
....
....
....