2024-11-19 19:04.24: New job: test tarides/dune-release https://github.com/tarides/dune-release.git#refs/heads/main (80ce7b5f623422b57f2e334aacf977bb65835e0b) (windows-amd64:windows-server-2022-amd64-5.2_opam-2.3) Base: windows-server-2022-amd64-ocaml-5.2 Opam project build To reproduce locally: git clone --recursive "https://github.com/tarides/dune-release.git" -b "main" && cd "dune-release" && git reset --hard 80ce7b5f cat > Dockerfile <<'END-OF-DOCKERFILE' FROM windows-server-2022-amd64-ocaml-5.2 # windows-server-2022-amd64-5.2_opam-2.3 USER 1000:1000 ENV CLICOLOR_FORCE="1" ENV OPAMCOLOR="always" RUN ln -f /usr/bin/opam-2.3 /usr/bin/opam RUN opam init --reinit -ni RUN uname -rs && opam exec -- ocaml -version && opam --version RUN cd ~/opam-repository && (git cat-file -e 11bdbee61114a1cfa080b764e71c72a5760a93f0 || git fetch origin master) && git reset -q --hard 11bdbee61114a1cfa080b764e71c72a5760a93f0 && git log --no-decorate -n1 --oneline && opam update -u COPY --chown=1000:1000 dune-release.opam /Users/opam/src/./ RUN opam pin add -yn dune-release.dev '/Users/opam/src/./' ENV DEPS="alcotest.1.8.0 arch-x86_64.1 astring.0.8.5 base-bigarray.base base-domains.base base-nnp.base base-threads.base base-unix.base bos.0.2.1 camlp-streams.5.0.1 cmdliner.1.3.0 conf-mingw-w64-gcc-i686.1 conf-mingw-w64-gcc-x86_64.1 cppo.1.7.0 crunch.3.3.1 curly.0.3.0 dune.3.16.1 flexdll.0.43 fmt.0.9.0 fpath.0.7.3 host-arch-x86_64.1 host-system-mingw.1 jsonm.1.0.2 logs.0.7.0 mingw-w64-shims.0.2.0 ocaml.5.2.1 ocaml-base-compiler.5.2.1 ocaml-config.3 ocaml-env-mingw64.1 ocaml-options-vanilla.1 ocaml-syntax-shims.1.0.0 ocamlbuild.0.15.0 ocamlfind.1.9.5 ocamlgraph.2.1.0 odoc.2.4.3 odoc-parser.2.4.3 opam-core.2.3.0 opam-file-format.2.1.6 opam-format.2.3.0 opam-repository.2.3.0 opam-state.2.3.0 ptime.1.2.0 re.1.12.0 result.1.5 rresult.0.7.0 seq.base sha.1.15.4 spdx_licenses.1.2.0 stdlib-shims.0.3.0 swhid_core.0.1 system-mingw.1 topkg.1.0.7 tyxml.4.6.0 uutf.1.0.3 yojson.2.2.2" ENV CI="true" ENV OCAMLCI="true" RUN opam update --depexts && opam install --cli=2.3 --depext-only -y dune-release.dev $DEPS RUN opam install $DEPS COPY --chown=1000:1000 . /Users/opam/src RUN cd /cygdrive/c/Users/opam/src && opam exec -- dune build @install @check @runtest && rm -rf _build END-OF-DOCKERFILE docker build . END-REPRO-BLOCK 2024-11-19 19:04.24: Using cache hint "tarides/dune-release-windows-server-2022-amd64-ocaml-5.2-windows-server-2022-amd64-5.2_opam-2.3-10b1f48f5cba0a557872a5877eb67f31" 2024-11-19 19:04.24: Using OBuilder spec: ((from windows-server-2022-amd64-ocaml-5.2) (comment windows-server-2022-amd64-5.2_opam-2.3) (user (uid 1000) (gid 1000)) (env CLICOLOR_FORCE 1) (env OPAMCOLOR always) (run (shell "ln -f /usr/bin/opam-2.3 /usr/bin/opam")) (run (shell "opam init --reinit -ni")) (run (shell "uname -rs && opam exec -- ocaml -version && opam --version")) (run (cache (opam-archives (target "c:\\Users\\opam\\AppData\\local\\opam\\download-cache"))) (network host) (shell "cd ~/opam-repository && (git cat-file -e 11bdbee61114a1cfa080b764e71c72a5760a93f0 || git fetch origin master) && git reset -q --hard 11bdbee61114a1cfa080b764e71c72a5760a93f0 && git log --no-decorate -n1 --oneline && opam update -u")) (copy (src dune-release.opam) (dst /Users/opam/src/./)) (run (network host) (shell "opam pin add -yn dune-release.dev '/Users/opam/src/./'")) (env DEPS "alcotest.1.8.0 arch-x86_64.1 astring.0.8.5 base-bigarray.base base-domains.base base-nnp.base base-threads.base base-unix.base bos.0.2.1 camlp-streams.5.0.1 cmdliner.1.3.0 conf-mingw-w64-gcc-i686.1 conf-mingw-w64-gcc-x86_64.1 cppo.1.7.0 crunch.3.3.1 curly.0.3.0 dune.3.16.1 flexdll.0.43 fmt.0.9.0 fpath.0.7.3 host-arch-x86_64.1 host-system-mingw.1 jsonm.1.0.2 logs.0.7.0 mingw-w64-shims.0.2.0 ocaml.5.2.1 ocaml-base-compiler.5.2.1 ocaml-config.3 ocaml-env-mingw64.1 ocaml-options-vanilla.1 ocaml-syntax-shims.1.0.0 ocamlbuild.0.15.0 ocamlfind.1.9.5 ocamlgraph.2.1.0 odoc.2.4.3 odoc-parser.2.4.3 opam-core.2.3.0 opam-file-format.2.1.6 opam-format.2.3.0 opam-repository.2.3.0 opam-state.2.3.0 ptime.1.2.0 re.1.12.0 result.1.5 rresult.0.7.0 seq.base sha.1.15.4 spdx_licenses.1.2.0 stdlib-shims.0.3.0 swhid_core.0.1 system-mingw.1 topkg.1.0.7 tyxml.4.6.0 uutf.1.0.3 yojson.2.2.2") (env CI true) (env OCAMLCI true) (run (cache (opam-archives (target "c:\\Users\\opam\\AppData\\local\\opam\\download-cache"))) (network host) (shell "opam update --depexts && opam install --cli=2.3 --depext-only -y dune-release.dev $DEPS")) (run (cache (opam-archives (target "c:\\Users\\opam\\AppData\\local\\opam\\download-cache"))) (network host) (shell "opam install $DEPS")) (copy (src .) (dst /Users/opam/src)) (run (shell "cd /cygdrive/c/Users/opam/src && opam exec -- dune build @install @check @runtest && rm -rf _build")) ) 2024-11-19 19:04.24: Waiting for resource in pool OCluster 2024-11-19 23:25.42: Waiting for worker… 2024-11-20 00:30.25: Got resource from pool OCluster Building on odawa All commits already cached HEAD is now at 80ce7b5 fix: use 'paste' instead of 'copy' (from windows-server-2022-amd64-ocaml-5.2) 2024-11-20 00:30.26 ---> using "112de547835816fcbe31275d69498e33d422e32a95556906be9d3491487c8b0d" from cache /: (comment windows-server-2022-amd64-5.2_opam-2.3) /: (user (uid 1000) (gid 1000)) /: (env CLICOLOR_FORCE 1) /: (env OPAMCOLOR always) /: (run (shell "ln -f /usr/bin/opam-2.3 /usr/bin/opam")) 2024-11-20 00:30.26 ---> using "d5b02c30bb5bc0365300c9f5d7519fd402265ed836a1fc5699dc93e82bc79e21" from cache /: (run (shell "opam init --reinit -ni")) No configuration file found, using built-in defaults. <><> Unix support infrastructure ><><><><><><><><><><><><><><><><><><><><><><><> opam and the OCaml ecosystem in general require various Unix tools in order to operate correctly. At present, this requires the installation of Cygwin to provide these tools. How should opam obtain Unix tools? > 1. Use tools found in PATH (Cygwin installation at C:\cygwin64) 2. Automatically create an internal Cygwin installation that will be managed by opam (recommended) 3. Use Cygwin installation found in C:\cygwin64 4. Use another existing Cygwin/MSYS2 installation 5. Abort initialisation [1/2/3/4/5] 1 Checking for available remotes: rsync and local, git. - you won't be able to use mercurial repositories unless you install the hg command on your system. - you won't be able to use darcs repositories unless you install the darcs command on your system. <><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><> [default] no changes from file://C:/Users/opam/opam-repository 2024-11-20 00:30.26 ---> using "6feb3975d1a017451ea5d1ec642e42853dba876445528c56610ee0dac1de21f9" from cache /: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version")) CYGWIN_NT-10.0-20348 3.5.4-1.x86_64 The OCaml toplevel, version 5.2.1 2.3.0 2024-11-20 00:30.26 ---> using "48235bc8d7038bef92de7d5349850096860ed1611a41d2324d3b2eec8dba2137" from cache /: (run (cache (opam-archives (target "c:\\Users\\opam\\AppData\\local\\opam\\download-cache"))) (network host) (shell "cd ~/opam-repository && (git cat-file -e 11bdbee61114a1cfa080b764e71c72a5760a93f0 || git fetch origin master) && git reset -q --hard 11bdbee61114a1cfa080b764e71c72a5760a93f0 && git log --no-decorate -n1 --oneline && opam update -u")) 11bdbee611 Merge pull request #26909 from Octachron/ocaml-5.2.1 <><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><> [default] synchronised from file://C:/Users/opam/opam-repository Everything as up-to-date as possible (run with --verbose to show unavailable upgrades). However, you may "opam upgrade" these packages explicitly, which will ask permission to downgrade or uninstall the conflicting packages. Nothing to do. # To update the current shell environment, run: eval $(opam env) 2024-11-20 00:30.26 ---> using "1a72c2f7838320317e12ce7e840a52cd88ad9e155ccb6060647795f46f94cc1f" from cache /: (copy (src dune-release.opam) (dst /Users/opam/src/./)) 2024-11-20 00:30.44 ---> saved as "c561e6a1ade3e65dc631a6294e70ff86a4f84647af686fe051c983bcbd338268" /: (run (network host) (shell "opam pin add -yn dune-release.dev '/Users/opam/src/./'")) [dune-release.dev] synchronised (file://C:/Users/opam/src/.) dune-release is now pinned to file://C:/Users/opam/src/. (version dev) 2024-11-20 00:31.04 ---> saved as "51d473cab97065d62e56ce03e8c3b39fbf12033e0b05f35c2e440da5cc5a2a94" /: (env DEPS "alcotest.1.8.0 arch-x86_64.1 astring.0.8.5 base-bigarray.base base-domains.base base-nnp.base base-threads.base base-unix.base bos.0.2.1 camlp-streams.5.0.1 cmdliner.1.3.0 conf-mingw-w64-gcc-i686.1 conf-mingw-w64-gcc-x86_64.1 cppo.1.7.0 crunch.3.3.1 curly.0.3.0 dune.3.16.1 flexdll.0.43 fmt.0.9.0 fpath.0.7.3 host-arch-x86_64.1 host-system-mingw.1 jsonm.1.0.2 logs.0.7.0 mingw-w64-shims.0.2.0 ocaml.5.2.1 ocaml-base-compiler.5.2.1 ocaml-config.3 ocaml-env-mingw64.1 ocaml-options-vanilla.1 ocaml-syntax-shims.1.0.0 ocamlbuild.0.15.0 ocamlfind.1.9.5 ocamlgraph.2.1.0 odoc.2.4.3 odoc-parser.2.4.3 opam-core.2.3.0 opam-file-format.2.1.6 opam-format.2.3.0 opam-repository.2.3.0 opam-state.2.3.0 ptime.1.2.0 re.1.12.0 result.1.5 rresult.0.7.0 seq.base sha.1.15.4 spdx_licenses.1.2.0 stdlib-shims.0.3.0 swhid_core.0.1 system-mingw.1 topkg.1.0.7 tyxml.4.6.0 uutf.1.0.3 yojson.2.2.2") /: (env CI true) /: (env OCAMLCI true) /: (run (cache (opam-archives (target "c:\\Users\\opam\\AppData\\local\\opam\\download-cache"))) (network host) (shell "opam update --depexts && opam install --cli=2.3 --depext-only -y dune-release.dev $DEPS")) <><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><> [dune-release.dev] synchronised (no changes) [NOTE] Package system-mingw is already installed (current version is 1). [NOTE] Package ocaml-options-vanilla is already installed (current version is 1). [NOTE] Package ocaml-env-mingw64 is already installed (current version is 1). [NOTE] Package ocaml-config is already installed (current version is 3). [NOTE] Package ocaml-base-compiler is already installed (current version is 5.2.1). [NOTE] Package ocaml is already installed (current version is 5.2.1). [NOTE] Package mingw-w64-shims is already installed (current version is 0.2.0). [NOTE] Package host-system-mingw is already installed (current version is 1). [NOTE] Package host-arch-x86_64 is already installed (current version is 1). [NOTE] Package flexdll is already installed (current version is 0.43). [NOTE] Package conf-mingw-w64-gcc-x86_64 is already installed (current version is 1). [NOTE] Package base-unix is already installed (current version is base). [NOTE] Package base-threads is already installed (current version is base). [NOTE] Package base-nnp is already installed (current version is base). [NOTE] Package base-domains is already installed (current version is base). [NOTE] Package base-bigarray is already installed (current version is base). [NOTE] Package arch-x86_64 is already installed (current version is 1). The following system packages will first need to be installed: mingw64-i686-gcc-core <><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><> + C:\Users\opam\AppData\Local\opam\.cygwin\setup-x86_64.exe "--root" "C:\\cygwin64" "--quiet-mode" "unattended" "--no-shortcuts" "--no-startmenu" "--no-desktop" "--no-admin" "--no-version-check" "--no-write-registry" "--packages" "mingw64-i686-gcc-core" - Starting cygwin install, version 2.932 - User has backup/restore rights - User has symlink creation right - Current Directory: C:\Windows\system32 - root: C:\cygwin64 system - Changing gid to Administrators - Selected local directory: C:\Windows\system32 - net: Preconfig - site: https://cygwin.mirror.constant.com/ - solving: 1 tasks, update: no, use test packages: no - solving: 6 tasks, update: no, use test packages: no - Augmented Transaction List: - 0 install mingw64-i686-binutils 2.43.1-1 - 1 install mingw64-i686-windows-default-manifest 6.4-1 - 2 install mingw64-i686-winpthreads 12.0.0-1 - 3 install mingw64-i686-headers 12.0.0-1 - 4 install mingw64-i686-runtime 12.0.0-1 - 5 install mingw64-i686-gcc-core 12.4.0-1 - Downloaded C:\Windows\system32/https%3a%2f%2fcygwin.mirror.constant.com%2f/x86_64/release/mingw64-i686-binutils/mingw64-i686-binutils-2.43.1-1.tar.zst - Downloaded C:\Windows\system32/https%3a%2f%2fcygwin.mirror.constant.com%2f/noarch/release/mingw64-i686-windows-default-manifest/mingw64-i686-windows-default-manifest-6.4-1.tar.xz - Downloaded C:\Windows\system32/https%3a%2f%2fcygwin.mirror.constant.com%2f/noarch/release/mingw64-i686-winpthreads/mingw64-i686-winpthreads-12.0.0-1.tar.xz - Downloaded C:\Windows\system32/https%3a%2f%2fcygwin.mirror.constant.com%2f/noarch/release/mingw64-i686-headers/mingw64-i686-headers-12.0.0-1.tar.xz - Downloaded C:\Windows\system32/https%3a%2f%2fcygwin.mirror.constant.com%2f/noarch/release/mingw64-i686-runtime/mingw64-i686-runtime-12.0.0-1.tar.xz - Downloaded C:\Windows\system32/https%3a%2f%2fcygwin.mirror.constant.com%2f/x86_64/release/mingw64-i686-gcc/mingw64-i686-gcc-core/mingw64-i686-gcc-core-12.4.0-1.tar.zst - Extracting from file://C:\Windows\system32/https%3a%2f%2fcygwin.mirror.constant.com%2f/x86_64/release/mingw64-i686-binutils/mingw64-i686-binutils-2.43.1-1.tar.zst - Extracting from file://C:\Windows\system32/https%3a%2f%2fcygwin.mirror.constant.com%2f/noarch/release/mingw64-i686-windows-default-manifest/mingw64-i686-windows-default-manifest-6.4-1.tar.xz - Extracting from file://C:\Windows\system32/https%3a%2f%2fcygwin.mirror.constant.com%2f/noarch/release/mingw64-i686-winpthreads/mingw64-i686-winpthreads-12.0.0-1.tar.xz - Extracting from file://C:\Windows\system32/https%3a%2f%2fcygwin.mirror.constant.com%2f/noarch/release/mingw64-i686-headers/mingw64-i686-headers-12.0.0-1.tar.xz - Extracting from file://C:\Windows\system32/https%3a%2f%2fcygwin.mirror.constant.com%2f/noarch/release/mingw64-i686-runtime/mingw64-i686-runtime-12.0.0-1.tar.xz - Extracting from file://C:\Windows\system32/https%3a%2f%2fcygwin.mirror.constant.com%2f/x86_64/release/mingw64-i686-gcc/mingw64-i686-gcc-core/mingw64-i686-gcc-core-12.4.0-1.tar.zst - running: C:\cygwin64\bin\dash.exe "/etc/postinstall/0p_000_autorebase.dash" - running: C:\cygwin64\bin\dash.exe "/etc/postinstall/0p_update-info-dir.dash" - running: C:\cygwin64\bin\dash.exe "/etc/postinstall/zp_man-db-update-index.dash" - Ending cygwin install - NOTE: you should run 'diskperf -y' to enable the disk statistics - NOTE: you should run 'diskperf -y' to enable the disk statistics 2024-11-20 00:31.50 ---> saved as "4bee5c664943262cb1a4b3d85a6480f4eb5bf4f6f2272d6be5ade5a61b2fd561" /: (run (cache (opam-archives (target "c:\\Users\\opam\\AppData\\local\\opam\\download-cache"))) (network host) (shell "opam install $DEPS")) [NOTE] Package system-mingw is already installed (current version is 1). [NOTE] Package ocaml-options-vanilla is already installed (current version is 1). [NOTE] Package ocaml-env-mingw64 is already installed (current version is 1). [NOTE] Package ocaml-config is already installed (current version is 3). [NOTE] Package ocaml-base-compiler is already installed (current version is 5.2.1). [NOTE] Package ocaml is already installed (current version is 5.2.1). [NOTE] Package mingw-w64-shims is already installed (current version is 0.2.0). [NOTE] Package host-system-mingw is already installed (current version is 1). [NOTE] Package host-arch-x86_64 is already installed (current version is 1). [NOTE] Package flexdll is already installed (current version is 0.43). [NOTE] Package conf-mingw-w64-gcc-x86_64 is already installed (current version is 1). [NOTE] Package base-unix is already installed (current version is base). [NOTE] Package base-threads is already installed (current version is base). [NOTE] Package base-nnp is already installed (current version is base). [NOTE] Package base-domains is already installed (current version is base). [NOTE] Package base-bigarray is already installed (current version is base). [NOTE] Package arch-x86_64 is already installed (current version is 1). The following actions will be performed: === recompile 1 package - recompile mingw-w64-shims 0.2.0 === install 38 packages - install alcotest 1.8.0 - install astring 0.8.5 - install bos 0.2.1 - install camlp-streams 5.0.1 - install cmdliner 1.3.0 - install conf-mingw-w64-gcc-i686 1 - install cppo 1.7.0 - install crunch 3.3.1 - install curly 0.3.0 - install dune 3.16.1 - install fmt 0.9.0 - install fpath 0.7.3 - install jsonm 1.0.2 - install logs 0.7.0 - install ocaml-syntax-shims 1.0.0 - install ocamlbuild 0.15.0 - install ocamlfind 1.9.5 - install ocamlgraph 2.1.0 - install odoc 2.4.3 - install odoc-parser 2.4.3 - install opam-core 2.3.0 - install opam-file-format 2.1.6 - install opam-format 2.3.0 - install opam-repository 2.3.0 - install opam-state 2.3.0 - install ptime 1.2.0 - install re 1.12.0 - install result 1.5 - install rresult 0.7.0 - install seq base - install sha 1.15.4 - install spdx_licenses 1.2.0 - install stdlib-shims 0.3.0 - install swhid_core 0.1 - install topkg 1.0.7 - install tyxml 4.6.0 - install uutf 1.0.3 - install yojson 2.2.2 <><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><> -> retrieved astring.0.8.5 (cached) -> retrieved bos.0.2.1 (cached) -> retrieved alcotest.1.8.0 (cached) -> retrieved camlp-streams.5.0.1 (cached) -> retrieved cmdliner.1.3.0 (cached) -> retrieved cppo.1.7.0 (cached) -> retrieved crunch.3.3.1 (cached) -> retrieved curly.0.3.0 (cached) -> retrieved fmt.0.9.0 (cached) -> retrieved fpath.0.7.3 (cached) -> retrieved jsonm.1.0.2 (cached) -> retrieved logs.0.7.0 (cached) -> retrieved mingw-w64-shims.0.2.0 (cached) -> retrieved ocaml-syntax-shims.1.0.0 (cached) -> removed mingw-w64-shims.0.2.0 -> installed conf-mingw-w64-gcc-i686.1 -> retrieved ocamlbuild.0.15.0 (cached) -> retrieved ocamlfind.1.9.5 (cached) -> retrieved ocamlgraph.2.1.0 (cached) -> installed mingw-w64-shims.0.2.0 -> retrieved odoc.2.4.3, odoc-parser.2.4.3 (cached) -> retrieved dune.3.16.1 (cached) -> retrieved opam-file-format.2.1.6 (cached) -> retrieved ptime.1.2.0 (cached) -> retrieved opam-core.2.3.0, opam-format.2.3.0, opam-repository.2.3.0, opam-state.2.3.0 (https://github.com/ocaml/opam/archive/refs/tags/2.3.0.tar.gz) -> retrieved re.1.12.0 (cached) -> retrieved seq.base (cached) -> retrieved result.1.5 (cached) -> retrieved rresult.0.7.0 (cached) -> retrieved sha.1.15.4 (cached) -> retrieved spdx_licenses.1.2.0 (cached) -> retrieved stdlib-shims.0.3.0 (cached) -> retrieved swhid_core.0.1 (cached) -> retrieved topkg.1.0.7 (cached) -> retrieved tyxml.4.6.0 (cached) -> retrieved uutf.1.0.3 (cached) -> retrieved yojson.2.2.2 (cached) -> installed cmdliner.1.3.0 -> installed ocamlbuild.0.15.0 -> installed seq.base [WARNING] .install file is missing .exe extension for src/findlib/ocamlfind [WARNING] .install file is missing .exe extension for src/findlib/ocamlfind_opt [WARNING] Automatically adding .exe to C:\Users\opam\AppData\Local\opam\5.2.1\.opam-switch\build\ocamlfind.1.9.5\src\findlib\ocamlfind.exe [WARNING] Automatically adding .exe to C:\Users\opam\AppData\Local\opam\5.2.1\.opam-switch\build\ocamlfind.1.9.5\src\findlib\ocamlfind_opt.exe [WARNING] C:\Users\opam\AppData\Local\opam\5.2.1\bin\safe_camlp4 is a script; the command won't be available -> installed ocamlfind.1.9.5 -> installed topkg.1.0.7 -> installed rresult.0.7.0 -> installed uutf.1.0.3 -> installed astring.0.8.5 -> installed fmt.0.9.0 -> installed jsonm.1.0.2 -> installed ptime.1.2.0 -> installed fpath.0.7.3 -> installed dune.3.16.1 -> installed camlp-streams.5.0.1 -> installed logs.0.7.0 -> installed result.1.5 -> installed cppo.1.7.0 -> installed crunch.3.3.1 -> installed ocaml-syntax-shims.1.0.0 -> installed opam-file-format.2.1.6 -> installed curly.0.3.0 -> installed re.1.12.0 -> installed spdx_licenses.1.2.0 -> installed stdlib-shims.0.3.0 -> installed odoc-parser.2.4.3 -> installed swhid_core.0.1 -> installed yojson.2.2.2 -> installed sha.1.15.4 -> installed alcotest.1.8.0 -> installed tyxml.4.6.0 -> installed ocamlgraph.2.1.0 -> installed bos.0.2.1 -> installed odoc.2.4.3 -> installed opam-core.2.3.0 -> installed opam-format.2.3.0 -> installed opam-repository.2.3.0 -> installed opam-state.2.3.0 Done. # To update the current shell environment, run: eval $(opam env) 2024-11-20 00:34.09 ---> saved as "b2199df819a70de941570f15b663c9329d410c84b4dfdbc95c40677d5b2881cf" /: (copy (src .) (dst /Users/opam/src)) 2024-11-20 00:34.20 ---> saved as "efcdebd13ecb1975b1b24e84b42f1c432e894ae674b4d3c6914f828b4a9b0bf3" /: (run (shell "cd /cygdrive/c/Users/opam/src && opam exec -- dune build @install @check @runtest && rm -rf _build")) (cd _build/default/tests/lib && ./tests.exe -e) Testing `dune-release'. This run has ID `A9WLAGRV'. [OK] Github 0 Parse.ssh_uri_from_http https://github.com/tarides/dune-release. [OK] Github 1 Parse.ssh_uri_from_http git@github.com:tarides/dune-release. [OK] Github 2 Parse.ssh_uri_from_http https://not-github.com/dune-release. [OK] Github 3 Parse.ssh_uri_from_http git@not-github.com:dune-release. [OK] Github 4 Parse.ssh_uri_from_http git://github.com/user/repo.git. [OK] Github 5 Parse.ssh_uri_from_http git+https://github.com/user/repo.git. [OK] Github 6 No project name. [OK] Github 7 With project name. [OK] Github 8 1 package with project name. [OK] Github 9 Multiple packages, just some selected. [OK] Github_v3_api 0 simple. [OK] Github_v3_api 1 simple. [OK] Github_v3_api 2 simple. [OK] Github_v3_api 3 basic. [OK] Github_v3_api 4 basic. [OK] Github_v3_api 5 archive_upload_url. [OK] Github_v3_api 6 archive_upload_url. [OK] Github_v3_api 7 release_id. [OK] Github_v3_api 8 html_url: passing. [OK] Github_v3_api 9 html_url: handled failure. [OK] Github_v3_api 10 html_url: unhandled failure. [OK] Github_v3_api 11 number. [OK] Github_v4_api 0 basic. [OK] Github_v4_api 1 Pull_request.Request.node_id: simple. [OK] Github_v4_api 2 Pull_request.Response.node_id: passing. [OK] Github_v4_api 3 Pull_request.Response.node_id: unhandled failure. [OK] Github_v4_api 4 Pull_request.Request.ready_for_review: simple. [OK] Github_v4_api 5 Pull_request.Response.url: passing. [OK] Github_v4_api 6 Pull_request.Response.url: unhandled failure. [OK] Opam_file 0 upgrade. [OK] Opam_file 1 upgrade. [OK] Pkg 0 is not a valid version field line. [OK] Pkg 1 version:""is not a valid version field line. [OK] Pkg 2 version:"1"is a valid version field line. [OK] Pkg 3 version: "1" is a valid version field line. [OK] Pkg 4 version:"1.jfpojef.adp921709"is a valid version field line. [OK] Pkg 5 prepare_opam_for_distrib: empty. [OK] Pkg 6 prepare_opam_for_distrib: replace version. [OK] Pkg 7 prepare_opam_for_distrib: only replace version field. [OK] Pkg 8 distrib_uri:1. [OK] Pkg 9 distrib_uri:2. [OK] Pkg 10 distrib_uri:3. [OK] Pkg 11 distrib_uri:4. [OK] Pkg 12 distrib_uri:5. [OK] Pkg 13 distrib_uri:6. [OK] Pkg 14 distrib_uri:7. [OK] Pkg 15 distrib_uri:8. [OK] Pkg 16 distrib_uri:9. [OK] Pkg 17 ok. [OK] Pkg 18 no name. [OK] Pkg 19 opam file generation. [OK] Pkg 20 leading whitespace. [OK] Pkg 21 Pkg.main: single package. [OK] Pkg 22 Pkg.main: two packages with a name. [OK] Pkg 23 Pkg.main: two packages, no name. [OK] Stdext 0 Path.is_backup_file. [OK] Stdext 1 Path.find_files. [OK] Text 0 change_log_last_entry empty. [OK] Text 1 change_log_last_entry change list 0. [OK] Text 2 change_log_last_entry change list 1. [OK] Text 3 change_log_last_entry change list 2. [OK] Text 4 change_log_last_entry many entries. [OK] Text 5 change_log_last_entry keepachangelog.com 1. [OK] Text 6 change_log_last_entry keepachangelog.com 2. [OK] Text 7 rewrite_github_refs rewritten 0. [OK] Text 8 rewrite_github_refs rewritten 1. [OK] Text 9 rewrite_github_refs not rewritten 0. [OK] Text 10 rewrite_github_refs not rewritten 1. [OK] Text 11 rewrite_github_refs not rewritten 2. [OK] Text 12 rewrite_github_refs not rewritten 3. [OK] Sos 0 cmd_error. [OK] Vcs 0 git_escape_tag: empty. [OK] Vcs 1 git_escape_tag: valid. [OK] Vcs 2 git_escape_tag: tilde. [OK] Vcs 3 git_unescape_tag: empty. [OK] Vcs 4 git_unescape_tag: valid. [OK] Vcs 5 git_unescape_tag: tilde. [OK] Uri_helpers 0 parse: scheme://domain.com/some/path. [OK] Uri_helpers 1 parse: noscheme.com/some/path. [OK] Uri_helpers 2 parse: nopath.com. [OK] Uri_helpers 3 parse: git@github.com:some/path. [OK] Github_repo 0 from_uri "https://github.com/owner/repo". [OK] Github_repo 1 from_uri "https://github.com/owner/repo.git". [OK] Github_repo 2 from_uri "git+https://github.com/owner/repo.git". [OK] Github_repo 3 from_uri "git@github.com:owner/repo.git". [OK] Github_repo 4 from_uri "ssh://git@github.com:owner/repo.git". [OK] Github_repo 5 from_uri "git+ssh://git@github.com:owner/repo.git". [OK] Github_repo 6 from_uri "https://owner.github.io/repo". [OK] Github_repo 7 from_uri "https://owner.github.io/repo/path". [OK] Github_repo 8 from_uri "https://gitlab.com/owner/repo". [OK] Github_repo 9 https_uri: "Simple". [OK] Github_repo 10 ssh_uri: "Simple". [OK] Github_repo 11 from_gh_pages: https://user.github.io/repo. [OK] Github_repo 12 from_gh_pages: https://user.github.io/repo/. [OK] Github_repo 13 from_gh_pages: https://user.github.io/repo/path. [OK] Github_repo 14 from_gh_pages: https://user.github.io/repo/path/. [OK] Github_repo 15 from_gh_pages: https://user.github.io/repo/long/path/. Full test results in `~\src\_build\default\tests\lib\_build\_tests\A9WLAGRV'. Test Successful in 0.062s. 97 tests run. File "tests/bin/opam-pkg-distrib-file-opt/run.t", line 1, characters 0-0: C:\cygwin64\bin\git.exe --no-pager diff --no-index --color=always -u --ignore-cr-at-eol _build/.sandbox/dbf47f97cf0509375f3a0db03707642d/default/tests/bin/opam-pkg-distrib-file-opt/run.t _build/.sandbox/dbf47f97cf0509375f3a0db03707642d/default/tests/bin/opam-pkg-distrib-file-opt/run.t.corrected diff --git a/_build/.sandbox/dbf47f97cf0509375f3a0db03707642d/default/tests/bin/opam-pkg-distrib-file-opt/run.t b/_build/.sandbox/dbf47f97cf0509375f3a0db03707642d/default/tests/bin/opam-pkg-distrib-file-opt/run.t.corrected index 81102ab..ff846a0 100644 --- a/_build/.sandbox/dbf47f97cf0509375f3a0db03707642d/default/tests/bin/opam-pkg-distrib-file-opt/run.t +++ b/_build/.sandbox/dbf47f97cf0509375f3a0db03707642d/default/tests/bin/opam-pkg-distrib-file-opt/run.t.corrected @@ -38,6 +38,6 @@ Running the following should not fail if the dune-release generated tarball > --dist-uri "https://my.custom.url/mytarball.tbz" \ > --pkg-version 0.1.0 [-] Creating opam package description for whatever - [+] Wrote opam package description _build/whatever.0.1.0/opam - dune-release: [WARNING] The repo is dirty. The opam package may be - inconsistent with the distribution. + [+] Wrote opam package description _build\whatever.0.1.0\opam + dune-release.exe: [WARNING] The repo is dirty. The opam package may be + inconsistent with the distribution. File "tests/bin/errors/run.t", line 1, characters 0-0: C:\cygwin64\bin\git.exe --no-pager diff --no-index --color=always -u --ignore-cr-at-eol _build/.sandbox/eeb24a919228ca79055165321b4c54b8/default/tests/bin/errors/run.t _build/.sandbox/eeb24a919228ca79055165321b4c54b8/default/tests/bin/errors/run.t.corrected diff --git a/_build/.sandbox/eeb24a919228ca79055165321b4c54b8/default/tests/bin/errors/run.t b/_build/.sandbox/eeb24a919228ca79055165321b4c54b8/default/tests/bin/errors/run.t.corrected index e8fe7be..68f7ab8 100644 --- a/_build/.sandbox/eeb24a919228ca79055165321b4c54b8/default/tests/bin/errors/run.t +++ b/_build/.sandbox/eeb24a919228ca79055165321b4c54b8/default/tests/bin/errors/run.t.corrected @@ -26,13 +26,13 @@ We need to set up a git project for dune-release to work properly Let's provoke a one-line error $ dune-release delegate-info hi - dune-release: [ERROR] Unknown variable "hi" + dune-release.exe: [ERROR] Unknown variable "hi" [3] Let's provoke a multi-line error $ dune-release config hi - dune-release: [ERROR] Invalid dune-release config invocation. Usage: + dune-release.exe: [ERROR] Invalid dune-release config invocation. Usage: dune-release config dune-release config show [KEY] dune-release config set KEY VALUE @@ -46,7 +46,7 @@ Let's make `dune-release` run a `git`-command that's doomed to fail. After the c $ dune-release tag --commit=1 [-] Extracting tag from first entry in CHANGES.md [-] Using tag "0.1.0" - dune-release: [ERROR] Due to invalid commit-ish `1`: + dune-release.exe: [ERROR] Due to invalid commit-ish `1`: Exit code 128 from command `git --git-dir .git rev-parse --verify 1^0`: fatal: Needed a single revision File "tests/bin/delegate-info/run.t", line 1, characters 0-0: C:\cygwin64\bin\git.exe --no-pager diff --no-index --color=always -u --ignore-cr-at-eol _build/.sandbox/74b924dae10b070cd4e5e833475a6916/default/tests/bin/delegate-info/run.t _build/.sandbox/74b924dae10b070cd4e5e833475a6916/default/tests/bin/delegate-info/run.t.corrected diff --git a/_build/.sandbox/74b924dae10b070cd4e5e833475a6916/default/tests/bin/delegate-info/run.t b/_build/.sandbox/74b924dae10b070cd4e5e833475a6916/default/tests/bin/delegate-info/run.t.corrected index 8186bbe..ea3c9ce 100644 --- a/_build/.sandbox/74b924dae10b070cd4e5e833475a6916/default/tests/bin/delegate-info/run.t +++ b/_build/.sandbox/74b924dae10b070cd4e5e833475a6916/default/tests/bin/delegate-info/run.t.corrected @@ -27,12 +27,12 @@ We need to set up a git project for dune-release to work properly Dune-release delegate-info tarball should print the path to the tarball: $ dune-release delegate-info tarball - _build/whatever-0.1.0.tbz + _build\whatever-0.1.0.tbz Dune-release delegate-info docdir should print the path to the docdir: $ dune-release delegate-info docdir - _build/default/_doc/_html + _build\default\_doc\_html Dune-release delegate-info publication-message should print the publication-message: File "tests/bin/no-doc/run.t", line 1, characters 0-0: C:\cygwin64\bin\git.exe --no-pager diff --no-index --color=always -u --ignore-cr-at-eol _build/.sandbox/747729434b3b36bd38c0b76104d7ed66/default/tests/bin/no-doc/run.t _build/.sandbox/747729434b3b36bd38c0b76104d7ed66/default/tests/bin/no-doc/run.t.corrected diff --git a/_build/.sandbox/747729434b3b36bd38c0b76104d7ed66/default/tests/bin/no-doc/run.t b/_build/.sandbox/747729434b3b36bd38c0b76104d7ed66/default/tests/bin/no-doc/run.t.corrected index 9eb87ad..a2fb55d 100644 --- a/_build/.sandbox/747729434b3b36bd38c0b76104d7ed66/default/tests/bin/no-doc/run.t +++ b/_build/.sandbox/747729434b3b36bd38c0b76104d7ed66/default/tests/bin/no-doc/run.t.corrected @@ -42,7 +42,7 @@ We need to set up a git project for dune-release to work properly Trying to publish the documentation explicitly should fail: $ dune-release publish doc -y --dry-run > /dev/null - dune-release: [ERROR] directory contents _build/whatever-0.1.0: No such file or directory + dune-release.exe: [ERROR] directory contents _build\whatever-0.1.0: No such file or directory [3] By default it should skip the documentation generation: File "tests/bin/tag-2-packages/run.t", line 1, characters 0-0: C:\cygwin64\bin\git.exe --no-pager diff --no-index --color=always -u --ignore-cr-at-eol _build/.sandbox/c96c7bd1c007d4fb6dc5314c29c144b3/default/tests/bin/tag-2-packages/run.t _build/.sandbox/c96c7bd1c007d4fb6dc5314c29c144b3/default/tests/bin/tag-2-packages/run.t.corrected diff --git a/_build/.sandbox/c96c7bd1c007d4fb6dc5314c29c144b3/default/tests/bin/tag-2-packages/run.t b/_build/.sandbox/c96c7bd1c007d4fb6dc5314c29c144b3/default/tests/bin/tag-2-packages/run.t.corrected index e98b46a..ca5ccd7 100644 --- a/_build/.sandbox/c96c7bd1c007d4fb6dc5314c29c144b3/default/tests/bin/tag-2-packages/run.t +++ b/_build/.sandbox/c96c7bd1c007d4fb6dc5314c29c144b3/default/tests/bin/tag-2-packages/run.t.corrected @@ -22,7 +22,7 @@ Set up a project with two packaged libraries, no name in `dune-project`. Expect an error message about the name in `dune-project`. $ dune-release tag -y - dune-release: [ERROR] cannot determine distribution name automatically: add (name <name>) to dune-project + dune-release.exe: [ERROR] cannot determine distribution name automatically: add (name <name>) to dune-project [1] Use `(name <name>)` in `dune-project` (not committed). File "tests/bin/include-versioned-dotfiles/run.t", line 1, characters 0-0: C:\cygwin64\bin\git.exe --no-pager diff --no-index --color=always -u --ignore-cr-at-eol _build/.sandbox/ff12215a1168726fb60261aa03a93c1a/default/tests/bin/include-versioned-dotfiles/run.t _build/.sandbox/ff12215a1168726fb60261aa03a93c1a/default/tests/bin/include-versioned-dotfiles/run.t.corrected diff --git a/_build/.sandbox/ff12215a1168726fb60261aa03a93c1a/default/tests/bin/include-versioned-dotfiles/run.t b/_build/.sandbox/ff12215a1168726fb60261aa03a93c1a/default/tests/bin/include-versioned-dotfiles/run.t.corrected index 984abdd..2cd3a42 100644 --- a/_build/.sandbox/ff12215a1168726fb60261aa03a93c1a/default/tests/bin/include-versioned-dotfiles/run.t +++ b/_build/.sandbox/ff12215a1168726fb60261aa03a93c1a/default/tests/bin/include-versioned-dotfiles/run.t.corrected @@ -36,6 +36,9 @@ We need to set up a git project for dune-release to work properly The generated tarball should contain the dotfile $ dune-release distrib --skip-lint --skip-build --skip-test > /dev/null + dune-release.exe: [ERROR] delete directory _build\whatever-0.1.0.build: _build\whatever-0.1.0.build\.git\objects\0e\12c20c57f71414984b41a52951a8bc15029311: The directory name is invalid. + + [3] $ tar -xjf _build/whatever-0.1.0.tbz $ cat whatever-0.1.0/.somedotfile hello File "tests/bin/tag/run.t", line 1, characters 0-0: C:\cygwin64\bin\git.exe --no-pager diff --no-index --color=always -u --ignore-cr-at-eol _build/.sandbox/70ea2248b5112d2191a7f5e0b9c493c6/default/tests/bin/tag/run.t _build/.sandbox/70ea2248b5112d2191a7f5e0b9c493c6/default/tests/bin/tag/run.t.corrected diff --git a/_build/.sandbox/70ea2248b5112d2191a7f5e0b9c493c6/default/tests/bin/tag/run.t b/_build/.sandbox/70ea2248b5112d2191a7f5e0b9c493c6/default/tests/bin/tag/run.t.corrected index 2a998ed..7979ad3 100644 --- a/_build/.sandbox/70ea2248b5112d2191a7f5e0b9c493c6/default/tests/bin/tag/run.t +++ b/_build/.sandbox/70ea2248b5112d2191a7f5e0b9c493c6/default/tests/bin/tag/run.t.corrected @@ -55,7 +55,7 @@ Running `dune-release tag` again, but providing a different commit should inform $ dune-release tag --commit=HEAD^ [-] Extracting tag from first entry in CHANGES.md [-] Using tag "0.1.0" - dune-release: [ERROR] A tag with name 0.1.0 already exists, but points to a different commit. You can delete that tag using the `-d` flag. + dune-release.exe: [ERROR] A tag with name 0.1.0 already exists, but points to a different commit. You can delete that tag using the `-d` flag. [3] Trying to delete the created tag providing a different commit should give a warning. The answer to the question @@ -65,7 +65,7 @@ asking for confirmation should default to "no". [-] Extracting tag from first entry in CHANGES.md [-] Using tag "0.1.0" [?] Warning: Tag 0.1.0 does not point to the commit you've provided (default: HEAD). Do you want to delete it anyways? [y/N] - dune-release: [ERROR] Aborting on user demand + dune-release.exe: [ERROR] Aborting on user demand [3] Deleting the created tag providing the commit it points to (here the default, so HEAD) should work without warning. File "tests/bin/non-github-uri/run.t", line 1, characters 0-0: C:\cygwin64\bin\git.exe --no-pager diff --no-index --color=always -u --ignore-cr-at-eol _build/.sandbox/908e2f9cefb6045b12a591016dc85e22/default/tests/bin/non-github-uri/run.t _build/.sandbox/908e2f9cefb6045b12a591016dc85e22/default/tests/bin/non-github-uri/run.t.corrected diff --git a/_build/.sandbox/908e2f9cefb6045b12a591016dc85e22/default/tests/bin/non-github-uri/run.t b/_build/.sandbox/908e2f9cefb6045b12a591016dc85e22/default/tests/bin/non-github-uri/run.t.corrected index f9a63ac..52c66d1 100644 --- a/_build/.sandbox/908e2f9cefb6045b12a591016dc85e22/default/tests/bin/non-github-uri/run.t +++ b/_build/.sandbox/908e2f9cefb6045b12a591016dc85e22/default/tests/bin/non-github-uri/run.t.corrected @@ -50,11 +50,11 @@ archive should fail as only publishing to github is supported. $ dune-release distrib --dry-run 2>&1 | grep -E "FAIL|ERROR" [FAIL] opam fields homepage and dev-repo can be parsed by dune-release - dune-release: [ERROR] Github development repository URL could not be inferred - [FAIL] lint of _build/whatever-0.1.0 and package whatever failure: 1 errors. + dune-release.exe: [ERROR] Github development repository URL could not be + [FAIL] lint of _build\whatever-0.1.0 and package whatever failure: 1 errors. (2) publish distrib $ dune-release publish distrib --dry-run > /dev/null - dune-release: [ERROR] Github development repository URL could not be inferred from opam files. + dune-release.exe: [ERROR] Github development repository URL could not be inferred from opam files. [3] File "tests/bin/invalid-version-number/run.t", line 1, characters 0-0: C:\cygwin64\bin\git.exe --no-pager diff --no-index --color=always -u --ignore-cr-at-eol _build/.sandbox/e1174dcf4ee3b2172368d097c0ed94b1/default/tests/bin/invalid-version-number/run.t _build/.sandbox/e1174dcf4ee3b2172368d097c0ed94b1/default/tests/bin/invalid-version-number/run.t.corrected diff --git a/_build/.sandbox/e1174dcf4ee3b2172368d097c0ed94b1/default/tests/bin/invalid-version-number/run.t b/_build/.sandbox/e1174dcf4ee3b2172368d097c0ed94b1/default/tests/bin/invalid-version-number/run.t.corrected index 8f136da..1967920 100644 --- a/_build/.sandbox/e1174dcf4ee3b2172368d097c0ed94b1/default/tests/bin/invalid-version-number/run.t +++ b/_build/.sandbox/e1174dcf4ee3b2172368d097c0ed94b1/default/tests/bin/invalid-version-number/run.t.corrected @@ -41,32 +41,32 @@ We do the whole dune-release process (1) distrib $ dune-release distrib --dry-run | grep preview1 - => rmdir _build/whatever-3.3.4~4.10preview1.build + => rmdir _build\whatever-3.3.4~4.10preview1.build -: exec: git --git-dir .git rev-parse --verify refs/tags/3.3.4_4.10preview1 => exec: git --git-dir .git show -s --format=%ct 3.3.4_4.10preview1^0 - git --git-dir .git clone --local .git _build/whatever-3.3.4~4.10preview1.build - git --git-dir _build/whatever-3.3.4~4.10preview1.build/.git --work-tree _build/whatever-3.3.4~4.10preview1.build/ checkout --quiet -b dune-release-dist-3.3.4_4.10preview1 3.3.4_4.10preview1 - => chdir _build/whatever-3.3.4~4.10preview1.build - [in _build/whatever-3.3.4~4.10preview1.build] - -: rmdir _build/whatever-3.3.4~4.10preview1.build - [+] Wrote archive _build/whatever-3.3.4~4.10preview1.tbz + git --git-dir .git clone --local .git _build\whatever-3.3.4~4.10preview1.build + git --git-dir _build\whatever-3.3.4~4.10preview1.build\.git --work-tree _build\whatever-3.3.4~4.10preview1.build\ checkout --quiet -b dune-release-dist-3.3.4_4.10preview1 3.3.4_4.10preview1 + => chdir _build\whatever-3.3.4~4.10preview1.build + [in _build\whatever-3.3.4~4.10preview1.build] + -: rmdir _build\whatever-3.3.4~4.10preview1.build + [+] Wrote archive _build\whatever-3.3.4~4.10preview1.tbz => exec: tar -xjf whatever-3.3.4~4.10preview1.tbz - [-] Performing lint for package whatever in _build/whatever-3.3.4~4.10preview1 - => chdir _build/whatever-3.3.4~4.10preview1 - [in _build/whatever-3.3.4~4.10preview1] - [ OK ] lint of _build/whatever-3.3.4~4.10preview1 and package whatever success - [-] Building package in _build/whatever-3.3.4~4.10preview1 - => chdir _build/whatever-3.3.4~4.10preview1 - [-] Running package tests in _build/whatever-3.3.4~4.10preview1 - => chdir _build/whatever-3.3.4~4.10preview1 - -: rmdir _build/whatever-3.3.4~4.10preview1 + [-] Performing lint for package whatever in _build\whatever-3.3.4~4.10preview1 + => chdir _build\whatever-3.3.4~4.10preview1 + [in _build\whatever-3.3.4~4.10preview1] + [ OK ] lint of _build\whatever-3.3.4~4.10preview1 and package whatever success + [-] Building package in _build\whatever-3.3.4~4.10preview1 + => chdir _build\whatever-3.3.4~4.10preview1 + [-] Running package tests in _build\whatever-3.3.4~4.10preview1 + => chdir _build\whatever-3.3.4~4.10preview1 + -: rmdir _build\whatever-3.3.4~4.10preview1 [+] Distribution for whatever 3.3.4~4.10preview1 - [+] Archive _build/whatever-3.3.4~4.10preview1.tbz + [+] Archive _build\whatever-3.3.4~4.10preview1.tbz (2) publish distrib $ dune-release publish distrib --dry-run --yes | grep preview1 - => must exists _build/whatever-3.3.4~4.10preview1.tbz + => must exists _build\whatever-3.3.4~4.10preview1.tbz -: exec: git --git-dir .git rev-parse --verify refs/tags/3.3.4_4.10preview1 -: exec: git --git-dir .git rev-parse --verify refs/tags/3.3.4_4.10preview1 git --git-dir .git ls-remote --quiet --tags https://github.com/user/repo.git 3.3.4_4.10preview1 @@ -74,9 +74,9 @@ We do the whole dune-release process git --git-dir .git push --force git@github.com:user/repo.git 3.3.4_4.10preview1 [-] Creating release 3.3.4~4.10preview1 on https://github.com/user/repo.git via github's API {"tag_name":"3.3.4_4.10preview1","name":"3.3.4~4.10preview1","body":"CHANGES:\n\n- Some other feature\n","draft":false} - [-] Uploading _build/whatever-3.3.4~4.10preview1.tbz as a release asset for 3.3.4~4.10preview1 via github's API - @_build/whatever-3.3.4~4.10preview1.tbz - -: write _build/asset-3.3.4~4.10preview1.url + [-] Uploading _build\whatever-3.3.4~4.10preview1.tbz as a release asset for 3.3.4~4.10preview1 via github's API + @_build\whatever-3.3.4~4.10preview1.tbz + -: write _build\asset-3.3.4~4.10preview1.url Check the changelog File "tests/bin/draft/run.t", line 1, characters 0-0: C:\cygwin64\bin\git.exe --no-pager diff --no-index --color=always -u --ignore-cr-at-eol _build/.sandbox/11037a8e788bf961651ba04e7be6f901/default/tests/bin/draft/run.t _build/.sandbox/11037a8e788bf961651ba04e7be6f901/default/tests/bin/draft/run.t.corrected diff --git a/_build/.sandbox/11037a8e788bf961651ba04e7be6f901/default/tests/bin/draft/run.t b/_build/.sandbox/11037a8e788bf961651ba04e7be6f901/default/tests/bin/draft/run.t.corrected index 56440b0..f8515ef 100644 --- a/_build/.sandbox/11037a8e788bf961651ba04e7be6f901/default/tests/bin/draft/run.t +++ b/_build/.sandbox/11037a8e788bf961651ba04e7be6f901/default/tests/bin/draft/run.t.corrected @@ -50,4 +50,4 @@ create a draft release and submit it as such to GitHub. It should also write a [-] Creating draft release 0.1.0 on https://github.com/foo/whatever.git via github's API {"tag_name":"0.1.0","name":"0.1.0","body":"CHANGES:\n\n- Some other feature\n","draft":true} [+] Successfully created draft release with id 1 - -: write _build/whatever-0.1.0.draft_release + -: write _build\whatever-0.1.0.draft_release File "tests/bin/x-commit-hash/run.t", line 1, characters 0-0: C:\cygwin64\bin\git.exe --no-pager diff --no-index --color=always -u --ignore-cr-at-eol _build/.sandbox/8a28c0e4932a181a5924b22247e952fe/default/tests/bin/x-commit-hash/run.t _build/.sandbox/8a28c0e4932a181a5924b22247e952fe/default/tests/bin/x-commit-hash/run.t.corrected diff --git a/_build/.sandbox/8a28c0e4932a181a5924b22247e952fe/default/tests/bin/x-commit-hash/run.t b/_build/.sandbox/8a28c0e4932a181a5924b22247e952fe/default/tests/bin/x-commit-hash/run.t.corrected index 85d994d..1d59c0b 100644 --- a/_build/.sandbox/8a28c0e4932a181a5924b22247e952fe/default/tests/bin/x-commit-hash/run.t +++ b/_build/.sandbox/8a28c0e4932a181a5924b22247e952fe/default/tests/bin/x-commit-hash/run.t.corrected @@ -45,9 +45,9 @@ We create an opam package: $ dune-release opam pkg [-] Creating opam package description for whatever - dune-release: [WARNING] Could not find _build/asset-0.1.0.url. - dune-release: [WARNING] using https://github.com/foo/whatever/releases/download/0.1.0/whatever-0.1.0.tbz for as url.src. Note that it might differ from the one generated by Github - [+] Wrote opam package description _build/whatever.0.1.0/opam + dune-release.exe: [WARNING] Could not find _build\asset-0.1.0.url. + dune-release.exe: [WARNING] using https://github.com/foo/whatever/releases/download/0.1.0/whatever-0.1.0.tbz for as url.src. Note that it might differ from the one generated by Github + [+] Wrote opam package description _build\whatever.0.1.0\opam We make sure that `x-commit-hash` has been set in the OPAM file: File "tests/bin/non-github-doc-uri/run.t", line 1, characters 0-0: C:\cygwin64\bin\git.exe --no-pager diff --no-index --color=always -u --ignore-cr-at-eol _build/.sandbox/fe8f253d57a3eb3ad71bd7df6fd4660f/default/tests/bin/non-github-doc-uri/run.t _build/.sandbox/fe8f253d57a3eb3ad71bd7df6fd4660f/default/tests/bin/non-github-doc-uri/run.t.corrected diff --git a/_build/.sandbox/fe8f253d57a3eb3ad71bd7df6fd4660f/default/tests/bin/non-github-doc-uri/run.t b/_build/.sandbox/fe8f253d57a3eb3ad71bd7df6fd4660f/default/tests/bin/non-github-doc-uri/run.t.corrected index 7143d65..3f1d563 100644 --- a/_build/.sandbox/fe8f253d57a3eb3ad71bd7df6fd4660f/default/tests/bin/non-github-doc-uri/run.t +++ b/_build/.sandbox/fe8f253d57a3eb3ad71bd7df6fd4660f/default/tests/bin/non-github-doc-uri/run.t.corrected @@ -46,12 +46,12 @@ a github URI to publish the documentation to. $ dune-release distrib --dry-run 2>&1 | grep -E "FAIL|ERROR" [FAIL] opam fields homepage and dev-repo can be parsed by dune-release - dune-release: [ERROR] Github development repository URL could not be inferred + dune-release.exe: [ERROR] Github development repository URL could not be [FAIL] opam field doc cannot be parsed by dune-release - [FAIL] lint of _build/whatever-0.1.0 and package whatever failure: 1 errors. + [FAIL] lint of _build\whatever-0.1.0 and package whatever failure: 1 errors. (2) publish doc $ dune-release publish doc --dry-run > /dev/null - dune-release: [ERROR] Could not derive publication directory $PATH from opam doc field value "https://whatever.io/doc/main.html"; expected the pattern $SCHEME://$USER.github.io/$REPO/$PATH + dune-release.exe: [ERROR] Could not derive publication directory $PATH from opam doc field value "https://whatever.io/doc/main.html"; expected the pattern $SCHEME://$USER.github.io/$REPO/$PATH [3] File "tests/bin/url-file/run.t", line 1, characters 0-0: C:\cygwin64\bin\git.exe --no-pager diff --no-index --color=always -u --ignore-cr-at-eol _build/.sandbox/de32aab76326a82a5b56fa28c49c7ee2/default/tests/bin/url-file/run.t _build/.sandbox/de32aab76326a82a5b56fa28c49c7ee2/default/tests/bin/url-file/run.t.corrected diff --git a/_build/.sandbox/de32aab76326a82a5b56fa28c49c7ee2/default/tests/bin/url-file/run.t b/_build/.sandbox/de32aab76326a82a5b56fa28c49c7ee2/default/tests/bin/url-file/run.t.corrected index 5629836..f165054 100644 --- a/_build/.sandbox/de32aab76326a82a5b56fa28c49c7ee2/default/tests/bin/url-file/run.t +++ b/_build/.sandbox/de32aab76326a82a5b56fa28c49c7ee2/default/tests/bin/url-file/run.t.corrected @@ -51,7 +51,7 @@ We make a dry-run release and check that the opam file is correct: $ echo "https://foo.fr/archive/foo/foo.tbz" > _build/asset-0.1.0.url $ dune-release opam pkg [-] Creating opam package description for whatever - [+] Wrote opam package description _build/whatever.0.1.0/opam + [+] Wrote opam package description _build\whatever.0.1.0\opam (4) Check that the OPAM file contains the right data File "tests/bin/distrib-name/run.t", line 1, characters 0-0: C:\cygwin64\bin\git.exe --no-pager diff --no-index --color=always -u --ignore-cr-at-eol _build/.sandbox/473ecbd9da7e0a9d558ee1791a4bbdf9/default/tests/bin/distrib-name/run.t _build/.sandbox/473ecbd9da7e0a9d558ee1791a4bbdf9/default/tests/bin/distrib-name/run.t.corrected diff --git a/_build/.sandbox/473ecbd9da7e0a9d558ee1791a4bbdf9/default/tests/bin/distrib-name/run.t b/_build/.sandbox/473ecbd9da7e0a9d558ee1791a4bbdf9/default/tests/bin/distrib-name/run.t.corrected index be7cc96..60d4e95 100644 --- a/_build/.sandbox/473ecbd9da7e0a9d558ee1791a4bbdf9/default/tests/bin/distrib-name/run.t +++ b/_build/.sandbox/473ecbd9da7e0a9d558ee1791a4bbdf9/default/tests/bin/distrib-name/run.t.corrected @@ -36,13 +36,13 @@ Try `dune-release distrib` with no project name, it should fail since it does not know how to call the project. $ dune-release distrib --skip-lint > /dev/null - dune-release: [ERROR] cannot determine distribution name automatically: add (name <name>) to dune-project + dune-release.exe: [ERROR] cannot determine distribution name automatically: add (name <name>) to dune-project [1] dune-release distrib --dry-run with no project name should fail as well. $ dune-release distrib --skip-lint --dry-run > /dev/null - dune-release: [ERROR] cannot determine distribution name automatically: add (name <name>) to dune-project + dune-release.exe: [ERROR] cannot determine distribution name automatically: add (name <name>) to dune-project [1] Add an uncommitted name to dune-project. (Because of a dune limitation @@ -54,13 +54,13 @@ Run dune-release distrib with the uncommitted name in dune-project. $ dune-release tag -y > /dev/null $ dune-release distrib --skip-lint > /dev/null - dune-release: [WARNING] The repo is dirty. Uncommitted changes to files - (including dune-project) will not be included in the - distribution archive. + dune-release.exe: [WARNING] The repo is dirty. Uncommitted changes to files + (including dune-project) will not be included in + the distribution archive. File "dune-project", line 1, characters 0-0: Error: The project name is not defined, please add a (name <name>) field to your dune-project file. - dune-release: [ERROR] run ['dune' 'subst']: exited with 1 + dune-release.exe: [ERROR] run ["dune" "subst"]: exited with 1 [3] Commit the change in dune-project and run distrib. @@ -68,14 +68,5 @@ Commit the change in dune-project and run distrib. $ git add dune-project && git commit -m 'add name' > /dev/null $ dune-release distrib --skip-lint | make_dune_release_deterministic [-] Building source archive - [+] Wrote archive _build/liba-0.42.0-1-<deterministic>.tbz - - [-] Building package in _build/liba-0.42.0-1-<deterministic> - [ OK ] package(s) build - - [-] Running package tests in _build/liba-0.42.0-1-<deterministic> - [ OK ] package(s) pass the tests - - [+] Distribution for liba 0.42.0-1-<deterministic> - [+] Commit <deterministic> - [+] Archive _build/liba-0.42.0-1-<deterministic>.tbz + dune-release.exe: [ERROR] delete directory _build\liba-0.42.0-1-g0867104.build: _build\liba-0.42.0-1-g0867104.build\.git\objects\01\3b84db6175a3e59b93d2327933312f3a6d365d: The directory name is invalid. + File "tests/bin/opam-file-locations/run.t", line 1, characters 0-0: C:\cygwin64\bin\git.exe --no-pager diff --no-index --color=always -u --ignore-cr-at-eol _build/.sandbox/8acef8b37e2d63e817809f14e36d013d/default/tests/bin/opam-file-locations/run.t _build/.sandbox/8acef8b37e2d63e817809f14e36d013d/default/tests/bin/opam-file-locations/run.t.corrected diff --git a/_build/.sandbox/8acef8b37e2d63e817809f14e36d013d/default/tests/bin/opam-file-locations/run.t b/_build/.sandbox/8acef8b37e2d63e817809f14e36d013d/default/tests/bin/opam-file-locations/run.t.corrected index 8ad0657..ec0eccc 100644 --- a/_build/.sandbox/8acef8b37e2d63e817809f14e36d013d/default/tests/bin/opam-file-locations/run.t +++ b/_build/.sandbox/8acef8b37e2d63e817809f14e36d013d/default/tests/bin/opam-file-locations/run.t.corrected @@ -37,17 +37,8 @@ Tagging should work $ dune-release distrib --skip-lint | make_dune_release_deterministic [-] Building source archive - [+] Wrote archive _build/myproject-0.1.0.tbz - - [-] Building package in _build/myproject-0.1.0 - [ OK ] package(s) build - - [-] Running package tests in _build/myproject-0.1.0 - [ OK ] package(s) pass the tests - - [+] Distribution for myproject 0.1.0 - [+] Commit <deterministic> - [+] Archive _build/myproject-0.1.0.tbz + dune-release.exe: [ERROR] delete directory _build\myproject-0.1.0.build: _build\myproject-0.1.0.build\.git\objects\01\3b84db6175a3e59b93d2327933312f3a6d365d: The directory name is invalid. + Now let's move the `.opam` file to the `opam/` subfolder. OPAM supports `.opam` files in the `opam/` subfolder, but for dune to pick it up we need to tell it @@ -86,17 +77,8 @@ And as well have a release tarball $ dune-release distrib --skip-lint | make_dune_release_deterministic [-] Building source archive - [+] Wrote archive _build/myproject-0.2.0.tbz - - [-] Building package in _build/myproject-0.2.0 - [ OK ] package(s) build - - [-] Running package tests in _build/myproject-0.2.0 - [ OK ] package(s) pass the tests - - [+] Distribution for myproject 0.2.0 - [+] Commit <deterministic> - [+] Archive _build/myproject-0.2.0.tbz + dune-release.exe: [ERROR] delete directory _build\myproject-0.2.0.build: _build\myproject-0.2.0.build\.git\objects\01\3b84db6175a3e59b93d2327933312f3a6d365d: The directory name is invalid. + Which contains the `.opam` file in the right location: File "tests/bin/check/run.t", line 1, characters 0-0: C:\cygwin64\bin\git.exe --no-pager diff --no-index --color=always -u --ignore-cr-at-eol _build/.sandbox/3bde0ab1c9c2bcef1ce6db17ab568764/default/tests/bin/check/run.t _build/.sandbox/3bde0ab1c9c2bcef1ce6db17ab568764/default/tests/bin/check/run.t.corrected diff --git a/_build/.sandbox/3bde0ab1c9c2bcef1ce6db17ab568764/default/tests/bin/check/run.t b/_build/.sandbox/3bde0ab1c9c2bcef1ce6db17ab568764/default/tests/bin/check/run.t.corrected index 702b454..71c866a 100644 --- a/_build/.sandbox/3bde0ab1c9c2bcef1ce6db17ab568764/default/tests/bin/check/run.t +++ b/_build/.sandbox/3bde0ab1c9c2bcef1ce6db17ab568764/default/tests/bin/check/run.t.corrected @@ -32,13 +32,13 @@ Test that the lint check produces an error if the change log is missing: [ OK ] The dev-repo field of my_pkg.opam contains a github uri. [ OK ] The dune project contains a name stanza. - [-] Building package in <test_directory> + [-] Building package in C:\Users\opam\src\_build\.sandbox\3bde0ab1c9c2bcef1ce6db17ab568764\default\tests\bin\check [ OK ] package(s) build - [-] Running package tests in <test_directory> + [-] Running package tests in C:\Users\opam\src\_build\.sandbox\3bde0ab1c9c2bcef1ce6db17ab568764\default\tests\bin\check [ OK ] package(s) pass the tests - [-] Performing lint for package my_pkg in <test_directory> + [-] Performing lint for package my_pkg in C:\Users\opam\src\_build\.sandbox\3bde0ab1c9c2bcef1ce6db17ab568764\default\tests\bin\check [FAIL] File README is missing. [FAIL] File LICENSE is missing. [FAIL] File CHANGES is missing. @@ -67,13 +67,13 @@ If the condition described above is fulfilled, there are 5 checks to be performe [ OK ] The dev-repo field of my_pkg.opam contains a github uri. [ OK ] The dune project contains a name stanza. - [-] Building package in <test_directory> + [-] Building package in C:\Users\opam\src\_build\.sandbox\3bde0ab1c9c2bcef1ce6db17ab568764\default\tests\bin\check [ OK ] package(s) build - [-] Running package tests in <test_directory> + [-] Running package tests in C:\Users\opam\src\_build\.sandbox\3bde0ab1c9c2bcef1ce6db17ab568764\default\tests\bin\check [ OK ] package(s) pass the tests - [-] Performing lint for package my_pkg in <test_directory> + [-] Performing lint for package my_pkg in C:\Users\opam\src\_build\.sandbox\3bde0ab1c9c2bcef1ce6db17ab568764\default\tests\bin\check [FAIL] File README is missing. [FAIL] File LICENSE is missing. [ OK ] File CHANGES is present. @@ -108,13 +108,13 @@ In multi package projects, the whole lint process (including the file lints, eve [ OK ] The dev-repo field of my_pkg.opam contains a github uri. [ OK ] The dune project contains a name stanza. - [-] Building package in <test_directory> + [-] Building package in C:\Users\opam\src\_build\.sandbox\3bde0ab1c9c2bcef1ce6db17ab568764\default\tests\bin\check [ OK ] package(s) build - [-] Running package tests in <test_directory> + [-] Running package tests in C:\Users\opam\src\_build\.sandbox\3bde0ab1c9c2bcef1ce6db17ab568764\default\tests\bin\check [ OK ] package(s) pass the tests - [-] Performing lint for package my_pkg in <test_directory> + [-] Performing lint for package my_pkg in C:\Users\opam\src\_build\.sandbox\3bde0ab1c9c2bcef1ce6db17ab568764\default\tests\bin\check [FAIL] File README is missing. [FAIL] File LICENSE is missing. [ OK ] File CHANGES is present. @@ -125,7 +125,7 @@ In multi package projects, the whole lint process (including the file lints, eve [ OK ] Skipping doc field linting, no doc field found [FAIL] lint of <project_dir> and package my_pkg failure: 2 errors. - [-] Performing lint for package my_pkg-sub in <test_directory> + [-] Performing lint for package my_pkg-sub in C:\Users\opam\src\_build\.sandbox\3bde0ab1c9c2bcef1ce6db17ab568764\default\tests\bin\check [FAIL] File README is missing. [FAIL] File LICENSE is missing. [ OK ] File CHANGES is present. @@ -146,10 +146,10 @@ In the same way in which the user can skip the lint check when releasing the tar [ OK ] The dev-repo field of my_pkg.opam contains a github uri. [ OK ] The dune project contains a name stanza. - [-] Building package in <test_directory> + [-] Building package in C:\Users\opam\src\_build\.sandbox\3bde0ab1c9c2bcef1ce6db17ab568764\default\tests\bin\check [ OK ] package(s) build - [-] Running package tests in <test_directory> + [-] Running package tests in C:\Users\opam\src\_build\.sandbox\3bde0ab1c9c2bcef1ce6db17ab568764\default\tests\bin\check [ OK ] package(s) pass the tests [-] Validating change log. @@ -162,7 +162,7 @@ Same for skipping the tests [ OK ] The dev-repo field of my_pkg.opam contains a github uri. [ OK ] The dune project contains a name stanza. - [-] Building package in <test_directory> + [-] Building package in C:\Users\opam\src\_build\.sandbox\3bde0ab1c9c2bcef1ce6db17ab568764\default\tests\bin\check [ OK ] package(s) build [-] Validating change log. @@ -185,10 +185,10 @@ Same for skipping the change log validation [ OK ] The dev-repo field of my_pkg.opam contains a github uri. [ OK ] The dune project contains a name stanza. - [-] Building package in $TESTCASE_ROOT + [-] Building package in C:\Users\opam\src\_build\.sandbox\3bde0ab1c9c2bcef1ce6db17ab568764\default\tests\bin\check [ OK ] package(s) build - [-] Running package tests in $TESTCASE_ROOT + [-] Running package tests in C:\Users\opam\src\_build\.sandbox\3bde0ab1c9c2bcef1ce6db17ab568764\default\tests\bin\check [ OK ] package(s) pass the tests Create a project with an opam file without dev-repo field @@ -304,6 +304,8 @@ The [--working-tree] option used so far, makes `check` be run on the working tre [-] Validating change log. [ OK ] Change log is valid. + [!] Auxiliary directory _build\.dune-release-check could not be deleted: delete directory _build\.dune-release-check: _build\.dune-release-check\.git\objects\01\3b84db6175a3e59b93d2327933312f3a6d365d: The directory name is invalid. + [2] Create an invalid change log file (the title is at the same H level to the rest of the file): @@ -325,8 +327,8 @@ Create an invalid change log file (the title is at the same H level to the rest [-] Validating change log. [FAIL] Change log is not valid. - dune-release: [ERROR] ./ChangeLog: Could not parse change log. - Error while running `check`: ./ChangeLog: Could not parse change log. + dune-release.exe: [ERROR] .\ChangeLog: Could not parse change log. + Error while running `check`: .\ChangeLog: Could not parse change log. [3] Skip the change log check while the change log file is invalid. File "tests/bin/version-from-tag/run.t", line 1, characters 0-0: C:\cygwin64\bin\git.exe --no-pager diff --no-index --color=always -u --ignore-cr-at-eol _build/.sandbox/5b87f1c05ec22d04fa1c209b49f02a89/default/tests/bin/version-from-tag/run.t _build/.sandbox/5b87f1c05ec22d04fa1c209b49f02a89/default/tests/bin/version-from-tag/run.t.corrected diff --git a/_build/.sandbox/5b87f1c05ec22d04fa1c209b49f02a89/default/tests/bin/version-from-tag/run.t b/_build/.sandbox/5b87f1c05ec22d04fa1c209b49f02a89/default/tests/bin/version-from-tag/run.t.corrected index 58cd7ff..64ecf90 100644 --- a/_build/.sandbox/5b87f1c05ec22d04fa1c209b49f02a89/default/tests/bin/version-from-tag/run.t +++ b/_build/.sandbox/5b87f1c05ec22d04fa1c209b49f02a89/default/tests/bin/version-from-tag/run.t.corrected @@ -37,21 +37,21 @@ Creating a `git tag` manually since the project might be using this workflow $ git tag -a 23.0 -m "Release 23.0" $ dune-release distrib --dry-run | grep "Archive _build/" - [+] Archive _build/whatever-23.0.tbz + [1] Also, while not the preferred way, unannotated tags should be possible as well $ git commit --allow-empty -m "Testing" --quiet $ git tag 42.0 $ dune-release distrib --dry-run | grep "Archive _build/" - [+] Archive _build/whatever-42.0.tbz + [1] It should also properly map back tags to releases $ git commit --allow-empty -m "Testing" --quiet $ git tag -a 1337.0_beta1 -m 'Release 1337~beta1' $ dune-release distrib --dry-run | grep "Archive _build/" - [+] Archive _build/whatever-1337.0~beta1.tbz + [1] Also, specifying the tag manually should work @@ -60,4 +60,4 @@ Also, specifying the tag manually should work [-] Using tag "9000_alpha3" [+] Tagged HEAD with version 9000_alpha3 $ dune-release distrib --dry-run | grep "Archive _build/" - [+] Archive _build/whatever-9000~alpha3.tbz + [1] "cd /cygdrive/c/Users/opam/src && opam exec -- dune build @install @check @runtest && rm -rf _build" failed with exit status 1 2024-11-20 00:34.51: Job failed: Failed: Build failed