RabbitMQ Smoke test fails with Ruby Buildpack >=1.8.33
search cancel

RabbitMQ Smoke test fails with Ruby Buildpack >=1.8.33

book

Article ID: 293217

calendar_today

Updated On:

Products

VMware RabbitMQ

Issue/Introduction

When running the RabbitMQ smoke tests, it fails when running with a version of the Ruby Buildpack >=1.8.33. The errand fails with the following:
           • Failure [752.609 seconds]  
           Smoke tests  
           /var/vcap/packages/cf-rabbitmq-smoke-tests/src/rabbitmq-smoke-tests/tests/smoke_tests_test.go:15  
             pushes an app, sends, and reads a message from RabbitMQ over TLS: plan 'single-node' [It]  
             /var/vcap/packages/cf-rabbitmq-smoke-tests/src/rabbitmq-smoke-tests/tests/smoke_tests_test.go:89  
             
             Expected  
                 <int>: 404  
             to be <  
                 <int>: 300  
             

The error message in the app logs show:
ERR /home/vcap/deps/0/vendor_bundle/ruby/3.0.0/gems/rack-2.2.3/lib/rack/handler/thin.rb:11:in `run': wrong number of arguments (given 2, expected 1) (ArgumentError)  


Environment

Product Version: 2.0

Resolution

Starting with Ruby Buildpack 1.8.33, Ruby 3.0 for cflinuxfs3 was added. This leads to Ruby 3.x being used by the smoke test application, causing the error.
 
  • https://github.com/cloudfoundry/ruby-buildpack/releases/tag/v1.8.33

To resolve this, a change was made in the Gemfile for the rabbit smoke test application, which pins the version to 2.7.0.
 
  • https://github.com/pivotal-cf/rabbit-example-app/commit/7061ee279ac9eb7fae9530c9945fbcf4be494237#diff-d09ea66f8227784ff4393d88a19836f321c915ae10031d16c93d67e6283ab55f

This Gemfile change is included in VMware Tanzu RabbitMQ for VMs versions:
 
  • 1.21.3
  • 2.0.1
To resolve this issue, please upgrade to these versions.