Organisationsroutinecoocaml-nanoidd22d76 (master)alpine-3.22-4.14_opam-2.5

alpine-3.22-4.14_opam-2.5

Logs

Show full logs
2026-04-22 14:11.56: New job: test routineco/ocaml-nanoid https://github.com/routineco/ocaml-nanoid.git#refs/heads/master (d22d768736e6599c8262f7e063a6f66775df6f69) (linux-x86_64:alpine-3.22-4.14_opam-2.5)
Base: ocaml/opam:alpine-3.22-ocaml-4.14@sha256:1c3a5ef9216cc43d14bea2bc9b42f4b1ee30cd78bf2e6993672b4c0c52909216
Opam project build

To reproduce locally:

git clone --recursive "https://github.com/routineco/ocaml-nanoid.git" -b "master" && cd "ocaml-nanoid" && git reset --hard d22d7687
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:alpine-3.22-ocaml-4.14@sha256:1c3a5ef9216cc43d14bea2bc9b42f4b1ee30cd78bf2e6993672b4c0c52909216
# alpine-3.22-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 036883c5402b41e0d35f6b200245cc7c3a302395 || git fetch origin master) && git reset -q --hard 036883c5402b41e0d35f6b200245cc7c3a302395 && git log --no-decorate -n1 --oneline && opam update -u
COPY --chown=1000:1000 nanoid.opam ./
RUN opam pin add -yn nanoid.dev './'
RUN echo '(lang dune 3.0)' > './dune-project'
ENV DEPS="alcotest.1.9.1 astring.0.8.5 base-bigarray.base base-threads.base base-unix.base cmdliner.2.1.1 conf-gmp.5 conf-gmp-powm-sec.4 conf-npm.1 conf-pkg-config.4 conf-zlib.1 cryptokit.1.21.1 csexp.1.5.2 dune.3.22.2 dune-configurator.3.22.2 fmt.0.11.0 gen.1.1 js_of_ocaml.6.3.2 js_of_ocaml-compiler.6.3.2 menhir.20260209 menhirCST.20260209 menhirGLR.20260209 menhirLib.20260209 menhirSdk.20260209 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 ocamlbuild.0.16.1 ocamlfind.1.9.8 ppx_derivers.1.2.1 ppxlib.0.38.0 re.1.14.0 sedlex.3.7 seq.base sexplib0.v0.17.0 stdlib-shims.0.3.0 topkg.1.1.1 uutf.1.0.4 yojson.3.0.0 zarith.1.14"
ENV CI="true"
ENV OCAMLCI="true"
RUN opam update --depexts && opam install --cli=2.5 --depext-only -y nanoid.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-04-22 14:11.56: Using cache hint "routineco/ocaml-nanoid-ocaml/opam:alpine-3.22-ocaml-4.14@sha256:1c3a5ef9216cc43d14bea2bc9b42f4b1ee30cd78bf2e6993672b4c0c52909216-alpine-3.22-4.14_opam-2.5-80485d979ccecbebdaaf02a041d23a3b"
2026-04-22 14:11.56: Using OBuilder spec:
((from ocaml/opam:alpine-3.22-ocaml-4.14@sha256:1c3a5ef9216cc43d14bea2bc9b42f4b1ee30cd78bf2e6993672b4c0c52909216)
 (comment alpine-3.22-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 036883c5402b41e0d35f6b200245cc7c3a302395 || git fetch origin master) && git reset -q --hard 036883c5402b41e0d35f6b200245cc7c3a302395 && git log --no-decorate -n1 --oneline && opam update -u"))
 (copy (src nanoid.opam) (dst ./))
 (run (network host)
      (shell "opam pin add -yn nanoid.dev './'"))
 (run (shell "echo '(lang dune 3.0)' > './dune-project'"))
 (env DEPS "alcotest.1.9.1 astring.0.8.5 base-bigarray.base base-threads.base base-unix.base cmdliner.2.1.1 conf-gmp.5 conf-gmp-powm-sec.4 conf-npm.1 conf-pkg-config.4 conf-zlib.1 cryptokit.1.21.1 csexp.1.5.2 dune.3.22.2 dune-configurator.3.22.2 fmt.0.11.0 gen.1.1 js_of_ocaml.6.3.2 js_of_ocaml-compiler.6.3.2 menhir.20260209 menhirCST.20260209 menhirGLR.20260209 menhirLib.20260209 menhirSdk.20260209 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 ocamlbuild.0.16.1 ocamlfind.1.9.8 ppx_derivers.1.2.1 ppxlib.0.38.0 re.1.14.0 sedlex.3.7 seq.base sexplib0.v0.17.0 stdlib-shims.0.3.0 topkg.1.1.1 uutf.1.0.4 yojson.3.0.0 zarith.1.14")
 (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 nanoid.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-04-22 14:11.56: Waiting for resource in pool OCluster
2026-04-22 15:18.18: Waiting for worker…
2026-04-22 15:19.44: Got resource from pool OCluster
Building on odawa.caelum.ci.dev
All commits already cached
HEAD is now at d22d768 Unvendor node_modules.

(from ocaml/opam:alpine-3.22-ocaml-4.14@sha256:1c3a5ef9216cc43d14bea2bc9b42f4b1ee30cd78bf2e6993672b4c0c52909216)
2026-04-22 15:19.44 ---> using "d1cef22083ba59d6db4e2f107091c68dd70ebdcc64c3894ad7db7be62ad17f4a" from cache

/: (comment alpine-3.22-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-04-22 15:19.44 ---> using "7c7cce50f5e947565c3d5dbad3ac3b61d12cac1cb4c13b6c802d6a8bb10d1345" 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-04-22 15:19.44 ---> using "d95bbd73a24778f1321e62f69802692f647c727b93c3a5bbd318b81d4a471a07" from cache

/src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 6.8.0-107-generic
The OCaml toplevel, version 4.14.2
2.5.0
2026-04-22 15:19.44 ---> using "0946bc50f9a71a954b4e3169058449c50f765d27decff1e10b17d7843ccd9459" from cache

/src: (workdir /src)

/src: (run (shell "sudo chown opam /src"))
2026-04-22 15:19.44 ---> using "f598dcec640aed1c1320fd535f3be224f496aae5fd076bc0ab3a32f9d65fd942" from cache

/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
           (network host)
           (shell "cd ~/opam-repository && (git cat-file -e 036883c5402b41e0d35f6b200245cc7c3a302395 || git fetch origin master) && git reset -q --hard 036883c5402b41e0d35f6b200245cc7c3a302395 && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
 * branch                  master     -> FETCH_HEAD
   a6b2f19780..80ba534fc6  master     -> origin/master
036883c540 Merge pull request #29788 from dbuenzli/b0-publish-cmdliner.2.1.1

<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from git+file:///home/opam/opam-repository
default (at git+file:///home/opam/opam-repository): 
    [WARNING] opam is out-of-date. Please consider updating it (https://opam.ocaml.org/doc/Install.html)

default (at git+file:///home/opam/opam-repository): 
    [INFO] opam 2.5.1 includes security fixes; please consider upgrading (https://opam.ocaml.org/doc/Install.html)


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.5.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-04-22 15:19.44 ---> using "629282dc8c9358012e8bf3c20f88faab6d4340c30473dc649aa1b8dff35115ee" from cache

/src: (copy (src nanoid.opam) (dst ./))
2026-04-22 15:19.45 ---> saved as "479068ea0dddb6017534b2dc432a36e89b10dffe6ecab055d7190393c1129a26"

/src: (run (network host)
           (shell "opam pin add -yn nanoid.dev './'"))
[nanoid.dev] synchronised (file:///src)
nanoid is now pinned to file:///src (version dev)
2026-04-22 15:19.47 ---> saved as "e345a03fd5b8869433c556d6c07ac39211d6632b8e93dd7f716ea498f5f795ec"

/src: (run (shell "echo '(lang dune 3.0)' > './dune-project'"))
2026-04-22 15:19.47 ---> saved as "adaaa18abeb97365ecd02af6f0ebd491cdc00fe4ac4161b2218405e217354230"

/src: (env DEPS "alcotest.1.9.1 astring.0.8.5 base-bigarray.base base-threads.base base-unix.base cmdliner.2.1.1 conf-gmp.5 conf-gmp-powm-sec.4 conf-npm.1 conf-pkg-config.4 conf-zlib.1 cryptokit.1.21.1 csexp.1.5.2 dune.3.22.2 dune-configurator.3.22.2 fmt.0.11.0 gen.1.1 js_of_ocaml.6.3.2 js_of_ocaml-compiler.6.3.2 menhir.20260209 menhirCST.20260209 menhirGLR.20260209 menhirLib.20260209 menhirSdk.20260209 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 ocamlbuild.0.16.1 ocamlfind.1.9.8 ppx_derivers.1.2.1 ppxlib.0.38.0 re.1.14.0 sedlex.3.7 seq.base sexplib0.v0.17.0 stdlib-shims.0.3.0 topkg.1.1.1 uutf.1.0.4 yojson.3.0.0 zarith.1.14")

/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 nanoid.dev $DEPS"))
+ /usr/bin/sudo "apk" "update"
- fetch https://dl-cdn.alpinelinux.org/alpine/v3.22/main/x86_64/APKINDEX.tar.gz
- fetch https://dl-cdn.alpinelinux.org/alpine/v3.22/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.22.4-11-g976a5acf3d6 [https://dl-cdn.alpinelinux.org/alpine/v3.22/main]
- v3.22.4-9-g4c6732eda75 [https://dl-cdn.alpinelinux.org/alpine/v3.22/community]
- v20260127-8294-gcf1b0ed30f6 [https://dl-cdn.alpinelinux.org/alpine/edge/main]
- v20260127-8298-gd57d34877ee [https://dl-cdn.alpinelinux.org/alpine/edge/community]
- v20260127-8292-g9739dad1385 [https://dl-cdn.alpinelinux.org/alpine/edge/testing]
- OK: 61452 distinct packages available

<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[nanoid.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:
    gmp-dev npm zlib-dev

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

+ /usr/bin/sudo "apk" "add" "gmp-dev" "npm" "zlib-dev"
- (1/11) Upgrading zlib (1.3.1-r2 -> 1.3.2-r0)
- (2/11) Installing libgmpxx (6.3.0-r3)
- (3/11) Installing gmp-dev (6.3.0-r3)
- (4/11) Installing ada-libs (2.9.2-r4)
- (5/11) Installing icu-data-en (76.1-r1)
- Executing icu-data-en-76.1-r1.post-install
- *
- * If you need ICU with non-English locales and legacy charset support, install
- * package icu-data-full.
- *
- (6/11) Installing icu-libs (76.1-r1)
- (7/11) Installing simdjson (3.12.0-r0)
- (8/11) Installing simdutf (7.2.1-r0)
- (9/11) Installing nodejs (22.22.2-r0)
- (10/11) Installing npm (11.6.4-r0)
- (11/11) Installing zlib-dev (1.3.2-r0)
- Executing busybox-1.37.0-r20.trigger
- OK: 376 MiB in 112 packages
# To update the current shell environment, run: eval $(opam env)
2026-04-22 15:20.00 ---> saved as "f9854250ad53ac25dc5b56898861f31c21faf5b8ad6985cbdc5a5919d2b4df96"

/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 36 packages
  - install alcotest             1.9.1
  - install astring              0.8.5
  - install cmdliner             2.1.1
  - install conf-gmp             5
  - install conf-gmp-powm-sec    4
  - install conf-npm             1
  - install conf-pkg-config      4
  - install conf-zlib            1
  - install cryptokit            1.21.1
  - install csexp                1.5.2
  - install dune                 3.22.2
  - install dune-configurator    3.22.2
  - install fmt                  0.11.0
  - install gen                  1.1
  - install js_of_ocaml          6.3.2
  - install js_of_ocaml-compiler 6.3.2
  - install menhir               20260209
  - install menhirCST            20260209
  - install menhirGLR            20260209
  - install menhirLib            20260209
  - install menhirSdk            20260209
  - install ocaml-compiler-libs  v0.12.4
  - install ocaml-syntax-shims   1.0.0
  - install ocamlbuild           0.16.1
  - install ocamlfind            1.9.8
  - install ppx_derivers         1.2.1
  - install ppxlib               0.38.0
  - install re                   1.14.0
  - install sedlex               3.7
  - install seq                  base
  - install sexplib0             v0.17.0
  - install stdlib-shims         0.3.0
  - install topkg                1.1.1
  - install uutf                 1.0.4
  - install yojson               3.0.0
  - install zarith               1.14

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved alcotest.1.9.1  (cached)
-> retrieved conf-gmp.5  (cached)
-> retrieved conf-gmp-powm-sec.4  (cached)
-> retrieved astring.0.8.5  (cached)
-> retrieved cmdliner.2.1.1  (cached)
-> retrieved cryptokit.1.21.1  (cached)
-> installed conf-gmp.5
-> installed conf-pkg-config.4
-> retrieved csexp.1.5.2  (cached)
-> retrieved fmt.0.11.0  (cached)
-> installed conf-gmp-powm-sec.4
-> installed conf-zlib.1
-> retrieved gen.1.1  (cached)
-> installed conf-npm.1
-> retrieved menhir.20260209, menhirCST.20260209, menhirGLR.20260209, menhirLib.20260209, menhirSdk.20260209  (cached)
-> retrieved dune.3.22.2, dune-configurator.3.22.2  (cached)
-> retrieved js_of_ocaml.6.3.2, js_of_ocaml-compiler.6.3.2  (cached)
-> retrieved ocaml-compiler-libs.v0.12.4  (cached)
-> retrieved ocaml-syntax-shims.1.0.0  (cached)
-> retrieved ppx_derivers.1.2.1  (cached)
-> retrieved ocamlbuild.0.16.1  (cached)
-> retrieved ocamlfind.1.9.8  (cached)
-> installed cmdliner.2.1.1
-> retrieved ppxlib.0.38.0  (cached)
-> retrieved seq.base  (cached)
-> installed seq.base
-> retrieved re.1.14.0  (cached)
-> retrieved sedlex.3.7  (cached)
-> retrieved sexplib0.v0.17.0  (cached)
-> retrieved stdlib-shims.0.3.0  (cached)
-> retrieved topkg.1.1.1  (cached)
-> retrieved uutf.1.0.4  (cached)
-> retrieved zarith.1.14  (cached)
-> retrieved yojson.3.0.0  (cached)
-> installed ocamlfind.1.9.8
-> installed ocamlbuild.0.16.1
-> installed zarith.1.14
-> installed topkg.1.1.1
-> installed uutf.1.0.4
-> installed fmt.0.11.0
-> installed astring.0.8.5
-> installed dune.3.22.2
-> installed csexp.1.5.2
-> installed gen.1.1
-> installed menhirCST.20260209
-> installed menhirGLR.20260209
-> installed menhirLib.20260209
-> installed menhirSdk.20260209
-> installed ocaml-compiler-libs.v0.12.4
-> installed ocaml-syntax-shims.1.0.0
-> installed ppx_derivers.1.2.1
-> installed re.1.14.0
-> installed sexplib0.v0.17.0
-> installed stdlib-shims.0.3.0
-> installed yojson.3.0.0
-> installed dune-configurator.3.22.2
-> installed alcotest.1.9.1
-> installed cryptokit.1.21.1
-> installed menhir.20260209
-> installed ppxlib.0.38.0
-> installed sedlex.3.7
-> installed js_of_ocaml-compiler.6.3.2
-> installed js_of_ocaml.6.3.2
Done.
# To update the current shell environment, run: eval $(opam env)
2026-04-22 15:21.22 ---> saved as "10d53affe5c94c092e446208fde461ad5317454520271c855b3ed2208f8bfa0d"

/src: (copy (src .) (dst /src))
2026-04-22 15:21.23 ---> saved as "a0ad428d985ea77a4a76f0bd737f3efa95ff7297d640658266f37d34b6d48584"

/src: (run (shell "opam exec -- dune build @install @check @runtest && rm -rf _build"))
File ".logistic/dune/extdeps/dune", line 4, characters 60-65:
4 |  (libraries cmdliner opam-file-format sexplib shexp.process stdio))
                                                                ^^^^^
Error: Library "stdio" not found.
-> required by
   _build/default/.logistic/dune/extdeps/.extdeps.eobjs/byte/dune__exe__Extdeps.cmi
-> required by alias .logistic/dune/extdeps/check
(cd _build/default/tests && ./os.exe)
Testing `Nanoid'.
This run has ID `3RY9GIHJ'.

  [OK]          pseudo-seeded          0   generate.

Full test results in `/src/_build/default/tests/_build/_tests/Nanoid'.
Test Successful in 0.002s. 1 test run.
File "tests/dune", lines 18-21, characters 0-64:
18 | (rule
19 |  (alias runtest)
20 |  (action
21 |   (run node %{dep:jsoo.bc.js})))
(cd _build/default/tests && /usr/bin/node jsoo.bc.js)
/src/_build/default/tests/jsoo.bc.js:3279
     throw err;
     ^

Error: Cannot find module 'nanoid'
Require stack:
- /src/_build/default/tests/jsoo.bc.js
    at Function._resolveFilename (node:internal/modules/cjs/loader:1383:15)
    at defaultResolveImpl (node:internal/modules/cjs/loader:1025:19)
    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1030:22)
    at Function._load (node:internal/modules/cjs/loader:1192:37)
    at TracingChannel.traceSync (node:diagnostics_channel:328:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:237:24)
    at Module.require (node:internal/modules/cjs/loader:1463:12)
    at require (node:internal/modules/helpers:147:16)
    at /src/_build/default/tests/jsoo.bc.js:53459:9
    at Object.<anonymous> (/src/_build/default/tests/jsoo.bc.js:53468:3) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/src/_build/default/tests/jsoo.bc.js' ]
}

Node.js v22.22.2
"/usr/bin/env" "bash" "-c" "opam exec -- dune build @install @check @runtest && rm -rf _build" failed with exit status 1
2026-04-22 15:21.25: Job failed: Failed: Build failed