Skip to content

[3.25] fix(sandbox): deduplicate overlapping directory dependencies - #16832

Closed
Alizter wants to merge 2 commits into
ocaml:3.25.0-rcfrom
Alizter:push-nxwstkkxzwum
Closed

Alizter wants to merge 2 commits into
ocaml:3.25.0-rcfrom
Alizter:push-nxwstkkxzwum

Conversation

@Alizter

@Alizter Alizter commented Oct 28, 2026

Copy link
Copy Markdown
Collaborator

Backport #16806, pruning precreated directories for 3.25’s whole-directory symlinks. No traversal or overwrite-API changes; replaces #16665.

Regression and focused checks pass. Full-suite validation is blocked by local trace/watch failures and denied bubblewrap namespaces.

Record the package dependency reproducer and nested directory overlap in
symlink mode. Keep copy-mode and non-overlapping controls, including an
empty directory and a similarly prefixed sibling.

Signed-off-by: Ali Caglayan <[email protected]>
Backport ocaml#16806 without changing the 3.25 traversal or overwrite APIs.
Reuse the ancestor-coverage check to skip redundant sandbox inputs while
retaining all dependency facts.

In symlink mode, also avoid precreating directories covered by directory
inputs, since 3.25 links these directories whole.

Signed-off-by: Ali Caglayan <[email protected]>
@Alizter Alizter closed this Oct 28, 2026
@Alizter

Alizter commented Oct 28, 2026

Copy link
Copy Markdown
Collaborator Author

This isn't the correct way to backport, stay tuned.

Alizter added a commit that referenced this pull request Oct 28, 2026
Backport #16632, #16686, #16675, #16813, #16814 and #16806 with their
original regression tests.

All 14 upstream source patches are preserved, with original authorship
and cherry-pick references. Replaces #16832.

Build/format and regression checks pass at every commit. Full-suite
checks hit local jq-helper and bubblewrap permission failures.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant