Skip to content

slapgrid: add a software-timeout option for software release builds

Thomas Gambier requested to merge feat/timeout_node_software into master

A stalled buildout subprocess could block "slapos node software" indefinitely: SlapPopen already supports a total wall-clock timeout that kills the whole buildout process tree on expiry, but Software.install() never passed one to launchBuildout(), unlike Partition.install(), which already uses partition-timeout.

Add software-timeout, plumbed the same way as partition-timeout (CLI flag, slapos.cfg option, Slapgrid, Software), with a default of 86400 seconds (24h) so a hung build is retried automatically the next run instead of blocking forever. The timeout is a wall-clock budget on the whole build, not an inactivity timeout, matching partition-timeout's existing (and otherwise unchanged) semantics.

Add test_software_timeout_default/passed and TestSlapgridSoftwareTimeoutWithMaster, mirroring the existing partition-timeout tests.

Merge request reports