-
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
Add support for PassengerPreloadBundler #2233
Add support for PassengerPreloadBundler #2233
Conversation
8b1ebfe
to
6395913
Compare
6395913
to
d3c21bf
Compare
|
@chelnak not sure about what "community-labeller" is supposed to check (failed test in first commit)… I labelled the issue and re-run the test but the outcome was the same 🤷 Then I saw CI was broken, so I added a commit to fix this and that "community-labeller" issue did not trigger. I see you authored this GHA maybe you are interested in this info? |
08ccf42
to
af8094b
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.
Other than the below, this look's good to me.
The latest passenger include a new option to load ruby bundles earlier, working around deployment issues. See: * phusion/passenger#2410 * phusion/passenger#2409
af8094b
to
75033e3
Compare
spec/acceptance/mod_php_spec.rb
Outdated
| @@ -44,7 +44,7 @@ class { 'apache::mod::php': } | |||
| describe file("#{apache_hash['mod_dir']}/php7.4.conf") do | |||
| it { is_expected.to contain 'DirectoryIndex index.php' } | |||
| end | |||
| elsif os[:family] == 'redhat' && os[:release] =~ %r{^8\.} | |||
| elsif os[:family] == 'redhat' && os[:release] =~ %r{^8($|\.)} | |||
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.
looks a bit complicated. %r{^8} should be fine?
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.
Quite agree, at the current rate of RedHat releases I think we can ignore the issues that might arise the release following RedHat 79 😁 …
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.
/^8\b/ should also do it as expected
75033e3
to
2e059c1
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.
LGTM
| @@ -343,6 +346,7 @@ | |||
| $passenger_installed_version = undef, | |||
| $passenger_instance_registry_dir = undef, | |||
| $passenger_load_shell_envvars = undef, | |||
| Optional[Boolean] $passenger_preload_bundler = undef, | |||
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.
Wouldn't false be the better default?
| Optional[Boolean] $passenger_preload_bundler = undef, | |
| Boolean $passenger_preload_bundler = false, |
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.
No. Right now undef means "don't output it at all" and the boolean translates to On/Off. This is the correct behavior IMHO, especially since older Passenger versions don't support this so it'd fail on an unexpected statement.
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.
Not sure what's up with the CLA check.
|
@smortex Thanks for putting the work in :) As for the CLA test, they do that sometimes |
The latest passenger include a new option to load ruby bundles earlier,
working around deployment issues. See: