Deliver cellular tick diagnostics to owners
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (checks) (push) Failing after 39s
Foundation / checks (ecs) (push) Successful in 1m55s
Foundation / checks (postgres) (push) Failing after 52s
Foundation / checks (tsan) (push) Failing after 33s
Foundation / checks (network) (push) Failing after 3m1s
Foundation / checks (client) (push) Failing after 4m30s
Foundation / postgres-tools (push) Skipped
Foundation / server-image (push) Skipped
Foundation / image (push) Skipped

This commit is contained in:
dingo
2026-10-11 02:04:55 -04:00
parent fe03a0f8e4
commit ab9fbdec8f
16 changed files with 408 additions and 188 deletions
+12 -6
View File
@@ -159,7 +159,8 @@ RegionSessionClient::connect(RegionSessionClientConfig config, Clock::time_point
config.protocol_version != network::session_protocol_v5 &&
config.protocol_version != network::session_protocol_v6 &&
config.protocol_version != network::session_protocol_v7 &&
config.protocol_version != network::session_protocol_v8)
config.protocol_version != network::session_protocol_v8 &&
config.protocol_version != network::session_protocol_v9)
return std::unexpected(network::quic::EndpointError::configuration);
auto endpoint = network::quic::Endpoint::connect(config.transport);
if (!endpoint)
@@ -265,7 +266,8 @@ bool RegionSessionClient::send_cellular_action(
std::optional<std::pair<std::uint32_t, std::uint32_t>> intake_target) {
auto& m = *impl_;
return (m.protocol_version == network::session_protocol_v7 ||
m.protocol_version == network::session_protocol_v8) &&
m.protocol_version == network::session_protocol_v8 ||
m.protocol_version == network::session_protocol_v9) &&
m.state == RegionSessionState::established && m.welcome && action_id != 0 && tick != 0 &&
m.send(network::CellularAction{m.welcome->session, m.welcome->epoch, action_id, tick,
move_x, move_y, intake_target.has_value(),
@@ -277,14 +279,16 @@ bool RegionSessionClient::query_action(std::uint64_t action_id) {
auto& m = *impl_;
return (m.protocol_version == network::session_protocol_version ||
m.protocol_version == network::session_protocol_v7 ||
m.protocol_version == network::session_protocol_v8) &&
m.protocol_version == network::session_protocol_v8 ||
m.protocol_version == network::session_protocol_v9) &&
m.state == RegionSessionState::established && m.send(network::ActionQuery{action_id});
}
bool RegionSessionClient::request_primitive_life(std::uint64_t request_id) {
auto& m = *impl_;
return (m.protocol_version == network::session_protocol_v5 ||
m.protocol_version == network::session_protocol_v8) &&
m.protocol_version == network::session_protocol_v8 ||
m.protocol_version == network::session_protocol_v9) &&
m.state == RegionSessionState::established && m.welcome && request_id != 0 &&
m.send(network::PrimitiveLifeRequest{m.welcome->session, m.welcome->epoch, request_id});
}
@@ -292,7 +296,8 @@ bool RegionSessionClient::request_primitive_life(std::uint64_t request_id) {
bool RegionSessionClient::query_primitive_life(std::uint64_t request_id) {
auto& m = *impl_;
return (m.protocol_version == network::session_protocol_v5 ||
m.protocol_version == network::session_protocol_v8) &&
m.protocol_version == network::session_protocol_v8 ||
m.protocol_version == network::session_protocol_v9) &&
m.state == RegionSessionState::established && request_id != 0 &&
m.send(network::PrimitiveLifeQuery{request_id});
}
@@ -329,7 +334,8 @@ bool RegionSessionClient::set_interest(const network::SessionInterest& interest)
auto& m = *impl_;
return (m.protocol_version == network::session_protocol_version ||
m.protocol_version == network::session_protocol_v7 ||
m.protocol_version == network::session_protocol_v8) &&
m.protocol_version == network::session_protocol_v8 ||
m.protocol_version == network::session_protocol_v9) &&
m.state == RegionSessionState::established && m.send(interest);
}