0
Fork 0
mirror of https://github.com/mastra-ai/mastra.git synced 2026-11-17 08:44:46 +00:00

test(mcp): run the cancel and FGA tests for real, split out core's shutdown lease regression

#28506 and #28523 are on main now, so the cross-instance cancel and FGA
tests pass and run as plain tests. #28509 awaits workflow-run deletes on
shutdown, so the drain() teardown workaround goes.

#28509 also changed graceful shutdown: it now waits for aborted runs to
settle before releasing leases, and a settled run leaves ownedLeases, so
its lease is never handed back. A peer still reruns a recover:true task,
one lease later, as after a crash. The graceful-shutdown test now checks
only that end result; a new test writes the handed-back state itself to
keep covering the sweep of running rows with no owner and no lease (it
fails with that sweep branch removed); and an it.fails test records the
core regression (it passes with core snapshotting its leases before the
settle wait).

Co-Authored-By: mastracode <284800079+mastra-platform[bot]@users.noreply.github.com>
This commit is contained in:
Daniel Lew 2026-10-28 09:49:25 -04:00
commit 04ced40e2b