Hello, I’m having some issues with the build on my site, giventotri
. I recently updated it to Ruby 3.3.6, and I’m noticing that apparently every other build (the site builds itself once an hour), Ruby is downloaded, built, and installed from scratch instead of installing from cache, which adds minutes to the build.
For example, this build installed Ruby from cache, as expected, and took 1:18 in total, with the Ruby installation being virtually instantaneous:
5:01:26 AM: Required ruby-3.3.6 is not installed.
5:01:26 AM: To install do: 'rvm install "ruby-3.3.6"'
5:01:26 AM: Attempting Ruby version 3.3.6, read from .ruby-version file
5:01:26 AM: Started restoring cached Ruby version
5:01:26 AM: Finished restoring cached Ruby version
5:01:27 AM: Using Ruby version 3.3.6
An hour later, the next build installed Ruby from scratch, and the build took over four minutes, with half of that time spent just installing Ruby:
6:01:35 AM: Required ruby-3.3.6 is not installed.
6:01:35 AM: To install do: 'rvm install "ruby-3.3.6"'
6:01:35 AM: Attempting Ruby version 3.3.6, read from .ruby-version file
6:01:35 AM: Required ruby-3.3.6 is not installed - installing.
6:01:35 AM: Searching for binary rubies, this might take some time.
6:01:38 AM: No binary rubies available for: ubuntu/20.04/x86_64/ruby-3.3.6.
6:01:38 AM: Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
6:01:38 AM: Checking requirements for ubuntu.
6:01:38 AM: Requirements installation successful.
6:01:38 AM: Installing Ruby from source to: /opt/buildhome/.rvm/rubies/ruby-3.3.6, this may take a while depending on your cpu(s)...
6:01:38 AM: ruby-3.3.6 - #downloading ruby-3.3.6, this may take a while depending on your connection...
6:01:38 AM: No checksum for downloaded archive, recording checksum in user configuration.
6:01:39 AM: ruby-3.3.6 - #extracting ruby-3.3.6 to /opt/buildhome/.rvm/src/ruby-3.3.6.....
6:02:04 AM: ruby-3.3.6 - #configuring...................................................................
6:02:04 AM: ruby-3.3.6 - #post-configuration..
6:03:27 AM: ruby-3.3.6 - #compiling........................................................................................................
6:03:30 AM: ruby-3.3.6 - #installing......................
6:03:30 AM: ruby-3.3.6 - #making binaries executable...
6:03:31 AM: Installed rubygems 3.5.22 is newer than 3.0.9 provided with installed ruby, skipping installation, use --force to force installation.
6:03:31 AM: ruby-3.3.6 - #gemset created /opt/buildhome/.rvm/gems/ruby-3.3.6@global
6:03:32 AM: ruby-3.3.6 - #importing gemset /opt/buildhome/.rvm/gemsets/global.gems......................................................................
6:03:33 AM: ruby-3.3.6 - #generating global wrappers........
6:03:33 AM: ruby-3.3.6 - #gemset created /opt/buildhome/.rvm/gems/ruby-3.3.6
6:03:33 AM: ruby-3.3.6 - #importing gemsetfile /opt/buildhome/.rvm/gemsets/default.gems evaluated to empty gem list
6:03:33 AM: ruby-3.3.6 - #generating default wrappers........
6:03:33 AM: ruby-3.3.6 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
6:03:33 AM: Install of ruby-3.3.6 - #complete
6:03:33 AM: Ruby was built without documentation, to build it run: rvm docs generate-ri
6:03:33 AM: Using /opt/buildhome/.rvm/gems/ruby-3.3.6
6:03:34 AM: Using Ruby version 3.3.6
The pattern seems pretty consistent, with every other build taking at least twice as long as the previous one:
Any ideas of why this is happening?