[PR #201] [MERGED] fix: harden orphan cleanup to avoid false deletions #248

Closed
opened 2025-11-20 04:13:44 -05:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/community-scripts/ProxmoxVE-Local/pull/201
Author: @michelroegl-brunner
Created: 10/20/2025
Status: Merged
Merged: 10/20/2025
Merged by: @michelroegl-brunner

Base: mainHead: fix/orphan-cleanup-race


📝 Commits (1)

  • e4de9cc fix(installed-scripts): prevent false orphan deletions by awaiting SSH command completion and parsing combined output; add 15s timeout and warnings for diagnostics

📊 Changes

1 file changed (+29 additions, -6 deletions)

View changed files

📝 src/server/api/routers/installedScripts.ts (+29 -6)

📄 Description

This PR fixes intermittent false orphan removals by:

  • Awaiting SSH command completion and parsing combined output
  • Adding a 15s timeout and warnings for diagnostics

This should prevent erroneously removing installed scripts when the LXC exists but transient SSH output timing caused a false negative.

Fixes: intermittent cleanup misclassification observed after auto-detect.

Label: fix


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/community-scripts/ProxmoxVE-Local/pull/201 **Author:** [@michelroegl-brunner](https://github.com/michelroegl-brunner) **Created:** 10/20/2025 **Status:** ✅ Merged **Merged:** 10/20/2025 **Merged by:** [@michelroegl-brunner](https://github.com/michelroegl-brunner) **Base:** `main` ← **Head:** `fix/orphan-cleanup-race` --- ### 📝 Commits (1) - [`e4de9cc`](https://github.com/community-scripts/ProxmoxVE-Local/commit/e4de9cc8f62845357b45b496866a766ea4bdc419) fix(installed-scripts): prevent false orphan deletions by awaiting SSH command completion and parsing combined output; add 15s timeout and warnings for diagnostics ### 📊 Changes **1 file changed** (+29 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `src/server/api/routers/installedScripts.ts` (+29 -6) </details> ### 📄 Description This PR fixes intermittent false orphan removals by: - Awaiting SSH command completion and parsing combined output - Adding a 15s timeout and warnings for diagnostics This should prevent erroneously removing installed scripts when the LXC exists but transient SSH output timing caused a false negative. Fixes: intermittent cleanup misclassification observed after auto-detect. Label: fix --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2025-11-20 04:13:44 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/ProxmoxVE-Local#248