Repository navigation
fix(disk-hygiene): scan needs-input statuses exit 0 (#4216) - #4707
Merged
Merged
Conversation
…4216) root-children-selection-required, the documented first call for an OS-managed volume root, and large-target-confirmation-required exited 5, so the harness showed a normal step as a tool error. Both now exit 0 with the payload unchanged; status carries the distinction and real failures keep exits 2 and 3. Co-authored-by: Kyle Sexton <[email protected]>
Contributor
|
PR body contract — issue linkage This PR body does not yet satisfy the issue-linkage contract:
Edit the body and this comment updates itself on the next run. |
Co-authored-by: Kyle Sexton <[email protected]>
The DLSS selftest's user-only Set-Acl deny still lets an elevated runner list the folder, and Windows often leaves the error TargetObject empty, so the four unreadable-folder assertions never match. Co-authored-by: Kyle Sexton <[email protected]>
# Conflicts: # plugins/disk-hygiene/CHANGELOG.md Co-authored-by: Kyle Sexton <[email protected]>
DirectoryInfo.SetAccessControl is absent in PowerShell 7, so the Windows selftest threw before the deny cases ran. Write the same user, Administrators, and Everyone list deny through FileSystemAclExtensions. Co-authored-by: Kyle Sexton <[email protected]>
A Deny ACE, including one for Everyone, still lets the elevated Windows runner list the folder. Hold the directory open with no sharing so the next Get-ChildItem fails with a sharing violation, and recover a quoted path from the error message when TargetObject is empty. Co-authored-by: Kyle Sexton <[email protected]>
The runner's pwsh has no FileOptions.BackupSemantics, so the selftest threw before the sharing lock was taken. Open the directory with CreateFileW and FILE_FLAG_BACKUP_SEMANTICS instead. Co-authored-by: Kyle Sexton <[email protected]>
# Conflicts: # plugins/disk-hygiene/CHANGELOG.md Co-authored-by: Kyle Sexton <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #4216
Summary
root-children-selection-requiredandlarge-target-confirmation-requirednow exit 0 (were 5). Payload/statusunchanged; real failures keep 2/3. Documented in SKILL.disk-hygiene→ 0.24.1.Test plan