Skip to content

Make the Bootstrap's Final Transient-Tree Removal Best-Effort #1793

Closed

Description

@ptr727

When the final removal of a transient tree fails, a run whose work succeeded ends with an error. That happens when the tree holds a locked or unremovable file.

  • bootstrap.ps1 calls Remove-Tree from Invoke-Cleanup inside finally with no try around it, so the throw escapes.
  • bootstrap.sh exits non-zero from the EXIT trap under set -e.

A transient tree is loaded by nothing, so a leftover is harmless and a later run removes it.

  • Fix: make that removal best-effort with a warning, as the staging and old-tree removals already are.

Pre-existing. Found by the local strict review on the #1770 change.

Activity

  1. added
    bug
    pre-existing
    script
    on Sep 24, 2026
  2. added 2 commits that reference this issue on Sep 25, 2026
    b5df532
    36caa51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpre-existingscript

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions