Organisationsocsigenlwtfd819c (ppx-type-wrong-1085--592)macos-homebrew-4.14_arm64_opam-2.5

macos-homebrew-4.14_arm64_opam-2.5

Link Copied
Code Copied

Logs

2026-01-16 11:40.13: New job: test ocsigen/lwt https://github.com/ocsigen/lwt.git#refs/heads/ppx-type-wrong-1085--592 (fd819c1e80599925be07d49d7361422f82d4e4bf) (macos-arm64:macos-homebrew-4.14_arm64_opam-2.5)
Base: macos-homebrew-ocaml-4.14
Opam project build


To reproduce locally:


git clone --recursive "https://github.com/ocsigen/lwt.git" -b "ppx-type-wrong-1085--592" && cd "lwt" && git reset --hard fd819c1e
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM macos-homebrew-ocaml-4.14
# macos-homebrew-4.14_arm64_opam-2.5
USER 1000:1000
ENV CLICOLOR_FORCE="1"
ENV OPAMCOLOR="always"
RUN ln -f ~/local/bin/opam-2.5 ~/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 873cb18c37b308713d11ad3894c4bb78d73fb3e7 || git fetch origin master) && git reset -q --hard 873cb18c37b308713d11ad3894c4bb78d73fb3e7 && git log --no-decorate -n1 --oneline && opam update -u
COPY --chown=1000:1000 lwt_retry.opam lwt_react.opam lwt_ppx__ppx_let_tests.opam lwt_ppx.opam lwt.opam ./src/./
RUN opam pin add -yn lwt_retry.dev './src/./' && \
opam pin add -yn lwt_react.dev './src/./' && \
opam pin add -yn lwt_ppx__ppx_let_tests.dev './src/./' && \
opam pin add -yn lwt_ppx.dev './src/./' && \
opam pin add -yn lwt.dev './src/./'
RUN echo '(lang dune 3.0)' > './src/./dune-project'
ENV DEPS="base-bigarray.base base-bytes.base base-threads.base base-unix.base cppo.1.8.0 csexp.1.5.2 dune.3.21.0 dune-configurator.3.21.0 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-compiler-libs.v0.12.4 ocaml-config.2 ocaml-options-vanilla.1 ocamlbuild.0.16.1 ocamlfind.1.9.8 ocplib-endian.1.2 ppx_derivers.1.2.1 ppxlib.0.37.0 react.1.2.2 sexplib0.v0.17.0 stdlib-shims.0.3.0 topkg.1.1.1"
ENV CI="true"
ENV OCAMLCI="true"
RUN opam update --depexts && opam install --cli=2.5 --depext-only -y lwt_retry.dev lwt_react.dev lwt_ppx.dev lwt.dev $DEPS
RUN opam install $DEPS
COPY --chown=1000:1000 . ./src
RUN cd ./src && opam exec -- dune build --only-packages=lwt_retry,lwt_react,lwt_ppx,lwt @install @check @runtest && rm -rf _build


END-OF-DOCKERFILE
docker build .
END-REPRO-BLOCK


2026-01-16 11:40.13: Using cache hint "ocsigen/lwt-macos-homebrew-ocaml-4.14-macos-homebrew-4.14_arm64_opam-2.5-f80664a0fc43791440912ae83095cdb3"
2026-01-16 11:40.13: Using OBuilder spec:
((from macos-homebrew-ocaml-4.14)
(comment macos-homebrew-4.14_arm64_opam-2.5)
(user (uid 1000) (gid 1000))
(env CLICOLOR_FORCE 1)
(env OPAMCOLOR always)
(run (shell "ln -f ~/local/bin/opam-2.5 ~/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 873cb18c37b308713d11ad3894c4bb78d73fb3e7 || git fetch origin master) && git reset -q --hard 873cb18c37b308713d11ad3894c4bb78d73fb3e7 && git log --no-decorate -n1 --oneline && opam update -u"))
(copy (src lwt_retry.opam lwt_react.opam lwt_ppx__ppx_let_tests.opam lwt_ppx.opam lwt.opam)
(dst ./src/./))
(run (network host)
(shell  "opam pin add -yn lwt_retry.dev './src/./' && \
\nopam pin add -yn lwt_react.dev './src/./' && \
\nopam pin add -yn lwt_ppx__ppx_let_tests.dev './src/./' && \
\nopam pin add -yn lwt_ppx.dev './src/./' && \
\nopam pin add -yn lwt.dev './src/./'"))
(run (network host)
(shell "echo '(lang dune 3.0)' > './src/./dune-project'"))
(env DEPS "base-bigarray.base base-bytes.base base-threads.base base-unix.base cppo.1.8.0 csexp.1.5.2 dune.3.21.0 dune-configurator.3.21.0 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-compiler-libs.v0.12.4 ocaml-config.2 ocaml-options-vanilla.1 ocamlbuild.0.16.1 ocamlfind.1.9.8 ocplib-endian.1.2 ppx_derivers.1.2.1 ppxlib.0.37.0 react.1.2.2 sexplib0.v0.17.0 stdlib-shims.0.3.0 topkg.1.1.1")
(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.5 --depext-only -y lwt_retry.dev lwt_react.dev lwt_ppx.dev lwt.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 --only-packages=lwt_retry,lwt_react,lwt_ppx,lwt @install @check @runtest && rm -rf _build"))
)


2026-01-16 11:40.13: Waiting for resource in pool OCluster
2026-01-16 18:37.13: Waiting for worker…
2026-01-16 20:37.13: Got resource from pool OCluster
Building on m1-worker-03
All commits already cached
HEAD is now at fd819c1e8 ppx: add test for #1085, add standalone ppx executable


(from macos-homebrew-ocaml-4.14)
2026-01-16 20:37.13 ---> using "0c60f117aee57abea8364cb033d47bb1d63ff0f68e5ee97378e032498e8442af" from cache


/: (comment macos-homebrew-4.14_arm64_opam-2.5)


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


/: (env CLICOLOR_FORCE 1)


/: (env OPAMCOLOR always)


/: (run (shell "ln -f ~/local/bin/opam-2.5 ~/local/bin/opam"))
2026-01-16 20:37.14 ---> using "75b1629629d7f21c50a7e1e39b2ef83e2edb8ace81aab34254c0c8782b814749" 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
2026-01-16 20:37.14 ---> using "a61e945ab7671a6fff400f946e3fe88df4d67a783ea1f56fa59dc21595ef1b19" from cache


/: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Darwin 24.5.0
The OCaml toplevel, version 4.14.2
2.5.0
2026-01-16 20:37.14 ---> using "11a9923a4c4f0ab256d15330129e4c4938459d2e6239eb4f7bdf0f2620300e09" 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 873cb18c37b308713d11ad3894c4bb78d73fb3e7 || git fetch origin master) && git reset -q --hard 873cb18c37b308713d11ad3894c4bb78d73fb3e7 && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
* branch                  master     -> FETCH_HEAD
95f7875db7..873cb18c37  master     -> origin/master
873cb18c37 Merge pull request #29216 from shonfeder/release-dune-3.21.0


<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from git+file:///Users/mac1000/opam-repository


Everything as up-to-date as possible


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 at these versions (e.g. "opam upgrade ocaml.5.4.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-01-16 20:37.14 ---> using "9b174de0df1fe4f719027b2d8af70cb0e7a030ac562162893d628018ce2218f6" from cache


/: (copy (src lwt_retry.opam lwt_react.opam lwt_ppx__ppx_let_tests.opam lwt_ppx.opam lwt.opam)
(dst ./src/./))
2026-01-16 20:37.15 ---> saved as "ab97c3c35b8556511e81d1839b0e1f9da77f5def8eafb791e614194f5c0227d2"


/: (run (network host)
(shell  "opam pin add -yn lwt_retry.dev './src/./' && \
\nopam pin add -yn lwt_react.dev './src/./' && \
\nopam pin add -yn lwt_ppx__ppx_let_tests.dev './src/./' && \
\nopam pin add -yn lwt_ppx.dev './src/./' && \
\nopam pin add -yn lwt.dev './src/./'"))
[lwt_retry.dev] synchronised (file:///Users/mac1000/src)
lwt_retry is now pinned to file:///Users/mac1000/src (version dev)
[lwt_react.dev] synchronised (file:///Users/mac1000/src)
lwt_react is now pinned to file:///Users/mac1000/src (version dev)
[NOTE] Package lwt_ppx__ppx_let_tests does not exist in opam repositories registered in the current switch.
[lwt_ppx__ppx_let_tests.dev] synchronised (file:///Users/mac1000/src)
[WARNING] Failed checks on lwt_ppx__ppx_let_tests package definition from source at file:///Users/mac1000/src:
warning 62: License doesn't adhere to the SPDX standard, see https://spdx.org/licenses/ : "NOTFORRELEASE"
lwt_ppx__ppx_let_tests is now pinned to file:///Users/mac1000/src (version dev)
[lwt_ppx.dev] synchronised (file:///Users/mac1000/src)
lwt_ppx is now pinned to file:///Users/mac1000/src (version dev)
[lwt.dev] synchronised (file:///Users/mac1000/src)
lwt is now pinned to file:///Users/mac1000/src (version dev)
2026-01-16 20:37.36 ---> saved as "a22204b53d378af715345e80d85b8548c4eb89c9abc1a0168edfbbb259f4d671"


/: (run (network host)
(shell "echo '(lang dune 3.0)' > './src/./dune-project'"))
2026-01-16 20:37.37 ---> saved as "0f1959220c537313f8737027bb1617c803c7dd0b068b21b8c743a9e35126eb80"


/: (env DEPS "base-bigarray.base base-bytes.base base-threads.base base-unix.base cppo.1.8.0 csexp.1.5.2 dune.3.21.0 dune-configurator.3.21.0 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-compiler-libs.v0.12.4 ocaml-config.2 ocaml-options-vanilla.1 ocamlbuild.0.16.1 ocamlfind.1.9.8 ocplib-endian.1.2 ppx_derivers.1.2.1 ppxlib.0.37.0 react.1.2.2 sexplib0.v0.17.0 stdlib-shims.0.3.0 topkg.1.1.1")


/: (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.5 --depext-only -y lwt_retry.dev lwt_react.dev lwt_ppx.dev lwt.dev $DEPS"))
+ /opt/homebrew/bin/brew "update"
- ==> Updating Homebrew...
- Already up-to-date.


<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[lwt_react.dev] synchronised (file:///Users/mac1000/src)
[lwt_ppx.dev] synchronised (file:///Users/mac1000/src)
[lwt.dev] synchronised (file:///Users/mac1000/src)
[lwt_retry.dev] synchronised (file:///Users/mac1000/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).
# To update the current shell environment, run: eval $(opam env)
2026-01-16 20:37.54 ---> saved as "0efd811f74c4d649fa7e0460c1391a8695941a406e98b8d77f8475830da6ac64"


/: (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 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 15 packages
- install base-bytes          base
- install cppo                1.8.0
- install csexp               1.5.2
- install dune                3.21.0
- install dune-configurator   3.21.0
- install ocaml-compiler-libs v0.12.4
- install ocamlbuild          0.16.1
- install ocamlfind           1.9.8
- install ocplib-endian       1.2
- install ppx_derivers        1.2.1
- install ppxlib              0.37.0
- install react               1.2.2
- install sexplib0            v0.17.0
- install stdlib-shims        0.3.0
- install topkg               1.1.1


<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved csexp.1.5.2  (cached)
-> retrieved cppo.1.8.0  (cached)
-> retrieved ocaml-compiler-libs.v0.12.4  (cached)
-> retrieved ocamlfind.1.9.8  (cached)
-> retrieved ocplib-endian.1.2  (cached)
-> retrieved ocamlbuild.0.16.1  (cached)
-> retrieved ppx_derivers.1.2.1  (cached)
-> retrieved react.1.2.2  (cached)
-> retrieved sexplib0.v0.17.0  (cached)
-> retrieved stdlib-shims.0.3.0  (cached)
-> retrieved topkg.1.1.1  (cached)
-> retrieved ppxlib.0.37.0  (cached)
-> retrieved dune.3.21.0, dune-configurator.3.21.0  (cached)
-> installed ocamlbuild.0.16.1
-> installed ocamlfind.1.9.8
-> installed base-bytes.base
-> installed topkg.1.1.1
-> installed react.1.2.2
-> installed dune.3.21.0
-> installed stdlib-shims.0.3.0
-> installed ppx_derivers.1.2.1
-> installed csexp.1.5.2
-> installed sexplib0.v0.17.0
-> installed ocaml-compiler-libs.v0.12.4
-> installed cppo.1.8.0
-> installed ocplib-endian.1.2
-> installed dune-configurator.3.21.0
-> installed ppxlib.0.37.0
Done.
# To update the current shell environment, run: eval $(opam env)
2026-01-16 20:38.47 ---> saved as "975fc4a624631d2dc160ce61be1af31cc938c257c94a400be74c348a98d691d4"


/: (copy (src .) (dst ./src))
2026-01-16 20:38.48 ---> saved as "6670cd60e7b6248ed19cf0d34b6fdad504eda53e5ddec8997bc62d68704d5111"


/: (run (shell "cd ./src && opam exec -- dune build --only-packages=lwt_retry,lwt_react,lwt_ppx,lwt @install @check @runtest && rm -rf _build"))
(cd _build/default && /Users/mac1000/.opam/4.14.2/bin/ocamlopt.opt -w @1..3@5..28@31..39@43@46..47@49..57@61..62@67@69-40 -strict-sequence -strict-formats -short-paths -keep-locs -g -I test/ppx/.main.eobjs/byte -I test/ppx/.main.eobjs/native -I /Users/mac1000/.opam/4.14.2/lib/bytes -I /Users/mac1000/.opam/4.14.2/lib/ocaml/threads -I /Users/mac1000/.opam/4.14.2/lib/ocplib-endian -I /Users/mac1000/.opam/4.14.2/lib/ocplib-endian/bigstring -I src/core/.lwt.objs/byte -I src/core/.lwt.objs/native -I src/unix/.lwt_unix.objs/byte -I src/unix/.lwt_unix.objs/native -I test/.lwttester.objs/byte -I test/.lwttester.objs/native -intf-suffix .ml -no-alias-deps -opaque -o test/ppx/.main.eobjs/native/dune__exe__Main.cmx -c -impl test/ppx/main.pp.ml)
File "test/ppx/main.ml", line 169, characters 26-38:
169 |       let%lwt (_ : int) = Lwt.return 0 in
^^^^^^^^^^^^
Error: This expression has type int t but an expression was expected of type
int
(cd _build/default && /Users/mac1000/.opam/4.14.2/bin/ocamlc.opt -w @1..3@5..28@31..39@43@46..47@49..57@61..62@67@69-40 -strict-sequence -strict-formats -short-paths -keep-locs -g -bin-annot -I test/ppx/.main.eobjs/byte -I /Users/mac1000/.opam/4.14.2/lib/bytes -I /Users/mac1000/.opam/4.14.2/lib/ocaml/threads -I /Users/mac1000/.opam/4.14.2/lib/ocplib-endian -I /Users/mac1000/.opam/4.14.2/lib/ocplib-endian/bigstring -I src/core/.lwt.objs/byte -I src/unix/.lwt_unix.objs/byte -I test/.lwttester.objs/byte -intf-suffix .ml -no-alias-deps -opaque -o test/ppx/.main.eobjs/byte/dune__exe__Main.cmo -c -impl test/ppx/main.pp.ml)
File "test/ppx/main.ml", line 169, characters 26-38:
169 |       let%lwt (_ : int) = Lwt.return 0 in
^^^^^^^^^^^^
Error: This expression has type int t but an expression was expected of type
int
(cd _build/default/test/retry && ./main.exe)
Testing library 'retry'...
..............
Ok. 14 tests ran, 0 tests skipped in 0.09 seconds
(cd _build/default/test/core && ./main.exe)
Testing library 'core'...
...............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................SSSSSSSSSSSSSSSSSSSSSSS..................................................................................................................................................
Ok. 705 tests ran, 23 tests skipped in 0.10 seconds
(cd _build/default/test/react && ./main.exe)
Testing library 'react'...
...........
Ok. 11 tests ran, 0 tests skipped in 4.71 seconds
File "test/unix/dune", line 22, characters 7-11:
22 |  (name main)
^^^^
(cd _build/default/test/unix && ./main.exe)
Testing library 'unix'...
.....................................SSEE......................................................................................................................................................................................................
Test 'getgrgid and Unix.getgrgid' in suite 'lwt_unix' raised 'Not_found'
Test 'getgrnam and Unix.getgrnam' in suite 'lwt_unix' raised 'Not_found'
"/usr/bin/env" "bash" "-c" "cd ./src && opam exec -- dune build --only-packages=lwt_retry,lwt_react,lwt_ppx,lwt @install @check @runtest && rm -rf _build" failed with exit status 1
2026-01-16 20:39.04: Job failed: Failed: Build failed