Engine Yard Developer Center

Recent deployment issues via Bundler version-locking

In response to difficulty experienced by some Engine Yard customers recently, we would like to clarify where certain deployment issues are surfacing and how they can be avoided.

 

Ruby changed their Semantic Versioning beginning with version 2.1.x.  The difference in these two formats can be seen here:

 

Original patch level format (in bold)

1.8.6-p399

1.9.2-p0

1.9.3-p194

1.9.3-p484   

1.9.3-p551

2.0.0-p0

2.0.0-p598

2.0.0-p645

 

New patch level format (in bold)

2.1.0

2.1.1

2.1.2

 

Engine Yard strives to provide timely, up-to-date releases for our services, infrastructure, and any new Ruby versions.  In May 5th’s Stack Release we introduced the new Ruby versioning format for Ruby 2.1 and higher, which is when some customers began experiencing the aforementioned difficulties.

 

Bundler’s inclusion of their version-locking functionality in v1.5 does not support Ruby’s new patch-level format and therefore accept successive patches to the same major-minor version.  This gives many false-positive errors during deployment.  This behavior has lead Engine Yard customers to experience difficulties completing their deployment tasks.

 

For tips on how to avoid such complications, we recommend:

 

  1. Avoid setting a Ruby version in Bundler.
  2. If a Ruby version is set in Bundler, keep it up to date; Update your repo and then deploy after a fresh upgrade.  Please note Engine Yard services do not automatically upgrade ruby versions until the Upgrade button has been clicked.
  3. If the above two options do not work for your project, lock to an explicit version of Ruby using metadata by submitting a Support ticket for our assistance.  Be aware that this will prevent you from getting valuable security updates.

 

As always, please do not hesitate to open a Support ticket if you have any questions or concerns.

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Please sign in to leave a comment.

Powered by Zendesk