Organisationsygrekocurlf2abf6 ()fedora-40-4.14_opam-2.3

fedora-40-4.14_opam-2.3

Link Copied
Code Copied

Logs

2025-03-06 15:05.58: New job: test ygrek/ocurl https://github.com/ygrek/ocurl.git#refs/heads/master (f2abf6c99ab02d9be7ec21d66272dc6ad10a4efa) (linux-x86_64:fedora-40-4.14_opam-2.3)
Base: ocaml/opam:fedora-40-ocaml-4.14@sha256:77ad6f4547bb06a0f441b2695b26de34aaf2216789faa9b817d3af6b0a834286
Opam project build


To reproduce locally:


git clone --recursive "https://github.com/ygrek/ocurl.git" -b "master" && cd "ocurl" && git reset --hard f2abf6c9
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:fedora-40-ocaml-4.14@sha256:77ad6f4547bb06a0f441b2695b26de34aaf2216789faa9b817d3af6b0a834286
# fedora-40-4.14_opam-2.3
USER 1000:1000
ENV CLICOLOR_FORCE="1"
ENV OPAMCOLOR="always"
WORKDIR /src
RUN sudo dnf install -y findutils
RUN sudo ln -f /usr/bin/opam-2.3 /usr/bin/opam
RUN opam init --reinit -ni
RUN uname -rs && opam exec -- ocaml -version && opam --version
WORKDIR /src
RUN sudo chown opam /src
RUN cd ~/opam-repository && (git cat-file -e 914c0f050a68b562a16447bff36bf24527c68ef1 || git fetch origin master) && git reset -q --hard 914c0f050a68b562a16447bff36bf24527c68ef1 && git log --no-decorate -n1 --oneline && opam update -u
COPY --chown=1000:1000 ocurl.opam curl_lwt.opam curl.opam ./
RUN opam pin add -yn ocurl.dev './' && \
opam pin add -yn curl_lwt.dev './' && \
opam pin add -yn curl.dev './'
RUN echo '(lang dune 3.0)' > './dune-project'
ENV DEPS="base-bigarray.base base-bytes.base base-threads.base base-unix.base conf-libcurl.2 cppo.1.8.0 csexp.1.5.2 dune.3.17.2 dune-configurator.3.17.2 lwt.5.9.0 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-config.2 ocaml-options-vanilla.1 ocamlfind.1.9.8 ocplib-endian.1.2"
ENV CI="true"
ENV OCAMLCI="true"
RUN opam update --depexts && opam install --cli=2.3 --depext-only -y ocurl.dev curl_lwt.dev curl.dev $DEPS
RUN opam install $DEPS
COPY --chown=1000:1000 . /src
RUN opam exec -- dune build @install @check @runtest && rm -rf _build


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


2025-03-06 15:05.58: Using cache hint "ygrek/ocurl-ocaml/opam:fedora-40-ocaml-4.14@sha256:77ad6f4547bb06a0f441b2695b26de34aaf2216789faa9b817d3af6b0a834286-fedora-40-4.14_opam-2.3-dad572a5d7851bfe3055b7de6706deea"
2025-03-06 15:05.58: Using OBuilder spec:
((from ocaml/opam:fedora-40-ocaml-4.14@sha256:77ad6f4547bb06a0f441b2695b26de34aaf2216789faa9b817d3af6b0a834286)
(comment fedora-40-4.14_opam-2.3)
(user (uid 1000) (gid 1000))
(env CLICOLOR_FORCE 1)
(env OPAMCOLOR always)
(workdir /src)
(run (network host)
(shell "sudo dnf install -y findutils"))
(run (shell "sudo 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"))
(workdir /src)
(run (shell "sudo chown opam /src"))
(run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e 914c0f050a68b562a16447bff36bf24527c68ef1 || git fetch origin master) && git reset -q --hard 914c0f050a68b562a16447bff36bf24527c68ef1 && git log --no-decorate -n1 --oneline && opam update -u"))
(copy (src ocurl.opam curl_lwt.opam curl.opam) (dst ./))
(run (network host)
(shell  "opam pin add -yn ocurl.dev './' && \
\nopam pin add -yn curl_lwt.dev './' && \
\nopam pin add -yn curl.dev './'"))
(run (network host)
(shell "echo '(lang dune 3.0)' > './dune-project'"))
(env DEPS "base-bigarray.base base-bytes.base base-threads.base base-unix.base conf-libcurl.2 cppo.1.8.0 csexp.1.5.2 dune.3.17.2 dune-configurator.3.17.2 lwt.5.9.0 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-config.2 ocaml-options-vanilla.1 ocamlfind.1.9.8 ocplib-endian.1.2")
(env CI true)
(env OCAMLCI true)
(run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam update --depexts && opam install --cli=2.3 --depext-only -y ocurl.dev curl_lwt.dev curl.dev $DEPS"))
(run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam install $DEPS"))
(copy (src .) (dst /src))
(run (shell "opam exec -- dune build @install @check @runtest && rm -rf _build"))
)


2025-03-06 15:05.58: Waiting for resource in pool OCluster
2025-03-06 19:38.33: Waiting for worker…
2025-03-06 19:46.07: Got resource from pool OCluster
Building on x86-bm-c7.sw.ocaml.org
All commits already cached
HEAD is now at f2abf6c Update the changelog


(from ocaml/opam:fedora-40-ocaml-4.14@sha256:77ad6f4547bb06a0f441b2695b26de34aaf2216789faa9b817d3af6b0a834286)
Unable to find image 'ocaml/opam:fedora-40-ocaml-4.14@sha256:77ad6f4547bb06a0f441b2695b26de34aaf2216789faa9b817d3af6b0a834286' locally
docker.io/ocaml/opam@sha256:77ad6f4547bb06a0f441b2695b26de34aaf2216789faa9b817d3af6b0a834286: Pulling from ocaml/opam
e4441d92e333: Pulling fs layer
e4441d92e333: Verifying Checksum
e4441d92e333: Download complete
e4441d92e333: Pull complete
Digest: sha256:77ad6f4547bb06a0f441b2695b26de34aaf2216789faa9b817d3af6b0a834286
Status: Downloaded newer image for ocaml/opam@sha256:77ad6f4547bb06a0f441b2695b26de34aaf2216789faa9b817d3af6b0a834286
2025-03-06 19:46.08 ---> using "f105e4e30775553f0b3ae7e35eb670a3216449a9a4e5074c5d10d39f44f24cc8" from cache


/: (comment fedora-40-4.14_opam-2.3)


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


/: (env CLICOLOR_FORCE 1)


/: (env OPAMCOLOR always)


/: (workdir /src)


/src: (run (network host)
(shell "sudo dnf install -y findutils"))
Fedora 40 - x86_64                              289 kB/s |  27 kB     00:00
Fedora 40 openh264 (From Cisco) - x86_64         13 kB/s | 989  B     00:00
Fedora 40 - x86_64 - Updates                    269 kB/s |  25 kB     00:00
Fedora 40 - x86_64 - Updates                    4.6 MB/s | 5.7 MB     00:01
Package findutils-1:4.9.0-9.fc40.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
2025-03-06 19:46.08 ---> using "047c8883fe0f1a91046fb1ee8d8ca801d20ef4b8d390962d0eddb45773f53595" from cache


/src: (run (shell "sudo ln -f /usr/bin/opam-2.3 /usr/bin/opam"))
2025-03-06 19:46.08 ---> using "b92afd694db737b8e9e7dddee2e1253a86fd1c2d2a97a6aafeecbc229dfd5e2a" from cache


/src: (run (shell "opam init --reinit -ni"))
Configuring from /home/opam/.opamrc and then from built-in defaults.
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.


This development version of opam requires an update to the layout of /home/opam/.opam from version 2.0 to version 2.2, which can't be reverted.
You may want to back it up before going further.


Continue? [y/n] y
[NOTE] The 'jobs' option was reset, its value was 39 and its new value will vary according to the current number of cores on your machine. You can restore the fixed value using:
opam option jobs=39 --global
Format upgrade done.


<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[ERROR] Could not update repository "opam-repository-archive": "/usr/bin/git fetch -q" exited with code 128 "fatal: unable to access 'https://github.com/ocaml/opam-repository-archive/': Could not resolve host: github.com"
[default] synchronised from file:///home/opam/opam-repository
2025-03-06 19:46.08 ---> using "daf363493582ffd967f3ffc3a59bf7297d103a83f6009e7e0c29eda2b5c14b71" from cache


/src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 5.15.0-134-generic
The OCaml toplevel, version 4.14.2
2.3.0
2025-03-06 19:46.08 ---> using "a27d285ce16427d15feb228731cb0969a65a346ef074c0c67d74670256b531b9" from cache


/src: (workdir /src)


/src: (run (shell "sudo chown opam /src"))
2025-03-06 19:46.08 ---> using "3449d17ecd8d442aad48ac971807f1fea648f2a50c48838bff0e498e86b614f8" from cache


/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e 914c0f050a68b562a16447bff36bf24527c68ef1 || git fetch origin master) && git reset -q --hard 914c0f050a68b562a16447bff36bf24527c68ef1 && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
* branch                  master     -> FETCH_HEAD
94514fa0d0..8707d628f2  master     -> origin/master
914c0f050a Merge pull request #27576 from ocaml/adding-maintenance-intent-to-lwt


<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[opam-repository-archive] synchronised from git+https://github.com/ocaml/opam-repository-archive
[default] synchronised from file:///home/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)
2025-03-06 19:47.19 ---> saved as "8c2b0187de9dc5c83ecf1b58cb204ac1a2a3c6e7f1a8be969589fd8f34456a0d"


/src: (copy (src ocurl.opam curl_lwt.opam curl.opam) (dst ./))
2025-03-06 19:47.19 ---> saved as "2bae37739aa5d266685acf408adfc44ed1e245286b4c90376e95ca9e235b7d3b"


/src: (run (network host)
(shell  "opam pin add -yn ocurl.dev './' && \
\nopam pin add -yn curl_lwt.dev './' && \
\nopam pin add -yn curl.dev './'"))
[ocurl.dev] synchronised (file:///src)
ocurl is now pinned to file:///src (version dev)
Package curl_lwt does not exist, create as a NEW package? [y/n] y
[curl_lwt.dev] synchronised (file:///src)
curl_lwt is now pinned to file:///src (version dev)
Package curl does not exist, create as a NEW package? [y/n] y
[curl.dev] synchronised (file:///src)
curl is now pinned to file:///src (version dev)
2025-03-06 19:47.22 ---> saved as "9ee49a0b54f36c2b6c6202f6af7e812a3742697799aa280bd6e356f0e2833889"


/src: (run (network host)
(shell "echo '(lang dune 3.0)' > './dune-project'"))
2025-03-06 19:47.22 ---> saved as "1ae5d65b42b8c0ddaeabc8ab62e4267a4589dcc0c2667a04ceaa928d2309ac5a"


/src: (env DEPS "base-bigarray.base base-bytes.base base-threads.base base-unix.base conf-libcurl.2 cppo.1.8.0 csexp.1.5.2 dune.3.17.2 dune-configurator.3.17.2 lwt.5.9.0 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-config.2 ocaml-options-vanilla.1 ocamlfind.1.9.8 ocplib-endian.1.2")


/src: (env CI true)


/src: (env OCAMLCI true)


/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam update --depexts && opam install --cli=2.3 --depext-only -y ocurl.dev curl_lwt.dev curl.dev $DEPS"))
+ /usr/bin/sudo "yum" "makecache"
- Fedora 40 - x86_64                              292 kB/s |  27 kB     00:00
- Fedora 40 openh264 (From Cisco) - x86_64         14 kB/s | 989  B     00:00
- Fedora 40 - x86_64 - Updates                    286 kB/s |  25 kB     00:00
- Metadata cache created.


<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[curl.dev] synchronised (file:///src)
[curl_lwt.dev] synchronised (file:///src)
[ocurl.dev] synchronised (file:///src)


[NOTE] Package ocaml-options-vanilla is already installed (current version is 1).
[NOTE] Package ocaml-config is already installed (current version is 2).
[NOTE] Package ocaml-base-compiler is already installed (current version is 4.14.2).
[NOTE] Package ocaml is already installed (current version is 4.14.2).
[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-bigarray is already installed (current version is base).


The following system packages will first need to be installed:
libcurl-devel


<><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><>


+ /usr/bin/sudo "yum" "install" "-y" "libcurl-devel"
- Last metadata expiration check: 0:00:17 ago on Thu Mar  6 19:47:23 2025.
- Dependencies resolved.
- ================================================================================
-  Package              Architecture  Version                Repository      Size
- ================================================================================
- Installing:
-  libcurl-devel        x86_64        8.6.0-10.fc40          updates        851 k
- 
- Transaction Summary
- ================================================================================
- Install  1 Package
- 
- Total download size: 851 k
- Installed size: 1.2 M
- Downloading Packages:
- libcurl-devel-8.6.0-10.fc40.x86_64.rpm          5.3 MB/s | 851 kB     00:00
- --------------------------------------------------------------------------------
- Total                                           2.4 MB/s | 851 kB     00:00
- Running transaction check
- Transaction check succeeded.
- Running transaction test
- Transaction test succeeded.
- Running transaction
-   Preparing        :                                                        1/1
-   Installing       : libcurl-devel-8.6.0-10.fc40.x86_64                     1/1
-   Running scriptlet: libcurl-devel-8.6.0-10.fc40.x86_64                     1/1
- 
- Installed:
-   libcurl-devel-8.6.0-10.fc40.x86_64
- 
- Complete!
+ /usr/bin/rpm "-q" "--whatprovides" "libcurl-devel"
- libcurl-devel-8.6.0-10.fc40.x86_64
2025-03-06 19:47.42 ---> saved as "a453dd599b9761a863277996937f076e10ba98a845afef6015aa6b026fb68ed9"


/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam install $DEPS"))
[NOTE] Package ocaml-options-vanilla is already installed (current version is 1).
[NOTE] Package ocaml-config is already installed (current version is 2).
[NOTE] Package ocaml-base-compiler is already installed (current version is 4.14.2).
[NOTE] Package ocaml is already installed (current version is 4.14.2).
[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-bigarray is already installed (current version is base).
The following actions will be performed:
=== install 9 packages
- install base-bytes        base
- install conf-libcurl      2
- install cppo              1.8.0
- install csexp             1.5.2
- install dune              3.17.2
- install dune-configurator 3.17.2
- install lwt               5.9.0
- install ocamlfind         1.9.8
- install ocplib-endian     1.2


<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved cppo.1.8.0  (cached)
-> retrieved csexp.1.5.2  (cached)
-> installed conf-libcurl.2
-> retrieved lwt.5.9.0  (cached)
-> retrieved ocamlfind.1.9.8  (cached)
-> retrieved ocplib-endian.1.2  (cached)
-> retrieved dune.3.17.2, dune-configurator.3.17.2  (cached)
-> installed ocamlfind.1.9.8
-> installed base-bytes.base
-> installed dune.3.17.2
-> installed csexp.1.5.2
-> installed cppo.1.8.0
-> installed ocplib-endian.1.2
-> installed dune-configurator.3.17.2
-> installed lwt.5.9.0
Done.
# To update the current shell environment, run: eval $(opam env)
2025-03-06 19:48.46 ---> saved as "74e40e43e5e70b67f88994e00bb0637b1e35fdf0fdce44642b49f9f88816ead1"


/src: (copy (src .) (dst /src))
2025-03-06 19:48.46 ---> saved as "801b7ea366c4d514327e657795e9bb2adcdffe5acb4432e4ee524532996a5f32"


/src: (run (shell "opam exec -- dune build @install @check @runtest && rm -rf _build"))
File "examples/dune", line 32, characters 18-25:
32 |  (preprocess (pps lwt_ppx))
^^^^^^^
Error: Library "lwt_ppx" not found.
-> required by
_build/default/examples/.merlin-conf/exe-test_lwt-0dcf2dfa4ae9573d2c95196fdb3fad76
-> required by alias examples/check
(cd _build/default && /home/opam/.opam/4.14/bin/ocamlc.opt -w @1..3@5..28@30..39@43@46..47@49..57@61..62-40 -strict-sequence -strict-formats -short-paths -keep-locs -w +a-4-42-69-70 -warn-error -a+31 -g -bin-annot -I examples/.ocurl.eobjs/byte -I .curl.objs/byte -intf-suffix .ml -no-alias-deps -opaque -open Dune__exe -o examples/.ocurl.eobjs/byte/dune__exe__Ocurl.cmo -c -impl examples/ocurl.ml)
File "examples/ocurl.ml", line 21, characters 4-14:
21 | let getContent connection url =
^^^^^^^^^^
Warning 32 [unused-value-declaration]: unused value getContent.
(cd _build/default && /home/opam/.opam/4.14/bin/ocamlc.opt -w @1..3@5..28@30..39@43@46..47@49..57@61..62-40 -strict-sequence -strict-formats -short-paths -keep-locs -w +a-4-42-69-70 -warn-error -a+31 -g -bin-annot -I examples/.opar.eobjs/byte -I /home/opam/.opam/4.14/lib/ocaml/threads -I .curl.objs/byte -intf-suffix .ml -no-alias-deps -opaque -open Dune__exe -o examples/.opar.eobjs/byte/dune__exe__Opar.cmo -c -impl examples/opar.ml)
File "examples/opar.ml", line 9, characters 4-17:
9 | let show_progress fname conn =
^^^^^^^^^^^^^
Warning 32 [unused-value-declaration]: unused value show_progress.
(cd _build/default/examples && ./test_cb_exn.exe)
E: wrong error: CURLE_COULDNT_RESOLVE_HOST Couldn't resolve host name : Could not resolve host: google.com
E: wrong error: CURLE_COULDNT_RESOLVE_HOST Couldn't resolve host name : Could not resolve host: google.com
(cd _build/default/examples && ./test_memory_leaks.exe)
RSS 7176192 -> 12611584 OK
RSS 12611584 -> 13004800 OK
RSS 13004800 -> 14274560 OK
"/usr/bin/env" "bash" "-c" "opam exec -- dune build @install @check @runtest && rm -rf _build" failed with exit status 1
2025-03-06 19:48.51: Job failed: Failed: Build failed