2025-03-12 19:48.57: 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:d388038c045b444892fac6ec1f36ca88a8060f2e05d39caeb449a880d6ec4dec
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:d388038c045b444892fac6ec1f36ca88a8060f2e05d39caeb449a880d6ec4dec
# 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 3a07c5ca803c46e8ff2d2c9842211cf9a226c774 || git fetch origin master) && git reset -q --hard 3a07c5ca803c46e8ff2d2c9842211cf9a226c774 && 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.8.0 astring.0.8.5 base-bigarray.base base-threads.base base-unix.base cmdliner.1.3.0 conf-gmp.4 conf-gmp-powm-sec.3 conf-npm.1 conf-pkg-config.4 conf-zlib.1 cryptokit.1.20 csexp.1.5.2 dune.3.17.2 dune-configurator.3.17.2 fmt.0.10.0 gen.1.1 js_of_ocaml.6.0.1 js_of_ocaml-compiler.6.0.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.35.0 re.1.12.0 sedlex.3.3 seq.base sexplib0.v0.17.0 stdlib-shims.0.3.0 topkg.1.0.8 uutf.1.0.4 yojson.2.2.2 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-03-12 19:48.57: Using cache hint "routineco/ocaml-nanoid-ocaml/opam:alpine-3.21-ocaml-4.14@sha256:d388038c045b444892fac6ec1f36ca88a8060f2e05d39caeb449a880d6ec4dec-alpine-3.21-4.14_opam-2.3-db8afc2edee42a2e1345cab3a6e21508"
2025-03-12 19:48.57: Using OBuilder spec:
((from ocaml/opam:alpine-3.21-ocaml-4.14@sha256:d388038c045b444892fac6ec1f36ca88a8060f2e05d39caeb449a880d6ec4dec)
(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 3a07c5ca803c46e8ff2d2c9842211cf9a226c774 || git fetch origin master) && git reset -q --hard 3a07c5ca803c46e8ff2d2c9842211cf9a226c774 && 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.8.0 astring.0.8.5 base-bigarray.base base-threads.base base-unix.base cmdliner.1.3.0 conf-gmp.4 conf-gmp-powm-sec.3 conf-npm.1 conf-pkg-config.4 conf-zlib.1 cryptokit.1.20 csexp.1.5.2 dune.3.17.2 dune-configurator.3.17.2 fmt.0.10.0 gen.1.1 js_of_ocaml.6.0.1 js_of_ocaml-compiler.6.0.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.35.0 re.1.12.0 sedlex.3.3 seq.base sexplib0.v0.17.0 stdlib-shims.0.3.0 topkg.1.0.8 uutf.1.0.4 yojson.2.2.2 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-03-12 19:48.57: Waiting for resource in pool OCluster
2025-03-12 20:40.42: Waiting for worker…
2025-03-12 20:42.55: Got resource from pool OCluster
Building on asteria.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:d388038c045b444892fac6ec1f36ca88a8060f2e05d39caeb449a880d6ec4dec)
2025-03-12 20:42.56 ---> using "1365d3d062370cdb3e23e0410421a094d8879b8f0dd4d3093d64147b4bfe4ff9" 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-03-12 20:42.56 ---> using "5be1ab3ea9e48bd2199383c0f25d4669eec253aa64c46238de9e36ed6f7e50cb" 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 ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[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-12 20:42.56 ---> using "ca0f9b6308acc60ffbea931949e0e9fb7680afa32d2003099d5a7f217fa5486d" 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-12 20:42.56 ---> using "8e127786c3870968fda1dfe20835536dac15f3a82c303577d90f01ea7cc40e6d" from cache
/src: (workdir /src)
/src: (run (shell "sudo chown opam /src"))
2025-03-12 20:42.56 ---> using "1106de8ba8163af5066c46218ad21da7ed722fff392921ab78c2a9189d06c86d" from cache
/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e 3a07c5ca803c46e8ff2d2c9842211cf9a226c774 || git fetch origin master) && git reset -q --hard 3a07c5ca803c46e8ff2d2c9842211cf9a226c774 && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
* branch master -> FETCH_HEAD
862a7640b1..a3d20148ad master -> origin/master
3a07c5ca80 Merge pull request #27604 from dbuenzli/b0-publish-topkg-care.1.0.8-etc-34b29252ad1a6aca
<><> 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-12 20:42.56 ---> using "293d8a3fe0535f46f24d742a70ef831c71efad6f33739aa1784ba1f0711d9894" from cache
/src: (copy (src nanoid.opam) (dst ./))
2025-03-12 20:42.56 ---> saved as "6bcfbc0c73a44cdcd70da695d900823042be3af1272da7333243a1ccc36474e9"
/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-03-12 20:42.58 ---> saved as "388ab7276575e6e8d54c32865409a64901c428c1dbcfe3029dacbdaaa676880d"
/src: (run (network host)
(shell "echo '(lang dune 3.0)' > './dune-project'"))
2025-03-12 20:42.59 ---> saved as "313bd6ca0edcac1e2ccd2bbcd61f2f61441d71c0289b9cb7de048fbc49cb9c29"
/src: (env DEPS "alcotest.1.8.0 astring.0.8.5 base-bigarray.base base-threads.base base-unix.base cmdliner.1.3.0 conf-gmp.4 conf-gmp-powm-sec.3 conf-npm.1 conf-pkg-config.4 conf-zlib.1 cryptokit.1.20 csexp.1.5.2 dune.3.17.2 dune-configurator.3.17.2 fmt.0.10.0 gen.1.1 js_of_ocaml.6.0.1 js_of_ocaml-compiler.6.0.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.35.0 re.1.12.0 sedlex.3.3 seq.base sexplib0.v0.17.0 stdlib-shims.0.3.0 topkg.1.0.8 uutf.1.0.4 yojson.2.2.2 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-144-gc9b177afb6a [https://dl-cdn.alpinelinux.org/alpine/v3.21/main]
- v3.21.3-148-g3c6aaf25077 [https://dl-cdn.alpinelinux.org/alpine/v3.21/community]
- v20250108-3688-gbe3c0b88a1f [https://dl-cdn.alpinelinux.org/alpine/edge/main]
- v20250108-3704-g35f8acc00c3 [https://dl-cdn.alpinelinux.org/alpine/edge/community]
- v20250108-3704-g35f8acc00c3 [https://dl-cdn.alpinelinux.org/alpine/edge/testing]
- OK: 57019 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-r0)
- Executing icu-data-en-74.2-r0.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-r0)
- (6/10) Installing simdjson (3.10.1-r0)
- (7/10) Installing simdutf (5.6.3-r0)
- (8/10) Installing nodejs (22.13.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: 373 MiB in 111 packages
2025-03-12 20:43.21 ---> saved as "1bd21a36f63d55f032229f5efcc3684de5f38e45d19287812bfb3b99ac8912c5"
/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.8.0
- install astring 0.8.5
- install cmdliner 1.3.0
- install conf-gmp 4
- install conf-gmp-powm-sec 3
- 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.17.2
- install dune-configurator 3.17.2
- install fmt 0.10.0
- install gen 1.1
- install js_of_ocaml 6.0.1
- install js_of_ocaml-compiler 6.0.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.35.0
- install re 1.12.0
- install sedlex 3.3
- 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 2.2.2
- install zarith 1.14
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved astring.0.8.5 (cached)
-> retrieved conf-gmp.4 (cached)
-> retrieved conf-gmp-powm-sec.3 (cached)
-> retrieved cmdliner.1.3.0 (cached)
-> retrieved alcotest.1.8.0 (cached)
-> retrieved cryptokit.1.20 (cached)
-> installed conf-gmp.4
-> installed conf-npm.1
-> installed conf-pkg-config.4
-> retrieved csexp.1.5.2 (cached)
-> retrieved fmt.0.10.0 (cached)
-> installed conf-zlib.1
-> retrieved gen.1.1 (cached)
-> installed conf-gmp-powm-sec.3
-> retrieved menhir.20240715, menhirCST.20240715, menhirLib.20240715, menhirSdk.20240715 (cached)
-> retrieved dune.3.17.2, dune-configurator.3.17.2 (cached)
-> retrieved js_of_ocaml.6.0.1, js_of_ocaml-compiler.6.0.1 (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.1.3.0
-> retrieved ppxlib.0.35.0 (cached)
-> retrieved seq.base (cached)
-> installed seq.base
-> retrieved re.1.12.0 (cached)
-> retrieved sedlex.3.3 (cached)
-> retrieved sexplib0.v0.17.0 (cached)
-> retrieved stdlib-shims.0.3.0 (cached)
-> retrieved uutf.1.0.4 (cached)
-> retrieved topkg.1.0.8 (cached)
-> retrieved zarith.1.14 (cached)
-> retrieved yojson.2.2.2 (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.17.2
-> 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.12.0
-> installed sexplib0.v0.17.0
-> installed stdlib-shims.0.3.0
-> installed yojson.2.2.2
-> installed alcotest.1.8.0
-> installed dune-configurator.3.17.2
-> installed cryptokit.1.20
-> installed menhir.20240715
-> installed ppxlib.0.35.0
-> installed sedlex.3.3
-> installed js_of_ocaml-compiler.6.0.1
-> installed js_of_ocaml.6.0.1
Done.
# To update the current shell environment, run: eval $(opam env)
2025-03-12 20:44.51 ---> saved as "66a820e5a4f0c318d423781e9bdcf3d8c77578ca3284e6c559b74643368b9743"
/src: (copy (src .) (dst /src))
2025-03-12 20:44.51 ---> saved as "e7dd444dd51fb359dcc48d268c3a8e58c41bcd0a63e7a19bd626879b81bbeb33"
/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 && /home/opam/.opam/4.14/bin/js_of_ocaml build-runtime --source-map-inline --pretty -o .jsoo.eobjs/jsoo/jsoo.bc.runtime.js /home/opam/.opam/4.14/lib/alcotest/runtime.js)
warning: /home/opam/.opam/4.14/lib/alcotest/runtime.js:24: 'joo_global_object' is being deprecated, please use `globalThis` instead
(cd _build/default/tests && ./os.exe)
Testing `Nanoid'.
This run has ID `9GBYRF5M'.
[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:3469
throw err;
^
Error: Cannot find module 'nanoid'
Require stack:
- /src/_build/default/tests/jsoo.bc.js
at Function._resolveFilename (node:internal/modules/cjs/loader:1244:15)
at Function._load (node:internal/modules/cjs/loader:1070:27)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:217:24)
at Module.require (node:internal/modules/cjs/loader:1335:12)
at require (node:internal/modules/helpers:136:16)
at /src/_build/default/tests/jsoo.bc.js:52916:11
at Object.<anonymous> (/src/_build/default/tests/jsoo.bc.js:52926:3)
at Module._compile (node:internal/modules/cjs/loader:1562:14)
at Object..js (node:internal/modules/cjs/loader:1699:10) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/src/_build/default/tests/jsoo.bc.js' ]
}
Node.js v22.13.1
"/usr/bin/env" "bash" "-c" "opam exec -- dune build @install @check @runtest && rm -rf _build" failed with exit status 1
2025-03-12 20:44.54: Job failed: Failed: Build failed