Skip to content
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

Merged
merged 1 commit into from
Nov 13, 2018

Conversation

ChrisBr
Copy link
Member

@ChrisBr ChrisBr commented Nov 13, 2018

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.

@@ -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
Copy link
Member

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, updated!

@ChrisBr ChrisBr force-pushed the require_system_gems branch 2 times, most recently from 5ac3ad0 to b5063eb Compare November 13, 2018 09:54
Copy link
Contributor

@dmarcoux dmarcoux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my comment

@@ -104,6 +106,7 @@ bundle --local --path %{buildroot}%_libdir/obs-api/

# test that the rake_version macro is still matching our Gemfile
Copy link
Contributor

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

Copy link
Member

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.
@coolo
Copy link
Member

coolo commented Nov 13, 2018

that failing rspec is the one I (hopefully) fixed yesterday. And the packages built before the comment was updated, so let's merge this

@coolo coolo merged commit 3e32966 into openSUSE:master Nov 13, 2018
@ChrisBr ChrisBr deleted the require_system_gems branch December 11, 2018 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants