2024-05-14 12:40.00: New job: test tomjridge/kv-hash https://github.com/tomjridge/kv-hash.git#refs/heads/master (0b5349dd27ed9a14dc7c1f166afd1ad691bcd9dc) (linux-x86_64:(lint-fmt))
Base: ocaml/opam@sha256:35b5e3747440ffe0a1073d1f79222ce868497a689785b29ea7725612647c9c14
ocamlformat version: none
To reproduce locally:
git clone --recursive "https://github.com/tomjridge/kv-hash.git" -b "master" && cd "kv-hash" && git reset --hard 0b5349dd
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 "tomjridge/kv-hash-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-c4.sw.ocaml.org
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>
Initialized empty Git repository in /var/cache/obuilder/ocluster/git/kv-hash.git-dc1d2abdad715e51f09372d9ef9f165cc84ba6cf/.git/
HEAD is now at 0b5349d Rewrite doc; add an "optimistic" log file
(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.26 ---> 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.26 ---> saved as "e6df7ba93c67aac4f3c3ad523a2166194714a7365d15c82ebb0aeadf647b5758"
/: (workdir /src)
/src: (copy (src .) (dst /src/))
2024-05-14 12:44.26 ---> saved as "109226a0cd43200b73cd4d76b07d14d647d547d78478d2a9d2d921f9683daed3"
/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/test/.formatted/test1.ml
-> required by alias test/.formatted/fmt
-> required by alias test/fmt
File "test/dune", line 1, characters 0-0:
diff --git a/_build/default/test/dune b/_build/default/test/.formatted/dune
index 4187abf..c32b753 100644
--- a/_build/default/test/dune
+++ b/_build/default/test/.formatted/dune
@@ -73,32 +73,31 @@
(libraries kv_hash))
(executable
- (name "test12")
+ (name "test12")
(modules test12)
(libraries kv_hash))
(executable
- (name "test13")
+ (name "test13")
(modules test13)
(libraries unix))
(executable
- (name "test14")
+ (name "test14")
(modules test14)
(libraries kv_hash))
(executable
- (name "test15")
+ (name "test15")
(modules test15)
(libraries unix))
-
-
(executable
- (name "test_frontend")
+ (name "test_frontend")
(modules test_frontend)
(libraries kv_hash))
(alias
(name "executables")
- (deps test3.exe test4.exe test5.exe test7.exe test8.exe test9.exe test10.exe test11.exe test12.exe test13.exe test14.exe test15.exe test_frontend.exe))
+ (deps test3.exe test4.exe test5.exe test7.exe test8.exe test9.exe test10.exe
+ test11.exe test12.exe test13.exe test14.exe test15.exe test_frontend.exe))
File "src/dune", line 1, characters 0-0:
diff --git a/_build/default/src/dune b/_build/default/src/.formatted/dune
index cd954c4..e3fec4c 100644
--- a/_build/default/src/dune
+++ b/_build/default/src/.formatted/dune
@@ -1,8 +1,10 @@
(library
(public_name "kv_hash")
(name "kv_hash")
- (preprocess (pps ppx_sexp_conv ppx_sexp_message ppx_bin_prot))
- (libraries base stdio sexplib tjr_mmap bin_prot xxhash threads ctypes core.bigstring_unix lru extunix logs unixfile))
+ (preprocess
+ (pps ppx_sexp_conv ppx_sexp_message ppx_bin_prot))
+ (libraries base stdio sexplib tjr_mmap bin_prot xxhash threads ctypes
+ core.bigstring_unix lru extunix logs unixfile))
+
; ctypes for coerce_bigarray1
; core for bigstring io
-
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.28: Job failed: Failed: Build failed