Organisationsocurrentocaml-dockerfile43c98f ()ubuntu-22.04-4.14_opam-2.5

ubuntu-22.04-4.14_opam-2.5

Link Copied
Code Copied

Logs

2026-01-21 09:44.45: New job: test ocurrent/ocaml-dockerfile https://github.com/ocurrent/ocaml-dockerfile.git#refs/pull/257/head (43c98f08dd3e51329fc7163b4dce145c17ba0205) (linux-x86_64:ubuntu-22.04-4.14_opam-2.5)
Base: ocaml/opam:ubuntu-22.04-ocaml-4.14@sha256:f7fb670e55d80edca85afd0f09537114196f2e1cf0d80646624bfa78f34e501b
Opam project build


To reproduce locally:


git clone --recursive "https://github.com/ocurrent/ocaml-dockerfile.git" && cd "ocaml-dockerfile" && git fetch origin "refs/pull/257/head" && git reset --hard 43c98f08
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:ubuntu-22.04-ocaml-4.14@sha256:f7fb670e55d80edca85afd0f09537114196f2e1cf0d80646624bfa78f34e501b
# ubuntu-22.04-4.14_opam-2.5
USER 1000:1000
ENV CLICOLOR_FORCE="1"
ENV OPAMCOLOR="always"
WORKDIR /src
RUN sudo ln -f /usr/bin/opam-2.5 /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 873cb18c37b308713d11ad3894c4bb78d73fb3e7 || git fetch origin master) && git reset -q --hard 873cb18c37b308713d11ad3894c4bb78d73fb3e7 && git log --no-decorate -n1 --oneline && opam update -u
COPY --chown=1000:1000 dockerfile.opam dockerfile-opam.opam dockerfile-cmd.opam ./
RUN opam pin add -yn dockerfile.dev './' && \
opam pin add -yn dockerfile-opam.dev './' && \
opam pin add -yn dockerfile-cmd.dev './'
RUN echo '(lang dune 3.0)' > './dune-project'
ENV DEPS="alcotest.1.9.1 astring.0.8.5 base.v0.16.4 base-bigarray.base base-threads.base base-unix.base bos.0.2.1 cmdliner.2.1.0 csexp.1.5.2 dune.3.21.0 dune-configurator.3.21.0 fmt.0.11.0 fpath.0.7.3 logs.0.10.0 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-compiler-libs.v0.12.4 ocaml-config.2 ocaml-options-vanilla.1 ocaml-syntax-shims.1.0.0 ocaml-version.4.0.3 ocamlbuild.0.16.1 ocamlfind.1.9.8 ppx_derivers.1.2.1 ppx_sexp_conv.v0.16.0 ppxlib.0.35.0 re.1.14.0 rresult.0.7.0 sexplib0.v0.16.0 stdlib-shims.0.3.0 topkg.1.1.1 uutf.1.0.4"
ENV CI="true"
ENV OCAMLCI="true"
RUN opam update --depexts && opam install --cli=2.5 --depext-only -y dockerfile.dev dockerfile-opam.dev dockerfile-cmd.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


2026-01-21 09:44.45: Using cache hint "ocurrent/ocaml-dockerfile-ocaml/opam:ubuntu-22.04-ocaml-4.14@sha256:f7fb670e55d80edca85afd0f09537114196f2e1cf0d80646624bfa78f34e501b-ubuntu-22.04-4.14_opam-2.5-1680413fc72ac4b2796a2dddf8c0686f"
2026-01-21 09:44.45: Using OBuilder spec:
((from ocaml/opam:ubuntu-22.04-ocaml-4.14@sha256:f7fb670e55d80edca85afd0f09537114196f2e1cf0d80646624bfa78f34e501b)
(comment ubuntu-22.04-4.14_opam-2.5)
(user (uid 1000) (gid 1000))
(env CLICOLOR_FORCE 1)
(env OPAMCOLOR always)
(workdir /src)
(run (shell "sudo ln -f /usr/bin/opam-2.5 /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 873cb18c37b308713d11ad3894c4bb78d73fb3e7 || git fetch origin master) && git reset -q --hard 873cb18c37b308713d11ad3894c4bb78d73fb3e7 && git log --no-decorate -n1 --oneline && opam update -u"))
(copy (src dockerfile.opam dockerfile-opam.opam dockerfile-cmd.opam)
(dst ./))
(run (network host)
(shell  "opam pin add -yn dockerfile.dev './' && \
\nopam pin add -yn dockerfile-opam.dev './' && \
\nopam pin add -yn dockerfile-cmd.dev './'"))
(run (network host)
(shell "echo '(lang dune 3.0)' > './dune-project'"))
(env DEPS "alcotest.1.9.1 astring.0.8.5 base.v0.16.4 base-bigarray.base base-threads.base base-unix.base bos.0.2.1 cmdliner.2.1.0 csexp.1.5.2 dune.3.21.0 dune-configurator.3.21.0 fmt.0.11.0 fpath.0.7.3 logs.0.10.0 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-compiler-libs.v0.12.4 ocaml-config.2 ocaml-options-vanilla.1 ocaml-syntax-shims.1.0.0 ocaml-version.4.0.3 ocamlbuild.0.16.1 ocamlfind.1.9.8 ppx_derivers.1.2.1 ppx_sexp_conv.v0.16.0 ppxlib.0.35.0 re.1.14.0 rresult.0.7.0 sexplib0.v0.16.0 stdlib-shims.0.3.0 topkg.1.1.1 uutf.1.0.4")
(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.5 --depext-only -y dockerfile.dev dockerfile-opam.dev dockerfile-cmd.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"))
)


2026-01-21 09:44.45: Waiting for resource in pool OCluster
2026-01-21 09:44.45: Waiting for worker…
2026-01-21 09:45.19: Got resource from pool OCluster
Building on eumache
All commits already cached
HEAD is now at 43c98f0 Use $NUMBER_OF_PROCESSORS rather than 1


(from ocaml/opam:ubuntu-22.04-ocaml-4.14@sha256:f7fb670e55d80edca85afd0f09537114196f2e1cf0d80646624bfa78f34e501b)
Unable to find image 'ocaml/opam:ubuntu-22.04-ocaml-4.14@sha256:f7fb670e55d80edca85afd0f09537114196f2e1cf0d80646624bfa78f34e501b' locally
docker.io/ocaml/opam@sha256:f7fb670e55d80edca85afd0f09537114196f2e1cf0d80646624bfa78f34e501b: Pulling from ocaml/opam
7e49dc6156b0: Already exists
d4e25bc4e54e: Already exists
a2f0d7f6c7a2: Already exists
e9295d1ac3bc: Already exists
48c87b1c7333: Already exists
da6709a7d994: Already exists
f4bdd0682581: Already exists
fdd283dd5a04: Already exists
58e1793fb243: Already exists
77ec02af2c49: Already exists
d98cd9755506: Already exists
dc8614d28602: Already exists
0772aa035f0f: Already exists
89fd84f5b086: Already exists
a82872a7c2c5: Already exists
be0daa8cb4c5: Already exists
0564ca0741f1: Already exists
0564ca0741f1: Already exists
4f4fb700ef54: Already exists
89ad18ffaf37: Already exists
47d9a6f0fd74: Already exists
702f403fd691: Already exists
4f4fb700ef54: Already exists
2ebe2d64d0a6: Already exists
4cab782a5dac: Already exists
5281573baee7: Already exists
fe8da0bd13e1: Already exists
17da0d9119d3: Already exists
f209b87d9a21: Already exists
8af345427948: Already exists
e70f51ae47c8: Already exists
3dcb78ac65ef: Already exists
ce307cfab940: Already exists
ffb7aa02dfd1: Already exists
79f572c137cf: Already exists
6a9f73cee81e: Already exists
d357c931e45e: Already exists
a17937b255c7: Already exists
903ee3defa85: Already exists
33d1aed44e28: Already exists
424cf3ca0d8a: Already exists
327a58b1b5a8: Already exists
edcecd8da58f: Already exists
e7abd33fd6aa: Already exists
4c86d7be6862: Already exists
Digest: sha256:f7fb670e55d80edca85afd0f09537114196f2e1cf0d80646624bfa78f34e501b
Status: Downloaded newer image for ocaml/opam@sha256:f7fb670e55d80edca85afd0f09537114196f2e1cf0d80646624bfa78f34e501b
2026-01-21 09:45.19 ---> using "e3241aa53d8aad4718fa2f2ab81b104356db8836803d01e9d8dc6f8cfc7a6d78" from cache


/: (comment ubuntu-22.04-4.14_opam-2.5)


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


/: (env CLICOLOR_FORCE 1)


/: (env OPAMCOLOR always)


/: (workdir /src)


/src: (run (shell "sudo ln -f /usr/bin/opam-2.5 /usr/bin/opam"))
2026-01-21 09:45.19 ---> using "a8302cfb54c076400f781dc5021df0a0e4796a1520c087a458293c3b6f782955" 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 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
Format upgrade done.


<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
2026-01-21 09:45.19 ---> using "69ce5a7b0aae10903a94d154c9c9061aacb5e428d43054ead80cd5f2e1350273" from cache


/src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 5.15.0-131-generic
The OCaml toplevel, version 4.14.2
2.5.0
2026-01-21 09:45.19 ---> using "10f3a93aa039492984e7257be6ea61a365ea2989d1b36da493512eac89e222d0" from cache


/src: (workdir /src)


/src: (run (shell "sudo chown opam /src"))
2026-01-21 09:45.19 ---> using "b1f56d56e57df39bc243dbe95d179c554820497e2fc2dc8d4e4a9ba1bd94aa03" from cache


/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e 873cb18c37b308713d11ad3894c4bb78d73fb3e7 || git fetch origin master) && git reset -q --hard 873cb18c37b308713d11ad3894c4bb78d73fb3e7 && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
* branch                  master     -> FETCH_HEAD
235b964523..10a02a697b  master     -> origin/master
873cb18c37 Merge pull request #29216 from shonfeder/release-dune-3.21.0


<><> 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 at these versions (e.g. "opam upgrade ocaml.5.4.0"), which will ask permission to downgrade or uninstall the conflicting packages.
Nothing to do.
# To update the current shell environment, run: eval $(opam env)
2026-01-21 09:45.19 ---> using "e53b4808c87af18a3d66a2c34e43d7d793cf0ef77442dcdf35d30febdde6de0c" from cache


/src: (copy (src dockerfile.opam dockerfile-opam.opam dockerfile-cmd.opam)
(dst ./))
2026-01-21 09:45.19 ---> using "bdebfe2b26df8f2f70dbe55bb79d2bbb1f1f1c2d8a244c9896ada57986b5f864" from cache


/src: (run (network host)
(shell  "opam pin add -yn dockerfile.dev './' && \
\nopam pin add -yn dockerfile-opam.dev './' && \
\nopam pin add -yn dockerfile-cmd.dev './'"))
[dockerfile.dev] synchronised (file:///src)
dockerfile is now pinned to file:///src (version dev)
[dockerfile-opam.dev] synchronised (file:///src)
dockerfile-opam is now pinned to file:///src (version dev)
[dockerfile-cmd.dev] synchronised (file:///src)
dockerfile-cmd is now pinned to file:///src (version dev)
2026-01-21 09:45.19 ---> using "c8b3791fe745e3316dc108c47142ac551946e3a6f310be6e6edc4ee0e49de06a" from cache


/src: (run (network host)
(shell "echo '(lang dune 3.0)' > './dune-project'"))
2026-01-21 09:45.19 ---> using "d35d91675ed54a4d04649f3aa5d4accf7b254dee4d0790485445868aef61389d" from cache


/src: (env DEPS "alcotest.1.9.1 astring.0.8.5 base.v0.16.4 base-bigarray.base base-threads.base base-unix.base bos.0.2.1 cmdliner.2.1.0 csexp.1.5.2 dune.3.21.0 dune-configurator.3.21.0 fmt.0.11.0 fpath.0.7.3 logs.0.10.0 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-compiler-libs.v0.12.4 ocaml-config.2 ocaml-options-vanilla.1 ocaml-syntax-shims.1.0.0 ocaml-version.4.0.3 ocamlbuild.0.16.1 ocamlfind.1.9.8 ppx_derivers.1.2.1 ppx_sexp_conv.v0.16.0 ppxlib.0.35.0 re.1.14.0 rresult.0.7.0 sexplib0.v0.16.0 stdlib-shims.0.3.0 topkg.1.1.1 uutf.1.0.4")


/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.5 --depext-only -y dockerfile.dev dockerfile-opam.dev dockerfile-cmd.dev $DEPS"))
+ /usr/bin/sudo "apt-get" "update"
- Get:1 http://security.ubuntu.com/ubuntu jammy-security InRelease [129 kB]
- Hit:2 http://archive.ubuntu.com/ubuntu jammy InRelease
- Get:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [128 kB]
- Get:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [127 kB]
- Get:5 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [3637 kB]
- Get:6 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [1289 kB]
- Get:7 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1601 kB]
- Get:8 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [3969 kB]
- Fetched 10.9 MB in 1s (7778 kB/s)
- Reading package lists...
- 


<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[dockerfile.dev] synchronised (file:///src)
[dockerfile-cmd.dev] synchronised (file:///src)
[dockerfile-opam.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).
# To update the current shell environment, run: eval $(opam env)
2026-01-21 09:45.19 ---> using "6623c1509bb122859b17898b1dd88f2a376de3d5053465a54611a6c1e3fe7dda" from cache


/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 25 packages
- install alcotest            1.9.1
- install astring             0.8.5
- install base                v0.16.4
- install bos                 0.2.1
- install cmdliner            2.1.0
- install csexp               1.5.2
- install dune                3.21.0
- install dune-configurator   3.21.0
- install fmt                 0.11.0
- install fpath               0.7.3
- install logs                0.10.0
- install ocaml-compiler-libs v0.12.4
- install ocaml-syntax-shims  1.0.0
- install ocaml-version       4.0.3
- install ocamlbuild          0.16.1
- install ocamlfind           1.9.8
- install ppx_derivers        1.2.1
- install ppx_sexp_conv       v0.16.0
- install ppxlib              0.35.0
- install re                  1.14.0
- install rresult             0.7.0
- install sexplib0            v0.16.0
- install stdlib-shims        0.3.0
- install topkg               1.1.1
- install uutf                1.0.4


<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved alcotest.1.9.1  (cached)
-> retrieved astring.0.8.5  (cached)
-> retrieved base.v0.16.4  (cached)
-> retrieved bos.0.2.1  (cached)
-> retrieved cmdliner.2.1.0  (cached)
-> retrieved csexp.1.5.2  (cached)
-> retrieved fmt.0.11.0  (cached)
-> retrieved fpath.0.7.3  (cached)
-> retrieved logs.0.10.0  (cached)
-> retrieved ocaml-compiler-libs.v0.12.4  (cached)
-> retrieved ocaml-syntax-shims.1.0.0  (cached)
-> retrieved ocaml-version.4.0.3  (cached)
-> retrieved ocamlbuild.0.16.1  (cached)
-> retrieved ocamlfind.1.9.8  (cached)
-> retrieved ppx_derivers.1.2.1  (cached)
-> retrieved ppx_sexp_conv.v0.16.0  (cached)
-> retrieved re.1.14.0  (cached)
-> retrieved rresult.0.7.0  (cached)
-> retrieved sexplib0.v0.16.0  (cached)
-> retrieved stdlib-shims.0.3.0  (cached)
-> retrieved topkg.1.1.1  (cached)
-> retrieved uutf.1.0.4  (cached)
-> retrieved ppxlib.0.35.0  (cached)
-> retrieved dune.3.21.0, dune-configurator.3.21.0  (cached)
-> installed cmdliner.2.1.0
-> installed ocamlbuild.0.16.1
-> installed ocamlfind.1.9.8
-> installed topkg.1.1.1
-> installed rresult.0.7.0
-> installed uutf.1.0.4
-> installed fmt.0.11.0
-> installed astring.0.8.5
-> installed logs.0.10.0
-> installed fpath.0.7.3
-> installed bos.0.2.1
-> installed dune.3.21.0
-> installed ppx_derivers.1.2.1
-> installed csexp.1.5.2
-> installed ocaml-compiler-libs.v0.12.4
-> installed ocaml-syntax-shims.1.0.0
-> installed ocaml-version.4.0.3
-> installed sexplib0.v0.16.0
-> installed re.1.14.0
-> installed stdlib-shims.0.3.0
-> installed alcotest.1.9.1
-> installed dune-configurator.3.21.0
-> installed base.v0.16.4
-> installed ppxlib.0.35.0
-> installed ppx_sexp_conv.v0.16.0
Done.
# To update the current shell environment, run: eval $(opam env)
2026-01-21 09:45.19 ---> using "4fa7f2c07e814473c2b44f2956db0192ec19324018e02a37e618cd6a86a97197" from cache


/src: (copy (src .) (dst /src))
2026-01-21 09:45.20 ---> saved as "368d2c6fbbfd8c9622374c05865e08562a1249a05fe6ff120879c938eb9c9966"


/src: (run (shell "opam exec -- dune build @install @check @runtest && rm -rf _build"))
(cd _build/default/test-opam && ./dockerfile.exe)
Testing `test'.
This run has ID `91YUV9TE'.


[OK]          dockerfile-opam          0   Distro.compare.


Full test results in `/src/_build/default/test-opam/_build/_tests/test'.
Test Successful in 0.000s. 1 test run.
(cd _build/default/test && ./dockerfile.exe)
Testing `test'.
This run has ID `IOF1FJ3Z'.


[OK]          dockerfile          0   string_of_t.
[OK]          dockerfile          1   string_of_t.
[OK]          dockerfile          2   Format RUN heredocs.


Full test results in `/src/_build/default/test/_build/_tests/test'.
Test Successful in 0.001s. 3 tests run.
2026-01-21 09:45.26 ---> saved as "862c494568396f5d53a154ca14c63e676a386eee20a17eba6c1ac02203410e09"
Job succeeded
2026-01-21 09:45.26: Job succeeded