-
Notifications
You must be signed in to change notification settings - Fork 148
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
un-SCL-ify hammer-cli-katello #10731
un-SCL-ify hammer-cli-katello #10731
Conversation
packages/katello/rubygem-hammer_cli_katello/rubygem-hammer_cli_katello.spec
Outdated
Show resolved
Hide resolved
6598c6e
to
028f166
Compare
packages/katello/rubygem-hammer_cli_katello/hammer_cli_katello-1.12.0.gem
Outdated
Show resolved
Hide resolved
Requires: rubygem(hammer_cli_foreman) | ||
Requires: rubygem(hammer_cli_foreman_tasks) |
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.
We should look at the autorequires. This may be redundant but then we need to update the template 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.
Looking again, I think you did this by hand. In 3f4c042 we redid this section to rely on autorequires.
Requires: rubygem(hammer_cli_foreman) | |
Requires: rubygem(hammer_cli_foreman_tasks) |
While we're on the topic of updates, in 10e0424 we started to add Provides for plugins. Could you add that 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.
I'd like to point out (once again) that since Katello/hammer-cli-katello#924 the nightly packages have been broken: https://ci.theforeman.org/blue/organizations/jenkins/hammer-cli-katello-master-source-release/detail/hammer-cli-katello-master-source-release/204/pipeline
Given they've been broken for 3 months, can we assume they're not tested anyway and we can change it regular gems?
packages/katello/rubygem-hammer_cli_katello/rubygem-hammer_cli_katello.spec
Outdated
Show resolved
Hide resolved
There is a testing queue for hammer-cli-katello issues that has built up over the 3 months, but it's small enough for people not to be clamoring about it. We would like to keep the h-c-k nightlies going. Last I heard, Zach was taking a look. |
You'll need to recreate Gemfile and define a testing group. Jenkins now doesn't install the development group |
I added a test group to https://github.com/Katello/hammer-cli-katello/pull/934/files |
5e0cad8
to
7ae4d44
Compare
Let's merge #10767 first to unblock nightly if this PR still has issues. |
7ae4d44
to
874c84e
Compare
%{?scl:scl enable %{scl} - << \EOF} | ||
gem build %{gem_name}.gemspec | ||
%{?scl:EOF} | ||
gem build ../%{gem_name}-%{version}.gemspec |
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.
gem build ../%{gem_name}-%{version}.gemspec | |
gem build ../%{gem_name}-%{version}%{?prerelease}.gemspec |
I think that's the last place missing prerelease
.
BuildArch: noarch | ||
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version} | ||
Provides: rubygem(%{gem_name}) = %{version} |
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 think this is automatic nowadays and was dropped in 3f4c042
Requires: rubygem(hammer_cli_foreman) | ||
Requires: rubygem(hammer_cli_foreman_tasks) |
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.
Looking again, I think you did this by hand. In 3f4c042 we redid this section to rely on autorequires.
Requires: rubygem(hammer_cli_foreman) | |
Requires: rubygem(hammer_cli_foreman_tasks) |
While we're on the topic of updates, in 10e0424 we started to add Provides for plugins. Could you add that too?
874c84e
to
8dbf75f
Compare
@ekohl to address the comments about items being different from what the spec automation provides, I rebased, regenerated the entire spec file, and added back in the nightly bits. |
a2a824b
to
2215367
Compare
I'm unsure why the specfile cannot be found. |
It added another hammer cli katello to plugins in comps/manifest, that confuses it. |
2215367
to
d80efc9
Compare
I've dropped those additional entries and it built \o/ @ekohl mind having another look? |
Makes the hammer-cli-katello spec file no longer use ye olde SCL macros from the EL7 days.