Add isolated cellular checkpoint publisher
Foundation / checks (client) (push) Successful in 4s
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (network) (push) Successful in 4s
Foundation / checks (checks) (push) Failing after 38s
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 43s
Foundation / checks (ecs) (push) Canceled after 54s
Foundation / checks (tsan) (push) Canceled after 24s
Foundation / checks (client) (push) Successful in 4s
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (network) (push) Successful in 4s
Foundation / checks (checks) (push) Failing after 38s
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 43s
Foundation / checks (ecs) (push) Canceled after 54s
Foundation / checks (tsan) (push) Canceled after 24s
This commit is contained in:
@@ -185,6 +185,7 @@ void upgrade_across_migration_and_barrier() {
|
||||
" -v migration_sha_17=$(s 0017_life_request_outcomes.sql)"
|
||||
" -v migration_sha_18=$(s 0018_cellular_profile_admission.sql)"
|
||||
" -v migration_sha_19=$(s 0019_cellular_action_records.sql)"
|
||||
" -v migration_sha_20=$(s 0020_cellular_publication.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");
|
||||
@@ -200,7 +201,7 @@ void upgrade_across_migration_and_barrier() {
|
||||
CHECK(shell("PGDATABASE=" + database +
|
||||
" 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");
|
||||
CHECK(history(*owner_db) == "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20");
|
||||
CHECK(scalar(*owner_db, "SELECT count(*) FROM information_schema.columns WHERE "
|
||||
"table_schema = 'evolution' AND table_name = 'region_actions' AND "
|
||||
"column_name IN ('input_bytes', 'result')") == "2");
|
||||
@@ -214,6 +215,24 @@ void upgrade_across_migration_and_barrier() {
|
||||
CHECK(scalar(*owner_db,
|
||||
"SELECT evolution.valid_cellular_action_input(decode(repeat('00', 24), "
|
||||
"'hex'), 1)::text") == "false");
|
||||
CHECK(scalar(*owner_db,
|
||||
"SELECT evolution.check_cellular_action_block(decode(repeat('01', 16) || "
|
||||
"'0100000000000000' || '0100000000000000' || repeat('00', 16), 'hex'), "
|
||||
"0, 1)::text") == "1");
|
||||
CHECK(scalar(*owner_db,
|
||||
"SELECT (to_regprocedure('evolution.publish_cellular_checkpoint(bytea,bytea,bytea)') "
|
||||
"IS NOT NULL)::text") == "true");
|
||||
CHECK(scalar(*owner_db,
|
||||
"SELECT has_function_privilege('evo_runtime_login', "
|
||||
"'evolution.publish_cellular_checkpoint(bytea,bytea,bytea)', 'EXECUTE')::text") ==
|
||||
"true");
|
||||
CHECK(scalar(*owner_db,
|
||||
"SELECT has_table_privilege('evo_runtime_login', "
|
||||
"'evolution.cellular_publications', 'INSERT')::text") == "false");
|
||||
CHECK(scalar(*owner_db,
|
||||
"SELECT has_function_privilege('evo_runtime_login', "
|
||||
"'evolution.publish_region_checkpoint_core(bytea,bytea)', 'EXECUTE')::text") ==
|
||||
"false");
|
||||
CHECK(renew_region_lease(*runtime, r.key, *lease, 20000ms, 5s));
|
||||
confirm(publish_next(20)); // 41..60, now v8.
|
||||
CHECK(head.head.end_tick == 60);
|
||||
|
||||
Reference in New Issue
Block a user