Format M11 cellular code with clang-format 19
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m52s
Foundation / checks (client) (push) Failing after 4m25s
Foundation / checks (network) (push) Failing after 3m2s
Foundation / checks (tsan) (push) Failing after 33s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (checks) (push) Canceled after 5m47s
Foundation / checks (postgres) (push) Canceled after 1m24s

This commit is contained in:
dingo
2026-10-11 02:59:41 -04:00
parent b8a1288ee9
commit c81c1bfc56
25 changed files with 371 additions and 356 deletions
+7 -5
View File
@@ -411,13 +411,15 @@ void cellular_profile() {
CHECK(primitive);
auto habitat = CellularHabitat::create({7, 3, 9, 1'000, 1'000, {}});
CHECK(habitat);
auto owner = CellularLives::create(**primitive, std::move(*habitat), {{1'000, 1'000}, 0, 293'150});
auto owner =
CellularLives::create(**primitive, std::move(*habitat), {{1'000, 1'000}, 0, 293'150});
CHECK(owner && (*owner)->lives().empty() && (*owner)->tick() == 0);
const auto payload = (*owner)->snapshot();
auto manifest = genesis_manifest(key, 9, filled<16>(0x02), 50000, build, payload.size(),
filled<32>(0xA2), CheckpointProfile::cellular_lives_v1);
CHECK(manifest && supported(*manifest) && manifest->history_profile == cellular_history_profile &&
CHECK(manifest && supported(*manifest) &&
manifest->history_profile == cellular_history_profile &&
manifest->cellular_versions == cellular_v1_versions &&
max_payload_bytes(CheckpointProfile::cellular_lives_v1) == max_cellular_lives_bytes);
const auto encoded = encode_manifest(*manifest);
@@ -425,9 +427,9 @@ void cellular_profile() {
const auto restored = restore_cellular_payload(payload, *manifest);
CHECK(restored && (*restored)->snapshot() == payload);
CHECK(!restore_primitive_payload(payload, *manifest));
const auto successor = successor_manifest(*manifest, filled<32>(0xA5), filled<16>(0x04),
lease(), 1, build, payload.size(),
filled<32>(0xA6), batch_for(1, 1));
const auto successor =
successor_manifest(*manifest, filled<32>(0xA5), filled<16>(0x04), lease(), 1, build,
payload.size(), filled<32>(0xA6), batch_for(1, 1));
CHECK(successor && supported(*successor) &&
successor->cellular_versions == cellular_v1_versions);
auto short_cellular_trace = *successor;