Keep the cell through a lone empty view (no-cell panel blinking)
Foundation / checks (ecs) (push) Successful in 2m22s
Foundation / checks (deploy) (push) Successful in 4m17s
Foundation / checks (network) (push) Successful in 21m4s
Foundation / checks (client) (push) Successful in 22m10s
Foundation / checks (tsan) (push) Successful in 28m58s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (postgres) (push) Canceled after 42m32s
Foundation / checks (checks) (push) Canceled after 42m39s
Foundation / checks (ecs) (push) Successful in 2m22s
Foundation / checks (deploy) (push) Successful in 4m17s
Foundation / checks (network) (push) Successful in 21m4s
Foundation / checks (client) (push) Successful in 22m10s
Foundation / checks (tsan) (push) Successful in 28m58s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (postgres) (push) Canceled after 42m32s
Foundation / checks (checks) (push) Canceled after 42m39s
The DEV server still runs a build that sends every session an empty view each tick around the owner's real one. fcc6c57's client guard covered only an empty view after the real one of the same tick; the next tick's empty view arriving first still made the cell vanish for a frame, so the no-cell panel blinked a few times a minute. While a cell is shown, the client now counts empty views only after 20 ticks (one second) with no real view. A death is unaffected: it arrives as CellularLifeEnded. The session test covers both orders and the grace running out. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+34
-11
@@ -780,17 +780,16 @@ void cellular_v5_spawn_and_v7_action_share_region_sessions(const Files& f) {
|
||||
auto legacy_perception = perception;
|
||||
legacy_perception.diagnostics.reset();
|
||||
CHECK(*legacy_owner->cellular_perception() == legacy_perception);
|
||||
// An empty view reaches every v8+ session; a session showing a cell keeps it for now
|
||||
// (the client's grace, below), one with none shows the empty view.
|
||||
h.server->clear_cellular_perceptions(102);
|
||||
CHECK(h.until([&] {
|
||||
return perception_owner->cellular_perception() &&
|
||||
perception_owner->cellular_perception()->tick == 102;
|
||||
return other_owner->cellular_perception() &&
|
||||
other_owner->cellular_perception()->tick == 102;
|
||||
}));
|
||||
CHECK(h.until([&] {
|
||||
return legacy_owner->cellular_perception() &&
|
||||
legacy_owner->cellular_perception()->tick == 102;
|
||||
}));
|
||||
CHECK(perception_owner->cellular_perception()->life_identity == 0 &&
|
||||
perception_owner->cellular_perception()->patches.empty());
|
||||
CHECK(other_owner->cellular_perception()->life_identity == 0 &&
|
||||
other_owner->cellular_perception()->patches.empty());
|
||||
CHECK(perception_owner->cellular_perception()->life_identity == 901);
|
||||
// A session given a view this tick is never cleared in the same tick (the cell would
|
||||
// vanish for a frame); one without a view still is.
|
||||
auto later = perception;
|
||||
@@ -798,15 +797,39 @@ void cellular_v5_spawn_and_v7_action_share_region_sessions(const Files& f) {
|
||||
CHECK(h.server->send_cellular_perception(owner_account, later));
|
||||
h.server->clear_cellular_perceptions(103);
|
||||
CHECK(h.until([&] {
|
||||
return legacy_owner->cellular_perception() &&
|
||||
legacy_owner->cellular_perception()->tick == 103;
|
||||
return other_owner->cellular_perception() &&
|
||||
other_owner->cellular_perception()->tick == 103;
|
||||
}));
|
||||
CHECK(legacy_owner->cellular_perception()->life_identity == 0);
|
||||
CHECK(other_owner->cellular_perception()->life_identity == 0);
|
||||
CHECK(h.until([&] {
|
||||
return perception_owner->cellular_perception() &&
|
||||
perception_owner->cellular_perception()->tick == 103;
|
||||
}));
|
||||
CHECK(*perception_owner->cellular_perception() == later);
|
||||
// An older server cleared before the real view: the client keeps the cell through a
|
||||
// lone empty view, and drops it only after a second (20 ticks) of nothing else.
|
||||
auto next = later;
|
||||
next.tick = 104;
|
||||
h.server->clear_cellular_perceptions(104); // No view yet this tick: an empty one goes.
|
||||
CHECK(h.server->send_cellular_perception(owner_account, next));
|
||||
CHECK(h.until([&] {
|
||||
return perception_owner->cellular_perception() &&
|
||||
perception_owner->cellular_perception()->tick == 104;
|
||||
}));
|
||||
CHECK(*perception_owner->cellular_perception() == next);
|
||||
h.server->clear_cellular_perceptions(110);
|
||||
h.server->clear_cellular_perceptions(123);
|
||||
CHECK(h.until([&] {
|
||||
return other_owner->cellular_perception() &&
|
||||
other_owner->cellular_perception()->tick == 123;
|
||||
}));
|
||||
CHECK(perception_owner->cellular_perception()->life_identity == 901); // Within the grace.
|
||||
h.server->clear_cellular_perceptions(131);
|
||||
CHECK(h.until([&] {
|
||||
return perception_owner->cellular_perception() &&
|
||||
perception_owner->cellular_perception()->tick == 131;
|
||||
}));
|
||||
CHECK(perception_owner->cellular_perception()->life_identity == 0);
|
||||
}
|
||||
|
||||
// M10.4: intentions, actions and their distinct answers against a simulated host.
|
||||
|
||||
Reference in New Issue
Block a user