Test life owner routing across region restart
Foundation / checks (deploy) (push) Successful in 6s
Foundation / checks (checks) (push) Failing after 40s
Foundation / checks (postgres) (push) Canceled after 0s
Foundation / checks (tsan) (push) Canceled after 0s
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 1m12s
Foundation / checks (network) (push) Canceled after 37s
Foundation / checks (ecs) (push) Canceled after 1m9s
Foundation / checks (deploy) (push) Successful in 6s
Foundation / checks (checks) (push) Failing after 40s
Foundation / checks (postgres) (push) Canceled after 0s
Foundation / checks (tsan) (push) Canceled after 0s
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 1m12s
Foundation / checks (network) (push) Canceled after 37s
Foundation / checks (ecs) (push) Canceled after 1m9s
This commit is contained in:
@@ -309,7 +309,11 @@ std::optional<Options> parse(int argc, char** argv) {
|
||||
(!server_app::sessions_available || !o.session.complete() || !o.synthetic))
|
||||
return std::nullopt;
|
||||
// M10 sessions (ADR-0091/0092) need every setting and the QUIC build.
|
||||
if (o.m10.any() && (!server_app::m10_available || !o.m10.complete()))
|
||||
if (o.m10.session_any() && (!server_app::m10_available || !o.m10.complete()))
|
||||
return std::nullopt;
|
||||
if (!o.m10.life_routes.empty() && o.profile != "primitive" && o.profile != "cellular")
|
||||
return std::nullopt;
|
||||
if (!o.m10.life_routes.empty() && o.profile == "primitive" && !o.primitive_session.any())
|
||||
return std::nullopt;
|
||||
// Primitive profile serves only the creation-only host. Its optional listener
|
||||
// uses a separate v5 contract and never enables the M9/M10 action path.
|
||||
@@ -317,7 +321,7 @@ std::optional<Options> parse(int argc, char** argv) {
|
||||
(!server_app::m10_available || !o.primitive_session.complete() || o.profile != "primitive"))
|
||||
return std::nullopt;
|
||||
if (o.profile == "primitive" &&
|
||||
(o.synthetic || !o.crash_point.empty() || o.session.any() || o.m10.any() ||
|
||||
(o.synthetic || !o.crash_point.empty() || o.session.any() || o.m10.session_any() ||
|
||||
o.host.flush_interval != 1000ms || o.drain != 10000ms))
|
||||
return std::nullopt;
|
||||
if (o.profile == "cellular" &&
|
||||
@@ -696,8 +700,9 @@ struct PrimitiveSessionBridge {
|
||||
|
||||
std::optional<PrimitiveSessionBridge>
|
||||
open_primitive_sessions(const Options::PrimitiveSessionOptions& options,
|
||||
server::PrimitiveRegionHost& host, persistence::RegionKey key,
|
||||
std::uint64_t frame, const persistence::PgOptions& pg) {
|
||||
const server_app::M10Options& routing, server::PrimitiveRegionHost& host,
|
||||
persistence::RegionKey key, std::uint64_t frame,
|
||||
const persistence::PgOptions& pg) {
|
||||
PrimitiveSessionBridge bridge;
|
||||
if (!options.any())
|
||||
return bridge;
|
||||
@@ -730,6 +735,12 @@ open_primitive_sessions(const Options::PrimitiveSessionOptions& options,
|
||||
config.control.epoch = 1;
|
||||
config.control.max_sessions = 512;
|
||||
config.transport.limits.max_connections = 576;
|
||||
const auto life_routes = server_app::parse_life_owner_routes(routing);
|
||||
if (!life_routes) {
|
||||
std::puts("error primitive-life-routes");
|
||||
return std::nullopt;
|
||||
}
|
||||
config.life_owner_routes = *life_routes;
|
||||
network::GrantPublicKey issuer_key{};
|
||||
std::copy(issuer.begin(), issuer.end(), issuer_key.begin());
|
||||
config.issuer_keys.push_back({1, issuer_key});
|
||||
@@ -782,7 +793,7 @@ int serve_primitive(Options& o) {
|
||||
auto& host = **made;
|
||||
#ifdef EVO_SERVER_M10
|
||||
auto primitive_sessions =
|
||||
open_primitive_sessions(o.primitive_session, host, o.host.key, o.host.frame, o.pg);
|
||||
open_primitive_sessions(o.primitive_session, o.m10, host, o.host.key, o.host.frame, o.pg);
|
||||
if (!primitive_sessions)
|
||||
return 2;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user