Organisationsygrekocaml-zstdc50809 ()(lint-fmt)

(lint-fmt)

Link Copied
Code Copied

Logs

2024-03-27 15:25.26: New job: test ygrek/ocaml-zstd https://github.com/ygrek/ocaml-zstd.git#refs/heads/master (c50809df5c0474454740948ad0e7a1c77461cce0) (linux-x86_64:(lint-fmt))
Base: ocaml/opam@sha256:fea81feee9cb109aab436bf5a04d885af626541484c22a72e29ce29698cfa809
ocamlformat version: none


To reproduce locally:


git clone --recursive "https://github.com/ygrek/ocaml-zstd.git" -b "master" && cd "ocaml-zstd" && git reset --hard c50809df
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam@sha256:fea81feee9cb109aab436bf5a04d885af626541484c22a72e29ce29698cfa809
USER 1000:1000
RUN cd ~/opam-repository && (git cat-file -e cbb8cd94c39e250b80c3d011957716a0096cbb3e || git fetch origin master) && git reset -q --hard cbb8cd94c39e250b80c3d011957716a0096cbb3e && 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-03-27 15:25.26: Using cache hint "ygrek/ocaml-zstd-ocaml/opam@sha256:fea81feee9cb109aab436bf5a04d885af626541484c22a72e29ce29698cfa809-debian-12-4.02_opam-2.1-ocamlformat-cbb8cd94c39e250b80c3d011957716a0096cbb3e"
2024-03-27 15:25.26: Using OBuilder spec:
((from ocaml/opam@sha256:fea81feee9cb109aab436bf5a04d885af626541484c22a72e29ce29698cfa809)
 (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 cbb8cd94c39e250b80c3d011957716a0096cbb3e || git fetch origin master) && git reset -q --hard cbb8cd94c39e250b80c3d011957716a0096cbb3e && 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-03-27 15:25.26: Waiting for resource in pool OCluster
2024-03-27 16:49.27: Waiting for worker…
2024-03-27 16:49.29: Got resource from pool OCluster
Building on x86-bm-c3.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/ocaml-zstd.git-d49335cf952de0d1dc163c40789cb4349ecfb92d/.git/
HEAD is now at c50809d Bump version


(from ocaml/opam@sha256:fea81feee9cb109aab436bf5a04d885af626541484c22a72e29ce29698cfa809)
Unable to find image 'ocaml/opam@sha256:fea81feee9cb109aab436bf5a04d885af626541484c22a72e29ce29698cfa809' locally
docker.io/ocaml/opam@sha256:fea81feee9cb109aab436bf5a04d885af626541484c22a72e29ce29698cfa809: Pulling from ocaml/opam
e89ed752ee40: Pulling fs layer
e89ed752ee40: Download complete
e89ed752ee40: Pull complete
Digest: sha256:fea81feee9cb109aab436bf5a04d885af626541484c22a72e29ce29698cfa809
Status: Downloaded newer image for ocaml/opam@sha256:fea81feee9cb109aab436bf5a04d885af626541484c22a72e29ce29698cfa809
2024-03-27 16:51.13 ---> saved as "e4ba768d890dc0a9ff55e849fae0ca07f09b7f1c09b18efc19ffb4619f867357"


/: (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 cbb8cd94c39e250b80c3d011957716a0096cbb3e || git fetch origin master) && git reset -q --hard cbb8cd94c39e250b80c3d011957716a0096cbb3e && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
 * branch                  master     -> FETCH_HEAD
   a6ba98231d..fe00df86c9  master     -> origin/master
cbb8cd94c3 conf-pkg-config: rename nixos pkgconfig -> pkg-config


<><> 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-03-27 16:52.16 ---> saved as "686041e55f21e3cae515bd1d36e561b4fd615abac6bc12ee15d59ab24f61208e"


/: (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.14.2
===== 3 to install =====


<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[dune.3.14.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.14.2
Done.
# Run eval $(opam env) to update the current shell environment
2024-03-27 16:53.52 ---> saved as "d776341ca0c7b4d2e3687f97e71bfc4f0e10312efafc311a4ab3c9454e4697b8"


/: (workdir /src)


/src: (copy (src .) (dst /src/))
2024-03-27 16:53.53 ---> saved as "501ef64d7018b8627d96bab76d17700efec81de48e894002926fb60d0e73733b"


/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/.formatted/zstd.ml
-> required by alias src/.formatted/fmt
-> required by alias src/fmt
File "stubs/dune", line 1, characters 0-0:
diff --git a/_build/default/stubs/dune b/_build/default/stubs/.formatted/dune
index 8a6d3b2..c8dd2a0 100644
--- a/_build/default/stubs/dune
+++ b/_build/default/stubs/.formatted/dune
@@ -4,7 +4,8 @@
  (libraries ctypes.stubs integers)
  (ctypes
   (external_library_name libzstd)
-  (headers (include "zstd.h"))
+  (headers
+   (include "zstd.h"))
   (type_description
    (instance Types)
    (functor Type_description))
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-03-27 16:53.55: Job failed: Failed: Build failed