Commit 84da19d
committed
test(integration): widen gateway shutdown timeouts for sanitizer overhead
The gateway shutdown sequence (mdns stop, REST server stop, transport
teardown, plugin manager shutdown, member destructors) completes well
under a second normally, but under TSan/ASan overhead on CI runners
it can exceed the launch_ros defaults (5s sigterm_timeout / 5s
sigkill_timeout). When that happens launch_testing escalates
SIGINT -> SIGTERM -> SIGKILL and the TestShutdown.test_exit_codes
assertion reports exit code -9 even though the gateway is mid-shutdown.
The TSan run for PR #398 hit exactly this on
test_scenario_thermal_protection: the gateway logged TriggerTopicSubscriber
shutdown complete and other steps but was still cleaning up when the
SIGKILL timer fired.
Set sigterm_timeout=30 and sigkill_timeout=15 in create_gateway_node so
every integration test that goes through this factory gets the longer
windows. The bigger numbers do not slow down healthy runs since the
process exits as soon as shutdown actually finishes.1 parent 5249ea6 commit 84da19d
1 file changed
Lines changed: 8 additions & 0 deletions
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
109 | 117 | | |
110 | 118 | | |
111 | 119 | | |
| |||
0 commit comments