rdmpw3275m-changelog-20260921-1422-issue-20260921-04-redeploy-daemon-restart
rdmpw3275m-changelog-20260921-1422-issue-20260921-04-redeploy-daemon-restart
Fixed false daemon_restart reporting and unnecessary daemon restarts in redeploy_app_fleet.zsh.
Scope
- Hosts: rdmsm4x, rdmbair15m5, rdmpw3275m
- Projects:
Tyrell,issues
Summary of Changes
- Addressed ISSUE-20260921-04: during
redeploy_app_fleet.zsh --execute-canary,install_service.zshwas executed unconditionally on every host, booting out and restarting the daemon even when the running process was already executing the exact candidate release. This silently terminated in-flight long-running memory soaks (such as the Build 30 six-hour physical-footprint gate). - Additionally,
verify_tyrelld_process.zshwas run immediately followinginstall_service.zsh; because the candidate had just been bootstrapped,verify_tyrelld_process.zshsaw no need for its own kickstart and printeddaemon_restart=not_required, masking the restart thatinstall_service.zshhad just performed. - Updated
scripts/redeploy_app_fleet.zsh(v3.3):- Pre-probes the host via
verify_tyrelld_process.zsh --expected-sha256 "$daemon_hash". If the candidate daemon is already verified running and healthy, skipsinstall_service.zshand avoids killing the running process unless--reinstall-daemonis explicitly passed. - Captures
prior_daemon_pidbefore installation. Wheninstall_service.zshruns, filters out misleadingdaemon_restart=not_requiredto emitdaemon_restart=performed, and prints a loud warning that in-flight soaks against the prior PID are void. - Added
--reinstall-daemonCLI option to allow operators to force daemon re-staging and service reload when desired.
- Pre-probes the host via
- Updated
Tests/ScriptTests/tyrelld_process_restart_contract_test.zshwith assertions covering pre-candidate probing,daemon_restart=performedreporting, voided soak warning, and--reinstall-daemonsupport (20/20 passed). - Merged to canonical
maininapps/Tyrell(commit7285b0b), resolved ticket indev/issues(commit3573fbf), and pushed both repos tofleetandbackup. - Broadcasted
issue-20260921-04-resolvedviaagent_msg.zsh.
Verification Evidence
zsh Tests/ScriptTests/tyrelld_process_restart_contract_test.zsh: 20 passed, 0 failed.zsh Tests/ScriptTests/app_deployment_plan_contract_test.zsh: passed.zsh Tests/ScriptTests/app_operational_entrypoints_contract_test.zsh: passed.zsh Tests/ScriptTests/applications_deploy_contract_test.zsh: passed.git push fleet main && git push backup maininapps/Tyrellanddev/issues: clean.
How to Undo
git -C ~/dev/apps/Tyrell revert 7285b0bgit -C ~/dev/issues revert 3573fbf