[V 6.4.3] minitest missing, Gemfile.lock incoherent

Created by: maltefiala

Version

Issue observed with Gitlab 6-4-stable (6.4.3). It is working in 6.4.2

Summary

While Upgrading to 6.4.3 migrating mysql failed with

Could not find minitest-4.7.5 in any of the sources

Checking bundle install resulted in

You are trying to install in deployment mode after changing your Gemfile. Run bundle install elsewhere and add the updated Gemfile.lock to version control.

Steps to reproduce

  1. Follow upgrade guide to Line 36:

    sudo -u git -H bundle install --without development test postgres --deployment.

Error Msg:

You are trying to install in deployment mode after changing your Gemfile. Run bundle install elsewhere and add the updated Gemfile.lock to version control occurred.

  1. Continue to Line 43:

    sudo -u git -H bundle exec rake db:migrate RAILS_ENV=production

Error Msg:

Could not find minitest-4.7.5 in any of the sources encountered.

Expected behavior

The Gemfile.lock File should be coherent. minitest should not be needed in production

Observed behavior

Two error messages:

You are trying to install in deployment mode after changing your Gemfile. Run bundle install elsewhere and add the updated Gemfile.lock to version control.

Could not find minitest-4.7.5 in any of the sources