Allow cellular births to bind published commits
Foundation / checks (client) (push) Successful in 4s
Foundation / checks (deploy) (push) Successful in 6s
Foundation / checks (network) (push) Successful in 4s
Foundation / checks (ecs) (push) Successful in 1m58s
Foundation / checks (checks) (push) Failing after 4m6s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (postgres) (push) Canceled after 7m42s
Foundation / checks (tsan) (push) Canceled after 7m44s

This commit is contained in:
dingo
2026-10-11 21:28:21 -04:00
parent 99f623e116
commit 703758c45c
6 changed files with 101 additions and 4 deletions
+16 -1
View File
@@ -192,6 +192,10 @@ void upgrade_across_migration_and_barrier() {
" -v migration_sha_24=$(s 0024_primitive_life_owner_lookup.sql)"
" -v migration_sha_25=$(s 0025_cellular_v2_bundle.sql)"
" -v migration_sha_26=$(s 0026_cellular_profile_migration.sql)"
" -v migration_sha_27=$(s 0027_cellular_v3_migration.sql)"
" -v migration_sha_28=$(s 0028_cellular_v3_trace_bounds.sql)"
" -v migration_sha_29=$(s 0029_cellular_mutation_reservations.sql)"
" -v migration_sha_30=$(s 0030_cellular_birth_publication_binding.sql)"
" -v runtime_role=evo_runtime_test -f migrations/apply.sql"
" > /dev/null 2>&1") != 0);
CHECK(history(*owner_db) == "1,2,3,4,5,6,7");
@@ -208,7 +212,18 @@ void upgrade_across_migration_and_barrier() {
" EVO_PG_RUNTIME_ROLE=evo_runtime_test bash \"$EVO_SOURCE_ROOT/"
"tools/migrate-postgres.sh\" > /dev/null") == 0);
CHECK(history(*owner_db) ==
"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29");
"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30");
CHECK(scalar(*owner_db,
"SELECT c.condeferrable AND c.condeferred AND "
"c.confrelid = 'evolution.region_commits'::regclass "
"FROM pg_catalog.pg_constraint c WHERE c.conrelid = "
"'evolution.primitive_life_bindings'::regclass AND "
"c.conname = 'primitive_life_bindings_commit_id_fkey'") == "true");
CHECK(scalar(*owner_db,
"SELECT t.tgdeferrable AND t.tginitdeferred FROM pg_catalog.pg_trigger t "
"WHERE t.tgrelid = 'evolution.primitive_life_bindings'::regclass AND "
"t.tgname = 'life_binding_publication_evidence' AND NOT t.tgisinternal") ==
"true");
CHECK(scalar(*owner_db,
"SELECT (to_regprocedure('evolution.primitive_life_owner("
"evolution.u64,evolution.u64,uuid,evolution.u64,uuid)') IS NOT NULL)::text") ==