Organisationsjeffa5ocaml-grpcefd6db (master)windows-server-2022-5.2_opam-2.2

windows-server-2022-5.2_opam-2.2

Logs

Show full logs
2024-10-28 14:47.58: New job: test jeffa5/ocaml-grpc https://github.com/jeffa5/ocaml-grpc.git#refs/heads/master (efd6dbfc2d044fef97b122f831a8c162d9d46625) (test:windows-server-2022-5.2_opam-2.2)
Base: windows-server-2022-ocaml-5.2
Opam project build

To reproduce locally:

git clone --recursive "https://github.com/jeffa5/ocaml-grpc.git" -b "master" && cd "ocaml-grpc" && git reset --hard efd6dbfc
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM windows-server-2022-ocaml-5.2
# windows-server-2022-5.2_opam-2.2
USER 1000:1000
ENV CLICOLOR_FORCE="1"
ENV OPAMCOLOR="always"
RUN ln -f /usr/bin/opam-2.2 /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 63cfa2da7451530777c99ac51ebfc3a717cff962 || git fetch origin master) && git reset -q --hard 63cfa2da7451530777c99ac51ebfc3a717cff962 && git log --no-decorate -n1 --oneline && opam update -u
COPY --chown=1000:1000 grpc.opam grpc-lwt.opam /Users/opam/Documents/./
RUN opam pin add -yn grpc.dev '/Users/opam/Documents/./' && \
    opam pin add -yn grpc-lwt.dev '/Users/opam/Documents/./'
ENV DEPS="angstrom.0.16.1 arch-x86_64.1 base-bigarray.base base-bytes.base base-domains.base base-nnp.base base-threads.base base-unix.base base64.3.5.1 bigstringaf.0.10.0 conf-mingw-w64-gcc-x86_64.1 cppo.1.7.0 csexp.1.5.2 dune.3.16.0 dune-configurator.3.16.0 faraday.0.8.2 flexdll.0.43 h2.dev host-arch-x86_64.1 host-system-mingw.1 hpack.0.13.0 httpaf.0.7.1 lwt.5.8.0 mingw-w64-shims.0.2.0 ocaml.5.2.0 ocaml-base-compiler.5.2.0 ocaml-config.3 ocaml-env-mingw64.1 ocaml-options-vanilla.1 ocaml-protoc.3.1.1 ocaml-syntax-shims.1.0.0 ocamlfind.1.9.5 ocplib-endian.1.2 pbrt.3.1.1 psq.0.2.1 result.1.5 seq.base stdlib-shims.0.3.0 stringext.1.6.0 system-mingw.1 uri.4.4.0"
ENV CI="true"
ENV OCAMLCI="true"
RUN opam update --depexts && opam install --cli=2.2 --depext-only -y grpc.dev grpc-lwt.dev $DEPS
RUN opam install $DEPS
COPY --chown=1000:1000 . /Users/opam/Documents
RUN cd /cygdrive/c/Users/opam/Documents && opam exec -- dune build @install @check @runtest && rm -rf _build

END-OF-DOCKERFILE
docker build .
END-REPRO-BLOCK

2024-10-28 14:47.58: Using cache hint "jeffa5/ocaml-grpc-windows-server-2022-ocaml-5.2-windows-server-2022-5.2_opam-2.2-cbdec63aeeedc571d348ef01c0eb3b33"
2024-10-28 14:47.58: Using OBuilder spec:
((from windows-server-2022-ocaml-5.2)
 (comment windows-server-2022-5.2_opam-2.2)
 (user (uid 1000) (gid 1000))
 (env CLICOLOR_FORCE 1)
 (env OPAMCOLOR always)
 (run (shell "ln -f /usr/bin/opam-2.2 /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 63cfa2da7451530777c99ac51ebfc3a717cff962 || git fetch origin master) && git reset -q --hard 63cfa2da7451530777c99ac51ebfc3a717cff962 && git log --no-decorate -n1 --oneline && opam update -u"))
 (copy (src grpc.opam grpc-lwt.opam) (dst /Users/opam/Documents/./))
 (run (network host)
      (shell  "opam pin add -yn grpc.dev '/Users/opam/Documents/./' && \
             \nopam pin add -yn grpc-lwt.dev '/Users/opam/Documents/./'"))
 (env DEPS "angstrom.0.16.1 arch-x86_64.1 base-bigarray.base base-bytes.base base-domains.base base-nnp.base base-threads.base base-unix.base base64.3.5.1 bigstringaf.0.10.0 conf-mingw-w64-gcc-x86_64.1 cppo.1.7.0 csexp.1.5.2 dune.3.16.0 dune-configurator.3.16.0 faraday.0.8.2 flexdll.0.43 h2.dev host-arch-x86_64.1 host-system-mingw.1 hpack.0.13.0 httpaf.0.7.1 lwt.5.8.0 mingw-w64-shims.0.2.0 ocaml.5.2.0 ocaml-base-compiler.5.2.0 ocaml-config.3 ocaml-env-mingw64.1 ocaml-options-vanilla.1 ocaml-protoc.3.1.1 ocaml-syntax-shims.1.0.0 ocamlfind.1.9.5 ocplib-endian.1.2 pbrt.3.1.1 psq.0.2.1 result.1.5 seq.base stdlib-shims.0.3.0 stringext.1.6.0 system-mingw.1 uri.4.4.0")
 (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.2 --depext-only -y grpc.dev grpc-lwt.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/Documents))
 (run (shell "cd /cygdrive/c/Users/opam/Documents && opam exec -- dune build @install @check @runtest && rm -rf _build"))
)

2024-10-28 14:47.58: Waiting for resource in pool OCluster
2024-10-28 18:04.36: Waiting for worker…
2024-10-28 21:12.29: Got resource from pool OCluster
Building on odawa
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint: 
hint: 	git config --global init.defaultBranch <name>
hint: 
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint: 
hint: 	git branch -m <name>
Initialized empty Git repository in /data/obuilder/git/ocaml-grpc.git-62d5813d17840b219d14092379bace169379c127/.git/
HEAD is now at efd6dbf Update h2 src

(from windows-server-2022-ocaml-5.2)
2024-10-28 21:12.30 ---> using "d06d42c2ce15c2a01b42f8b17cebab1b932321c607f2ddc4dd5ddd2822e824d3" from cache

/: (comment windows-server-2022-5.2_opam-2.2)

/: (user (uid 1000) (gid 1000))

/: (env CLICOLOR_FORCE 1)

/: (env OPAMCOLOR always)

/: (run (shell "ln -f /usr/bin/opam-2.2 /usr/bin/opam"))
2024-10-28 21:12.30 ---> using "07caa043e99d274e8f5c24f90a23801bfecd8668fdfc89cbec291632f95cbe1d" 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-10-28 21:12.30 ---> using "48ce3edf601a937b33429fd277fc6d82f6328efd928637b9587c355ec03792b9" 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.0
2.2.1
2024-10-28 21:12.30 ---> using "51ad9d179da4b254f08dbbab0e5e269388b9181b90328f4f7a98acabc90e86a1" 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 63cfa2da7451530777c99ac51ebfc3a717cff962 || git fetch origin master) && git reset -q --hard 63cfa2da7451530777c99ac51ebfc3a717cff962 && git log --no-decorate -n1 --oneline && opam update -u"))
63cfa2da74 Merge pull request #26797 from raphael-proust/lwt-5-8-0-is-ok-on-windows

<><> 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.
# Run eval $(opam env) to update the current shell environment
2024-10-28 21:12.30 ---> using "434550567831809aeb0191fc9c47dae367e2c6f1fff71179bada7b3855066961" from cache

/: (copy (src grpc.opam grpc-lwt.opam) (dst /Users/opam/Documents/./))
2024-10-28 21:12.31 ---> saved as "49934970278ff87158d9df9ac7280504c3b0607a7a4032947f655d2ae416d43e"

/: (run (network host)
        (shell  "opam pin add -yn grpc.dev '/Users/opam/Documents/./' && \
               \nopam pin add -yn grpc-lwt.dev '/Users/opam/Documents/./'"))
[grpc.dev] synchronised (file://C:/Users/opam/Documents/.)
grpc is now pinned to file://C:/Users/opam/Documents/. (version dev)
[grpc-lwt.dev] synchronised (file://C:/Users/opam/Documents/.)
The following additional pinnings are required by grpc-lwt.dev:
  - h2.dev at git+https://github.com/anmonteiro/ocaml-h2#7df18604ae389e3151f79e2be5dfd4278d4377fb
Pin and install them? [y/n] y
[ERROR] Could not synchronize C:\Users\opam\AppData\Local\opam\5.2.0\.opam-switch\sources\h2 from "git+https://github.com/anmonteiro/ocaml-h2#7df18604ae389e3151f79e2be5dfd4278d4377fb":
        C:\cygwin64\bin\opam.exe: "mkdir" failed on C:\Users\opam\AppData\Local\opam\download-cache\git: No such file or directory
Could not retrieve some package sources, they will not be pinned nor installed:
  - h2:git+https://github.com/anmonteiro/ocaml-h2#7df18604ae389e3151f79e2be5dfd4278d4377fb

Continue anyway? [y/n] y
grpc-lwt is now pinned to file://C:/Users/opam/Documents/. (version dev)
2024-10-28 21:12.47 ---> saved as "6604e46dfb6dd86c0b1d4dea6a6cc448d2af3e0230da35e490323cc33c488515"

/: (env DEPS "angstrom.0.16.1 arch-x86_64.1 base-bigarray.base base-bytes.base base-domains.base base-nnp.base base-threads.base base-unix.base base64.3.5.1 bigstringaf.0.10.0 conf-mingw-w64-gcc-x86_64.1 cppo.1.7.0 csexp.1.5.2 dune.3.16.0 dune-configurator.3.16.0 faraday.0.8.2 flexdll.0.43 h2.dev host-arch-x86_64.1 host-system-mingw.1 hpack.0.13.0 httpaf.0.7.1 lwt.5.8.0 mingw-w64-shims.0.2.0 ocaml.5.2.0 ocaml-base-compiler.5.2.0 ocaml-config.3 ocaml-env-mingw64.1 ocaml-options-vanilla.1 ocaml-protoc.3.1.1 ocaml-syntax-shims.1.0.0 ocamlfind.1.9.5 ocplib-endian.1.2 pbrt.3.1.1 psq.0.2.1 result.1.5 seq.base stdlib-shims.0.3.0 stringext.1.6.0 system-mingw.1 uri.4.4.0")

/: (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.2 --depext-only -y grpc.dev grpc-lwt.dev $DEPS"))
[ERROR] Package h2 has no version dev.
"/usr/bin/env" "bash" "-c" "opam update --depexts && opam install --cli=2.2 --depext-only -y grpc.dev grpc-lwt.dev $DEPS" failed with exit status 5
2024-10-28 21:13.11: Job failed: Failed: Build failed