Problem/Motivation
If updates are being run during coron then we should give warning if cron is not set to run often enough.
Proposed resolution
For general instructions see the parent issue: #3230045: [Meta] Create validation listeners
If #3239103: Add setting to enable/disable updates on cron is committed first then we should only run the validation if the updates will happen during cron.
Copy logic for new validator from the 1.x version of this module: https://git.drupalcode.org/project/automatic_updates/-/blob/8.x-1.x/src/...
The subscriber should subscribe to events `\Drupal\automatic_updates\AutomaticUpdatesEvents::READINESS_CHECK` and
it should add a Warning validation result
Issue fork automatic_updates-3242724
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
tedbowComment #5
tedbowNeeds works for Merge Request comments and custom command fails.
Also needs tests
Comment #6
tedbowfor the tests we can use the test from 8.x-1.x as an example https://git.drupalcode.org/project/automatic_updates/-/blob/8.x-1.x/test...
We could make this kernel and since our checkers are different we would have to replace
`$messages = $this->container->get('automatic_updates.cron_frequency')->run();`
see `\Drupal\Tests\automatic_updates\Kernel\ReadinessValidation\ComposerExecutableValidatorTest::testErrorIfComposerNotFound` for code for running example replacement
Comment #7
kunal.sachdev CreditAttribution: kunal.sachdev commentedComment #8
tedbowComment #9
kunal.sachdev CreditAttribution: kunal.sachdev commentedComment #10
kunal.sachdev CreditAttribution: kunal.sachdev at Acquia commentedComment #11
tedbowComment #12
tedbowNeeds for some comments on the MR also needs to merge in changes in 8.x-2.x
Comment #14
phenaproximaComment #15
tedbowComment #17
phenaproxima