Skip to content

test(action): cover recursive copying across sandbox modes - #16653

Merged
Alizter merged 1 commit into
ocaml:mainfrom
Alizter:push-rloktpzynxzt
Oct 19, 2026
Merged

Alizter merged 1 commit into
ocaml:mainfrom
Alizter:push-rloktpzynxzt

Conversation

@Alizter

@Alizter Alizter commented Oct 19, 2026

Copy link
Copy Markdown
Collaborator

Exercise directory copies with ordinary file dependencies in symlink, copy, and hardlink sandbox modes. Record the symlink-mode rejection of sandbox file links before the action-copy fix.

Also compare original input symlinks and an action-created link with the sandbox target text at another path across all three modes.

Exercise directory copies with ordinary file dependencies in symlink,
copy, and hardlink sandbox modes. Record the symlink-mode rejection of
sandbox file links before the action-copy fix.

Also compare original input symlinks and an action-created link with the
sandbox target text at another path across all three modes.

Signed-off-by: Ali Caglayan <[email protected]>
@Alizter
Alizter marked this pull request as ready for review October 19, 2026 20:02
@Alizter
Alizter merged commit 661fbaf into ocaml:main Oct 19, 2026
37 of 39 checks passed
@Alizter
Alizter deleted the push-rloktpzynxzt branch October 19, 2026 20:03
@Alizter Alizter added this to the 3.26.0 milestone Oct 20, 2026
rgrinberg added a commit that referenced this pull request Oct 22, 2026
Extend the recursive-copy tests from #16653 with two action-created
directory symlinks: an acyclic link pointing outside the copied tree,
and a directory-link cycle.

Record their current rejection ahead of relaxing symlink handling. The
acyclic case should eventually copy successfully; the cyclic case must
continue to terminate with an error.

Tests only; no implementation changes. Related to #16675.

Signed-off-by: Rudi Grinberg <[email protected]>
rgrinberg added a commit that referenced this pull request Oct 23, 2026
Make recursive copy actions follow symlinks, matching ordinary file
copies and the existing root-path handling. Linked files and directories
are materialized at the destination rather than rejected.

This fixes recursive copies of file dependencies in symlink sandboxes
and supports the traversal change in #16675. Update the regressions from
#16653 and #16685; directory-link cycles still fail with ELOOP.
Alizter pushed a commit that referenced this pull request Oct 28, 2026
Extend the recursive-copy tests from #16653 with two action-created
directory symlinks: an acyclic link pointing outside the copied tree,
and a directory-link cycle.

Record their current rejection ahead of relaxing symlink handling. The
acyclic case should eventually copy successfully; the cyclic case must
continue to terminate with an error.

Tests only; no implementation changes. Related to #16675.

(cherry picked from commit c5d4f33)

Signed-off-by: Rudi Grinberg <[email protected]>
Signed-off-by: Ali Caglayan <[email protected]>
Alizter pushed a commit that referenced this pull request Oct 28, 2026
Make recursive copy actions follow symlinks, matching ordinary file
copies and the existing root-path handling. Linked files and directories
are materialized at the destination rather than rejected.

This fixes recursive copies of file dependencies in symlink sandboxes
and supports the traversal change in #16675. Update the regressions from
#16653 and #16685; directory-link cycles still fail with ELOOP.

(cherry picked from commit f1a8aba)

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant