Fixes #35431 - Update spring to 4.x
Currently version 2 is used, but version 3 brings Ruby 3 support. Version 4 is the latest. The only backwards incompatible changes they mention are requiring Ruby >= 2.7 and Rails >= 6.0, which is not a problem for Foreman.
Version 3 enforces that cache_classes is turned off, in particular for test environments.
Issues: #35431
I think this relies on fixing these:
[2022-08-25T10:39:01.172Z] ActiveSupport::DeprecationException: DEPRECATION WARNING: Initialization autoloaded the constants Net::Validations, SettingRegistry, HiddenValue, SettingPresenter, Foreman::Deprecation, SettingSelectCollection, MediumProviders, MediumProviders::Provider, MediumProviders::Default, and Foreman::TelemetryHelper.
That is also needed for Zeitwerk, but marking as draft for now.
I at least opened https://github.com/theforeman/foreman/pull/9418 to see if version 3 works.