Skip to content

Add regression test for aborted local install leaving half-pinned pkgs#6922

Merged
kit-ty-kate merged 1 commit into
ocaml:masterfrom
NathanReb:add-reftest-abort-install-dot-slash
May 4, 2026
Merged

Add regression test for aborted local install leaving half-pinned pkgs#6922
kit-ty-kate merged 1 commit into
ocaml:masterfrom
NathanReb:add-reftest-abort-install-dot-slash

Conversation

@NathanReb
Copy link
Copy Markdown
Collaborator

This adds a test to show what happens when an install containing local packages is aborted or fails mid run and what packages are still pinned afterwards.

At the moment it only shows that it leaves the switch in a state that opam pin list cannot handle and it crashes with a terrible chdir error.

After #6910, opam pin list should work and it will show that packages pinned during the aborted install are left as such, which is something that we'd like to change and that I'll fix in a separate PR.

@NathanReb NathanReb force-pushed the add-reftest-abort-install-dot-slash branch 2 times, most recently from 98bd60b to 8037381 Compare May 4, 2026 13:57
Comment thread tests/reftests/autopin.test Outdated
Signed-off-by: Nathan Rebours <nathan.rebours@ocamlpro.com>
@kit-ty-kate kit-ty-kate force-pushed the add-reftest-abort-install-dot-slash branch from 8037381 to fcd316a Compare May 4, 2026 14:36
@kit-ty-kate
Copy link
Copy Markdown
Member

Ignoring the failure on Windows (see #6890). Thanks!

@kit-ty-kate kit-ty-kate merged commit 02e908c into ocaml:master May 4, 2026
38 of 39 checks passed
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.

2 participants