Organisationspatricoferrisjsoo-code-mirror8f451a (oxcaml)(lint-fmt)

(lint-fmt)

Link Copied
Code Copied

Logs

2025-09-15 18:37.02: New job: test patricoferris/jsoo-code-mirror https://github.com/patricoferris/jsoo-code-mirror.git#refs/heads/oxcaml (8f451a1c536463fe48248c67366d8e76bf9f4b51) (linux-x86_64:(lint-fmt))
Base: ocaml/opam:debian-13-ocaml-4.08@sha256:b9828be178417e3bc607ef229c00d658316b130c027775f6069f6a7c473de176
ocamlformat version: version 0.21.0 (from opam)


To reproduce locally:


git clone --recursive "https://github.com/patricoferris/jsoo-code-mirror.git" -b "oxcaml" && cd "jsoo-code-mirror" && git reset --hard 8f451a1c
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-13-ocaml-4.08@sha256:b9828be178417e3bc607ef229c00d658316b130c027775f6069f6a7c473de176
USER 1000:1000
RUN cd ~/opam-repository && (git cat-file -e 1c9b44165f73bd3366a4af940f28503f26d3267e || git fetch origin master) && git reset -q --hard 1c9b44165f73bd3366a4af940f28503f26d3267e && git log --no-decorate -n1 --oneline && opam update -u
RUN opam depext -i dune
WORKDIR /src
RUN opam depext -i ocamlformat=0.21.0
COPY --chown=1000:1000 . /src/
RUN opam exec -- dune build @fmt --ignore-promoted-rules || (echo "dune build @fmt failed"; exit 2)


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


2025-09-15 18:37.02: Using cache hint "patricoferris/jsoo-code-mirror-ocaml/opam:debian-13-ocaml-4.08@sha256:b9828be178417e3bc607ef229c00d658316b130c027775f6069f6a7c473de176-debian-13-4.08_opam-2.4-ocamlformat-1c9b44165f73bd3366a4af940f28503f26d3267e"
2025-09-15 18:37.02: Using OBuilder spec:
((from ocaml/opam:debian-13-ocaml-4.08@sha256:b9828be178417e3bc607ef229c00d658316b130c027775f6069f6a7c473de176)
(user (uid 1000) (gid 1000))
(run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e 1c9b44165f73bd3366a4af940f28503f26d3267e || git fetch origin master) && git reset -q --hard 1c9b44165f73bd3366a4af940f28503f26d3267e && git log --no-decorate -n1 --oneline && opam update -u"))
(run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam depext -i dune"))
(workdir /src)
(run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam depext -i ocamlformat=0.21.0"))
(copy (src .) (dst /src/))
(run (shell "opam exec -- dune build @fmt --ignore-promoted-rules || (echo \"dune build @fmt failed\"; exit 2)"))
)


2025-09-15 18:37.02: Waiting for resource in pool OCluster
2025-09-15 21:49.36: Waiting for worker…
2025-09-15 21:54.13: Got resource from pool OCluster
Building on doris.caelum.ci.dev
All commits already cached
HEAD is now at 8f451a1 Updates for oxcaml


(from ocaml/opam:debian-13-ocaml-4.08@sha256:b9828be178417e3bc607ef229c00d658316b130c027775f6069f6a7c473de176)
Unable to find image 'ocaml/opam:debian-13-ocaml-4.08@sha256:b9828be178417e3bc607ef229c00d658316b130c027775f6069f6a7c473de176' locally
docker.io/ocaml/opam@sha256:b9828be178417e3bc607ef229c00d658316b130c027775f6069f6a7c473de176: Pulling from ocaml/opam
d2a188516622: Pulling fs layer
d2a188516622: Waiting
d2a188516622: Verifying Checksum
d2a188516622: Download complete
d2a188516622: Pull complete
Digest: sha256:b9828be178417e3bc607ef229c00d658316b130c027775f6069f6a7c473de176
Status: Downloaded newer image for ocaml/opam@sha256:b9828be178417e3bc607ef229c00d658316b130c027775f6069f6a7c473de176
2025-09-15 22:25.36 ---> using "4f143e25e7620fadf6d4819085e998cd063e4132d1bf4b7e768f2c9645e2385a" from cache


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


/: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e 1c9b44165f73bd3366a4af940f28503f26d3267e || git fetch origin master) && git reset -q --hard 1c9b44165f73bd3366a4af940f28503f26d3267e && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
* branch                  master     -> FETCH_HEAD
bcac5d1731..43c98cac41  master     -> origin/master
1c9b44165f Merge pull request #28508 from fpottier/opam-publish-menhir.20250912


<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
default (at git+file:///home/opam/opam-repository):
[INFO] opam 2.1 and 2.2 include many performance and security improvements over 2.0; please consider upgrading (https://opam.ocaml.org/doc/Install.html)


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
2025-09-15 22:25.36 ---> using "5a7a210fbfa3dd4f9a1dcb8b72ce6fbe8b47598feb3860d5bad81de0478ddbc5" from cache


/: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam depext -i dune"))
# Detecting depexts using vars: arch=x86_64, os=linux, os-distribution=debian, os-family=debian
# No extra OS packages requirements found.
# All required OS packages found.
# Now letting opam install the packages
The following actions will be performed:
- install dune 3.20.2


<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[dune.3.20.2] found in cache


<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed dune.3.20.2
Done.
# Run eval $(opam env) to update the current shell environment
2025-09-15 22:25.36 ---> using "19888bb997ffa39249f136da813c0df955c136fc626993c4fc1d3e59d6870a9c" from cache


/: (workdir /src)


/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam depext -i ocamlformat=0.21.0"))
# Detecting depexts using vars: arch=x86_64, os=linux, os-distribution=debian, os-family=debian
# No extra OS packages requirements found.
# All required OS packages found.
# Now letting opam install the packages
The following actions will be performed:
- install ocaml-version     3.5.0    [required by ocamlformat]
- install sexplib0          v0.14.0  [required by base]
- install ocamlbuild        0.16.1   [required by fpath, uuseg]
- install cmdliner          1.3.0    [required by ocamlformat]
- install either            1.0.0    [required by ocamlformat]
- install menhirLib         20250912 [required by ocamlformat]
- install csexp             1.5.2    [required by dune-configurator]
- install result            1.5      [required by odoc-parser]
- install camlp-streams     5.0.1    [required by odoc-parser]
- install seq               base     [required by re]
- install menhirSdk         20250912 [required by ocamlformat]
- install menhirCST         20250912 [required by menhir]
- install fix               20250428 [required by ocamlformat]
- install ocamlfind         1.9.8    [required by ocp-indent, fpath, uuseg]
- install dune-build-info   3.20.2   [required by ocamlformat]
- install dune-configurator 3.20.2   [required by base]
- install re                1.11.0   [required by ocamlformat]
- install menhir            20250912 [required by ocamlformat]
- install topkg             1.1.0    [required by fpath, uuseg]
- install base-bytes        base     [required by ocp-indent]
- install base              v0.14.3  [required by ocamlformat]
- install uutf              1.0.4    [required by ocamlformat]
- install astring           0.8.5    [required by fpath, odoc-parser]
- install ocp-indent        1.8.1    [required by ocamlformat]
- install stdio             v0.14.0  [required by ocamlformat]
- install uucp              15.0.0   [required by uuseg]
- install odoc-parser       1.0.1    [required by ocamlformat]
- install fpath             0.7.3    [required by ocamlformat]
- install uuseg             15.0.0   [required by ocamlformat]
- install ocamlformat       0.21.0
===== 30 to install =====


<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[astring.0.8.5] found in cache
[base.v0.14.3] found in cache
[camlp-streams.5.0.1] found in cache
[cmdliner.1.3.0] found in cache
[csexp.1.5.2] found in cache
[dune-build-info.3.20.2] found in cache
[dune-configurator.3.20.2] found in cache
[either.1.0.0] found in cache
[fix.20250428] found in cache
[fpath.0.7.3] found in cache
[menhir.20250912] found in cache
[menhirCST.20250912] found in cache
[menhirLib.20250912] found in cache
[menhirSdk.20250912] found in cache
[ocaml-version.3.5.0] found in cache
[ocamlbuild.0.16.1] found in cache
[ocamlfind.1.9.8] found in cache
[ocamlformat.0.21.0] found in cache
[ocp-indent.1.8.1] found in cache
[odoc-parser.1.0.1] found in cache
[re.1.11.0] found in cache
[result.1.5] found in cache
[sexplib0.v0.14.0] found in cache
[stdio.v0.14.0] found in cache
[topkg.1.1.0] found in cache
[uucp.15.0.0] found in cache
[uuseg.15.0.0] found in cache
[uutf.1.0.4] found in cache


<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed seq.base
-> installed camlp-streams.5.0.1
-> installed cmdliner.1.3.0
-> installed csexp.1.5.2
-> installed either.1.0.0
-> installed fix.20250428
-> installed menhirCST.20250912
-> installed menhirLib.20250912
-> installed menhirSdk.20250912
-> installed ocaml-version.3.5.0
-> installed result.1.5
-> installed sexplib0.v0.14.0
-> installed re.1.11.0
-> installed dune-build-info.3.20.2
-> installed ocamlfind.1.9.8
-> installed base-bytes.base
-> installed dune-configurator.3.20.2
-> installed ocamlbuild.0.16.1
-> installed ocp-indent.1.8.1
-> installed topkg.1.1.0
-> installed base.v0.14.3
-> installed astring.0.8.5
-> installed uutf.1.0.4
-> installed stdio.v0.14.0
-> installed odoc-parser.1.0.1
-> installed menhir.20250912
-> installed fpath.0.7.3
-> installed uucp.15.0.0
-> installed uuseg.15.0.0
-> installed ocamlformat.0.21.0
Done.


<><> ocp-indent.1.8.1 installed successfully ><><><><><><><><><><><><><><><><><>
=> This package requires additional configuration for use in editors. Install package 'user-setup', or manually:


* for Emacs, add these lines to ~/.emacs:
(add-to-list 'load-path "/home/opam/.opam/4.08/share/emacs/site-lisp")
(require 'ocp-indent)


* for Vim, add this line to ~/.vimrc:
set rtp^="/home/opam/.opam/4.08/share/ocp-indent/vim"
# Run eval $(opam env) to update the current shell environment
2025-09-15 22:25.36 ---> using "56869e2e0021b7f4730c912322f24e6a021a7e50a8fc3db99c2b0b3475517d88" from cache


/src: (copy (src .) (dst /src/))
2025-09-15 22:25.36 ---> saved as "52e7b4ac6120e5d27dc564e94d8479a60cd55aa2a7e12c62dd7b5a63b24695ad"


/src: (run (shell "opam exec -- dune build @fmt --ignore-promoted-rules || (echo \"dune build @fmt failed\"; exit 2)"))
File "src/editor.mli", line 1, characters 0-0:
diff --git a/_build/default/src/editor.mli b/_build/default/src/.formatted/editor.mli
index d3ac564..44f6685 100644
--- a/_build/default/src/editor.mli
+++ b/_build/default/src/.formatted/editor.mli
@@ -113,6 +113,7 @@ module View : sig


module Plugin : sig
type view := t
+
type t
(** A {{: https://codemirror.net/docs/ref/#view.ViewPlugin} view plugin} *)


File "src/editor.ml", line 1, characters 0-0:
diff --git a/_build/default/src/editor.ml b/_build/default/src/.formatted/editor.ml
index 138e53e..00e023e 100644
--- a/_build/default/src/editor.ml
+++ b/_build/default/src/.formatted/editor.ml
@@ -1,18 +1,20 @@
module Selection = struct
-   type t = Jv.t
-   include (Jv.Id : Jv.CONV with type t := t)
+  type t = Jv.t
+
+  include (Jv.Id : Jv.CONV with type t := t)
+
+  module Range = struct
+    type t = Jv.t


-   module Range = struct
-     type t = Jv.t
-     include (Jv.Id : Jv.CONV with type t := t)
+    include (Jv.Id : Jv.CONV with type t := t)


-     let head t = Jv.Int.get t "head"
-     let from t = Jv.Int.get t "from"
-     let to' t = Jv.Int.get t "to"
-     let anchor t = Jv.Int.get t "anchor"
-   end
+    let head t = Jv.Int.get t "head"
+    let from t = Jv.Int.get t "from"
+    let to' t = Jv.Int.get t "to"
+    let anchor t = Jv.Int.get t "anchor"
+  end


-   let main t = Jv.get t "main" |> Range.of_jv
+  let main t = Jv.get t "main" |> Range.of_jv
end


module State = struct
@@ -124,6 +126,7 @@ module View = struct
module Plugin = struct
type view = t
type t
+
include (Jv.Id : Jv.CONV with type t := t)


let plugin = Jv.get Jv.global "__CM__ViewPlugin"
@@ -132,7 +135,6 @@ module View = struct
let f' = Jv.callback ~arity:1 f in
Jv.call plugin "define" [| f' |] |> of_jv


-    let to_extension t =
-      to_jv t |> Extension.of_jv
+    let to_extension t = to_jv t |> Extension.of_jv
end
end
File "src/tooltip/tooltip.ml", line 1, characters 0-0:
diff --git a/_build/default/src/tooltip/tooltip.ml b/_build/default/src/tooltip/.formatted/tooltip.ml
index 81c52dd..162d872 100644
--- a/_build/default/src/tooltip/tooltip.ml
+++ b/_build/default/src/tooltip/.formatted/tooltip.ml
@@ -40,7 +40,8 @@ module Tooltip_view = struct
let get_coords =
Option.map
(fun get_coords ->
-          Jv.callback ~arity:1 (fun pos -> get_coords (Jv.to_int pos) |> coords_to_jv))
+          Jv.callback ~arity:1 (fun pos ->
+              get_coords (Jv.to_int pos) |> coords_to_jv))
get_coords
in
let o = Jv.obj [||] in
@@ -50,14 +51,17 @@ module Tooltip_view = struct
Jv.Bool.set_if_some o "overlap" overlap;
Jv.set_if_some o "mount"
@@ Option.map
-         (fun mount -> Jv.callback ~arity:1 (fun view -> mount (Editor.View.of_jv view)))
+         (fun mount ->
+           Jv.callback ~arity:1 (fun view -> mount (Editor.View.of_jv view)))
mount;
Jv.set_if_some o "update"
@@ Option.map
(fun update ->
-          Jv.callback ~arity:1 (fun view_up -> update (Editor.View.Update.of_jv view_up)))
+           Jv.callback ~arity:1 (fun view_up ->
+               update (Editor.View.Update.of_jv view_up)))
update;
-    Jv.set_if_some o "positioned" @@ Option.map (Jv.callback ~arity:1) positioned;
+    Jv.set_if_some o "positioned"
+    @@ Option.map (Jv.callback ~arity:1) positioned;
o
end


dune build @fmt failed
"/usr/bin/env" "bash" "-c" "opam exec -- dune build @fmt --ignore-promoted-rules || (echo "dune build @fmt failed"; exit 2)" failed with exit status 2
2025-09-15 22:25.37: Job failed: Failed: Build failed