reftest: add test for opam repo ci reinstall workflow#6539
reftest: add test for opam repo ci reinstall workflow#6539kit-ty-kate merged 1 commit intoocaml:masterfrom
Conversation
tests/reftests/opam-repo-ci.test
Outdated
| - | ||
| Processing 1/7: [main.1: extract] | ||
| + tar "xfz" "${OPAMTMP}/archive.tgz" "-C" "${OPAMTMP}" | ||
| -> retrieved main.1 (file://${BASEDIR}/archive.tgz) |
There was a problem hiding this comment.
this line is absent from the original reported issue, which might mean that the archive/directory was retrieved from a different location
There was a problem hiding this comment.
I was able to reproduce the issue with the following dockerfile:
FROM ocaml/opam
RUN sudo ln -f /usr/bin/opam-dev /usr/bin/opam
RUN opam init --reinit -ni
RUN opam pin add -k version -yn dune.3.18.0 3.18.0
RUN opam install dune.3.18.0
RUN rm -rf /home/opam/.opam/download-cache/sha512
RUN rm -rf /home/opam/.opam/download-cache/sha256/b7
RUN opam reinstall --with-test dune.3.18.0
|
I was able to reproduce the original issue: The first |
|
After some bisecting i found the culprit: #6436 The issue is that reinstalls are decoupled into remove and install actions. In the case of a real reinstall we of course want to remove all the artefacts, but if it's a reinstall we actually want to keep them. |
2b4e369 to
f3af917
Compare
f3af917 to
3c4d188
Compare
3c4d188 to
67cf68c
Compare
64279c1 to
9bc9629
Compare
9bc9629 to
06c543e
Compare
06c543e to
068452f
Compare
Test for ocurrent/opam-repo-ci#441
queued on