Persist primitive life outcomes across control moves
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m57s
Foundation / checks (client) (push) Successful in 12m36s
Foundation / checks (network) (push) Successful in 13m43s
Foundation / checks (tsan) (push) Successful in 8m14s
Foundation / checks (postgres) (push) Failing after 17m26s
Foundation / checks (checks) (push) Successful in 33m23s
Foundation / postgres-tools (push) Skipped
Foundation / server-image (push) Skipped
Foundation / image (push) Skipped

This commit is contained in:
dingo
2026-10-10 13:52:43 -04:00
parent f92198fd50
commit ea07d7c1f5
17 changed files with 303 additions and 83 deletions
+5
View File
@@ -199,6 +199,11 @@ void run_primitive_publication_tests() {
auto bindings = db->query("SELECT * FROM evolution.load_primitive_lives(9753,1)", {}, 5s);
CHECK(bindings && bindings->size() == 1 && (*bindings)[0][2] == "1" &&
(*bindings)[0][5] == "1");
const auto durable_outcome =
query_primitive_life(*db, key, *lease, alice, control->generation, 1, 5s);
CHECK(durable_outcome && *durable_outcome && (**durable_outcome).published &&
(**durable_outcome).published->identity == 1 &&
(**durable_outcome).published->commit_sequence == 1);
auto reject = reject_primitive_life(*db, key, *lease, alice, control->generation, 1,
LifeRefusal::cancelled, 5s);
CHECK(!reject && reject.error().kind == LifeReservationError::existing_life);