Repository navigation
fix(artifacts): align native DMG mount and detach lifecycle - #679
Closed
rudycelekli wants to merge 1 commit into
Closed
rudycelekli wants to merge 1 commit into
rudycelekli wants to merge 1 commit into
Conversation
Signed-off-by: RudyCelekli <[email protected]>
morluto
approved these changes
Oct 6, 2026
morluto
left a comment
Owner
There was a problem hiding this comment.
Approve: realpath-canonicalized mount root fixes /private/var vs /var containment, and whole-disk dedup detaches each observed disk once in LIFO order. Test covers 2 disks + partitions + exact detach calls; existing failure paths retained. Checks green.
Owner
|
Superseded by #705, which cherry-picks this change (plus 13 sibling fixes) onto current main with conflict resolution and regenerated catalogs. Closing to keep one reviewable merge unit. |
Owner
|
Thanks, @rudycelekli, for your work on “fix(artifacts): align native DMG mount and detach lifecycle.” I appreciate your contribution to REA. |
2 tasks done
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.
Summary
Make real native DMG attach/read/detach work with the metadata returned by hdiutil:
/var/...and/private/var/...can name the same directory; hdiutil returns its canonical spelling. The old lexical prefix check rejects a legitimate owned mount.Both failures occurred in one public NativeDmgArtifactReader run against an owned hdiutil-created UDZO image. The baseline rejected the legitimate mount and then reported cleanup failures. Afterward the same image attaches, enumerates and closes successfully;
hdiutil info -plistreports no attached images left.Verification
hdiutil create,hdiutil convert -format UDZO, then public readercreate → entries → close, using the actual system host. Before fails; after passes with a single observed whole-disk detach.npm run test:focused -- tests/boundary/providers/native/nativeDmgArtifactReader.test.ts— 3 tests passed, including canonical-root and multiple whole disks/partitions.npm run check— all five tasks passed.AI assistance was used for implementation and verification. The source and actual native proof were independently reviewed before publication. No user-owned image was used.