- Issue created by @tedbow
- Assigned to kunal.sachdev
- Open on Drupal.org →Core: 10.1.x + Environment: PHP 8.1 & MySQL 8last update
over 1 year ago Not currently mergeable. - @kunalsachdev opened merge request.
- last update
over 1 year ago 791 pass, 1 fail - 🇮🇳India kunal.sachdev
The test fails in
CronFrequencyValidatorTest::testAutomatedCronValidation
because it enables the Automated Cron module while doing cron update. I think we can remove that test as our module is currently incompatible with Automated Cron. - last update
over 1 year ago 796 pass - last update
over 1 year ago 796 pass - last update
over 1 year ago 796 pass - Issue was unassigned.
- Status changed to Needs review
over 1 year ago 11:32am 31 May 2023 - Assigned to omkar.podey
- Assigned to kunal.sachdev
- Status changed to Needs work
over 1 year ago 12:16pm 31 May 2023 - last update
over 1 year ago 796 pass - Issue was unassigned.
- Status changed to Needs review
over 1 year ago 2:38pm 31 May 2023 - Assigned to kunal.sachdev
- Status changed to Needs work
over 1 year ago 8:00pm 31 May 2023 - last update
over 1 year ago 797 pass - Assigned to omkar.podey
- Open on Drupal.org →Core: 10.1.x + Environment: PHP 8.1 & MySQL 8last update
over 1 year ago Waiting for branch to pass - Open on Drupal.org →Core: 10.1.x + Environment: PHP 8.1 & MySQL 8last update
over 1 year ago Waiting for branch to pass - last update
over 1 year ago 805 pass, 2 fail - 🇮🇳India omkar.podey
porting @Wim.leers comments
he helped me to figure out a way forward here,
- because it is physically impossible for a validator to show a validation result that depends on the TERMINATE event (because it happens after the status report page has rendered!)
- recover the functional test coverage from #3362978: Module does not work with Automated Cron
- last update
over 1 year ago 806 pass, 1 fail - 🇺🇸United States tedbow Ithaca, NY, USA
I am exactly sure of the context of @wim leers comments but...
because it is physically impossible for a validator to show a validation result that depends on the TERMINATE event (because it happens after the status report page has rendered!)
I assume this is referring to this version of the validor that I committed
The logic around
setTerminateCalled
in the version has nothing to with the status report it only affectsPreCreateEvent::class => 'validatePreCreate',
and PreCreate will never affect the status report.This PreCreate will ensure that if the user does not disable Automated Cron and the cron update gets invoke anyways by this module will not run. It will still be logged because
\Drupal\automatic_updates\CronUpdateStage::performUpdate
will log and email any errors - 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
#12:
Ah, I get it now! This would work if automated cron itself was triggered during
KernelEvents::TERMINATE
, because then all of Automatic Updates' Stage-related events would be dispatched after that.So then both approaches are equivalent. I think mine is clearer because it is able to put a clear early return in
automatic_updates_cron()
, while yours is more difficult to understand the flow for. (Especially the automatic logging/emailing you mention is non-trivial to see.)But … no strong opinion.
BTW, if the reasoning behind your approach had had documentation, @omkar.podey and I wouldn't have spent half an hour trying to come up with an alternative approach. Neither of us had deciphered your advanced wizardry! 🙈 If you switch to that approach, please add clear docs 🙏
- 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
Improving title accuracy. And I think this is an alpha target?
- 🇺🇸United States tedbow Ithaca, NY, USA
I think mine is clearer because it is able to put a clear early return in automatic_updates_cron(), while yours is more difficult to understand the flow for
I personally like mine because all the logic is contained in 1 validator.
BTW, if the reasoning behind your approach had had documentation, @omkar.podey and I wouldn't have spent half an hour trying to come up with an alternative approach. Neither of us had deciphered your advanced wizardry!
Sorry I literally figured it out 5 minutes before my EOD yesterday and could only push it up. I should have written some quick comments on the code but didn't realize that it was that hard to understand
- last update
over 1 year ago Custom Commands Failed - 🇮🇳India omkar.podey
i need the logic on testing 'kernel::terminate' @ted.bow, and my local test site is having issues so i am trying to fix that.
- Assigned to tedbow
- 🇺🇸United States tedbow Ithaca, NY, USA
I just thought of simple way to test my approach
- last update
over 1 year ago 567 pass, 48 fail - Status changed to Needs review
over 1 year ago 3:47pm 2 June 2023 - Assigned to phenaproxima
- Assigned to tedbow
- Status changed to Needs work
over 1 year ago 4:01pm 2 June 2023 - 🇺🇸United States phenaproxima Massachusetts
Generally I think this looks good. Some suggestions and cleanup...
- Open on Drupal.org →Core: 10.1.x + Environment: PHP 8.1 & MySQL 8last update
over 1 year ago Waiting for branch to pass - last update
over 1 year ago 811 pass, 2 fail - Assigned to phenaproxima
- Status changed to Needs review
over 1 year ago 5:18pm 2 June 2023 - last update
over 1 year ago 812 pass - last update
over 1 year ago 814 pass, 2 fail - last update
over 1 year ago 814 pass, 2 fail - last update
over 1 year ago 814 pass, 2 fail - Open on Drupal.org →Core: 10.1.x + Environment: PHP 8.1 & MySQL 8last update
over 1 year ago Not currently mergeable. - last update
over 1 year ago 810 pass, 3 fail - last update
over 1 year ago 810 pass, 3 fail - Status changed to RTBC
over 1 year ago 6:46pm 2 June 2023 - last update
over 1 year ago 814 pass, 2 fail - last update
over 1 year ago 815 pass - last update
over 1 year ago 815 pass -
phenaproxima →
committed 258fe9aa on 3.0.x authored by
kunal.sachdev →
Issue #3363725 by tedbow, kunal.sachdev, omkar.podey, phenaproxima, Wim...
-
phenaproxima →
committed 258fe9aa on 3.0.x authored by
kunal.sachdev →
- Status changed to Fixed
over 1 year ago 8:20pm 2 June 2023 Automatically closed - issue fixed for 2 weeks with no activity.