-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
pdksync - (GH-cat-12) Add Support for Redhat 9 #2239
Conversation
86086e1
to
5f52942
Compare
5c25865
to
16bec81
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.
I haven't dug through the rest of the code to see if something's missing, but the changes that are here look good to me. The (acceptance) tests should also be helpful. IMHO both commits should be squashed on merge, but there's a good chance this PR is WIP and more changes will be needed anyway. 👍 for the progress.
|
SLES-15 failure looks unrelated: |
bec6e9c
to
434fea3
Compare
|
Tracked those down to a pair of tests in |
a17270d
to
96b948d
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.
In #2250 I have a mechanism to automatically include the right modules, which would probably fix the failure you see here if I extend it a bit with the right auth bits. I have those changes locally but I'm looking at the CI failures in the current PR before I push again.
spec/classes/mod/php_spec.rb
Outdated
| @@ -103,7 +103,8 @@ | |||
| it { is_expected.to contain_apache__mod('php5') } if facts[:os]['release']['major'].to_i < 8 | |||
| it { is_expected.to contain_package('php') } if facts[:os]['release']['major'].to_i > 5 | |||
| it { is_expected.to contain_file('php5.load').with(content: "LoadModule php5_module modules/libphp5.so\n") } if facts[:os]['release']['major'].to_i < 8 | |||
| it { is_expected.to contain_file('php7.load').with(content: "LoadModule php7_module modules/libphp7.so\n") } if facts[:os]['release']['major'].to_i >= 8 | |||
| it { is_expected.to contain_file('php7.load').with(content: "LoadModule php7_module modules/libphp7.so\n") } if facts[:os]['release']['major'].to_i == 8 | |||
| it { is_expected.to contain_file('php.load').with(content: "LoadModule php_module modules/libphp.so\n") } if facts[:os]['release']['major'].to_i >= 9 | |||
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.
Given it's doing multiple comparisons on the release major, perhaps this should be if/elsif instead?
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.
Swapped it over to if/elsif while rebasing onto the current main.
de39a56
to
dc9b4c2
Compare
dc9b4c2
to
edbdb65
Compare
|
Investigating on a saved box, look's like |
Test's have been temporarily excluded on Redhat 9 pending completion of: #2261
|
A temporary test exclusion has been put in for PHP so that this can be moved along. |
|
spec test failures replicated in master |
(GH-cat-12) Add Support for Redhat 9
pdk version:
2.4.0