Organisationsroutinecoocaml-nanoidd22d76 (master)ubuntu-22.04-5.2_opam-2.1

ubuntu-22.04-5.2_opam-2.1

Link Copied
Code Copied

Logs

2024-06-29 08:33.08: New job: test routineco/ocaml-nanoid https://github.com/routineco/ocaml-nanoid.git#refs/heads/master (d22d768736e6599c8262f7e063a6f66775df6f69) (linux-x86_64:ubuntu-22.04-5.2_opam-2.1)
Base: ocaml/opam@sha256:9121751a806f3bcebfe2bcdac087ff67cf245f738b098836bc117389491f9df6
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@sha256:9121751a806f3bcebfe2bcdac087ff67cf245f738b098836bc117389491f9df6
# ubuntu-22.04-5.2_opam-2.1
USER 1000:1000
ENV CLICOLOR_FORCE="1"
ENV OPAMCOLOR="always"
WORKDIR /src
RUN sudo ln -f /usr/bin/opam-2.1 /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 75e85d5bb77f27fae869788623c85b5fe8b7ff40 || git fetch origin master) && git reset -q --hard 75e85d5bb77f27fae869788623c85b5fe8b7ff40 && git log --no-decorate -n1 --oneline && opam update -u
COPY --chown=1000:1000 nanoid.opam ./
RUN opam pin add -yn nanoid.dev './'
ENV DEPS="alcotest.1.7.0 astring.0.8.5 base-bigarray.base base-domains.base base-nnp.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.3 conf-zlib.1 cryptokit.1.19 csexp.1.5.2 dune.3.16.0 dune-configurator.3.16.0 fmt.0.9.0 gen.1.1 host-arch-x86_64.1 host-system-other.1 js_of_ocaml.5.8.2 js_of_ocaml-compiler.5.8.2 menhir.20231231 menhirCST.20231231 menhirLib.20231231 menhirSdk.20231231 ocaml.5.2.0 ocaml-base-compiler.5.2.0 ocaml-compiler-libs.v0.17.0 ocaml-config.3 ocaml-options-vanilla.1 ocaml-syntax-shims.1.0.0 ocamlbuild.0.14.3 ocamlfind.1.9.6 ppx_derivers.1.2.1 ppxlib.0.32.1 re.1.11.0 sedlex.3.2 seq.base sexplib0.v0.17.0 stdlib-shims.0.3.0 topkg.1.0.7 uutf.1.0.3 yojson.2.2.2 zarith.1.13"
ENV CI="true"
ENV OCAMLCI="true"
RUN opam update --depexts && opam install --cli=2.1 --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


2024-06-29 08:33.08: Using cache hint "routineco/ocaml-nanoid-ocaml/opam@sha256:9121751a806f3bcebfe2bcdac087ff67cf245f738b098836bc117389491f9df6-ubuntu-22.04-5.2_opam-2.1-cb9582f6512c6b37e51f74c64d90a38b"
2024-06-29 08:33.08: Using OBuilder spec:
((from ocaml/opam@sha256:9121751a806f3bcebfe2bcdac087ff67cf245f738b098836bc117389491f9df6)
 (comment ubuntu-22.04-5.2_opam-2.1)
 (user (uid 1000) (gid 1000))
 (env CLICOLOR_FORCE 1)
 (env OPAMCOLOR always)
 (workdir /src)
 (run (shell "sudo ln -f /usr/bin/opam-2.1 /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 75e85d5bb77f27fae869788623c85b5fe8b7ff40 || git fetch origin master) && git reset -q --hard 75e85d5bb77f27fae869788623c85b5fe8b7ff40 && git log --no-decorate -n1 --oneline && opam update -u"))
 (copy (src nanoid.opam) (dst ./))
 (run (network host)
      (shell "opam pin add -yn nanoid.dev './'"))
 (env DEPS "alcotest.1.7.0 astring.0.8.5 base-bigarray.base base-domains.base base-nnp.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.3 conf-zlib.1 cryptokit.1.19 csexp.1.5.2 dune.3.16.0 dune-configurator.3.16.0 fmt.0.9.0 gen.1.1 host-arch-x86_64.1 host-system-other.1 js_of_ocaml.5.8.2 js_of_ocaml-compiler.5.8.2 menhir.20231231 menhirCST.20231231 menhirLib.20231231 menhirSdk.20231231 ocaml.5.2.0 ocaml-base-compiler.5.2.0 ocaml-compiler-libs.v0.17.0 ocaml-config.3 ocaml-options-vanilla.1 ocaml-syntax-shims.1.0.0 ocamlbuild.0.14.3 ocamlfind.1.9.6 ppx_derivers.1.2.1 ppxlib.0.32.1 re.1.11.0 sedlex.3.2 seq.base sexplib0.v0.17.0 stdlib-shims.0.3.0 topkg.1.0.7 uutf.1.0.3 yojson.2.2.2 zarith.1.13")
 (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.1 --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"))
)


2024-06-29 08:33.08: Waiting for resource in pool OCluster
2024-06-29 19:59.46: Waiting for worker…
2024-06-29 20:03.12: 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@sha256:9121751a806f3bcebfe2bcdac087ff67cf245f738b098836bc117389491f9df6)
2024-06-29 20:03.13 ---> using "054a882e1dbbecd413123c86076162a5a1653ce36063aa898fbaced166513273" from cache


/: (comment ubuntu-22.04-5.2_opam-2.1)


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


/: (env CLICOLOR_FORCE 1)


/: (env OPAMCOLOR always)


/: (workdir /src)


/src: (run (shell "sudo ln -f /usr/bin/opam-2.1 /usr/bin/opam"))
2024-06-29 20:03.13 ---> using "294ccb029f4a393d1844f370562215f757a50a3d70a2f71059ee5379fac73d3b" 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.1, 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] synchronised from file:///home/opam/opam-repository
2024-06-29 20:03.13 ---> using "a11f659d643322fc7ba4738b694c8b8ee59f77c6afabb7c53ab4dda4174b8ff2" from cache


/src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 5.15.0-112-generic
The OCaml toplevel, version 5.2.0
2.1.6
2024-06-29 20:03.13 ---> using "a3c92c6822c679306922b52e1d1dfb8ce0ace9045128350d1d038c14ed804790" from cache


/src: (workdir /src)


/src: (run (shell "sudo chown opam /src"))
2024-06-29 20:03.13 ---> using "3ab7c4d2c1a004dc814ebcc96ab8ceea8e4af3b7c3cd674f61d1a9e27dccd013" from cache


/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
           (network host)
           (shell "cd ~/opam-repository && (git cat-file -e 75e85d5bb77f27fae869788623c85b5fe8b7ff40 || git fetch origin master) && git reset -q --hard 75e85d5bb77f27fae869788623c85b5fe8b7ff40 && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
 * branch                  master     -> FETCH_HEAD
   c45f5bab71..9a2dc81b1c  master     -> origin/master
75e85d5bb7 Merge pull request #26130 from dra27/os-cygwin


<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from file:///home/opam/opam-repository


The following actions will be performed:
  - install   host-arch-x86_64      1
  - install   host-system-other     1
  - recompile ocaml-options-vanilla 1       [upstream or system changes]
  - recompile ocaml-base-compiler   5.2.0*  [upstream or system changes]
  - recompile ocaml-config          3       [uses ocaml-base-compiler]
  - recompile ocaml                 5.2.0   [uses ocaml-base-compiler]
  - recompile opam-depext           1.2.1-1 [uses ocaml]
  - recompile base-domains          base    [uses ocaml]
  - recompile base-nnp              base    [uses base-domains]
===== 2 to install | 7 to recompile =====


<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved ocaml-config.3  (cached)
-> removed   ocaml-options-vanilla.1
-> installed host-arch-x86_64.1
-> installed host-system-other.1
-> installed ocaml-options-vanilla.1
-> retrieved opam-depext.1.2.1-1  (cached)
-> retrieved ocaml-base-compiler.5.2.0  (cached)
-> removed   base-nnp.base
-> removed   base-domains.base
-> removed   opam-depext.1.2.1-1
-> removed   ocaml.5.2.0
-> removed   ocaml-config.3
-> removed   ocaml-base-compiler.5.2.0
-> installed ocaml-base-compiler.5.2.0
-> installed ocaml-config.3
-> installed ocaml.5.2.0
-> installed base-domains.base
-> installed base-nnp.base
-> installed opam-depext.1.2.1-1
Done.


<><> opam-depext.1.2.1-1 installed successfully <><><><><><><><><><><><><><><><>
=> opam-depext is unnecessary when used with opam >= 2.1. Please use opam install directly instead
# Run eval $(opam env) to update the current shell environment
2024-06-29 20:03.13 ---> using "cada8cf632d02c1f7a38e84b387ba52c8c981ec4ee75d20aa0b3552bc2846d6d" from cache


/src: (copy (src nanoid.opam) (dst ./))
2024-06-29 20:03.13 ---> saved as "8c07a29e602ef961b442bfbddbda3b0b626314e161e72e28d8fe736c51b939bb"


/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)
2024-06-29 20:03.16 ---> saved as "ae38a48a34445c780793d8aadfe54081329329ce5f97f622d6c6c71f41fb912f"


/src: (env DEPS "alcotest.1.7.0 astring.0.8.5 base-bigarray.base base-domains.base base-nnp.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.3 conf-zlib.1 cryptokit.1.19 csexp.1.5.2 dune.3.16.0 dune-configurator.3.16.0 fmt.0.9.0 gen.1.1 host-arch-x86_64.1 host-system-other.1 js_of_ocaml.5.8.2 js_of_ocaml-compiler.5.8.2 menhir.20231231 menhirCST.20231231 menhirLib.20231231 menhirSdk.20231231 ocaml.5.2.0 ocaml-base-compiler.5.2.0 ocaml-compiler-libs.v0.17.0 ocaml-config.3 ocaml-options-vanilla.1 ocaml-syntax-shims.1.0.0 ocamlbuild.0.14.3 ocamlfind.1.9.6 ppx_derivers.1.2.1 ppxlib.0.32.1 re.1.11.0 sedlex.3.2 seq.base sexplib0.v0.17.0 stdlib-shims.0.3.0 topkg.1.0.7 uutf.1.0.3 yojson.2.2.2 zarith.1.13")


/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.1 --depext-only -y nanoid.dev $DEPS"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease
- Get:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [128 kB]
- Get:3 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [127 kB]
- Get:4 http://security.ubuntu.com/ubuntu jammy-security InRelease [129 kB]
- Get:5 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [51.8 kB]
- Get:6 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1398 kB]
- Get:7 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [2639 kB]
- Get:8 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [2238 kB]
- Get:9 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [32.2 kB]
- Get:10 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [2566 kB]
- Get:11 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [1974 kB]
- Get:12 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [1114 kB]
- Get:13 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [44.7 kB]
- Fetched 12.4 MB in 1s (10.2 MB/s)
- Reading package lists...
- 


<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[nanoid.dev] synchronised (no changes)


[NOTE] Package ocaml-options-vanilla is already installed (current version is 1).
[NOTE] Package ocaml-config is already installed (current version is 3).
[NOTE] Package ocaml-base-compiler is already installed (current version is 5.2.0).
[NOTE] Package ocaml is already installed (current version is 5.2.0).
[NOTE] Package host-system-other is already installed (current version is 1).
[NOTE] Package host-arch-x86_64 is already installed (current version is 1).
[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-nnp is already installed (current version is base).
[NOTE] Package base-domains 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:
    libgmp-dev npm pkg-config zlib1g-dev


<><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><>
+ /usr/bin/sudo "apt-get" "install" "-qq" "-yy" "libgmp-dev" "npm" "pkg-config" "zlib1g-dev"
- debconf: delaying package configuration, since apt-utils is not installed


- Regenerating fonts cache... 


- Setting up libdatrie1:amd

2024-06-29 20:04.05 ---> saved as "117ce842493fe405ad41348189e56028b5409d84df90ae167089b5af0f44f020"


/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 3).
[NOTE] Package ocaml-base-compiler is already installed (current version is 5.2.0).
[NOTE] Package ocaml is already installed (current version is 5.2.0).
[NOTE] Package host-system-other is already installed (current version is 1).
[NOTE] Package host-arch-x86_64 is already installed (current version is 1).
[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-nnp is already installed (current version is base).
[NOTE] Package base-domains 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 ocamlbuild           0.14.3
  - install ocamlfind            1.9.6
  - install seq                  base
  - install conf-gmp             4
  - install conf-pkg-config      3
  - install conf-npm             1
  - install dune                 3.16.0
  - install cmdliner             1.3.0
  - install topkg                1.0.7
  - install zarith               1.13
  - install conf-gmp-powm-sec    3
  - install conf-zlib            1
  - install yojson               2.2.2
  - install stdlib-shims         0.3.0
  - install sexplib0             v0.17.0
  - install re                   1.11.0
  - install ppx_derivers         1.2.1
  - install ocaml-syntax-shims   1.0.0
  - install ocaml-compiler-libs  v0.17.0
  - install menhirSdk            20231231
  - install menhirLib            20231231
  - install menhirCST            20231231
  - install gen                  1.1
  - install csexp                1.5.2
  - install uutf                 1.0.3
  - install fmt                  0.9.0
  - install astring              0.8.5
  - install ppxlib               0.32.1
  - install menhir               20231231
  - install dune-configurator    3.16.0
  - install alcotest             1.7.0
  - install sedlex               3.2
  - install cryptokit            1.19
  - install js_of_ocaml-compiler 5.8.2
  - install js_of_ocaml          5.8.2
===== 35 to install =====


<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved astring.0.8.5  (cached)
-> retrieved conf-gmp.4  (cached)
-> retrieved conf-gmp-powm-sec.3  (cached)
-> retrieved alcotest.1.7.0  (cached)
-> retrieved cmdliner.1.3.0  (cached)
-> retrieved cryptokit.1.19  (cached)
-> installed conf-gmp.4
-> installed conf-pkg-config.3
-> retrieved csexp.1.5.2  (cached)
-> installed conf-zlib.1
-> retrieved fmt.0.9.0  (cached)
-> installed conf-gmp-powm-sec.3
-> retrieved gen.1.1  (cached)
-> installed conf-npm.1
-> retrieved dune.3.16.0  (cached)
-> retrieved dune-configurator.3.16.0  (cached)
-> retrieved js_of_ocaml.5.8.2  (cached)
-> retrieved js_of_ocaml-compiler.5.8.2  (cached)
-> retrieved menhir.20231231  (cached)
-> retrieved menhirCST.20231231  (cached)
-> retrieved menhirLib.20231231  (cached)
-> retrieved menhirSdk.20231231  (cached)
-> retrieved ocaml-compiler-libs.v0.17.0  (cached)
-> installed cmdliner.1.3.0
-> retrieved ocaml-syntax-shims.1.0.0  (cached)
-> retrieved ocamlbuild.0.14.3  (cached)
-> retrieved ocamlfind.1.9.6  (cached)
-> retrieved ppx_derivers.1.2.1  (cached)
-> retrieved ppxlib.0.32.1  (cached)
-> retrieved seq.base  (cached)
-> installed seq.base
-> retrieved re.1.11.0  (cached)
-> retrieved sedlex.3.2  (cached)
-> retrieved sexplib0.v0.17.0  (cached)
-> retrieved stdlib-shims.0.3.0  (cached)
-> retrieved topkg.1.0.7  (cached)
-> retrieved uutf.1.0.3  (cached)
-> retrieved yojson.2.2.2  (cached)
-> retrieved zarith.1.13  (cached)
-> installed ocamlfind.1.9.6
-> installed zarith.1.13
-> installed ocamlbuild.0.14.3
-> installed topkg.1.0.7
-> installed uutf.1.0.3
-> installed fmt.0.9.0
-> installed astring.0.8.5
-> installed dune.3.16.0
-> installed csexp.1.5.2
-> installed gen.1.1
-> installed menhirCST.20231231
-> installed menhirLib.20231231
-> installed menhirSdk.20231231
-> installed ppx_derivers.1.2.1
-> installed sexplib0.v0.17.0
-> installed stdlib-shims.0.3.0
-> installed re.1.11.0
-> installed ocaml-syntax-shims.1.0.0
-> installed ocaml-compiler-libs.v0.17.0
-> installed yojson.2.2.2
-> installed dune-configurator.3.16.0
-> installed alcotest.1.7.0
-> installed cryptokit.1.19
-> installed ppxlib.0.32.1
-> installed menhir.20231231
-> installed sedlex.3.2
-> installed js_of_ocaml-compiler.5.8.2
-> installed js_of_ocaml.5.8.2
Done.
# Run eval $(opam env) to update the current shell environment
2024-06-29 20:05.53 ---> saved as "7a368b54404d362409b1212a9b5c8db7dbc0e18faf6a3dd8d9aecc911cb1908f"


/src: (copy (src .) (dst /src))
2024-06-29 20:05.54 ---> saved as "4d2eb12ef788c6875073e6c964710043648c62a36b51dacf3efb958e6d733ac8"


/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 `TR15YVZL'.


  [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:4231
     throw err;
     ^


Error: Cannot find module 'nanoid'
Require stack:
- /src/_build/default/tests/jsoo.bc.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
    at Function.Module._load (internal/modules/cjs/loader.js:667:27)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:85:18)
    at /src/_build/default/tests/jsoo.bc.js:55595:11
    at Object.<anonymous> (/src/_build/default/tests/jsoo.bc.js:55605:3)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/src/_build/default/tests/jsoo.bc.js' ]
}
"/usr/bin/env" "bash" "-c" "opam exec -- dune build @install @check @runtest && rm -rf _build" failed with exit status 1
2024-06-29 20:05.57: Job failed: Failed: Build failed