Organisationsahrefsdevkit6b5e77 (master)alpine-3.21-4.14_opam-2.3

alpine-3.21-4.14_opam-2.3

Link Copied
Code Copied

Logs

2025-04-17 14:56.10: New job: test ahrefs/devkit https://github.com/ahrefs/devkit.git#refs/heads/master (6b5e77c0ae57e2195d89a0d9dfd6aa74f478ef1f) (linux-x86_64:alpine-3.21-4.14_opam-2.3)
Base: ocaml/opam:alpine-3.21-ocaml-4.14@sha256:700cef7086e5ab8f24a42fb371b7be0855051db65c822dc447f90adc9609dbb7
Opam project build


To reproduce locally:


git clone --recursive "https://github.com/ahrefs/devkit.git" -b "master" && cd "devkit" && git reset --hard 6b5e77c0
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:alpine-3.21-ocaml-4.14@sha256:700cef7086e5ab8f24a42fb371b7be0855051db65c822dc447f90adc9609dbb7
# alpine-3.21-4.14_opam-2.3
USER 1000:1000
ENV CLICOLOR_FORCE="1"
ENV OPAMCOLOR="always"
WORKDIR /src
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 442eddb8a363418dcb02e519972818da08bb7cd4 || git fetch origin master) && git reset -q --hard 442eddb8a363418dcb02e519972818da08bb7cd4 && git log --no-decorate -n1 --oneline && opam update -u
COPY --chown=1000:1000 devkit.opam ./
RUN opam pin add -yn devkit.dev './'
RUN echo '(lang dune 3.0)' > './dune-project'
ENV DEPS="base-bigarray.base base-bytes.base base-threads.base base-unix.base camlzip.1.13 conf-libcurl.2 conf-libevent.1 conf-libpcre.2 conf-pkg-config.4 conf-zlib.1 cppo.1.8.0 csexp.1.5.2 dune.3.18.1 dune-configurator.3.18.1 extlib.1.8.0 extunix.0.4.3 libevent.0.9.0 lwt.5.9.1 lwt_ppx.5.9.1 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-compiler-libs.v0.12.4 ocaml-config.2 ocaml-options-vanilla.1 ocamlfind.1.9.8 ocplib-endian.1.2 ocurl.0.9.2 ounit2.2.2.7 pcre.8.0.3 ppx_derivers.1.2.1 ppxlib.0.35.0 seq.base sexplib0.v0.17.0 stdlib-shims.0.3.0 trace.0.9.1 yojson.2.2.2"
ENV CI="true"
ENV OCAMLCI="true"
RUN opam update --depexts && opam install --cli=2.3 --depext-only -y devkit.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-04-17 14:56.10: Using cache hint "ahrefs/devkit-ocaml/opam:alpine-3.21-ocaml-4.14@sha256:700cef7086e5ab8f24a42fb371b7be0855051db65c822dc447f90adc9609dbb7-alpine-3.21-4.14_opam-2.3-fd16c04821fa0ebd0fc1a32c4337c6fe"
2025-04-17 14:56.10: Using OBuilder spec:
((from ocaml/opam:alpine-3.21-ocaml-4.14@sha256:700cef7086e5ab8f24a42fb371b7be0855051db65c822dc447f90adc9609dbb7)
(comment alpine-3.21-4.14_opam-2.3)
(user (uid 1000) (gid 1000))
(env CLICOLOR_FORCE 1)
(env OPAMCOLOR always)
(workdir /src)
(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 442eddb8a363418dcb02e519972818da08bb7cd4 || git fetch origin master) && git reset -q --hard 442eddb8a363418dcb02e519972818da08bb7cd4 && git log --no-decorate -n1 --oneline && opam update -u"))
(copy (src devkit.opam) (dst ./))
(run (network host)
(shell "opam pin add -yn devkit.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 camlzip.1.13 conf-libcurl.2 conf-libevent.1 conf-libpcre.2 conf-pkg-config.4 conf-zlib.1 cppo.1.8.0 csexp.1.5.2 dune.3.18.1 dune-configurator.3.18.1 extlib.1.8.0 extunix.0.4.3 libevent.0.9.0 lwt.5.9.1 lwt_ppx.5.9.1 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-compiler-libs.v0.12.4 ocaml-config.2 ocaml-options-vanilla.1 ocamlfind.1.9.8 ocplib-endian.1.2 ocurl.0.9.2 ounit2.2.2.7 pcre.8.0.3 ppx_derivers.1.2.1 ppxlib.0.35.0 seq.base sexplib0.v0.17.0 stdlib-shims.0.3.0 trace.0.9.1 yojson.2.2.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 devkit.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-04-17 14:56.10: Waiting for resource in pool OCluster
2025-04-17 15:17.45: Waiting for worker…
2025-04-17 15:25.32: Got resource from pool OCluster
Building on x86-bm-c1.sw.ocaml.org
All commits already cached
HEAD is now at 6b5e77c Merge pull request #43 from davesnx/support-http-11-header


(from ocaml/opam:alpine-3.21-ocaml-4.14@sha256:700cef7086e5ab8f24a42fb371b7be0855051db65c822dc447f90adc9609dbb7)
2025-04-17 15:26.30 ---> saved as "bd1a6ff8682763d02f6ea8340f8477bfdb4114ca8e4b584f0035829bd3e9edc4"


/: (comment alpine-3.21-4.14_opam-2.3)


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


/: (env CLICOLOR_FORCE 1)


/: (env OPAMCOLOR always)


/: (workdir /src)


/src: (run (shell "sudo ln -f /usr/bin/opam-2.3 /usr/bin/opam"))
2025-04-17 15:26.30 ---> saved as "08c106e1fd4eef95987d27e165990d0c74b35ad9f7a61009de6001a3d005ab04"


/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 255 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=255 --global
Format upgrade done.


<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
2025-04-17 15:27.11 ---> saved as "e8352a7a53aae8114c97e90fe3f55bd8ec6747332e12685369d3d9e02c6c40fa"


/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-04-17 15:27.11 ---> saved as "25045813cb5a43ee93f95304cadfb7b2589580ddea10628f152e811a80f14ca2"


/src: (workdir /src)


/src: (run (shell "sudo chown opam /src"))
2025-04-17 15:27.12 ---> saved as "6363480d1e2bf665740aef6bfc75f8a23b62fb1eacfd7ceba5ca33df765d69a6"


/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e 442eddb8a363418dcb02e519972818da08bb7cd4 || git fetch origin master) && git reset -q --hard 442eddb8a363418dcb02e519972818da08bb7cd4 && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
* branch                  master     -> FETCH_HEAD
da74d7829f..9b3a0a13cf  master     -> origin/master
442eddb8a3 Merge pull request #27761 from maiste/release-dune-3.18.1


<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from git+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-04-17 15:27.56 ---> saved as "e1ddbe818196d847bb5507aea3663fc6106b20a3a95d4cdb40cf7b3041cd76fc"


/src: (copy (src devkit.opam) (dst ./))
2025-04-17 15:27.56 ---> saved as "56cd70dd61c4e19a9f4e67c66c0a7b236d1cce02e128298d6224867ce01182e3"


/src: (run (network host)
(shell "opam pin add -yn devkit.dev './'"))
[devkit.dev] synchronised (file:///src)
devkit is now pinned to file:///src (version dev)
2025-04-17 15:28.03 ---> saved as "7eeb67737b6fcb3b8e1761f32636d66c107d19d4d390cd3ee0846aca36af7b3a"


/src: (run (network host)
(shell "echo '(lang dune 3.0)' > './dune-project'"))
2025-04-17 15:28.03 ---> saved as "d955321f9230b51241c2a84ac4b7267839b43fb8e94ab43e5cffa20c390d7b25"


/src: (env DEPS "base-bigarray.base base-bytes.base base-threads.base base-unix.base camlzip.1.13 conf-libcurl.2 conf-libevent.1 conf-libpcre.2 conf-pkg-config.4 conf-zlib.1 cppo.1.8.0 csexp.1.5.2 dune.3.18.1 dune-configurator.3.18.1 extlib.1.8.0 extunix.0.4.3 libevent.0.9.0 lwt.5.9.1 lwt_ppx.5.9.1 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-compiler-libs.v0.12.4 ocaml-config.2 ocaml-options-vanilla.1 ocamlfind.1.9.8 ocplib-endian.1.2 ocurl.0.9.2 ounit2.2.2.7 pcre.8.0.3 ppx_derivers.1.2.1 ppxlib.0.35.0 seq.base sexplib0.v0.17.0 stdlib-shims.0.3.0 trace.0.9.1 yojson.2.2.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 devkit.dev $DEPS"))
+ /usr/bin/sudo "apk" "update"
- fetch https://dl-cdn.alpinelinux.org/alpine/v3.21/main/x86_64/APKINDEX.tar.gz
- fetch https://dl-cdn.alpinelinux.org/alpine/v3.21/community/x86_64/APKINDEX.tar.gz
- fetch https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
- fetch https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
- fetch https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
- v3.21.3-336-g7bbc1e1ec7b [https://dl-cdn.alpinelinux.org/alpine/v3.21/main]
- v3.21.3-338-gde36ddf5729 [https://dl-cdn.alpinelinux.org/alpine/v3.21/community]
- v20250108-5918-g01fd6e47ac2 [https://dl-cdn.alpinelinux.org/alpine/edge/main]
- v20250108-5919-g36a4b37e621 [https://dl-cdn.alpinelinux.org/alpine/edge/community]
- v20250108-5904-g0caba0af99b [https://dl-cdn.alpinelinux.org/alpine/edge/testing]
- OK: 57737 distinct packages available


<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[devkit.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:
curl-dev libevent-dev pcre-dev zlib-dev


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


+ /usr/bin/sudo "apk" "add" "curl-dev" "libevent-dev" "pcre-dev" "zlib-dev"
- (1/20) Upgrading c-ares (1.34.3-r0 -> 1.34.5-r0)
- (2/20) Installing brotli (1.1.0-r2)
- (3/20) Installing brotli-dev (1.1.0-r2)
- (4/20) Installing c-ares-dev (1.34.5-r0)
- (5/20) Installing libidn2-dev (2.3.7-r0)
- (6/20) Installing libpsl-utils (0.21.5-r3)
- (7/20) Installing libpsl-dev (0.21.5-r3)
- (8/20) Installing nghttp2-dev (1.64.0-r0)
- (9/20) Installing openssl-dev (3.3.3-r0)
- (10/20) Installing zlib-dev (1.3.1-r2)
- (11/20) Installing zstd (1.5.6-r2)
- (12/20) Installing zstd-dev (1.5.6-r2)
- (13/20) Installing curl-dev (8.12.1-r1)
- (14/20) Installing libevent (2.1.12-r7)
- (15/20) Installing libevent-dev (2.1.12-r7)
- (16/20) Installing libpcre16 (8.45-r3)
- (17/20) Installing libpcre32 (8.45-r3)
- (18/20) Installing pcre (8.45-r3)
- (19/20) Installing libpcrecpp (8.45-r3)
- (20/20) Installing pcre-dev (8.45-r3)
- Executing busybox-1.37.0-r12.trigger
- OK: 315 MiB in 120 packages
2025-04-17 15:28.23 ---> saved as "a49cfb6241b98466a1e90b493425f227eee924b01d1822d12103bf55a0e1fbf3"


/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 29 packages
- install base-bytes          base
- install camlzip             1.13
- install conf-libcurl        2
- install conf-libevent       1
- install conf-libpcre        2
- install conf-pkg-config     4
- install conf-zlib           1
- install cppo                1.8.0
- install csexp               1.5.2
- install dune                3.18.1
- install dune-configurator   3.18.1
- install extlib              1.8.0
- install extunix             0.4.3
- install libevent            0.9.0
- install lwt                 5.9.1
- install lwt_ppx             5.9.1
- install ocaml-compiler-libs v0.12.4
- install ocamlfind           1.9.8
- install ocplib-endian       1.2
- install ocurl               0.9.2
- install ounit2              2.2.7
- install pcre                8.0.3
- install ppx_derivers        1.2.1
- install ppxlib              0.35.0
- install seq                 base
- install sexplib0            v0.17.0
- install stdlib-shims        0.3.0
- install trace               0.9.1
- install yojson              2.2.2


<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved camlzip.1.13  (cached)
-> retrieved cppo.1.8.0  (cached)
-> retrieved csexp.1.5.2  (cached)
-> installed conf-libcurl.2
-> installed conf-pkg-config.4
-> retrieved extlib.1.8.0  (cached)
-> retrieved extunix.0.4.3  (cached)
-> installed conf-libevent.1
-> installed conf-libpcre.2
-> installed conf-zlib.1
-> retrieved libevent.0.9.0  (cached)
-> retrieved ocaml-compiler-libs.v0.12.4  (cached)
-> retrieved lwt.5.9.1, lwt_ppx.5.9.1  (cached)
-> retrieved ocamlfind.1.9.8  (cached)
-> retrieved ocplib-endian.1.2  (cached)
-> retrieved ocurl.0.9.2  (cached)
-> retrieved pcre.8.0.3  (cached)
-> retrieved ounit2.2.2.7  (cached)
-> retrieved ppx_derivers.1.2.1  (cached)
-> retrieved seq.base  (cached)
-> installed seq.base
-> retrieved sexplib0.v0.17.0  (cached)
-> retrieved stdlib-shims.0.3.0  (cached)
-> retrieved trace.0.9.1  (cached)
-> retrieved yojson.2.2.2  (cached)
-> retrieved ppxlib.0.35.0  (cached)
-> retrieved dune.3.18.1, dune-configurator.3.18.1  (cached)
-> installed ocamlfind.1.9.8
-> installed base-bytes.base
-> installed libevent.0.9.0
-> installed camlzip.1.13
-> installed dune.3.18.1
-> installed ppx_derivers.1.2.1
-> installed csexp.1.5.2
-> installed ocaml-compiler-libs.v0.12.4
-> installed sexplib0.v0.17.0
-> installed stdlib-shims.0.3.0
-> installed cppo.1.8.0
-> installed trace.0.9.1
-> installed yojson.2.2.2
-> installed ocplib-endian.1.2
-> installed extlib.1.8.0
-> installed ounit2.2.2.7
-> installed dune-configurator.3.18.1
-> installed pcre.8.0.3
-> installed lwt.5.9.1
-> installed ppxlib.0.35.0
-> installed lwt_ppx.5.9.1
-> installed extunix.0.4.3
-> installed ocurl.0.9.2
Done.
# To update the current shell environment, run: eval $(opam env)
2025-04-17 15:30.15 ---> saved as "f0b3e357a9f3eb1599d103127f34ef108b9652954c009f39b31b683813e5d198"


/src: (copy (src .) (dst /src))
2025-04-17 15:30.15 ---> saved as "0b5a7d1968a3fc87eef4c1448951bdc2978eb55d31bb038ca99e5a9a313afc67"


/src: (run (shell "opam exec -- dune build @install @check @runtest && rm -rf _build"))
(cd _build/default && ./test.exe)
...................................
Ran: 35 tests in: 0.31 seconds.
OK
2025-04-17 15:30.24 ---> saved as "8a39ace757bc9cbd3c458a77719ab248c9c31056824a55719b611fd0f09a912a"
Job succeeded
2025-04-17 15:30.24: Job succeeded