Initialize cellular publish failure details
Foundation / checks (deploy) (push) Successful in 6s
Foundation / checks (ecs) (push) Successful in 2m3s
Foundation / checks (checks) (push) Failing after 3m58s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (client) (push) Canceled after 5m29s
Foundation / checks (postgres) (push) Canceled after 5m23s
Foundation / checks (tsan) (push) Canceled after 5m24s
Foundation / checks (network) (push) Canceled after 5m34s

This commit is contained in:
dingo
2026-10-11 22:36:12 -04:00
parent aa6e5579be
commit db7c786a2e
+6 -3
View File
@@ -300,17 +300,20 @@ CellularRegionHost::publish(const CellularBatch& batch,
const auto grant = authority_.grant();
if (!status_.ready || !state_ || !committed_ || !grant ||
!authority_.may_begin_commit(LeaseClock::now()))
return std::unexpected{CellularPublishFailure{CellularHostError::not_ready}};
return std::unexpected{
CellularPublishFailure{CellularHostError::not_ready, {}, {}, {}}};
auto candidate = replay_cellular_batch(*state_, batch);
if (!candidate)
return std::unexpected{CellularPublishFailure{CellularHostError::invalid_batch}};
return std::unexpected{
CellularPublishFailure{CellularHostError::invalid_batch, {}, {}, {}}};
auto trace = encode_cellular_batch(batch);
auto action_block =
encode_cellular_action_block(actions, batch.header.begin_tick, batch.header.end_tick);
const auto commit =
trace && action_block ? commit_id(*committed_, *trace, *action_block) : std::nullopt;
if (!commit)
return std::unexpected{CellularPublishFailure{CellularHostError::invalid_batch}};
return std::unexpected{
CellularPublishFailure{CellularHostError::invalid_batch, {}, {}, {}}};
auto published = persistence::publish_cellular_batch(
*db_, *objects_, grant.value_or(persistence::LeaseGrant{}), *committed_, batch, **candidate,
*commit, config_.build, config_.lease.commit_timeout, {}, actions);