Organisationsocamlmerlin879404 ()(lower-bound)

(lower-bound)

Link Copied
Code Copied

Logs

2024-05-12 07:48.18: New job: test ocaml/merlin https://github.com/ocaml/merlin.git#refs/pull/1752/head (87940463390988ee02f93897aec7ca9d1d95b07f) (linux-x86_64:(lower-bound))
Base: ocaml/opam@sha256:03a5a4ddf0eae514071c7504a3f0b49a917eaf2f7acd6806bc53498398aa1b85
Opam project build


To reproduce locally:


git clone --recursive "https://github.com/ocaml/merlin.git" && cd "merlin" && git fetch origin "refs/pull/1752/head" && git reset --hard 87940463
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam@sha256:03a5a4ddf0eae514071c7504a3f0b49a917eaf2f7acd6806bc53498398aa1b85
# debian-12-4.14_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 307e33d08fc4ccc1ea453ab45b0ead8ed574b97b || git fetch origin master) && git reset -q --hard 307e33d08fc4ccc1ea453ab45b0ead8ed574b97b && git log --no-decorate -n1 --oneline && opam update -u
COPY --chown=1000:1000 merlin.opam merlin-lib.opam dot-merlin-reader.opam ./
RUN opam pin add -yn merlin.dev './' && \
    opam pin add -yn merlin-lib.dev './' && \
    opam pin add -yn dot-merlin-reader.dev './'
ENV DEPS="base-bigarray.base base-bytes.base base-threads.base base-unix.base conf-jq.1 cppo.1.6.1 csexp.1.5.1 dune.2.9.1 jbuilder.1.0+beta20.1 menhir.20201216 menhirLib.20201216 menhirSdk.20201216 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-compiler-libs.v0.11.0 ocaml-config.2 ocaml-options-vanilla.1 ocamlfind.1.9.1 ppx_derivers.1.0 ppxlib.0.24.0 seq.base sexplib0.v0.12.0 stdlib-shims.0.1.0 yojson.2.0.0"
ENV CI="true"
ENV OCAMLCI="true"
RUN opam update --depexts && opam install --cli=2.1 --depext-only -y merlin.dev merlin-lib.dev dot-merlin-reader.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-05-12 07:48.18: Using cache hint "ocaml/merlin-ocaml/opam@sha256:03a5a4ddf0eae514071c7504a3f0b49a917eaf2f7acd6806bc53498398aa1b85-debian-12-4.14_opam-2.1-61f49405db6bc56d745c8fa926d6bd0a"
2024-05-12 07:48.18: Using OBuilder spec:
((from ocaml/opam@sha256:03a5a4ddf0eae514071c7504a3f0b49a917eaf2f7acd6806bc53498398aa1b85)
 (comment debian-12-4.14_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 307e33d08fc4ccc1ea453ab45b0ead8ed574b97b || git fetch origin master) && git reset -q --hard 307e33d08fc4ccc1ea453ab45b0ead8ed574b97b && git log --no-decorate -n1 --oneline && opam update -u"))
 (copy (src merlin.opam merlin-lib.opam dot-merlin-reader.opam) (dst ./))
 (run (network host)
      (shell  "opam pin add -yn merlin.dev './' && \
             \nopam pin add -yn merlin-lib.dev './' && \
             \nopam pin add -yn dot-merlin-reader.dev './'"))
 (env DEPS "base-bigarray.base base-bytes.base base-threads.base base-unix.base conf-jq.1 cppo.1.6.1 csexp.1.5.1 dune.2.9.1 jbuilder.1.0+beta20.1 menhir.20201216 menhirLib.20201216 menhirSdk.20201216 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-compiler-libs.v0.11.0 ocaml-config.2 ocaml-options-vanilla.1 ocamlfind.1.9.1 ppx_derivers.1.0 ppxlib.0.24.0 seq.base sexplib0.v0.12.0 stdlib-shims.0.1.0 yojson.2.0.0")
 (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 merlin.dev merlin-lib.dev dot-merlin-reader.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-05-12 07:48.18: Waiting for resource in pool OCluster
2024-05-12 07:48.18: Waiting for worker…
2024-05-12 07:48.18: Got resource from pool OCluster
Building on x86-bm-c14.sw.ocaml.org
All commits already cached
HEAD is now at 87940463 wip: remove "legal" notice


(from ocaml/opam@sha256:03a5a4ddf0eae514071c7504a3f0b49a917eaf2f7acd6806bc53498398aa1b85)
2024-05-12 07:49.03 ---> saved as "8996bcdb05f2890613e4a5e164dd9dd2f7c66284ebfc49b1df9eef1d9b3fb2b6"


/: (comment debian-12-4.14_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-05-12 07:49.03 ---> saved as "3fdb1e75f44987c576dd516b384d193513f5ddcb99bb76ede24e0fee9a87d0d3"


/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-05-12 07:50.37 ---> saved as "837f1c921195f81be5a563be012c9c22b2758b4b3e12aa2041ce209afd8c451d"


/src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 5.15.0-101-generic
The OCaml toplevel, version 4.14.2
2.1.5
2024-05-12 07:50.38 ---> saved as "d36534f2839e87000e4662e84d0d3847dab1994f11fe6787d9a8e290b4ced637"


/src: (workdir /src)


/src: (run (shell "sudo chown opam /src"))
2024-05-12 07:50.38 ---> saved as "0e05757ab7a17e3305d283ca4ffcdf0a190928d8245e63046b734f0e2c628b9f"


/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
           (network host)
           (shell "cd ~/opam-repository && (git cat-file -e 307e33d08fc4ccc1ea453ab45b0ead8ed574b97b || git fetch origin master) && git reset -q --hard 307e33d08fc4ccc1ea453ab45b0ead8ed574b97b && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
 * branch                  master     -> FETCH_HEAD
   eb2dcab0d8..739cf1c21c  master     -> origin/master
307e33d08f @dra27 and @Octachron maintain the 4.08+ packages


<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[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.
# Run eval $(opam env) to update the current shell environment
2024-05-12 07:52.26 ---> saved as "36bdbb2e8ccf840cbe2033975360081c400a691e95299527a09ca1b8aef4fd44"


/src: (copy (src merlin.opam merlin-lib.opam dot-merlin-reader.opam) (dst ./))
2024-05-12 07:52.26 ---> saved as "35c02e59f819a0dd96b06ca6721d70b4d78a65c882e4b254d634c91ca44e170f"


/src: (run (network host)
           (shell  "opam pin add -yn merlin.dev './' && \
                  \nopam pin add -yn merlin-lib.dev './' && \
                  \nopam pin add -yn dot-merlin-reader.dev './'"))
[merlin.dev] synchronised (file:///src)
merlin is now pinned to file:///src (version dev)
[merlin-lib.dev] synchronised (file:///src)
merlin-lib is now pinned to file:///src (version dev)
[dot-merlin-reader.dev] synchronised (file:///src)
dot-merlin-reader is now pinned to file:///src (version dev)
2024-05-12 07:52.31 ---> saved as "e35a002d0fe129f9c6f5babd6ec7ef9e1ce26145ffd5dfc9960d61ce4d6405b1"


/src: (env DEPS "base-bigarray.base base-bytes.base base-threads.base base-unix.base conf-jq.1 cppo.1.6.1 csexp.1.5.1 dune.2.9.1 jbuilder.1.0+beta20.1 menhir.20201216 menhirLib.20201216 menhirSdk.20201216 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-compiler-libs.v0.11.0 ocaml-config.2 ocaml-options-vanilla.1 ocamlfind.1.9.1 ppx_derivers.1.0 ppxlib.0.24.0 seq.base sexplib0.v0.12.0 stdlib-shims.0.1.0 yojson.2.0.0")


/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 merlin.dev merlin-lib.dev dot-merlin-reader.dev $DEPS"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://deb.debian.org/debian bookworm InRelease
- Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
- Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
- Get:4 http://deb.debian.org/debian-security bookworm-security/main amd64 Packages [155 kB]
- Fetched 258 kB in 0s (1109 kB/s)
- Reading package lists...
- 


<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[dot-merlin-reader.dev] synchronised (no changes)
[merlin.dev] synchronised (no changes)
[merlin-lib.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 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:
    jq


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


2024-05-12 07:52.50 ---> saved as "55429653a8261ece81e2db7884597614335d2559aeac69946988b1450623359f"


/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 ocamlfind           1.9.1
  - install jbuilder            1.0+beta20.1
  - install conf-jq             1
  - install seq                 base
  - install dune                2.9.1
  - install base-bytes          base
  - install ppx_derivers        1.0
  - install ocaml-compiler-libs v0.11.0
  - install stdlib-shims        0.1.0
  - install sexplib0            v0.12.0
  - install menhirSdk           20201216
  - install menhirLib           20201216
  - install csexp               1.5.1
  - install cppo                1.6.1
  - install ppxlib              0.24.0
  - install menhir              20201216
  - install yojson              2.0.0
===== 17 to install =====


<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved cppo.1.6.1  (cached)
-> retrieved csexp.1.5.1  (cached)
-> retrieved dune.2.9.1  (cached)
-> installed conf-jq.1
-> retrieved jbuilder.1.0+beta20.1  (cached)
-> retrieved menhir.20201216  (cached)
-> retrieved menhirLib.20201216  (cached)
-> retrieved menhirSdk.20201216  (cached)
-> retrieved ocaml-compiler-libs.v0.11.0  (cached)
-> retrieved ocamlfind.1.9.1  (cached)
-> installed seq.base
-> retrieved ppx_derivers.1.0  (cached)
-> retrieved sexplib0.v0.12.0  (cached)
-> retrieved stdlib-shims.0.1.0  (cached)
-> retrieved ppxlib.0.24.0  (cached)
-> retrieved yojson.2.0.0  (cached)
-> installed ocamlfind.1.9.1
-> installed base-bytes.base
-> installed jbuilder.1.0+beta20.1
-> installed ppx_derivers.1.0
-> installed cppo.1.6.1
-> installed ocaml-compiler-libs.v0.11.0
-> installed dune.2.9.1
-> installed csexp.1.5.1
-> installed stdlib-shims.0.1.0
-> installed menhirSdk.20201216
-> installed sexplib0.v0.12.0
-> installed menhirLib.20201216
-> installed yojson.2.0.0
-> installed menhir.20201216
-> installed ppxlib.0.24.0
Done.
# Run eval $(opam env) to update the current shell environment
2024-05-12 07:53.49 ---> saved as "230b974c2de7b1efc9e38f15a2a05301ea2b25ee4f3f70aa081381a862eed827"


/src: (copy (src .) (dst /src))
2024-05-12 07:53.50 ---> saved as "7b01d38bb928e7a31f06f2f48c45152a260323bc270f8f68feb9a95337a9c7a9"


/src: (run (shell "opam exec -- dune build @install @check @runtest && rm -rf _build"))
      menhir src/ocaml/preprocess/parser_raw__mock.ml.mock
File "src/ocaml/preprocess/parser_raw.mly", line 852, characters 29-36:
Warning: the token COMMENT is unused.
File "src/ocaml/preprocess/parser_raw.mly", line 853, characters 30-39:
Warning: the token DOCSTRING is unused.
File "src/ocaml/preprocess/parser_raw.mly", line 855, characters 7-10:
Warning: the token EOL is unused.
File "src/ocaml/preprocess/parser_raw.mly", line 765, characters 7-22:
Warning: the token GREATERRBRACKET is unused.
      menhir src/ocaml/preprocess/parser_raw.{cmly,ml,mli}
File "src/ocaml/preprocess/parser_raw.mly", line 929, characters 0-9:
Warning: the precedence level assigned to GREATERDOT is never useful.
File "tests/test-dirs/type-enclosing/inside-tydecl.t", line 1, characters 0-0:
         git (internal) (exit 1)
(cd _build/.sandbox/3ea2429d27678931eebb8e44a5d8b662/default && /usr/bin/git --no-pager diff --no-index --color=always -u ../../../default/tests/test-dirs/type-enclosing/inside-tydecl.t tests/test-dirs/type-enclosing/inside-tydecl.t.corrected)
diff --git a/../../../default/tests/test-dirs/type-enclosing/inside-tydecl.t b/tests/test-dirs/type-enclosing/inside-tydecl.t.corrected
index 2fda888..2afb9b7 100644
--- a/../../../default/tests/test-dirs/type-enclosing/inside-tydecl.t
+++ b/tests/test-dirs/type-enclosing/inside-tydecl.t.corrected
@@ -6,11 +6,8 @@ test
   > EOF
   paths: [t1]
   [
-    {
-      "start": { "line": 1, "col": 18 },
-      "end": { "line": 1, "col": 20 },
-      "identifier": "t1"
-    }
+    { "start": { "line": 1, "col": 18 }, "end": { "line": 1, "col": 20 },
+    "identifier": "t1" }
   ]
   node = core_type
   exprs = [t1]
File "tests/test-dirs/with-ppx/parsetree-cache.t/run.t", line 1, characters 0-0:
         git (internal) (exit 1)
(cd _build/.sandbox/573b698ca6f400ab93030452c0de2d43/default && /usr/bin/git --no-pager diff --no-index --color=always -u ../../../default/tests/test-dirs/with-ppx/parsetree-cache.t/run.t tests/test-dirs/with-ppx/parsetree-cache.t/run.t.corrected)
diff --git a/../../../default/tests/test-dirs/with-ppx/parsetree-cache.t/run.t b/tests/test-dirs/with-ppx/parsetree-cache.t/run.t.corrected
index a403786..52bffdf 100644
--- a/../../../default/tests/test-dirs/with-ppx/parsetree-cache.t/run.t
+++ b/tests/test-dirs/with-ppx/parsetree-cache.t/run.t.corrected
@@ -180,7 +180,7 @@ When ppx_dep.txt contains an int, there are no errors.
   > EOF
 
   $ dune exec ./main.exe 2>/dev/null
-  1
+  [1]
 And Merlin does the right thing.
   $ $MERLIN server errors -filename main.ml -log-file merlin_logs 1> /dev/null < main.ml
   $ $MERLIN server errors -filename main.ml -log-file merlin_logs < main.ml
@@ -228,7 +228,7 @@ Again: when ppx_dep.txt contains an int, there are no errors.
   > EOF
 
   $ dune exec ./main.exe 2>/dev/null
-  1
+  [1]
 
 And Merlin does the right thing.
   $ $MERLIN server errors -filename main.ml -log-file merlin_logs < main.ml
@@ -256,22 +256,7 @@ This time, since the PPX cache isn't enabled, Merlin does the right thing here a
   $ $MERLIN server errors -filename main.ml -log-file merlin_logs < main.ml
   {
     "class": "return",
-    "value": [
-      {
-        "start": {
-          "line": 1,
-          "col": 18
-        },
-        "end": {
-          "line": 1,
-          "col": 30
-        },
-        "type": "typer",
-        "sub": [],
-        "valid": true,
-        "message": "It's sunny"
-      }
-    ],
+    "value": [],
     "notifications": []
   }
   $ cat merlin_logs | grep 'Phase cache' -A 1 | sed "s/[0-9]*//g"
"/usr/bin/env" "bash" "-c" "opam exec -- dune build @install @check @runtest && rm -rf _build" failed with exit status 1
2024-05-12 07:54.29: Job failed: Failed: Build failed