TAS Smoke Test are failing with ruby buildpack version v1.9.0+
search cancel

TAS Smoke Test are failing with ruby buildpack version v1.9.0+

book

Article ID: 298411

calendar_today

Updated On:

Products

VMware Tanzu Application Service for VMs

Issue/Introduction

In buildpack v1.8.60, Ruby 2.7.x is the default version
In buildpack v1.9.0+, Ruby 3.1.x appears to be the new default. 

TAS smoke-tests are failing with the error below, as a result of the simple_ruby test asset being pushed hasn’t been ported to Ruby 3 and doesn’t hardcode the Ruby 2.* version in Gemfile.
           OUT:    -----> Ruby Buildpack version 1.9.0  
           OUT:    -----> Supplying Ruby  
           OUT:    -----> Installing bundler 2.3.26  
           OUT:           Copy [/tmp/buildpacks/f9010c0940771278bc938e8f20e6c03c/dependencies/7a13e8f4aec67ada99dd742c60efd8b5/bundler_2.3.26_linux_noarch_any-stack_67702804.tgz]  
           OUT:           **WARNING** You have not declared a Ruby version in your Gemfile.  
           OUT:           Defaulting to 3.1.3  
           OUT:           See http://docs.cloudfoundry.org/buildpacks/ruby/index.html#runtime for more information.  
           OUT:    -----> Installing ruby 3.1.3  
           OUT:           Copy [/tmp/buildpacks/f9010c0940771278bc938e8f20e6c03c/dependencies/53c320ba469faa38adfb694ee353c1b1/ruby_3.1.3_linux_x64_cflinuxfs3_886f9a1c.tgz]  
           OUT:           **WARNING** Your Gemfile.lock was bundled with bundler 2.0.1, which is incompatible with the current bundler version (2.3.26).  
           OUT:           **WARNING** Deleting "Bundled With" from the Gemfile.lock  
           OUT:    -----> Installing dependencies using bundler 2.3.26  
           OUT:           Running: bundle install --jobs=4 --retry=4 --local  
           OUT:           Using bundler 2.3.26  
           OUT:           Installing rack 2.0.7  
           OUT:           Installing mustermann 1.0.3  
           OUT:           Installing tilt 2.0.9  
           OUT:           Installing rack-protection 2.0.5  
           OUT:           Installing sinatra 2.0.5  
           OUT:           Bundle complete! 1 Gemfile dependency, 6 gems now installed.  
           OUT:           Gems in the groups 'development' and 'test' were not installed.  
....... 
           OUT:   
           ERR: Instances starting...  
           ERR: Instances starting...  
           ERR: Instances starting...  
           ERR: Instances starting...  
           ERR: Instances starting...  
           ERR: Instances starting...  
           ERR: Instances starting...  
           ERR: Instances starting...  
           ERR: Instances starting...  
           ERR: Instances starting...  
           ERR: Instances starting...  
           ERR: Instances starting...  
           OUT:   
           ERR: Start unsuccessful  
           ERR:   
           ERR: TIP: use 'cf7 logs SMOKES-APP-0c6fe2e1-eedc --recent' for more information  
.......
           OUT: stack:             cflinuxfs3  
           OUT: buildpacks:          
           OUT: 	name             version   detect output   buildpack name  
           OUT: 	ruby_buildpack   1.9.0     ruby            ruby  
           OUT:   
           OUT: type:            web  
           OUT: sidecars:          
           OUT: instances:       0/1  
           OUT: memory usage:    1024M  
           OUT: start command:   bundle exec rackup config.ru -p $PORT  
           OUT:      state     since                  cpu    memory        disk           details  
           OUT: #0   crashed   2022-12-22T07:10:46Z   0.0%   13.2M of 1G   124.3M of 1G     
           OUT: FAILED  


Environment

Product Version: 2.13

Resolution

This is now patched in Smoke-test release v4.8.2+ which is available in:

  • TAS v2.11.32
  • TAS v2.12.21
  • TAS v2.13.14
  • TAS v3.0.4


To work around this, customer can downgrade the version of the ruby buildpack that is installed from 1.9.0+ to 1.8.60 using steps below and re-run the smoketest:

1. Download Ruby Buildpack v1.8.60 

2. Run `cf update-buildpack ruby_buildpack -p path/to/ruby_buildpack-cached-cflinuxfs3-v1.8.60`

For more information please see the following KB article.