2025-07-10 14:49.39: New job: test routineco/ocaml-nanoid https://github.com/routineco/ocaml-nanoid.git#refs/heads/master (d22d768736e6599c8262f7e063a6f66775df6f69) (linux-x86_64:alpine-3.21-4.14_opam-2.3)
Base: ocaml/opam:alpine-3.21-ocaml-4.14@sha256:ce7c521de2e50e6ba02ecb769afb8f518fd84aef8447affa8b443c3175d9dc33
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.21-ocaml-4.14@sha256:ce7c521de2e50e6ba02ecb769afb8f518fd84aef8447affa8b443c3175d9dc33
# 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 cd1d2da68c683279e78955ec39c84fe1e9771480 || git fetch origin master) && git reset -q --hard cd1d2da68c683279e78955ec39c84fe1e9771480 && 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.0 astring.0.8.5 base-bigarray.base base-threads.base base-unix.base cmdliner.1.3.0 conf-gmp.5 conf-gmp-powm-sec.4 conf-npm.1 conf-pkg-config.4 conf-zlib.1 cryptokit.1.20 csexp.1.5.2 dune.3.19.1 dune-configurator.3.19.1 fmt.0.10.0 gen.1.1 js_of_ocaml.6.1.1 js_of_ocaml-compiler.6.1.1 menhir.20240715 menhirCST.20240715 menhirLib.20240715 menhirSdk.20240715 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.36.0 re.1.13.2 sedlex.3.6 seq.base sexplib0.v0.17.0 stdlib-shims.0.3.0 topkg.1.0.8 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.3 --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
2025-07-10 14:49.39: Using cache hint "routineco/ocaml-nanoid-ocaml/opam:alpine-3.21-ocaml-4.14@sha256:ce7c521de2e50e6ba02ecb769afb8f518fd84aef8447affa8b443c3175d9dc33-alpine-3.21-4.14_opam-2.3-ea73d230b406bbc7c9664eac6b01e19e"
2025-07-10 14:49.39: Using OBuilder spec:
((from ocaml/opam:alpine-3.21-ocaml-4.14@sha256:ce7c521de2e50e6ba02ecb769afb8f518fd84aef8447affa8b443c3175d9dc33)
(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 cd1d2da68c683279e78955ec39c84fe1e9771480 || git fetch origin master) && git reset -q --hard cd1d2da68c683279e78955ec39c84fe1e9771480 && 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 (network host)
(shell "echo '(lang dune 3.0)' > './dune-project'"))
(env DEPS "alcotest.1.9.0 astring.0.8.5 base-bigarray.base base-threads.base base-unix.base cmdliner.1.3.0 conf-gmp.5 conf-gmp-powm-sec.4 conf-npm.1 conf-pkg-config.4 conf-zlib.1 cryptokit.1.20 csexp.1.5.2 dune.3.19.1 dune-configurator.3.19.1 fmt.0.10.0 gen.1.1 js_of_ocaml.6.1.1 js_of_ocaml-compiler.6.1.1 menhir.20240715 menhirCST.20240715 menhirLib.20240715 menhirSdk.20240715 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.36.0 re.1.13.2 sedlex.3.6 seq.base sexplib0.v0.17.0 stdlib-shims.0.3.0 topkg.1.0.8 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.3 --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"))
)
2025-07-10 14:49.39: Waiting for resource in pool OCluster
2025-07-10 18:06.58: Waiting for worker…
2025-07-10 18:10.29: Got resource from pool OCluster
Building on doris.caelum.ci.dev
All commits already cached
HEAD is now at d22d768 Unvendor node_modules.
(from ocaml/opam:alpine-3.21-ocaml-4.14@sha256:ce7c521de2e50e6ba02ecb769afb8f518fd84aef8447affa8b443c3175d9dc33)
2025-07-10 18:10.29 ---> using "55d202f7fecfb1870e4e5ff40a2bf370c1ccb0b90b65ea9e954fa8fcf7fc2c95" from cache
/: (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-07-10 18:10.29 ---> using "57b9ec26c9d793b9841d4b9b0806229705a50fa368e146f4bfa780c65be697a9" 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
Format upgrade done.
<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
2025-07-10 18:10.29 ---> using "c5fb68b3751ecc9278ff2d149fb1343dcef6f7d8470fcb0193da697334885f4e" from cache
/src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 5.15.0-142-generic
The OCaml toplevel, version 4.14.2
2.3.0
2025-07-10 18:10.29 ---> using "c71ebc92fba988860b9c156257f28c79e1408d4794c998911176c5ddf483c859" from cache
/src: (workdir /src)
/src: (run (shell "sudo chown opam /src"))
2025-07-10 18:10.29 ---> using "0de77c75cb625e4c58667571d1f22ce917bcfd7afcc95609af2c00442f4db95b" from cache
/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e cd1d2da68c683279e78955ec39c84fe1e9771480 || git fetch origin master) && git reset -q --hard cd1d2da68c683279e78955ec39c84fe1e9771480 && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
* branch master -> FETCH_HEAD
6dea2f9390..0094db1438 master -> origin/master
cd1d2da68c Merge pull request #28144 from hhugo/release-js_of_ocaml-6.1.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-07-10 18:10.29 ---> using "bd18e9c0322cf8898b3b59ac3b40b993d0bcae587800b0ad50d89e0165c80cee" from cache
/src: (copy (src nanoid.opam) (dst ./))
2025-07-10 18:10.29 ---> saved as "b05253e74a330c964f81426ce85a90481ea9c5e8344c079b7fca6d723d92e6ef"
/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)
2025-07-10 18:10.31 ---> saved as "7ac08e5f0c01f3b1a070109aa2785743611a32e5d218aba1250310dafc16ac3f"
/src: (run (network host)
(shell "echo '(lang dune 3.0)' > './dune-project'"))
2025-07-10 18:10.32 ---> saved as "ade57e935bb4045fb1c0f0a0820bc82958a84969a3366aa3763dfd097515140c"
/src: (env DEPS "alcotest.1.9.0 astring.0.8.5 base-bigarray.base base-threads.base base-unix.base cmdliner.1.3.0 conf-gmp.5 conf-gmp-powm-sec.4 conf-npm.1 conf-pkg-config.4 conf-zlib.1 cryptokit.1.20 csexp.1.5.2 dune.3.19.1 dune-configurator.3.19.1 fmt.0.10.0 gen.1.1 js_of_ocaml.6.1.1 js_of_ocaml-compiler.6.1.1 menhir.20240715 menhirCST.20240715 menhirLib.20240715 menhirSdk.20240715 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.36.0 re.1.13.2 sedlex.3.6 seq.base sexplib0.v0.17.0 stdlib-shims.0.3.0 topkg.1.0.8 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.3 --depext-only -y nanoid.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-638-g1544fc8aa59 [https://dl-cdn.alpinelinux.org/alpine/v3.21/main]
- v3.21.3-634-g4638c219547 [https://dl-cdn.alpinelinux.org/alpine/v3.21/community]
- v3.23.0_alpha20250612-1992-g6b9789fe4fd [https://dl-cdn.alpinelinux.org/alpine/edge/main]
- v3.23.0_alpha20250612-1992-g6b9789fe4fd [https://dl-cdn.alpinelinux.org/alpine/edge/community]
- v3.23.0_alpha20250612-1987-g1fccc9a6b71 [https://dl-cdn.alpinelinux.org/alpine/edge/testing]
- OK: 59033 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/10) Installing libgmpxx (6.3.0-r2)
- (2/10) Installing gmp-dev (6.3.0-r2)
- (3/10) Installing ada-libs (2.9.2-r1)
- (4/10) Installing icu-data-en (74.2-r1)
- Executing icu-data-en-74.2-r1.post-install
- *
- * If you need ICU with non-English locales and legacy charset support, install
- * package icu-data-full.
- *
- (5/10) Installing icu-libs (74.2-r1)
- (6/10) Installing simdjson (3.10.1-r0)
- (7/10) Installing simdutf (5.6.3-r0)
- (8/10) Installing nodejs (22.15.1-r0)
- (9/10) Installing npm (10.9.1-r0)
- (10/10) Installing zlib-dev (1.3.1-r2)
- Executing busybox-1.37.0-r12.trigger
- OK: 375 MiB in 111 packages
2025-07-10 18:10.50 ---> saved as "d45f2b93359a8eb64445c84ab68ec8147c96f80171de058a28e5b6e4e733178a"
/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 35 packages
- install alcotest 1.9.0
- install astring 0.8.5
- install cmdliner 1.3.0
- 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.20
- install csexp 1.5.2
- install dune 3.19.1
- install dune-configurator 3.19.1
- install fmt 0.10.0
- install gen 1.1
- install js_of_ocaml 6.1.1
- install js_of_ocaml-compiler 6.1.1
- install menhir 20240715
- install menhirCST 20240715
- install menhirLib 20240715
- install menhirSdk 20240715
- 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.36.0
- install re 1.13.2
- install sedlex 3.6
- install seq base
- install sexplib0 v0.17.0
- install stdlib-shims 0.3.0
- install topkg 1.0.8
- install uutf 1.0.4
- install yojson 3.0.0
- install zarith 1.14
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved astring.0.8.5 (cached)
-> retrieved conf-gmp.5 (cached)
-> retrieved conf-gmp-powm-sec.4 (cached)
-> retrieved cmdliner.1.3.0 (cached)
-> retrieved alcotest.1.9.0 (cached)
-> retrieved cryptokit.1.20 (cached)
-> installed conf-gmp.5
-> installed conf-pkg-config.4
-> retrieved csexp.1.5.2 (cached)
-> retrieved fmt.0.10.0 (cached)
-> installed conf-npm.1
-> installed conf-gmp-powm-sec.4
-> installed conf-zlib.1
-> retrieved gen.1.1 (cached)
-> retrieved menhir.20240715, menhirCST.20240715, menhirLib.20240715, menhirSdk.20240715 (cached)
-> retrieved ocaml-compiler-libs.v0.12.4 (cached)
-> retrieved ocaml-syntax-shims.1.0.0 (cached)
-> retrieved ocamlbuild.0.16.1 (cached)
-> retrieved dune.3.19.1, dune-configurator.3.19.1 (cached)
-> retrieved js_of_ocaml.6.1.1, js_of_ocaml-compiler.6.1.1 (cached)
-> retrieved ocamlfind.1.9.8 (cached)
-> retrieved ppx_derivers.1.2.1 (cached)
-> retrieved re.1.13.2 (cached)
-> retrieved seq.base (cached)
-> retrieved sedlex.3.6 (cached)
-> retrieved sexplib0.v0.17.0 (cached)
-> installed cmdliner.1.3.0
-> installed seq.base
-> retrieved ppxlib.0.36.0 (cached)
-> retrieved stdlib-shims.0.3.0 (cached)
-> retrieved topkg.1.0.8 (cached)
-> retrieved uutf.1.0.4 (cached)
-> retrieved yojson.3.0.0 (cached)
-> retrieved zarith.1.14 (cached)
-> installed ocamlfind.1.9.8
-> installed ocamlbuild.0.16.1
-> installed zarith.1.14
-> installed topkg.1.0.8
-> installed uutf.1.0.4
-> installed fmt.0.10.0
-> installed astring.0.8.5
-> installed dune.3.19.1
-> installed csexp.1.5.2
-> installed gen.1.1
-> installed menhirCST.20240715
-> installed menhirLib.20240715
-> installed menhirSdk.20240715
-> installed ocaml-compiler-libs.v0.12.4
-> installed ocaml-syntax-shims.1.0.0
-> installed ppx_derivers.1.2.1
-> installed re.1.13.2
-> installed sexplib0.v0.17.0
-> installed stdlib-shims.0.3.0
-> installed yojson.3.0.0
-> installed alcotest.1.9.0
-> installed dune-configurator.3.19.1
-> installed cryptokit.1.20
-> installed menhir.20240715
-> installed ppxlib.0.36.0
-> installed sedlex.3.6
-> installed js_of_ocaml-compiler.6.1.1
-> installed js_of_ocaml.6.1.1
Done.
# To update the current shell environment, run: eval $(opam env)
2025-07-10 18:12.15 ---> saved as "71deb33108352465b990d0f639d90f734eaf778cc2a1d4cd2976165739980a31"
/src: (copy (src .) (dst /src))
2025-07-10 18:12.15 ---> saved as "df2eb668b0f34a65ced359505351b605321a6253d13500ee55b9e7a73ed0a26c"
/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 `2Y6CBUII'.
[OK] pseudo-seeded 0 generate.
Full test results in `/src/_build/default/tests/_build/_tests/Nanoid'.
Test Successful in 0.001s. 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:3250
throw err;
^
Error: Cannot find module 'nanoid'
Require stack:
- /src/_build/default/tests/jsoo.bc.js
at Function._resolveFilename (node:internal/modules/cjs/loader:1401:15)
at defaultResolveImpl (node:internal/modules/cjs/loader:1057:19)
at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1062:22)
at Function._load (node:internal/modules/cjs/loader:1211:37)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
at Module.require (node:internal/modules/cjs/loader:1487:12)
at require (node:internal/modules/helpers:135:16)
at /src/_build/default/tests/jsoo.bc.js:52088:9
at Object.<anonymous> (/src/_build/default/tests/jsoo.bc.js:52098:3) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/src/_build/default/tests/jsoo.bc.js' ]
}
Node.js v22.15.1
"/usr/bin/env" "bash" "-c" "opam exec -- dune build @install @check @runtest && rm -rf _build" failed with exit status 1
2025-07-10 18:12.17: Job failed: Failed: Build failed