Add M10.4c evo-server QUIC listener and headless session client
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m46s
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 (checks) (push) Canceled after 3m44s
Foundation / checks (client) (push) Canceled after 3m49s
Foundation / checks (network) (push) Canceled after 1m59s
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m46s
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 (checks) (push) Canceled after 3m44s
Foundation / checks (client) (push) Canceled after 3m49s
Foundation / checks (network) (push) Canceled after 1m59s
evo-server gains an opt-in M10 listener (--m10-*, QUIC builds only): RegionSessions with the PostgreSQL control and action ledgers on their own connection under the host's lease, carried actions submitted to the host and its acknowledgements and drops turned into outcomes. evo-session-probe is a dev-only headless client. Real process tests cover intentions, durable action outcomes, SIGKILL before and after an action's commit, duplicate retries and the probe. The simulated watermark now reaches every session every tick, so clients always know the server tick. ADR-0092. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -491,8 +491,19 @@ void durable_actions() {
|
||||
CHECK(b.query(1, {99}, f).result == ActionResult::unknown);
|
||||
}
|
||||
|
||||
// The watermark sent to one session, if any.
|
||||
std::optional<SimulatedThrough>
|
||||
mark_of(const std::vector<std::pair<std::uint64_t, SimulatedThrough>>& marks,
|
||||
std::uint64_t session) {
|
||||
for (const auto& [s, m] : marks)
|
||||
if (s == session)
|
||||
return m;
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
void intent_admission() {
|
||||
IntentLimits limits;
|
||||
limits.watermark_every = 20; // Exercise the repeat interval.
|
||||
limits.max_unresolved = 6;
|
||||
limits.max_finals = 4;
|
||||
CHECK(refused(IntentAdmission::create(IntentLimits{0}), IntentConfigError::invalid));
|
||||
@@ -526,15 +537,23 @@ void intent_admission() {
|
||||
// Simulated watermark: only intentions whose tick ran, cumulatively.
|
||||
f.server_tick = 109;
|
||||
auto marks = a.simulated(f);
|
||||
CHECK(marks.size() == 1 && marks[0].first == 1 &&
|
||||
marks[0].second == SimulatedThrough{5, 2, 109});
|
||||
CHECK(a.simulated(f).empty()); // Unchanged: not repeated yet.
|
||||
CHECK(mark_of(marks, 1) == SimulatedThrough{5, 2, 109});
|
||||
CHECK(mark_of(marks, 2) == SimulatedThrough{5, 0, 109}); // Bob: the tick, no intention.
|
||||
CHECK(a.simulated(f).empty()); // Unchanged: not repeated yet.
|
||||
f.server_tick = 110;
|
||||
marks = a.simulated(f);
|
||||
CHECK(marks.size() == 1 && marks[0].second.sequence == 3);
|
||||
CHECK(marks.size() == 1 && mark_of(marks, 1) == SimulatedThrough{5, 3, 110}); // Bob: not
|
||||
// repeated.
|
||||
f.server_tick = 130;
|
||||
marks = a.simulated(f); // Repeated after 20 ticks so a lost datagram is covered.
|
||||
CHECK(marks.size() == 1 && marks[0].second == SimulatedThrough{5, 3, 130});
|
||||
CHECK(mark_of(marks, 1) == SimulatedThrough{5, 3, 130} &&
|
||||
mark_of(marks, 2) == SimulatedThrough{5, 0, 130});
|
||||
// By default every session hears every simulated tick.
|
||||
auto every = *IntentAdmission::create(IntentLimits{});
|
||||
CHECK(every.open(7, alice));
|
||||
for (std::uint64_t tick = 1; tick <= 3; ++tick)
|
||||
CHECK(mark_of(every.simulated({true, 5, tick}), 7) == SimulatedThrough{5, 0, tick});
|
||||
CHECK(every.simulated({true, 5, 3}).empty());
|
||||
|
||||
// Actions: receipt, carried with its tick's batch, final after the commit.
|
||||
const auto action = [&](std::uint64_t session, std::uint64_t id, std::uint64_t tick,
|
||||
|
||||
Reference in New Issue
Block a user