-
Notifications
You must be signed in to change notification settings - Fork 436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Require system gems in api-deps package #6234
Conversation
dist/obs-bundled-gems.spec
Outdated
@@ -51,6 +51,8 @@ This package bundles all the gems required by the Open Build Service | |||
to make it easier to deploy the obs-server package. | |||
|
|||
%define rake_version 12.3.1 | |||
%define passenger_version 5.3.7 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think there is a problem with passenger - as we don't bundle it. rack and rake are special in the sense that we have them as package for passenger and in the bundle.
And I would prefer if you checked the bundled rack version in line 106 too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, updated!
5ac3ad0
to
b5063eb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my comment
dist/obs-bundled-gems.spec
Outdated
@@ -104,6 +106,7 @@ bundle --local --path %{buildroot}%_libdir/obs-api/ | |||
|
|||
# test that the rake_version macro is still matching our Gemfile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment should be updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or just removed :)
Rake and Rack need to get installed on the system and not with the bundled_gems archive because we require them for passenger. This caused that an update of one of these gems in the Gemfile did not trigger an update of the system gem when updating the RPM package which causes a crash of the whole application. Therefore we require them now. There are only 2 gems so it is reasonable to update the version in the spec file manually for now when we update the gem. The RPM package build will fail if we don't do it and prevents us from deploying and breaking our instance.
b5063eb
to
22fa39a
Compare
that failing rspec is the one I (hopefully) fixed yesterday. And the packages built before the comment was updated, so let's merge this |
Rake and Rack need to get installed on the system and not
with the bundled_gems archive because we require them for passenger.
This caused that an update of one of these gems in the Gemfile did not trigger
an update of the system gem when updating the RPM package which causes
a crash of the whole application.
Therefore we require them now. There are only 2 gems so it is reasonable to update
the version in the spec file manually for now when we update the gem. The RPM package
build will fail if we don't do it and prevents us from deploying and breaking our instance.