Organisationsdialohqocaml-grpc3dee73 ()(lint-fmt)

(lint-fmt)

Link Copied
Code Copied

Logs

2025-12-14 10:12.50: New job: test dialohq/ocaml-grpc https://github.com/dialohq/ocaml-grpc.git#refs/pull/68/head (3dee73157556de034bed54a423e4e8e9ffadc8c4) (linux-x86_64:(lint-fmt))
Base: ocaml/opam:debian-13-ocaml-4.08@sha256:6fadef23b5069dc945f3a454c49421fd09e8c17aa57d3f9ad27d3879fce6aa44
ocamlformat version: version 0.26.1 (from opam)


To reproduce locally:


git clone --recursive "https://github.com/dialohq/ocaml-grpc.git" && cd "ocaml-grpc" && git fetch origin "refs/pull/68/head" && git reset --hard 3dee7315
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-13-ocaml-4.08@sha256:6fadef23b5069dc945f3a454c49421fd09e8c17aa57d3f9ad27d3879fce6aa44
USER 1000:1000
RUN cd ~/opam-repository && (git cat-file -e 991c7a1514e7da747afe448ae9a046af3bc2497e || git fetch origin master) && git reset -q --hard 991c7a1514e7da747afe448ae9a046af3bc2497e && git log --no-decorate -n1 --oneline && opam update -u
RUN opam depext -i dune
WORKDIR /src
RUN opam depext -i ocamlformat=0.26.1
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-12-14 10:12.50: Using cache hint "dialohq/ocaml-grpc-ocaml/opam:debian-13-ocaml-4.08@sha256:6fadef23b5069dc945f3a454c49421fd09e8c17aa57d3f9ad27d3879fce6aa44-debian-13-4.08_opam-2.4-ocamlformat-991c7a1514e7da747afe448ae9a046af3bc2497e"
2025-12-14 10:12.50: Using OBuilder spec:
((from ocaml/opam:debian-13-ocaml-4.08@sha256:6fadef23b5069dc945f3a454c49421fd09e8c17aa57d3f9ad27d3879fce6aa44)
(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 991c7a1514e7da747afe448ae9a046af3bc2497e || git fetch origin master) && git reset -q --hard 991c7a1514e7da747afe448ae9a046af3bc2497e && 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.26.1"))
(copy (src .) (dst /src/))
(run (shell "opam exec -- dune build @fmt --ignore-promoted-rules || (echo \"dune build @fmt failed\"; exit 2)"))
)


2025-12-14 10:12.50: Waiting for resource in pool OCluster
2025-12-14 10:13.07: Waiting for worker…
2025-12-14 10:13.09: Got resource from pool OCluster
Building on toxis.caelum.ci.dev
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
Initialised empty Git repository in /var/cache/obuilder/ocluster/git/ocaml-grpc.git-edf11c25027703b60c03d321cd821a1d32b0b7ae/.git/
HEAD is now at 3dee731 fixup! Handle EIO deadlock when H2 returned an error like 404.


(from ocaml/opam:debian-13-ocaml-4.08@sha256:6fadef23b5069dc945f3a454c49421fd09e8c17aa57d3f9ad27d3879fce6aa44)
Unable to find image 'ocaml/opam:debian-13-ocaml-4.08@sha256:6fadef23b5069dc945f3a454c49421fd09e8c17aa57d3f9ad27d3879fce6aa44' locally
docker.io/ocaml/opam@sha256:6fadef23b5069dc945f3a454c49421fd09e8c17aa57d3f9ad27d3879fce6aa44: Pulling from ocaml/opam
2981f7e8980b: Pulling fs layer
9c63e1c4ba84: Pulling fs layer
02578b9c9f1b: Pulling fs layer
3801cb7ba5e6: Pulling fs layer
1c4cdedd39f1: Pulling fs layer
40f6006c5f5a: Pulling fs layer
c451a17216ec: Pulling fs layer
e4104b8f72ee: Pulling fs layer
7c7dbc5e7919: Pulling fs layer
1c4cdedd39f1: Waiting
aa82be714e7c: Pulling fs layer
40f6006c5f5a: Waiting
922520f12384: Pulling fs layer
c451a17216ec: Waiting
9bfea042cef8: Pulling fs layer
e4104b8f72ee: Waiting
1244979f7c21: Pulling fs layer
7583a0e34f94: Pulling fs layer
7c7dbc5e7919: Waiting
aa82be714e7c: Waiting
14bef3f2665a: Pulling fs layer
9bfea042cef8: Waiting
3a4b42ce6cb5: Pulling fs layer
922520f12384: Waiting
3801cb7ba5e6: Waiting
b0a08a900877: Pulling fs layer
7583a0e34f94: Waiting
1244979f7c21: Waiting
14bef3f2665a: Waiting
16ac87e68d60: Pulling fs layer
3a4b42ce6cb5: Waiting
74ac6e8c9b82: Pulling fs layer
b41290a57dc5: Pulling fs layer
592e5bcb7159: Pulling fs layer
16ac87e68d60: Waiting
4f4fb700ef54: Pulling fs layer
b41290a57dc5: Waiting
1db0705661a3: Pulling fs layer
592e5bcb7159: Waiting
76bb8e35b9cc: Pulling fs layer
4f4fb700ef54: Waiting
1db0705661a3: Waiting
3bc9d98c3b49: Pulling fs layer
7096ef42e6c0: Pulling fs layer
3bc9d98c3b49: Waiting
cd0e70de8125: Pulling fs layer
7096ef42e6c0: Waiting
23ffab57f98e: Pulling fs layer
cd0e70de8125: Waiting
b974353d8023: Pulling fs layer
c74fba566723: Pulling fs layer
5ad399846f45: Pulling fs layer
c74fba566723: Waiting
b974353d8023: Waiting
3e7203fa3980: Pulling fs layer
0b8915d2a92b: Pulling fs layer
e68c7a56c438: Pulling fs layer
3e7203fa3980: Waiting
9024d680a167: Pulling fs layer
3c7c73421b6e: Pulling fs layer
7134fa9b4278: Pulling fs layer
9d94fb523099: Pulling fs layer
20d06dbdae7e: Pulling fs layer
3c7c73421b6e: Waiting
7134fa9b4278: Waiting
b9a45e537661: Pulling fs layer
20d06dbdae7e: Waiting
d013a1d2f205: Pulling fs layer
b9e11c34eba5: Pulling fs layer
b9a45e537661: Waiting
e0af6a95398b: Pulling fs layer
d013a1d2f205: Waiting
b559598791bf: Pulling fs layer
e0af6a95398b: Waiting
02578b9c9f1b: Download complete
9c63e1c4ba84: Download complete
1c4cdedd39f1: Download complete
3801cb7ba5e6: Verifying Checksum
3801cb7ba5e6: Download complete
2981f7e8980b: Download complete
c451a17216ec: Verifying Checksum
c451a17216ec: Download complete
e4104b8f72ee: Verifying Checksum
e4104b8f72ee: Download complete
7c7dbc5e7919: Verifying Checksum
7c7dbc5e7919: Download complete
922520f12384: Download complete
9bfea042cef8: Download complete
aa82be714e7c: Verifying Checksum
aa82be714e7c: Download complete
7583a0e34f94: Verifying Checksum
7583a0e34f94: Download complete
14bef3f2665a: Verifying Checksum
14bef3f2665a: Download complete
1244979f7c21: Verifying Checksum
1244979f7c21: Download complete
3a4b42ce6cb5: Verifying Checksum
3a4b42ce6cb5: Download complete
b0a08a900877: Verifying Checksum
b0a08a900877: Download complete
40f6006c5f5a: Verifying Checksum
40f6006c5f5a: Download complete
16ac87e68d60: Verifying Checksum
16ac87e68d60: Download complete
2981f7e8980b: Pull complete
74ac6e8c9b82: Verifying Checksum
74ac6e8c9b82: Download complete
9c63e1c4ba84: Pull complete
02578b9c9f1b: Pull complete
b41290a57dc5: Verifying Checksum
b41290a57dc5: Download complete
592e5bcb7159: Verifying Checksum
592e5bcb7159: Download complete
4f4fb700ef54: Verifying Checksum
4f4fb700ef54: Download complete
1db0705661a3: Verifying Checksum
1db0705661a3: Download complete
76bb8e35b9cc: Verifying Checksum
76bb8e35b9cc: Download complete
3bc9d98c3b49: Download complete
7096ef42e6c0: Download complete
cd0e70de8125: Verifying Checksum
cd0e70de8125: Download complete
23ffab57f98e: Verifying Checksum
23ffab57f98e: Download complete
b974353d8023: Verifying Checksum
b974353d8023: Download complete
c74fba566723: Download complete
3801cb7ba5e6: Pull complete
5ad399846f45: Download complete
1c4cdedd39f1: Pull complete
3e7203fa3980: Download complete
0b8915d2a92b: Download complete
e68c7a56c438: Verifying Checksum
e68c7a56c438: Download complete
3c7c73421b6e: Verifying Checksum
3c7c73421b6e: Download complete
9d94fb523099: Verifying Checksum
9d94fb523099: Download complete
20d06dbdae7e: Verifying Checksum
20d06dbdae7e: Download complete
b9a45e537661: Download complete
9024d680a167: Verifying Checksum
9024d680a167: Download complete
b9e11c34eba5: Verifying Checksum
b9e11c34eba5: Download complete
7134fa9b4278: Verifying Checksum
7134fa9b4278: Download complete
e0af6a95398b: Verifying Checksum
e0af6a95398b: Download complete
d013a1d2f205: Verifying Checksum
d013a1d2f205: Download complete
b559598791bf: Download complete
40f6006c5f5a: Pull complete
c451a17216ec: Pull complete
e4104b8f72ee: Pull complete
7c7dbc5e7919: Pull complete
aa82be714e7c: Pull complete
922520f12384: Pull complete
9bfea042cef8: Pull complete
1244979f7c21: Pull complete
7583a0e34f94: Pull complete
14bef3f2665a: Pull complete
3a4b42ce6cb5: Pull complete
b0a08a900877: Pull complete
16ac87e68d60: Pull complete
74ac6e8c9b82: Pull complete
b41290a57dc5: Pull complete
592e5bcb7159: Pull complete
4f4fb700ef54: Pull complete
1db0705661a3: Pull complete
76bb8e35b9cc: Pull complete
3bc9d98c3b49: Pull complete
7096ef42e6c0: Pull complete
cd0e70de8125: Pull complete
23ffab57f98e: Pull complete
b974353d8023: Pull complete
c74fba566723: Pull complete
5ad399846f45: Pull complete
3e7203fa3980: Pull complete
0b8915d2a92b: Pull complete
e68c7a56c438: Pull complete
9024d680a167: Pull complete
3c7c73421b6e: Pull complete
7134fa9b4278: Pull complete
9d94fb523099: Pull complete
20d06dbdae7e: Pull complete
b9a45e537661: Pull complete
d013a1d2f205: Pull complete
b9e11c34eba5: Pull complete
e0af6a95398b: Pull complete
b559598791bf: Pull complete
Digest: sha256:6fadef23b5069dc945f3a454c49421fd09e8c17aa57d3f9ad27d3879fce6aa44
Status: Downloaded newer image for ocaml/opam@sha256:6fadef23b5069dc945f3a454c49421fd09e8c17aa57d3f9ad27d3879fce6aa44
2025-12-14 10:14.53 ---> saved as "c557567380599a9d74e9cba757661af503505628fe0a86c2e1639761275a17b1"


/: (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 991c7a1514e7da747afe448ae9a046af3bc2497e || git fetch origin master) && git reset -q --hard 991c7a1514e7da747afe448ae9a046af3bc2497e && git log --no-decorate -n1 --oneline && opam update -u"))
991c7a1514 Merge pull request #28718 from ocaml/mseri-patch-1


<><> 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-12-14 10:16.00 ---> saved as "48334a0274a4cda6e745afa064f35b53a7edab2808d8c06488698439abe9b851"


/: (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-12-14 10:17.07 ---> saved as "fcdaf03ddf3ca48837f128e47a2e53ac4a1c0800def4e13084ece1bb4817789b"


/: (workdir /src)


/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam depext -i ocamlformat=0.26.1"))
# 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 sexplib0          v0.14.0  [required by base]
- install ocamlbuild        0.16.1   [required by fpath, astring, uuseg]
- install cmdliner          1.3.0    [required by ocamlformat]
- install either            1.0.0    [required by ocamlformat-lib]
- install menhirLib         20250912 [required by ocamlformat-lib]
- install csexp             1.5.2    [required by ocamlformat-lib]
- install result            1.5      [required by ocamlformat-lib]
- install camlp-streams     5.0.1    [required by ocamlformat-lib]
- install seq               base     [required by re]
- install menhirSdk         20250912 [required by ocamlformat-lib]
- install fix               20250919 [required by ocamlformat-lib]
- install menhirCST         20250912 [required by menhir]
- install ocamlfind         1.9.8    [required by ocp-indent, astring, fpath, uuseg]
- install dune-build-info   3.20.2   [required by ocamlformat-lib]
- install ocaml-version     4.0.3    [required by ocamlformat-lib]
- install dune-configurator 3.20.2   [required by base]
- install re                1.11.0   [required by ocamlformat]
- install menhir            20250912 [required by ocamlformat-lib]
- install topkg             1.1.1    [required by fpath, astring, uuseg]
- install ocp-indent        1.9.0    [required by ocamlformat-lib]
- install base              v0.14.3  [required by ocamlformat-lib]
- install uutf              1.0.4    [required by ocamlformat-lib]
- install astring           0.8.5    [required by ocamlformat-lib]
- install stdio             v0.14.0  [required by ocamlformat-lib]
- install uucp              15.0.0   [required by uuseg]
- install fpath             0.7.3    [required by ocamlformat-lib]
- install uuseg             15.0.0   [required by ocamlformat-lib]
- install ocamlformat-lib   0.26.1   [required by ocamlformat]
- install ocamlformat       0.26.1
===== 29 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.20250919] 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.4.0.3] found in cache
[ocamlbuild.0.16.1] found in cache
[ocamlfind.1.9.8] found in cache
[ocamlformat.0.26.1] found in cache
[ocamlformat-lib.0.26.1] found in cache
[ocp-indent.1.9.0] 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.1] 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 csexp.1.5.2
-> installed either.1.0.0
-> installed fix.20250919
-> installed menhirCST.20250912
-> installed cmdliner.1.3.0
-> installed menhirLib.20250912
-> installed menhirSdk.20250912
-> installed ocaml-version.4.0.3
-> installed re.1.11.0
-> installed result.1.5
-> installed sexplib0.v0.14.0
-> installed dune-build-info.3.20.2
-> installed dune-configurator.3.20.2
-> installed ocamlfind.1.9.8
-> installed ocp-indent.1.9.0
-> installed ocamlbuild.0.16.1
-> installed base.v0.14.3
-> installed topkg.1.1.1
-> installed stdio.v0.14.0
-> installed uutf.1.0.4
-> installed menhir.20250912
-> installed astring.0.8.5
-> installed fpath.0.7.3
-> installed uucp.15.0.0
-> installed uuseg.15.0.0
-> installed ocamlformat-lib.0.26.1
-> installed ocamlformat.0.26.1
Done.


<><> ocp-indent.1.9.0 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-12-14 10:19.07 ---> saved as "c361c284f4b00e64ea913293b69110fe8280e6d67db39c428b37b5eb7b07f36b"


/src: (copy (src .) (dst /src/))
2025-12-14 10:19.08 ---> saved as "e478b2dfeffc28f191c2fc3ec81248809c5d3851c4e892ee33f648cb04dfc072"


/src: (run (shell "opam exec -- dune build @fmt --ignore-promoted-rules || (echo \"dune build @fmt failed\"; exit 2)"))
File "lib/grpc-eio/client.ml", line 1, characters 0-0:
diff --git a/_build/default/lib/grpc-eio/client.ml b/_build/default/lib/grpc-eio/.formatted/client.ml
index 09d489b..dfb9715 100644
--- a/_build/default/lib/grpc-eio/client.ml
+++ b/_build/default/lib/grpc-eio/.formatted/client.ml
@@ -52,33 +52,34 @@ let get_response_and_bodies request =
let write_body = request ~error_handler ~response_handler in


(* Race between getting response and error *)
-  match Eio.Fiber.first
-    (fun () ->
-      let resp = Eio.Promise.await response in
-      let body = Eio.Promise.await read_body in
-      `Response (resp, body))
-    (fun () ->
-      let err = Eio.Promise.await error_promise in
-      match err with
-      | Some e -> `Error e
-      | None ->
-          (* This shouldn't happen *)
-          failwith "Internal error: error promise resolved without value")
+  match
+    Eio.Fiber.first
+      (fun () ->
+        let resp = Eio.Promise.await response in
+        let body = Eio.Promise.await read_body in
+        `Response (resp, body))
+      (fun () ->
+        let err = Eio.Promise.await error_promise in
+        match err with
+        | Some e -> `Error e
+        | None ->
+            (* This shouldn't happen *)
+            failwith "Internal error: error promise resolved without value")
with
| `Response (response, read_body) -> (response, read_body, write_body)
| `Error err ->
(* Convert H2 error to exception *)
-      let msg = match err with
+      let msg =
+        match err with
| `Protocol_error (code, msg) ->
Printf.sprintf "H2 protocol error (%s): %s"
-              (H2.Error_code.to_string code) msg
+              (H2.Error_code.to_string code)
+              msg
| `Invalid_response_body_length resp ->
Printf.sprintf "Invalid response body length for status %s"
(H2.Status.to_string resp.H2.Response.status)
-        | `Malformed_response msg ->
-            Printf.sprintf "Malformed response: %s" msg
-        | `Exn exn ->
-            Printf.sprintf "H2 exception: %s" (Printexc.to_string exn)
+        | `Malformed_response msg -> Printf.sprintf "Malformed response: %s" msg
+        | `Exn exn -> Printf.sprintf "H2 exception: %s" (Printexc.to_string exn)
in
failwith msg


@@ -87,8 +88,7 @@ let call ~service ~rpc ?(scheme = "https") ~handler ~(do_request : do_request)
let request = make_request ~service ~rpc ~scheme ~headers in
let status, trailers_handler = make_trailers_handler () in
let response, read_body, write_body =
-    get_response_and_bodies
-      (fun ~error_handler ~response_handler ->
+    get_response_and_bodies (fun ~error_handler ~response_handler ->
do_request ~flush_headers_immediately:true request ~trailers_handler
~error_handler ~response_handler)
in
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-12-14 10:19.10: Job failed: Failed: Build failed