Organisationstmcgilchristocaml-h2f72e0d (master)(lint-fmt)

(lint-fmt)

Link Copied
Code Copied

Logs

2024-05-12 08:46.59: New job: test tmcgilchrist/ocaml-h2 https://github.com/tmcgilchrist/ocaml-h2.git#refs/heads/master (f72e0df6ff74c30f1f1bab01476a6fe5f8c24c1b) (linux-x86_64:(lint-fmt))
Base: ocaml/opam@sha256:fda21a992c5df0e509393861bcf1b40849d544491656742979043a148fbba8bb
ocamlformat version: version 0.19.0 (from opam)


To reproduce locally:


git clone --recursive "https://github.com/tmcgilchrist/ocaml-h2.git" -b "master" && cd "ocaml-h2" && git reset --hard f72e0df6
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam@sha256:fda21a992c5df0e509393861bcf1b40849d544491656742979043a148fbba8bb
USER 1000:1000
RUN cd ~/opam-repository && (git cat-file -e 950c52962d34ab7507ecebe8cc7ef16fed0f292a || git fetch origin master) && git reset -q --hard 950c52962d34ab7507ecebe8cc7ef16fed0f292a && git log --no-decorate -n1 --oneline && opam update -u
RUN opam depext -i dune
WORKDIR /src
RUN opam depext -i ocamlformat=0.19.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


2024-05-12 08:46.59: Using cache hint "tmcgilchrist/ocaml-h2-ocaml/opam@sha256:fda21a992c5df0e509393861bcf1b40849d544491656742979043a148fbba8bb-debian-12-4.08_opam-2.1-ocamlformat-950c52962d34ab7507ecebe8cc7ef16fed0f292a"
2024-05-12 08:46.59: Using OBuilder spec:
((from ocaml/opam@sha256:fda21a992c5df0e509393861bcf1b40849d544491656742979043a148fbba8bb)
 (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 950c52962d34ab7507ecebe8cc7ef16fed0f292a || git fetch origin master) && git reset -q --hard 950c52962d34ab7507ecebe8cc7ef16fed0f292a && 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.19.0"))
 (copy (src .) (dst /src/))
 (run (shell "opam exec -- dune build @fmt --ignore-promoted-rules || (echo \"dune build @fmt failed\"; exit 2)"))
)


2024-05-12 08:46.59: Waiting for resource in pool OCluster
2024-05-12 08:47.00: Waiting for worker…
2024-05-12 08:48.05: Got resource from pool OCluster
Building on x86-bm-c18.sw.ocaml.org
All commits already cached
Submodule path 'hpack/test/hpack-test-case': checked out 'b2a1664b43dc520a4bbff2e7db1b7e7af4fb43f4'
Submodule path 'lib_test/http2-frame-test-case': checked out '5c67db0d4d68e1fb7d3a241d6e01fc04d981f465'
HEAD is now at f72e0df Add ocamlformat version
Synchronizing submodule url for 'hpack/test/hpack-test-case'
Synchronizing submodule url for 'lib_test/http2-frame-test-case'
Cleared directory 'hpack/test/hpack-test-case'
Submodule 'hpack/test/hpack-test-case' (https://github.com/http2jp/hpack-test-case.git) unregistered for path 'hpack/test/hpack-test-case'
Cleared directory 'lib_test/http2-frame-test-case'
Submodule 'lib_test/http2-frame-test-case' (https://github.com/http2jp/http2-frame-test-case.git) unregistered for path 'lib_test/http2-frame-test-case'
Submodule 'hpack/test/hpack-test-case' (https://github.com/http2jp/hpack-test-case.git) registered for path 'hpack/test/hpack-test-case'
Submodule 'lib_test/http2-frame-test-case' (https://github.com/http2jp/http2-frame-test-case.git) registered for path 'lib_test/http2-frame-test-case'
Submodule path 'hpack/test/hpack-test-case': checked out 'b2a1664b43dc520a4bbff2e7db1b7e7af4fb43f4'
Submodule path 'lib_test/http2-frame-test-case': checked out '5c67db0d4d68e1fb7d3a241d6e01fc04d981f465'


(from ocaml/opam@sha256:fda21a992c5df0e509393861bcf1b40849d544491656742979043a148fbba8bb)
2024-05-12 08:48.50 ---> saved as "e0805034d9e735da2cb99f3eb2cde6a7473dabe8bd1020b5bf9a6e9f3a9991fe"


/: (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 950c52962d34ab7507ecebe8cc7ef16fed0f292a || git fetch origin master) && git reset -q --hard 950c52962d34ab7507ecebe8cc7ef16fed0f292a && git log --no-decorate -n1 --oneline && opam update -u"))
950c52962d [new release] dune (15 packages) (3.15.0)


<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from file:///home/opam/opam-repository
default (at file:///home/opam/opam-repository): 
    [INFO] opam 2.1 includes many performance 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
2024-05-12 08:50.11 ---> saved as "aaf8f40ee793759ff0abf9f1b011ffef90418eeb721e7110a2994667cec82100"


/: (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.15.0


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


<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed dune.3.15.0
Done.
# Run eval $(opam env) to update the current shell environment
2024-05-12 08:51.34 ---> saved as "73145cadc4326cb5c837bec09cc5eb1b1ddd776f1e2b5626365a9e05ad127bb6"


/: (workdir /src)


/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
           (network host)
           (shell "opam depext -i ocamlformat=0.19.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 sexplib0          v0.14.0  [required by base]
  - install ocamlbuild        0.14.3   [required by fpath, uuseg]
  - install menhirCST         20231231 [required by menhir]
  - install dune-build-info   3.15.0   [required by ocamlformat]
  - install cmdliner          1.2.0    [required by ocamlformat]
  - install menhirSdk         20231231 [required by ocamlformat]
  - install ocamlfind         1.9.6    [required by ocp-indent, fpath, uuseg]
  - install menhirLib         20231231 [required by ocamlformat]
  - install result            1.5      [required by odoc-parser]
  - install seq               base     [required by re]
  - install csexp             1.5.2    [required by dune-configurator]
  - install fix               20230505 [required by ocamlformat]
  - install topkg             1.0.7    [required by fpath, uuseg]
  - install base-bytes        base     [required by ocp-indent]
  - install menhir            20231231 [required by ocamlformat]
  - install re                1.11.0   [required by ocamlformat]
  - install dune-configurator 3.15.0   [required by base]
  - install uutf              1.0.3    [required by ocamlformat]
  - install astring           0.8.5    [required by fpath, odoc-parser]
  - install ocp-indent        1.8.1    [required by ocamlformat]
  - install base              v0.14.3  [required by ocamlformat]
  - install uucp              15.0.0   [required by uuseg]
  - install odoc-parser       0.9.0    [required by ocamlformat]
  - install fpath             0.7.3    [required by ocamlformat]
  - install stdio             v0.14.0  [required by ocamlformat]
  - install uuseg             15.0.0   [required by ocamlformat]
  - install ocamlformat       0.19.0
===== 27 to install =====


<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[astring.0.8.5] found in cache
[base.v0.14.3] found in cache
[cmdliner.1.2.0] found in cache
[csexp.1.5.2] found in cache
[dune-build-info.3.15.0] found in cache
[dune-configurator.3.15.0] found in cache
[fix.20230505] found in cache
[fpath.0.7.3] found in cache
[menhir.20231231] found in cache
[menhirCST.20231231] found in cache
[menhirLib.20231231] found in cache
[menhirSdk.20231231] found in cache
[ocamlbuild.0.14.3] found in cache
[ocamlfind.1.9.6] found in cache
[ocamlformat.0.19.0] found in cache
[ocp-indent.1.8.1] found in cache
[odoc-parser.0.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.0.7] found in cache
[uucp.15.0.0] found in cache
[uuseg.15.0.0] found in cache
[uutf.1.0.3] found in cache


<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed seq.base
-> installed csexp.1.5.2
-> installed fix.20230505
-> installed menhirCST.20231231
-> installed menhirLib.20231231
-> installed menhirSdk.20231231
-> installed cmdliner.1.2.0
-> installed re.1.11.0
-> installed result.1.5
-> installed sexplib0.v0.14.0
-> installed dune-build-info.3.15.0
-> installed dune-configurator.3.15.0
-> installed ocamlfind.1.9.6
-> installed base-bytes.base
-> installed ocp-indent.1.8.1
-> installed ocamlbuild.0.14.3
-> installed base.v0.14.3
-> installed stdio.v0.14.0
-> installed topkg.1.0.7
-> installed uutf.1.0.3
-> installed astring.0.8.5
-> installed odoc-parser.0.9.0
-> installed fpath.0.7.3
-> installed menhir.20231231
-> installed uucp.15.0.0
-> installed uuseg.15.0.0
-> installed ocamlformat.0.19.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
2024-05-12 08:52.56 ---> saved as "0d6680c2f8e554777619ca66aae9ccaefe8784d037e073e9ed13e0b0b66710a3"


/src: (copy (src .) (dst /src/))
2024-05-12 08:52.57 ---> saved as "6af555d33aa49a79486d6e7bd50ef11b4639bed59ec954986c428356c3706010"


/src: (run (shell "opam exec -- dune build @fmt --ignore-promoted-rules || (echo \"dune build @fmt failed\"; exit 2)"))
File "examples/alpn/unix/alpn_server_tls.ml", line 1, characters 0-0:
diff --git a/_build/default/examples/alpn/unix/alpn_server_tls.ml b/_build/default/examples/alpn/unix/.formatted/alpn_server_tls.ml
index f1cc8c9..73563b0 100644
--- a/_build/default/examples/alpn/unix/alpn_server_tls.ml
+++ b/_build/default/examples/alpn/unix/.formatted/alpn_server_tls.ml
@@ -40,8 +40,8 @@ let start_https_server () =
               X509_lwt.private_of_pems ~cert ~priv_key >>= fun certificate ->
               let config =
                 Tls.Config.server
-                  ~alpn_protocols:[ "h2"; "http/1.1" ]
-                    (* accept h2 before http/1.1 *)
+                  ~alpn_protocols:
+                    [ "h2"; "http/1.1" ] (* accept h2 before http/1.1 *)
                   ~certificates:(`Single certificate)
                   ~ciphers:
                     (List.filter
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
2024-05-12 08:53.01: Job failed: Failed: Build failed