Organisationssamohtmirage-solo59d78d9 (master)(lint-fmt)

(lint-fmt)

Link Copied
Code Copied

Logs

2024-05-10 22:07.16: New job: test samoht/mirage-solo5 https://github.com/samoht/mirage-solo5.git#refs/heads/master (9d78d93d27dea12d1c694d9b8bc0835b0ca58981) (linux-x86_64:(lint-fmt))
Base: ocaml/opam@sha256:434b29677edb35b6cb3940408299d70ed7b10632b1122e5b92902d4e32e0b260
ocamlformat version: none


To reproduce locally:


git clone --recursive "https://github.com/samoht/mirage-solo5.git" -b "master" && cd "mirage-solo5" && git reset --hard 9d78d93d
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam@sha256:434b29677edb35b6cb3940408299d70ed7b10632b1122e5b92902d4e32e0b260
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-10 22:07.16: Using cache hint "samoht/mirage-solo5-ocaml/opam@sha256:434b29677edb35b6cb3940408299d70ed7b10632b1122e5b92902d4e32e0b260-debian-12-4.06_opam-2.1-ocamlformat-2275b400535e884d216047a092e70705139c9e41"
2024-05-10 22:07.16: Using OBuilder spec:
((from ocaml/opam@sha256:434b29677edb35b6cb3940408299d70ed7b10632b1122e5b92902d4e32e0b260)
 (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-10 22:07.16: Waiting for resource in pool OCluster
2024-05-11 13:08.11: Waiting for worker…
2024-05-11 13:13.59: Got resource from pool OCluster
Building on doris.caelum.ci.dev
All commits already cached
HEAD is now at 9d78d93 Documentation for release 0.6.2


(from ocaml/opam@sha256:434b29677edb35b6cb3940408299d70ed7b10632b1122e5b92902d4e32e0b260)
Unable to find image 'ocaml/opam@sha256:434b29677edb35b6cb3940408299d70ed7b10632b1122e5b92902d4e32e0b260' locally
docker.io/ocaml/opam@sha256:434b29677edb35b6cb3940408299d70ed7b10632b1122e5b92902d4e32e0b260: Pulling from ocaml/opam
Digest: sha256:434b29677edb35b6cb3940408299d70ed7b10632b1122e5b92902d4e32e0b260
Status: Downloaded newer image for ocaml/opam@sha256:434b29677edb35b6cb3940408299d70ed7b10632b1122e5b92902d4e32e0b260
2024-05-11 13:31.18 ---> using "892c338b589a62a59c59cff7a94a45d05cc552a424c9217d6aaf3ec3cf967845" from cache


/: (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"))
From https://github.com/ocaml/opam-repository
 * branch                  master     -> FETCH_HEAD
   d4fc3679e9..2ae169d7d0  master     -> origin/master
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-11 13:31.18 ---> using "28c5edee80922e42b33e4503d2f6058b94cc9183e50792185b2a2185c29ad386" from cache


/: (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-11 13:31.18 ---> using "42c7f3d2eb22a3e3ed9ca25726451f7a970cfaf583789966d101fda4bbc8fad6" from cache


/: (workdir /src)


/src: (copy (src .) (dst /src/))
2024-05-11 13:31.18 ---> saved as "2ba69ca6258678da8c74de08e79397e8a753d224c21be67ac3958541744de0ee"


/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/lib/.formatted/lifecycle.ml
-> required by alias lib/.formatted/fmt
-> required by alias lib/fmt
File "lib/dune", line 1, characters 0-0:
diff --git a/_build/default/lib/dune b/_build/default/lib/.formatted/dune
index 4106698..d2b7d4f 100644
--- a/_build/default/lib/dune
+++ b/_build/default/lib/.formatted/dune
@@ -9,14 +9,23 @@
  (archive_name mirage-solo5_bindings)
  (language c)
  (names alloc_pages_stubs clock_stubs mm_stubs atomic_stubs cstruct_stubs
-        solo5_block_stubs barrier_stubs main solo5_console_stubs checksum_stubs
-        solo5_net_stubs)
- (flags (:include cflags.sexp) -O2 -std=c99 -Wall -Werror))
+   solo5_block_stubs barrier_stubs main solo5_console_stubs checksum_stubs
+   solo5_net_stubs)
+ (flags
+  (:include cflags.sexp)
+  -O2
+  -std=c99
+  -Wall
+  -Werror))
 
 (include_subdirs unqualified)
 
-(rule (with-stdout-to cflags.sexp (run ./cflags.sh)))
+(rule
+ (with-stdout-to
+  cflags.sexp
+  (run ./cflags.sh)))
 
 (install
  (section lib)
- (files (bindings/mirage-solo5.pc as ../pkgconfig/mirage-solo5.pc)))
\ No newline at end of file
+ (files
+  (bindings/mirage-solo5.pc as ../pkgconfig/mirage-solo5.pc)))
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-11 13:31.19: Job failed: Failed: Build failed