[MG_Remote, MG_Test, MG_IntegrationTest] (P7): end the PH-6 event wait on a stop or a dead shm peer, and read the wait knob back

This commit is contained in:
2026-09-23 13:44:13 -04:00
parent 1ef27dcd5c
commit e259d2017a
8 changed files with 521 additions and 78 deletions
+9 -6
View File
@@ -2101,10 +2101,13 @@ if (MOBILEGL_BUILD_DISAGGREGATED)
RESOURCE_LOCK mobilegl-tcp)
# Ph fuzz arm 3 (PH-6, ID-P7-2): A PEER THAT STOPS DRAINING SEG_EVENT, on both data planes.
# MG_Test/Wire/EventForfeitPeerTest.cpp starts its own `--serve` supervisor (an abstract unix
# endpoint for the shm plane, a free loopback port for the stream plane) with
# MOBILEGL_IPC_EVENT_WAIT_MS=2000, and asserts the whole arm: the server forfeits the reverse
# channel by name, counts the drop, ends the session with exit 0 inside the knob rather than
# the old 30 s Fatal, and the SAME supervisor welcomes the next connection. The names are not
# endpoint for the shm plane, a free loopback port for the stream plane) with a NON-default
# MOBILEGL_IPC_EVENT_WAIT_MS, and asserts the whole arm: the server forfeits the reverse
# channel by name against that knob, counts the drop, ends the session with exit 0 inside the
# knob rather than the old 30 s Fatal, and the SAME supervisor welcomes the next connection.
# Each entry also runs the kill-the-peer case (knob 8000, over ServerLoop's 5000 ms join: the
# server must say PeerGone at once and exit 0), and the shm entry the LaunchServer case (the
# knob must cross ServerSpawn.cpp's scrub). The gtest filters are per plane. The names are not
# `DirectGLES.<Arm>.<Scenario>` on purpose: spawn_lane_parity.py compares the scenario arms and
# this is a supervisor control, one per lane, like the entry above. It needs no fixture and no
# resource lock (its supervisor is its own), and the CI lane names both entries to
@@ -2115,12 +2118,12 @@ if (MOBILEGL_BUILD_DISAGGREGATED)
set(MGL_ITEST_EVENT_FORFEIT_ENVIRONMENT
"MOBILEGL_TEST_SERVER_PATH=${MGL_ITEST_SPLIT_SERVER_PATH}" ${MGL_ITEST_COMMON_ENV})
add_test(NAME SpawnLane.EventForfeitPeer COMMAND $<TARGET_FILE:EventForfeitPeerTest>
--gtest_filter=EventForfeitPeer.ShmPeerThatStopsDrainingIsForfeitedAndTheNextConnectionIsWelcomed)
--gtest_filter=EventForfeitPeer.Shm*)
set_tests_properties(SpawnLane.EventForfeitPeer PROPERTIES
LABELS integration-spawn TIMEOUT 120
ENVIRONMENT "${MGL_ITEST_EVENT_FORFEIT_ENVIRONMENT}")
add_test(NAME TcpLane.EventForfeitPeer COMMAND $<TARGET_FILE:EventForfeitPeerTest>
--gtest_filter=EventForfeitPeer.StreamPeerThatStopsDrainingIsForfeitedAndTheNextConnectionIsWelcomed)
--gtest_filter=EventForfeitPeer.Stream*)
set_tests_properties(TcpLane.EventForfeitPeer PROPERTIES
LABELS integration-tcp TIMEOUT 120
ENVIRONMENT "${MGL_ITEST_EVENT_FORFEIT_ENVIRONMENT}")