Skip to content

test(pkg): reproduce copy-mode package dependency overlap - #16733

Merged
rgrinberg merged 1 commit into
ocaml:mainfrom
Alizter:push-pouuknyoxkwt
Oct 25, 2026
Merged

rgrinberg merged 1 commit into
ocaml:mainfrom
Alizter:push-pouuknyoxkwt

Conversation

@Alizter

@Alizter Alizter commented Oct 24, 2026

Copy link
Copy Markdown
Collaborator

Extend Puneeth’s reproducer from #16546 to cover #16547 under copy sandboxing too. Record the overlapping-input failure and verify that removing the explicit package dependency lets both modes succeed.

Tests only; this precedes #16675.

Extend Puneeth's reproducer (ocaml#16546) to copy sandboxing. Preserve the
existing default-mode failure and record File exists for the overlapping
package directory and executable in copy mode.

Verify both modes succeed without the explicit package dependency.
Disable the cache and discard any previous output before switching modes.
Prefer none before copy so internal lock-directory rules stay unsandboxed
while the sandboxed user rule selects copy mode.

Signed-off-by: Ali Caglayan <[email protected]>
@rgrinberg
rgrinberg merged commit ffed146 into ocaml:main Oct 25, 2026
37 of 38 checks passed
@Alizter Alizter added this to the 3.26.0 milestone Oct 26, 2026
Alizter added a commit to Alizter/dune that referenced this pull request Oct 26, 2026
Skip sandbox inputs that have an ancestor in the same dependency set.
Populating a directory already includes its descendants, so processing
those paths again duplicates work and fails in copy mode with File exists.

Reuse the ancestor check from dynamic dependency population. Keep the full
dependency set for subsequent requests and correction handling, and retain
the existing protection for action-modified files.

Turn the package dependency reproducer (ocaml#16733, issue ocaml#16547) and the
simple and nested directory-overlap tests from recorded failures into
success. This follows the shared-traversal change in ocaml#16675.

Signed-off-by: Ali Caglayan <[email protected]>
Alizter added a commit to Alizter/dune that referenced this pull request Oct 26, 2026
Skip sandbox inputs that have an ancestor in the same dependency set.
Populating a directory already includes its descendants, so processing
those paths again duplicates work and fails in copy mode with File exists.

Reuse the ancestor check from dynamic dependency population. Keep the full
dependency set for subsequent requests and correction handling, and retain
the existing protection for action-modified files.

Turn the package dependency reproducer (ocaml#16733, issue ocaml#16547) and the
simple and nested directory-overlap tests from recorded failures into
success. This follows the shared-traversal change in ocaml#16675.

Signed-off-by: Ali Caglayan <[email protected]>
Alizter added a commit to Alizter/dune that referenced this pull request Oct 26, 2026
Skip sandbox inputs that have an ancestor in the same dependency set.
Populating a directory already includes its descendants, so processing
those paths again duplicates work and fails in copy mode with File exists.

Reuse the ancestor check from dynamic dependency population. Keep the full
dependency set for subsequent requests and correction handling, and retain
the existing protection for action-modified files.

Turn the package dependency reproducer (ocaml#16733, issue ocaml#16547) and the
simple and nested directory-overlap tests from recorded failures into
success. This follows the shared-traversal change in ocaml#16675.

Signed-off-by: Ali Caglayan <[email protected]>
Alizter added a commit to Alizter/dune that referenced this pull request Oct 26, 2026
Skip sandbox inputs that have an ancestor in the same dependency set.
Populating a directory already includes its descendants, so processing
those paths again duplicates work and fails in copy mode with File exists.

Reuse the ancestor check from dynamic dependency population. Keep the full
dependency set for subsequent requests and correction handling, and retain
the existing protection for action-modified files.

Turn the package dependency reproducer (ocaml#16733, issue ocaml#16547) and the
simple and nested directory-overlap tests from recorded failures into
success. This follows the shared-traversal change in ocaml#16675.

Signed-off-by: Ali Caglayan <[email protected]>
Alizter added a commit to Alizter/dune that referenced this pull request Oct 28, 2026
Skip sandbox inputs that have an ancestor in the same dependency set.
Populating a directory already includes its descendants, so processing
those paths again duplicates work and fails in copy mode with File exists.

Reuse the ancestor check from dynamic dependency population. Keep the full
dependency set for subsequent requests and correction handling, and retain
the existing protection for action-modified files.

Turn the package dependency reproducer (ocaml#16733, issue ocaml#16547) and the
simple and nested directory-overlap tests from recorded failures into
success. This follows the shared-traversal change in ocaml#16675.

Signed-off-by: Ali Caglayan <[email protected]>
Alizter added a commit that referenced this pull request Oct 28, 2026
Extend Puneeth’s reproducer from #16546 to cover #16547 under copy
sandboxing too. Record the overlapping-input failure and verify that
removing the explicit package dependency lets both modes succeed.

Tests only; this precedes #16675.

(cherry picked from commit ffed146)

Signed-off-by: Ali Caglayan <[email protected]>
Alizter added a commit that referenced this pull request Oct 28, 2026
Skip sandbox inputs that have an ancestor in the same dependency set.
Populating a directory already includes its descendants, so processing
those paths again duplicates work and fails in copy mode with File exists.

Reuse the ancestor check from dynamic dependency population. Keep the full
dependency set for subsequent requests and correction handling, and retain
the existing protection for action-modified files.

Turn the package dependency reproducer (#16733, issue #16547) and the
simple and nested directory-overlap tests from recorded failures into
success. This follows the shared-traversal change in #16675.

(cherry picked from commit 0883b73)

Signed-off-by: Ali Caglayan <[email protected]>
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.

2 participants