Skip to content

test(stdune): cover symlink invariants in isolated sandboxes - #16828

Merged
Alizter merged 1 commit into
ocaml:mainfrom
Alizter:push-vyspnttwsxoy
Oct 28, 2026
Merged

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

Conversation

@Alizter

@Alizter Alizter commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator

Focused symlink invariants in per-test temporary sandboxes, with scoped cleanup.

Follow-up to #16813.

@Alizter
Alizter marked this pull request as ready for review October 28, 2026 15:34
@Alizter
Alizter marked this pull request as draft October 28, 2026 15:35
@Alizter

Alizter commented Oct 28, 2026

Copy link
Copy Markdown
Collaborator Author

CR-self: These tests suck, improve them.

@Alizter Alizter changed the title test(stdune): cover portable symlink overwrite modes test(stdune): cover symlink invariants in isolated sandboxes Oct 28, 2026
@Alizter
Alizter force-pushed the push-vyspnttwsxoy branch 2 times, most recently from 91d9c12 to 2abdac2 Compare October 28, 2026 18:21
Test exclusive creation, idempotence, link replacement, protected
non-symlink destinations, and error propagation in separate cases. Give
each case its own temporary directory with scoped cleanup.

Signed-off-by: Ali Caglayan <[email protected]>
@Alizter
Alizter marked this pull request as ready for review October 28, 2026 18:23
@Alizter
Alizter merged commit e789b61 into ocaml:main Oct 28, 2026
37 of 38 checks passed
@Alizter
Alizter deleted the push-vyspnttwsxoy branch October 28, 2026 19:23
@Alizter Alizter added this to the 3.26.0 milestone Oct 29, 2026
Alizter added a commit that referenced this pull request Oct 29, 2026
Try symlink creation first and handle `EEXIST` only when overwriting is
allowed. Preserve the existing overwrite policy.

Follow-up to merged #16828.
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