Organisationstmcgilchristqcheckfc2aad (master)(lint-fmt)

(lint-fmt)

Link Copied
Code Copied

Logs

2024-05-10 16:15.13: New job: test tmcgilchrist/qcheck https://github.com/tmcgilchrist/qcheck.git#refs/heads/master (fc2aadd95f6ebb5858246c856b68f7c6e77994c7) (linux-x86_64:(lint-fmt))
Base: ocaml/opam@sha256:fda21a992c5df0e509393861bcf1b40849d544491656742979043a148fbba8bb
ocamlformat version: none


To reproduce locally:


git clone --recursive "https://github.com/tmcgilchrist/qcheck.git" -b "master" && cd "qcheck" && git reset --hard fc2aadd9
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam@sha256:fda21a992c5df0e509393861bcf1b40849d544491656742979043a148fbba8bb
USER 1000:1000
RUN cd ~/opam-repository && (git cat-file -e 307e33d08fc4ccc1ea453ab45b0ead8ed574b97b || git fetch origin master) && git reset -q --hard 307e33d08fc4ccc1ea453ab45b0ead8ed574b97b && 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 16:15.13: Using cache hint "tmcgilchrist/qcheck-ocaml/opam@sha256:fda21a992c5df0e509393861bcf1b40849d544491656742979043a148fbba8bb-debian-12-4.08_opam-2.1-ocamlformat-307e33d08fc4ccc1ea453ab45b0ead8ed574b97b"
2024-05-10 16:15.13: 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 307e33d08fc4ccc1ea453ab45b0ead8ed574b97b || git fetch origin master) && git reset -q --hard 307e33d08fc4ccc1ea453ab45b0ead8ed574b97b && 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 16:15.13: Waiting for resource in pool OCluster
2024-05-11 09:56.10: Waiting for worker…
2024-05-11 10:01.19: Got resource from pool OCluster
Building on x86-bm-c6.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/qcheck.git-00bb238af6c66e0ed9e0493409c638aa683957b8/.git/
HEAD is now at fc2aadd Merge pull request #221 from gasche/document-to_alcotest


(from ocaml/opam@sha256:fda21a992c5df0e509393861bcf1b40849d544491656742979043a148fbba8bb)
Unable to find image 'ocaml/opam@sha256:fda21a992c5df0e509393861bcf1b40849d544491656742979043a148fbba8bb' locally
docker.io/ocaml/opam@sha256:fda21a992c5df0e509393861bcf1b40849d544491656742979043a148fbba8bb: Pulling from ocaml/opam
61aa86cd8a87: Pulling fs layer
61aa86cd8a87: Verifying Checksum
61aa86cd8a87: Download complete
61aa86cd8a87: Pull complete
Digest: sha256:fda21a992c5df0e509393861bcf1b40849d544491656742979043a148fbba8bb
Status: Downloaded newer image for ocaml/opam@sha256:fda21a992c5df0e509393861bcf1b40849d544491656742979043a148fbba8bb
2024-05-11 10:01.21 ---> using "e0805034d9e735da2cb99f3eb2cde6a7473dabe8bd1020b5bf9a6e9f3a9991fe" 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 307e33d08fc4ccc1ea453ab45b0ead8ed574b97b || git fetch origin master) && git reset -q --hard 307e33d08fc4ccc1ea453ab45b0ead8ed574b97b && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
 * branch                  master     -> FETCH_HEAD
   eb2dcab0d8..2ae169d7d0  master     -> origin/master
307e33d08f @dra27 and @Octachron maintain the 4.08+ packages


<><> 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 10:01.21 ---> using "7a9e50f2cda6a477fecf9feb19820cff5cf752694490b969013ec5cc497c2763" 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 dune 3.15.2


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


<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed dune.3.15.2
Done.
# Run eval $(opam env) to update the current shell environment
2024-05-11 10:01.21 ---> using "da0ef2a22593619ca89bdb7c851c410681f2b8fe60d8d94466f5cedadddd8593" from cache


/: (workdir /src)


/src: (copy (src .) (dst /src/))
2024-05-11 10:01.21 ---> saved as "3c4d7c99d176f88774b4b4d9356406ec60ea534ee6ab9d5e3fb6919afc3f81b9"


/src: (run (shell "opam exec -- dune build @fmt --ignore-promoted-rules || (echo \"dune build @fmt failed\"; exit 2)"))
File "src/dune", line 1, characters 0-0:
diff --git a/_build/default/src/dune b/_build/default/src/.formatted/dune
index 7f18afd..b998879 100644
--- a/_build/default/src/dune
+++ b/_build/default/src/.formatted/dune
@@ -1,12 +1,11 @@
-
 (library
-  (name qcheck)
-  (public_name qcheck)
-  (wrapped false)
-  (modules QCheck_runner)
-  (synopsis "compatibility library for qcheck")
-  (libraries qcheck-core qcheck-core.runner qcheck-ounit))
+ (name qcheck)
+ (public_name qcheck)
+ (wrapped false)
+ (modules QCheck_runner)
+ (synopsis "compatibility library for qcheck")
+ (libraries qcheck-core qcheck-core.runner qcheck-ounit))
 
 (documentation
-  (package qcheck)
-  (mld_files index))
+ (package qcheck)
+ (mld_files index))
File "example/dune", line 1, characters 0-0:
diff --git a/_build/default/example/dune b/_build/default/example/.formatted/dune
index fe4b271..8aa77a4 100644
--- a/_build/default/example/dune
+++ b/_build/default/example/.formatted/dune
@@ -1,21 +1,23 @@
-
 (executables
-  (names QCheck_runner_test)
-  (libraries qcheck))
+ (names QCheck_runner_test)
+ (libraries qcheck))
 
 (rule
-  (targets output.txt)
-  (deps ./QCheck_runner_test.exe)
-  (enabled_if (= %{os_type} "Unix"))
-  (action
-    (with-accepted-exit-codes
-      1
-      (with-stdout-to
-        %{targets}
-        (run ./QCheck_runner_test.exe --no-colors -s 1234)))))
+ (targets output.txt)
+ (deps ./QCheck_runner_test.exe)
+ (enabled_if
+  (= %{os_type} "Unix"))
+ (action
+  (with-accepted-exit-codes
+   1
+   (with-stdout-to
+    %{targets}
+    (run ./QCheck_runner_test.exe --no-colors -s 1234)))))
 
 (rule
-  (alias runtest)
-  (enabled_if (= %{os_type} "Unix"))
-  (package qcheck)
-  (action (diff output.txt.expected output.txt)))
+ (alias runtest)
+ (enabled_if
+  (= %{os_type} "Unix"))
+ (package qcheck)
+ (action
+  (diff output.txt.expected output.txt)))
File "test/core/dune", line 1, characters 0-0:
diff --git a/_build/default/test/core/dune b/_build/default/test/core/.formatted/dune
index 9d6e6e9..be7b180 100644
--- a/_build/default/test/core/dune
+++ b/_build/default/test/core/.formatted/dune
@@ -1,45 +1,52 @@
-
 (test
-  (name test)
-  (modules test)
-  (package qcheck-core)
-  (libraries qcheck-core alcotest))
+ (name test)
+ (modules test)
+ (package qcheck-core)
+ (libraries qcheck-core alcotest))
 
 (executables
-  (names QCheck_expect_test QCheck2_expect_test)
-  (modules QCheck_expect_test QCheck2_expect_test)
-  (libraries qcheck-core qcheck-core.runner))
+ (names QCheck_expect_test QCheck2_expect_test)
+ (modules QCheck_expect_test QCheck2_expect_test)
+ (libraries qcheck-core qcheck-core.runner))
 
 ;; rules for QCheck_expect_test
+
 (rule
-  (targets qcheck_output.txt)
-  (deps ./QCheck_expect_test.exe)
-  (package qcheck-core)
-  (enabled_if (= %{os_type} "Unix"))
-  (action
-    (with-stdout-to
-      %{targets}
-      (run ./QCheck_expect_test.exe --no-colors))))
+ (targets qcheck_output.txt)
+ (deps ./QCheck_expect_test.exe)
+ (package qcheck-core)
+ (enabled_if
+  (= %{os_type} "Unix"))
+ (action
+  (with-stdout-to
+   %{targets}
+   (run ./QCheck_expect_test.exe --no-colors))))
 
 (rule
-  (alias runtest)
-  (package qcheck-core)
-  (enabled_if (= %{os_type} "Unix"))
-  (action (diff qcheck_output.txt.expected qcheck_output.txt)))
+ (alias runtest)
+ (package qcheck-core)
+ (enabled_if
+  (= %{os_type} "Unix"))
+ (action
+  (diff qcheck_output.txt.expected qcheck_output.txt)))
 
 ;; rules for QCheck2_expect_test
+
 (rule
-  (targets qcheck2_output.txt)
-  (deps ./QCheck2_expect_test.exe)
-  (package qcheck-core)
-  (enabled_if (= %{os_type} "Unix"))
-  (action
-    (with-stdout-to
-      %{targets}
-      (run ./QCheck2_expect_test.exe --no-colors))))
+ (targets qcheck2_output.txt)
+ (deps ./QCheck2_expect_test.exe)
+ (package qcheck-core)
+ (enabled_if
+  (= %{os_type} "Unix"))
+ (action
+  (with-stdout-to
+   %{targets}
+   (run ./QCheck2_expect_test.exe --no-colors))))
 
 (rule
-  (alias runtest)
-  (package qcheck-core)
-  (enabled_if (= %{os_type} "Unix"))
-  (action (diff qcheck2_output.txt.expected qcheck2_output.txt)))
+ (alias runtest)
+ (package qcheck-core)
+ (enabled_if
+  (= %{os_type} "Unix"))
+ (action
+  (diff qcheck2_output.txt.expected qcheck2_output.txt)))
File "src/alcotest/dune", line 1, characters 0-0:
diff --git a/_build/default/src/alcotest/dune b/_build/default/src/alcotest/.formatted/dune
index 220a8b3..34c4966 100644
--- a/_build/default/src/alcotest/dune
+++ b/_build/default/src/alcotest/.formatted/dune
@@ -1,8 +1,6 @@
-
 (library
-  (name qcheck_alcotest)
-  (public_name qcheck-alcotest)
-  (wrapped false)
-  (libraries unix bytes qcheck-core qcheck-core.runner alcotest)
-  (flags :standard -w +a-4-42-44-48-50-58-32-60@8 -safe-string)
-  )
+ (name qcheck_alcotest)
+ (public_name qcheck-alcotest)
+ (wrapped false)
+ (libraries unix bytes qcheck-core qcheck-core.runner alcotest)
+ (flags :standard -w +a-4-42-44-48-50-58-32-60@8 -safe-string))
File "src/core/dune", line 1, characters 0-0:
diff --git a/_build/default/src/core/dune b/_build/default/src/core/.formatted/dune
index ad0939f..d0c89b8 100644
--- a/_build/default/src/core/dune
+++ b/_build/default/src/core/.formatted/dune
@@ -1,8 +1,6 @@
-
 (library
-  (name qcheck_core)
-  (public_name qcheck-core)
-  (wrapped false)
-  (libraries unix bytes)
-  (flags :standard -w +a-4-42-44-48-50-58-32-60@8 -safe-string)
-  )
+ (name qcheck_core)
+ (public_name qcheck-core)
+ (wrapped false)
+ (libraries unix bytes)
+ (flags :standard -w +a-4-42-44-48-50-58-32-60@8 -safe-string))
File "src/ppx_deriving_qcheck/dune", line 1, characters 0-0:
diff --git a/_build/default/src/ppx_deriving_qcheck/dune b/_build/default/src/ppx_deriving_qcheck/.formatted/dune
index fbff5b0..c1d03da 100644
--- a/_build/default/src/ppx_deriving_qcheck/dune
+++ b/_build/default/src/ppx_deriving_qcheck/.formatted/dune
@@ -2,6 +2,7 @@
  (name ppx_deriving_qcheck)
  (public_name ppx_deriving_qcheck)
  (libraries ppxlib)
- (preprocess (pps ppxlib.metaquot))
+ (preprocess
+  (pps ppxlib.metaquot))
  (ppx_runtime_libraries qcheck-core)
  (kind ppx_deriver))
File "src/runner/dune", line 1, characters 0-0:
diff --git a/_build/default/src/runner/dune b/_build/default/src/runner/.formatted/dune
index 9febaf0..67be500 100644
--- a/_build/default/src/runner/dune
+++ b/_build/default/src/runner/.formatted/dune
@@ -1,8 +1,6 @@
-
 (library
-  (name qcheck_runner)
-  (public_name qcheck-core.runner)
-  (wrapped false)
-  (libraries qcheck-core)
-  (flags :standard -warn-error -a+8 -safe-string)
-  )
+ (name qcheck_runner)
+ (public_name qcheck-core.runner)
+ (wrapped false)
+ (libraries qcheck-core)
+ (flags :standard -warn-error -a+8 -safe-string))
File "src/ounit/dune", line 1, characters 0-0:
diff --git a/_build/default/src/ounit/dune b/_build/default/src/ounit/.formatted/dune
index 2fadb7a..44d34d7 100644
--- a/_build/default/src/ounit/dune
+++ b/_build/default/src/ounit/.formatted/dune
@@ -1,8 +1,6 @@
-
 (library
-  (name qcheck_ounit)
-  (public_name qcheck-ounit)
-  (wrapped false)
-  (libraries unix bytes qcheck-core qcheck-core.runner ounit2)
-  (flags :standard -w +a-4-42-44-48-50-58-32-60@8 -safe-string)
-  )
+ (name qcheck_ounit)
+ (public_name qcheck-ounit)
+ (wrapped false)
+ (libraries unix bytes qcheck-core qcheck-core.runner ounit2)
+ (flags :standard -w +a-4-42-44-48-50-58-32-60@8 -safe-string))
File "example/ounit/dune", line 1, characters 0-0:
diff --git a/_build/default/example/ounit/dune b/_build/default/example/ounit/.formatted/dune
index 86554a7..187a52c 100644
--- a/_build/default/example/ounit/dune
+++ b/_build/default/example/ounit/.formatted/dune
@@ -1,21 +1,23 @@
-
 (executables
-  (names QCheck_ounit_test QCheck_test)
-  (libraries ounit2 qcheck-ounit))
+ (names QCheck_ounit_test QCheck_test)
+ (libraries ounit2 qcheck-ounit))
 
 (rule
-  (targets output.txt)
-  (deps ./QCheck_ounit_test.exe)
-  (enabled_if (= %{os_type} "Unix"))
-  (action
-    (with-accepted-exit-codes
-      1
-      (with-stdout-to
-        %{targets}
-        (run ./run_ounit.sh -runner=sequential -seed 1234)))))
+ (targets output.txt)
+ (deps ./QCheck_ounit_test.exe)
+ (enabled_if
+  (= %{os_type} "Unix"))
+ (action
+  (with-accepted-exit-codes
+   1
+   (with-stdout-to
+    %{targets}
+    (run ./run_ounit.sh -runner=sequential -seed 1234)))))
 
 (rule
-  (alias runtest)
-  (package qcheck-ounit)
-  (enabled_if (= %{os_type} "Unix"))
-  (action (diff output.txt.expected output.txt)))
+ (alias runtest)
+ (package qcheck-ounit)
+ (enabled_if
+  (= %{os_type} "Unix"))
+ (action
+  (diff output.txt.expected output.txt)))
File "example/alcotest/dune", line 1, characters 0-0:
diff --git a/_build/default/example/alcotest/dune b/_build/default/example/alcotest/.formatted/dune
index aebb720..858a26b 100644
--- a/_build/default/example/alcotest/dune
+++ b/_build/default/example/alcotest/.formatted/dune
@@ -1,23 +1,26 @@
-
 (executable
-  (name QCheck_alcotest_test)
-  (libraries qcheck-core qcheck-alcotest alcotest))
+ (name QCheck_alcotest_test)
+ (libraries qcheck-core qcheck-alcotest alcotest))
 
 (rule
-  (targets output.txt)
-  (deps ./QCheck_alcotest_test.exe)
-  (enabled_if (= %{os_type} "Unix"))
-  (action
-    (with-accepted-exit-codes
-      1
-      (setenv
-        QCHECK_SEED 1234
-        (with-stdout-to
-          %{targets}
-          (run ./run_alcotest.sh --color=never))))))
+ (targets output.txt)
+ (deps ./QCheck_alcotest_test.exe)
+ (enabled_if
+  (= %{os_type} "Unix"))
+ (action
+  (with-accepted-exit-codes
+   1
+   (setenv
+    QCHECK_SEED
+    1234
+    (with-stdout-to
+     %{targets}
+     (run ./run_alcotest.sh --color=never))))))
 
 (rule
-  (alias runtest)
-  (package qcheck-alcotest)
-  (enabled_if (= %{os_type} "Unix"))
-  (action (diff output.txt.expected output.txt)))
+ (alias runtest)
+ (package qcheck-alcotest)
+ (enabled_if
+  (= %{os_type} "Unix"))
+ (action
+  (diff output.txt.expected output.txt)))
File "test/ppx_deriving_qcheck/deriver/dune", line 1, characters 0-0:
diff --git a/_build/default/test/ppx_deriving_qcheck/deriver/dune b/_build/default/test/ppx_deriving_qcheck/deriver/.formatted/dune
index a154c75..d22ce9e 100644
--- a/_build/default/test/ppx_deriving_qcheck/deriver/dune
+++ b/_build/default/test/ppx_deriving_qcheck/deriver/.formatted/dune
@@ -1,11 +1,6 @@
 (tests
- (names
-   test_textual
-   test_primitives
-   test_qualified_names
-   test_recursive
-   test_tuple
-   test_variants
-   test_record)
+ (names test_textual test_primitives test_qualified_names test_recursive
+   test_tuple test_variants test_record)
  (libraries qcheck-alcotest ppxlib ppx_deriving_qcheck qcheck)
- (preprocess (pps ppxlib.metaquot ppx_deriving_qcheck)))
+ (preprocess
+  (pps ppxlib.metaquot ppx_deriving_qcheck)))
Error: Program ocamlformat not found in the tree or in PATH
 (context: default)
-> required by _build/default/src/.formatted/QCheck_runner.ml
-> required by alias src/.formatted/fmt
-> required by alias src/fmt
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 10:01.23: Job failed: Failed: Build failed