Fix SQLite CI failures

Created on 10 August 2025, 1 day ago

Problem/Motivation

Tests are failing on SQLite because it seems to happen that a request's KernelEvents::TERMINATE event is dispatched after the site has already been uninstalled. Not sure why this only happens for SQLite, probably a timing issue.

I had originally thought this only affected 8.x-1.x and could be fixed by 🐛 Functional tests attempting to release locks for a no-longer existing site throws an exception Active so I attempted to fix the problem with e3f80630c0fc808a7b86dc7b57db6e9ee0b7a0c9, but it seems that this is tied to SQLite and not the version and also that issue does not yet fully fix the problem.

In particular, \Drupal\automated_cron\EventSubscriber\AutomatedCron::onTerminate() is also causing problems by running cron on a site that no longer exists.

Proposed resolution

I had already opened a merge request against 8.x-1.x (as I originally thought this only affected that branch). Once that is settled I will open another one for 2.x which will presumably need the same treatment.

🐛 Bug report
Status

Needs work

Version

2.0

Component

Code

Created by

🇩🇪Germany tstoeckler Essen, Germany

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024