[ai] Assert build-lock selection reasons

Task: 2026/08/11/assert-build-lock-reasons-not-just-pids
This commit is contained in:
John Preston
2026-08-12 00:52:16 +04:00
parent 56ba946168
commit 48046aa140

View File

@@ -1296,8 +1296,13 @@ class MechanicsTest(unittest.TestCase):
{12, 13},
)
self.assertEqual(
{process["pid"] for process in selected},
{10, 11, 12, 14},
{process["pid"]: process["reason"] for process in selected},
{
10: "exact-build-tree-command",
11: "verified-build-process-descendant",
12: "direct-build-artifact-holder",
14: "exact-checkout-executable",
},
)
def test_build_lock_recovery_deletes_only_named_build_artifacts(self):