Repository navigation
test(pkg): reproduce copy-mode package dependency overlap - #16733
Merged
Merged
Conversation
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]>
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]>
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.
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.