Files
codex/scripts
Eric Traut 40a848caf4 Allow macOS installer cleanup despite unrelated mount warnings (#62582)
## Why

On macOS, `lsof` can warn about inaccessible mounts even when its search
is scoped to the releases directory. Treating every warning as an
inspection failure can prevent the installer from pruning unused releases.

## What changed

Keep `lsof` matches when stderr contains only complete mount warnings
for paths outside the releases tree and its ancestors, on devices
different from the releases directory. Continue to reject warnings
that could affect release inspection, incomplete warnings, and
unexpected errors.

## Testing

Extend the mocked macOS `lsof` test to verify that an unrelated mount
warning preserves matches and that same-device, ancestor-mount,
truncated, and mixed diagnostics fail inspection.

GitOrigin-RevId: 006e2a38335c33ce7c974f74d3bb871d818fdd1f
2026-11-19 20:12:04 +00:00
..