2024-11-06 15:54.52: New job: test nomadic-labs/ocaml-secp256k1-internal https://gitlab.com/nomadic-labs/ocaml-secp256k1-internal.git#refs/heads/master (208f167fd87140ab282bca93d23d84884e0d531b) (macos-arm64:macos-homebrew-4.14_arm64_opam-2.2)
Base: macos-homebrew-ocaml-4.14
Opam project build
To reproduce locally:
git clone --recursive "https://gitlab.com/nomadic-labs/ocaml-secp256k1-internal.git" -b "master" && cd "ocaml-secp256k1-internal" && git reset --hard 208f167f
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM macos-homebrew-ocaml-4.14
# macos-homebrew-4.14_arm64_opam-2.2
USER 1000:1000
ENV CLICOLOR_FORCE="1"
ENV OPAMCOLOR="always"
RUN ln -f ~/local/bin/opam-2.2 ~/local/bin/opam
RUN opam init --reinit -ni
RUN uname -rs && opam exec -- ocaml -version && opam --version
RUN cd ~/opam-repository && (git cat-file -e 371a52f4a8b5c88dc9de4f5a5f6375fb0963297a || git fetch origin master) && git reset -q --hard 371a52f4a8b5c88dc9de4f5a5f6375fb0963297a && git log --no-decorate -n1 --oneline && opam update -u
COPY --chown=1000:1000 secp256k1-internal.opam ./src/./
RUN opam pin add -yn secp256k1-internal.dev './src/./'
ENV DEPS="alcotest.1.8.0 astring.0.8.5 base-bigarray.base base-bytes.base base-threads.base base-unix.base bigstring.0.3 cmdliner.1.3.0 conf-gmp.4 conf-pkg-config.3 csexp.1.5.2 cstruct.6.2.0 dune.3.16.1 dune-configurator.3.16.1 fmt.0.9.0 gen.1.1 hex.1.5.0 host-arch-arm64.1 host-system-other.1 js_of_ocaml-compiler.5.8.2 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.15.0 ocamlfind.1.9.6 ppx_derivers.1.2.1 ppxlib.0.33.0 re.1.12.0 sedlex.3.3 seq.base sexplib0.v0.17.0 stdlib-shims.0.3.0 topkg.1.0.7 uutf.1.0.3 yojson.2.2.2"
ENV CI="true"
ENV OCAMLCI="true"
RUN opam update --depexts && opam install --cli=2.2 --depext-only -y secp256k1-internal.dev $DEPS
RUN opam install $DEPS
COPY --chown=1000:1000 . ./src
RUN cd ./src && opam exec -- dune build @install @check @runtest && rm -rf _build
END-OF-DOCKERFILE
docker build .
END-REPRO-BLOCK
2024-11-06 15:54.52: Using cache hint "nomadic-labs/ocaml-secp256k1-internal-macos-homebrew-ocaml-4.14-macos-homebrew-4.14_arm64_opam-2.2-f1eaebe00600858e1aa9243a924c25cb"
2024-11-06 15:54.52: Using OBuilder spec:
((from macos-homebrew-ocaml-4.14)
(comment macos-homebrew-4.14_arm64_opam-2.2)
(user (uid 1000) (gid 1000))
(env CLICOLOR_FORCE 1)
(env OPAMCOLOR always)
(run (shell "ln -f ~/local/bin/opam-2.2 ~/local/bin/opam"))
(run (shell "opam init --reinit -ni"))
(run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
(run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e 371a52f4a8b5c88dc9de4f5a5f6375fb0963297a || git fetch origin master) && git reset -q --hard 371a52f4a8b5c88dc9de4f5a5f6375fb0963297a && git log --no-decorate -n1 --oneline && opam update -u"))
(copy (src secp256k1-internal.opam) (dst ./src/./))
(run (network host)
(shell "opam pin add -yn secp256k1-internal.dev './src/./'"))
(env DEPS "alcotest.1.8.0 astring.0.8.5 base-bigarray.base base-bytes.base base-threads.base base-unix.base bigstring.0.3 cmdliner.1.3.0 conf-gmp.4 conf-pkg-config.3 csexp.1.5.2 cstruct.6.2.0 dune.3.16.1 dune-configurator.3.16.1 fmt.0.9.0 gen.1.1 hex.1.5.0 host-arch-arm64.1 host-system-other.1 js_of_ocaml-compiler.5.8.2 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.15.0 ocamlfind.1.9.6 ppx_derivers.1.2.1 ppxlib.0.33.0 re.1.12.0 sedlex.3.3 seq.base sexplib0.v0.17.0 stdlib-shims.0.3.0 topkg.1.0.7 uutf.1.0.3 yojson.2.2.2")
(env CI true)
(env OCAMLCI true)
(run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
(network host)
(shell "opam update --depexts && opam install --cli=2.2 --depext-only -y secp256k1-internal.dev $DEPS"))
(run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
(network host)
(shell "opam install $DEPS"))
(copy (src .) (dst ./src))
(run (shell "cd ./src && opam exec -- dune build @install @check @runtest && rm -rf _build"))
)
2024-11-06 15:54.52: Waiting for resource in pool OCluster
2024-11-06 15:54.52: Waiting for worker…
2024-11-06 15:57.46: Got resource from pool OCluster
Building on m1-worker-03
Initialized empty Git repository in /private/var/lib/ocluster-worker/git/ocaml-secp256k1-internal.git-134e71b389ad461502b5a6386f261ab8c8501709/.git/
HEAD is now at 208f167 change ci
(from macos-homebrew-ocaml-4.14)
2024-11-06 15:57.50 ---> using "0c60f117aee57abea8364cb033d47bb1d63ff0f68e5ee97378e032498e8442af" from cache
/: (comment macos-homebrew-4.14_arm64_opam-2.2)
/: (user (uid 1000) (gid 1000))
/: (env CLICOLOR_FORCE 1)
/: (env OPAMCOLOR always)
/: (run (shell "ln -f ~/local/bin/opam-2.2 ~/local/bin/opam"))
2024-11-06 15:57.50 ---> using "0fc88bc096429f8087d29338c802b1e4d45e761b825e45695066961067369beb" from cache
/: (run (shell "opam init --reinit -ni"))
No configuration file found, using 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 /Users/mac1000/.opam from version 2.1 to version 2.2, which can't be reverted.
You may want to back it up before going further.
Continue? [y/n] y
[NOTE] The 'jobs' option was reset, its value was 1 and its new value will vary according to the current number of cores on your machine. You can restore the fixed value using:
opam option jobs=1 --global
Format upgrade done.
<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] no changes from git+file:///Users/mac1000/opam-repository
2024-11-06 15:57.50 ---> using "73ba886e49c62b39892c1961565fafbc649da382428721fca289ffcf0b892673" from cache
/: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Darwin 23.4.0
The OCaml toplevel, version 4.14.2
2.2.1
2024-11-06 15:57.51 ---> using "07fa1eab191e27fa6a90116da06eed20ebaaf79e4c99d1f9adbbe0baf8e3f1a3" from cache
/: (run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e 371a52f4a8b5c88dc9de4f5a5f6375fb0963297a || git fetch origin master) && git reset -q --hard 371a52f4a8b5c88dc9de4f5a5f6375fb0963297a && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
* branch master -> FETCH_HEAD
b8e118d3ef..9048aac630 master -> origin/master
371a52f4a8 Merge pull request #26816 from maiste/release-dune-3.16.1
<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from git+file:///Users/mac1000/opam-repository
Everything as up-to-date as possible (run with --verbose to show unavailable upgrades).
The following packages are not being upgraded because the new versions conflict with other installed packages:
- ocaml.5.4.0
- ocaml-config.3
However, you may "opam upgrade" these packages explicitly, which will ask permission to downgrade or uninstall the conflicting packages.
Nothing to do.
# Run eval $(opam env) to update the current shell environment
2024-11-06 15:57.51 ---> using "d602cdb6f4472c6c64cc61c9bea2a7aaaeca891b0936a979d5432fb52c8bbafa" from cache
/: (copy (src secp256k1-internal.opam) (dst ./src/./))
2024-11-06 15:57.52 ---> saved as "0fab24fa5fe7d1a0356aee88e53d7fcf046542ade75a04c716cacb09a541faf4"
/: (run (network host)
(shell "opam pin add -yn secp256k1-internal.dev './src/./'"))
[secp256k1-internal.dev] synchronised (file:///Users/mac1000/src)
secp256k1-internal is now pinned to file:///Users/mac1000/src (version dev)
2024-11-06 15:58.02 ---> saved as "a5ea3cbcec27ac64b841691793b2bd70032c6dd9549d7582e300757b21079884"
/: (env DEPS "alcotest.1.8.0 astring.0.8.5 base-bigarray.base base-bytes.base base-threads.base base-unix.base bigstring.0.3 cmdliner.1.3.0 conf-gmp.4 conf-pkg-config.3 csexp.1.5.2 cstruct.6.2.0 dune.3.16.1 dune-configurator.3.16.1 fmt.0.9.0 gen.1.1 hex.1.5.0 host-arch-arm64.1 host-system-other.1 js_of_ocaml-compiler.5.8.2 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.15.0 ocamlfind.1.9.6 ppx_derivers.1.2.1 ppxlib.0.33.0 re.1.12.0 sedlex.3.3 seq.base sexplib0.v0.17.0 stdlib-shims.0.3.0 topkg.1.0.7 uutf.1.0.3 yojson.2.2.2")
/: (env CI true)
/: (env OCAMLCI true)
/: (run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
(network host)
(shell "opam update --depexts && opam install --cli=2.2 --depext-only -y secp256k1-internal.dev $DEPS"))
+ /opt/homebrew/bin/brew "update"
- ==> Updating Homebrew...
- Already up-to-date.
<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[secp256k1-internal.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 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 host-system-other is already installed (current version is 1).
[NOTE] Package host-arch-arm64 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-bigarray is already installed (current version is base).
The following system packages will first need to be installed:
gmp pkg-config
<><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><>
+ /opt/homebrew/bin/brew "install" "gmp" "pkg-config"
- ==> Downloading https://ghcr.io/v2/homebrew/core/gmp/manifests/6.3.0
- Already downloaded: /Users/mac1000/Library/Caches/Homebrew/downloads/70a72a71216843d66a953c06ff6337445ce9bc94fae9f0e301e2f59005274a8e--gmp-6.3.0.bottle_manifest.json
- ==> Fetching gmp
- ==> Downloading https://ghcr.io/v2/homebrew/core/gmp/blobs/sha256:78e4f40cba6419cf7e2d81e9c945d1e93744511bd5230bdfac1b69ed894914b4
- Already downloaded: /Users/mac1000/Library/Caches/Homebrew/downloads/96a5c6ba7b30c6f2734be44067ba66ef0de5e0973c913659c7b555a4b063029c--gmp--6.3.0.arm64_sonoma.bottle.tar.gz
- ==> Downloading https://ghcr.io/v2/homebrew/core/pkg-config/manifests/0.29.2_3
- Already downloaded: /Users/mac1000/Library/Caches/Homebrew/downloads/ac691fc7ab8ecffba32a837e7197101d271474a3a84cfddcc30c9fd6763ab3c6--pkg-config-0.29.2_3.bottle_manifest.json
- ==> Fetching pkg-config
- ==> Downloading https://ghcr.io/v2/homebrew/core/pkg-config/blobs/sha256:7b59abc0b5381065b1eab174217307af9324e0d02edf903171b29250ae58aeaf
- Already downloaded: /Users/mac1000/Library/Caches/Homebrew/downloads/84ce7ed13999bc49b583c1b0bfd220d1bb0682ca2316d985b0f5f9e9c0a9084d--pkg-config--0.29.2_3.arm64_sonoma.bottle.tar.gz
- ==> Pouring gmp--6.3.0.arm64_sonoma.bottle.tar.gz
- 🍺 /opt/homebrew/Cellar/gmp/6.3.0: 22 files, 3.3MB
- ==> Running `brew cleanup gmp`...
- Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
- Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
- ==> Pouring pkg-config--0.29.2_3.arm64_sonoma.bottle.tar.gz
- 🍺 /opt/homebrew/Cellar/pkg-config/0.29.2_3: 12 files, 678.2KB
- ==> Running `brew cleanup pkg-config`...
2024-11-06 15:58.19 ---> saved as "0411aa89ac7152f81f2de83aeb09d1c6b25978b4548a1e0cc07d9e17af8067cd"
/: (run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
(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 host-system-other is already installed (current version is 1).
[NOTE] Package host-arch-arm64 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-bigarray is already installed (current version is base).
The following actions will be performed:
=== install 33 packages
- install alcotest 1.8.0
- install astring 0.8.5
- install base-bytes base
- install bigstring 0.3
- install cmdliner 1.3.0
- install conf-gmp 4
- install conf-pkg-config 3
- install csexp 1.5.2
- install cstruct 6.2.0
- install dune 3.16.1
- install dune-configurator 3.16.1
- install fmt 0.9.0
- install gen 1.1
- install hex 1.5.0
- install js_of_ocaml-compiler 5.8.2
- 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.15.0
- install ocamlfind 1.9.6
- install ppx_derivers 1.2.1
- install ppxlib 0.33.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.7
- install uutf 1.0.3
- install yojson 2.2.2
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved astring.0.8.5 (cached)
-> retrieved cmdliner.1.3.0 (cached)
-> retrieved conf-gmp.4 (cached)
-> retrieved csexp.1.5.2 (cached)
-> retrieved alcotest.1.8.0 (cached)
-> installed conf-gmp.4
-> installed conf-pkg-config.3
-> retrieved cstruct.6.2.0 (cached)
-> retrieved fmt.0.9.0 (cached)
-> retrieved gen.1.1 (cached)
-> retrieved hex.1.5.0 (cached)
-> retrieved bigstring.0.3 (https://github.com/c-cube/ocaml-bigstring/archive/0.3.tar.gz)
-> 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 js_of_ocaml-compiler.5.8.2 (cached)
-> retrieved ocamlbuild.0.15.0 (cached)
-> retrieved ppx_derivers.1.2.1 (cached)
-> retrieved ocamlfind.1.9.6 (cached)
-> retrieved re.1.12.0 (cached)
-> retrieved dune.3.16.1, dune-configurator.3.16.1 (cached)
-> retrieved seq.base (cached)
-> installed seq.base
-> retrieved sexplib0.v0.17.0 (cached)
-> installed ocamlbuild.0.15.0
-> retrieved stdlib-shims.0.3.0 (cached)
-> retrieved sedlex.3.3 (cached)
-> retrieved ppxlib.0.33.0 (cached)
-> retrieved uutf.1.0.3 (cached)
-> retrieved topkg.1.0.7 (cached)
-> retrieved yojson.2.2.2 (cached)
-> installed cmdliner.1.3.0
-> installed ocamlfind.1.9.6
-> installed base-bytes.base
-> installed topkg.1.0.7
-> installed uutf.1.0.3
-> installed fmt.0.9.0
-> installed astring.0.8.5
-> installed dune.3.16.1
-> installed csexp.1.5.2
-> installed bigstring.0.3
-> installed ocaml-compiler-libs.v0.12.4
-> installed menhirSdk.20240715
-> installed menhirLib.20240715
-> installed menhirCST.20240715
-> installed gen.1.1
-> installed cstruct.6.2.0
-> installed ppx_derivers.1.2.1
-> installed stdlib-shims.0.3.0
-> installed hex.1.5.0
-> installed ocaml-syntax-shims.1.0.0
-> installed sexplib0.v0.17.0
-> installed re.1.12.0
-> installed dune-configurator.3.16.1
-> installed yojson.2.2.2
-> installed alcotest.1.8.0
-> installed menhir.20240715
-> installed ppxlib.0.33.0
-> installed sedlex.3.3
-> installed js_of_ocaml-compiler.5.8.2
Done.
# Run eval $(opam env) to update the current shell environment
2024-11-06 15:59.24 ---> saved as "7e1dc4cedf6061bb47aaefb2ed427fc7547af0a15592e9b237c65fc7a41ca463"
/: (copy (src .) (dst ./src))
2024-11-06 15:59.25 ---> saved as "08b7b0bb4af326b9bbe88ca4e0ecfd4215467aa22204702596129a3fb0872af0"
/: (run (shell "cd ./src && opam exec -- dune build @install @check @runtest && rm -rf _build"))
(cd _build/default/test && ./test.exe)
Testing `secp256k1'.
This run has ID `X7KG0F2P'.
[OK] Scalar 0 basic.
[OK] Scalar 1 add_inplace.
[OK] External 0 signature_of_string.
[OK] External 1 valid_signature.
[OK] External 2 invalid_signature.
[OK] External 3 public_module.
[OK] External 4 pubkey_creation.
[OK] External 5 sign.
[OK] External 6 combine.
[OK] External 7 recover.
Full test results in `~/src/_build/default/test/_build/_tests/secp256k1'.
Test Successful in 0.001s. 10 tests run.
2024-11-06 15:59.27 ---> saved as "0bf9723a66a5775a7ae93e419ba87f064ad5c73b03e8d277e47887ff4429e716"
Job succeeded
2024-11-06 15:59.36: Job succeeded