2024-05-14 12:40.00: New job: test patricoferris/luv https://github.com/patricoferris/luv.git#refs/heads/master (0ed668e87ca55d65f4f84422b0dd3381701c71b0) (linux-x86_64:(lint-fmt))
Base: ocaml/opam@sha256:35b5e3747440ffe0a1073d1f79222ce868497a689785b29ea7725612647c9c14
ocamlformat version: none
To reproduce locally:
git clone --recursive "https://github.com/patricoferris/luv.git" -b "master" && cd "luv" && git reset --hard 0ed668e8
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam@sha256:35b5e3747440ffe0a1073d1f79222ce868497a689785b29ea7725612647c9c14
USER 1000:1000
RUN cd ~/opam-repository && (git cat-file -e 2275b400535e884d216047a092e70705139c9e41 || git fetch origin master) && git reset -q --hard 2275b400535e884d216047a092e70705139c9e41 && git log --no-decorate -n1 --oneline && opam update -u
RUN opam depext -i dune
WORKDIR /src
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-14 12:40.00: Using cache hint "patricoferris/luv-ocaml/opam@sha256:35b5e3747440ffe0a1073d1f79222ce868497a689785b29ea7725612647c9c14-debian-12-4.02_opam-2.1-ocamlformat-2275b400535e884d216047a092e70705139c9e41"
2024-05-14 12:40.00: Using OBuilder spec:
((from ocaml/opam@sha256:35b5e3747440ffe0a1073d1f79222ce868497a689785b29ea7725612647c9c14)
(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 2275b400535e884d216047a092e70705139c9e41 || git fetch origin master) && git reset -q --hard 2275b400535e884d216047a092e70705139c9e41 && 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)
(copy (src .) (dst /src/))
(run (shell "opam exec -- dune build @fmt --ignore-promoted-rules || (echo \"dune build @fmt failed\"; exit 2)"))
)
2024-05-14 12:40.00: Waiting for resource in pool OCluster
2024-05-14 12:40.04: Waiting for worker…
2024-05-14 12:40.04: Got resource from pool OCluster
Building on x86-bm-c13.sw.ocaml.org
All commits already cached
Submodule path 'src/c/vendor/libuv': checked out '988f2bfc4defb9a85a536a3e645834c161143ee0'
HEAD is now at 0ed668e luv_unix: tighter dependency constraints
Synchronizing submodule url for 'src/c/vendor/libuv'
Cleared directory 'src/c/vendor/libuv'
Submodule 'src/c/vendor/libuv' (https://github.com/libuv/libuv.git) unregistered for path 'src/c/vendor/libuv'
Submodule 'src/c/vendor/libuv' (https://github.com/libuv/libuv.git) registered for path 'src/c/vendor/libuv'
Submodule path 'src/c/vendor/libuv': checked out '988f2bfc4defb9a85a536a3e645834c161143ee0'
(from ocaml/opam@sha256:35b5e3747440ffe0a1073d1f79222ce868497a689785b29ea7725612647c9c14)
Unable to find image 'ocaml/opam@sha256:35b5e3747440ffe0a1073d1f79222ce868497a689785b29ea7725612647c9c14' locally
docker.io/ocaml/opam@sha256:35b5e3747440ffe0a1073d1f79222ce868497a689785b29ea7725612647c9c14: Pulling from ocaml/opam
5c0ba4786982: Pulling fs layer
5c0ba4786982: Verifying Checksum
5c0ba4786982: Download complete
5c0ba4786982: Pull complete
Digest: sha256:35b5e3747440ffe0a1073d1f79222ce868497a689785b29ea7725612647c9c14
Status: Downloaded newer image for ocaml/opam@sha256:35b5e3747440ffe0a1073d1f79222ce868497a689785b29ea7725612647c9c14
2024-05-14 12:42.23 ---> saved as "b6dffe1cb2dc211fda01c1cd73a3d5db708702d4c8b2db8c126627d44ab1e60d"
/: (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 2275b400535e884d216047a092e70705139c9e41 || git fetch origin master) && git reset -q --hard 2275b400535e884d216047a092e70705139c9e41 && git log --no-decorate -n1 --oneline && opam update -u"))
2275b40053 @dra27 maintains ocaml-secondary-compiler
<><> 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-14 12:43.16 ---> saved as "b0a45c50e278338070de93575d936e73b6ebc475bbc58f4f9fc71ba4884e20ba"
/: (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 ocamlfind 1.9.6 [required by ocamlfind-secondary]
- install ocamlfind-secondary 1.9.6 [required by dune]
- install dune 3.15.2
===== 3 to install =====
<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[dune.3.15.2] found in cache
[ocamlfind.1.9.6] found in cache
[ocamlfind-secondary.1.9.6] found in cache
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed ocamlfind.1.9.6
-> installed ocamlfind-secondary.1.9.6
-> installed dune.3.15.2
Done.
# Run eval $(opam env) to update the current shell environment
2024-05-14 12:44.25 ---> saved as "e6df7ba93c67aac4f3c3ad523a2166194714a7365d15c82ebb0aeadf647b5758"
/: (workdir /src)
/src: (copy (src .) (dst /src/))
2024-05-14 12:44.25 ---> saved as "2e8a89b6e7d0db6a1bacb02ef58cca1c4e1363ee9f76d57e7ee8e61759f419a4"
/src: (run (shell "opam exec -- dune build @fmt --ignore-promoted-rules || (echo \"dune build @fmt failed\"; exit 2)"))
Error: Program ocamlformat not found in the tree or in PATH
(context: default)
-> required by _build/default/src/gen/.formatted/errors.ml
-> required by alias src/gen/.formatted/fmt
-> required by alias src/gen/fmt
File "src/dune", line 1, characters 0-0:
diff --git a/_build/default/src/dune b/_build/default/src/.formatted/dune
index 98e66ab..37101dd 100644
--- a/_build/default/src/dune
+++ b/_build/default/src/.formatted/dune
@@ -2,7 +2,8 @@
(name luv)
(public_name luv)
(libraries luv.c result)
- (flags (:standard -w -49 -open Result)))
+ (flags
+ (:standard -w -49 -open Result)))
(rule
(targets require.mli require.ml)
File "test/dune", line 1, characters 0-0:
diff --git a/_build/default/test/dune b/_build/default/test/.formatted/dune
index 1598d60..9217e07 100644
--- a/_build/default/test/dune
+++ b/_build/default/test/.formatted/dune
@@ -5,4 +5,5 @@
(rule
(alias runtest)
(deps read_test_input)
- (action (run %{exe:tester.exe})))
+ (action
+ (run %{exe:tester.exe})))
File "example/dune", line 1, characters 0-0:
diff --git a/_build/default/example/dune b/_build/default/example/.formatted/dune
index 3046af8..d8b8af1 100644
--- a/_build/default/example/dune
+++ b/_build/default/example/.formatted/dune
@@ -1,30 +1,7 @@
(executables
- (names
- hello_world
- delay
- print_using_file
- print_using_pipe
- print_using_tty
- idle
- cat
- onchange
- tcp_echo_server
- tcp_hello_world
- udp_echo_server
- udp_hello_world
- host
- http_get
- readme
- ifconfig
- threads
- thread_pool
- mutex
- progress
- spawn
- stdout
- pipe
- pipe_echo_server
- pipe_hello_world
- send_signal
- sigint)
+ (names hello_world delay print_using_file print_using_pipe print_using_tty
+ idle cat onchange tcp_echo_server tcp_hello_world udp_echo_server
+ udp_hello_world host http_get readme ifconfig threads thread_pool mutex
+ progress spawn stdout pipe pipe_echo_server pipe_hello_world send_signal
+ sigint)
(libraries luv))
File "src/unix/dune", line 1, characters 0-0:
diff --git a/_build/default/src/unix/dune b/_build/default/src/unix/.formatted/dune
index 9e7fe97..cbee0e9 100644
--- a/_build/default/src/unix/dune
+++ b/_build/default/src/unix/.formatted/dune
@@ -1,5 +1,8 @@
(library
(public_name luv_unix)
(libraries luv luv.c result unix)
- (foreign_stubs (language c) (names luv_unix))
- (flags (:standard -w -49 -open Result)))
+ (foreign_stubs
+ (language c)
+ (names luv_unix))
+ (flags
+ (:standard -w -49 -open Result)))
File "test/headers/dune", line 1, characters 0-0:
diff --git a/_build/default/test/headers/dune b/_build/default/test/headers/.formatted/dune
index c0ffddf..f793e85 100644
--- a/_build/default/test/headers/dune
+++ b/_build/default/test/headers/.formatted/dune
@@ -1,4 +1,6 @@
(executable
(name headers)
(libraries luv)
- (foreign_stubs (language c) (names headers)))
+ (foreign_stubs
+ (language c)
+ (names headers)))
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-14 12:44.26: Job failed: Failed: Build failed