Organisationsahrefsocannl330f85 ()(lint-fmt)

(lint-fmt)

Link Copied
Code Copied

Logs

2025-04-07 11:03.22: New job: test ahrefs/ocannl https://github.com/ahrefs/ocannl.git#refs/heads/master (330f855832674fbb122aa9b43d64be228195a70b) (linux-x86_64:(lint-fmt))
Base: ocaml/opam:debian-12-ocaml-4.08@sha256:a7c06d659921ac2c9eb6cf997eb3a48300686cce5d1aeb393c0eb201644f0112
ocamlformat version: version 0.27.0 (from opam)


To reproduce locally:


git clone --recursive "https://github.com/ahrefs/ocannl.git" -b "master" && cd "ocannl" && git reset --hard 330f8558
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-12-ocaml-4.08@sha256:a7c06d659921ac2c9eb6cf997eb3a48300686cce5d1aeb393c0eb201644f0112
USER 1000:1000
RUN cd ~/opam-repository && (git cat-file -e 1b767795a4e028a4d45f916f1598c24ee7a7b6cb || git fetch origin master) && git reset -q --hard 1b767795a4e028a4d45f916f1598c24ee7a7b6cb && git log --no-decorate -n1 --oneline && opam update -u
RUN opam depext -i dune
WORKDIR /src
RUN opam depext -i ocamlformat=0.27.0
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


2025-04-07 11:03.22: Using cache hint "ahrefs/ocannl-ocaml/opam:debian-12-ocaml-4.08@sha256:a7c06d659921ac2c9eb6cf997eb3a48300686cce5d1aeb393c0eb201644f0112-debian-12-4.08_opam-2.3-ocamlformat-1b767795a4e028a4d45f916f1598c24ee7a7b6cb"
2025-04-07 11:03.22: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-4.08@sha256:a7c06d659921ac2c9eb6cf997eb3a48300686cce5d1aeb393c0eb201644f0112)
(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 1b767795a4e028a4d45f916f1598c24ee7a7b6cb || git fetch origin master) && git reset -q --hard 1b767795a4e028a4d45f916f1598c24ee7a7b6cb && 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)
(run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam depext -i ocamlformat=0.27.0"))
(copy (src .) (dst /src/))
(run (shell "opam exec -- dune build @fmt --ignore-promoted-rules || (echo \"dune build @fmt failed\"; exit 2)"))
)


2025-04-07 11:03.22: Waiting for resource in pool OCluster
2025-04-07 11:03.23: Waiting for worker…
2025-04-07 11:03.23: Got resource from pool OCluster
Building on clete.caelum.ci.dev
All commits already cached
HEAD is now at 330f8558 Update to cudajit.0.7.0


(from ocaml/opam:debian-12-ocaml-4.08@sha256:a7c06d659921ac2c9eb6cf997eb3a48300686cce5d1aeb393c0eb201644f0112)
2025-04-07 11:03.24 ---> using "212a1b8e3ddbfd9f9183e74007cf11c0bf064a0a89cec366fca17516e11ae032" 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 1b767795a4e028a4d45f916f1598c24ee7a7b6cb || git fetch origin master) && git reset -q --hard 1b767795a4e028a4d45f916f1598c24ee7a7b6cb && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
* branch                  master     -> FETCH_HEAD
a8ed476033..7481045c8a  master     -> origin/master
1b767795a4 Merge pull request #27704 from maiste/release-dune-3.18.0


<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[opam-repository-archive] synchronised from git+https://github.com/ocaml/opam-repository-archive
[default] synchronised from file:///home/opam/opam-repository
default (at file:///home/opam/opam-repository):
[INFO] opam 2.1 and 2.2 include many performance and security 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
2025-04-07 11:03.24 ---> using "46f223ffc712ad3c5cf796a07e4b5b403e9b4ff0d380c82759fdc09edaa704ae" 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.18.0


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


<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed dune.3.18.0
Done.
# Run eval $(opam env) to update the current shell environment
2025-04-07 11:03.24 ---> using "bc72bd60a73217fdb56ac2934268d06cd7c7614f304094fc2ff43f45c124dbd6" from cache


/: (workdir /src)


/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam depext -i ocamlformat=0.27.0"))
# 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 sexplib0          v0.14.0  [required by base]
- install dune-build-info   3.18.0   [required by ocamlformat-lib]
- install menhirLib         20240715 [required by ocamlformat-lib]
- install menhirCST         20240715 [required by menhir]
- install ocamlfind         1.9.8    [required by ocp-indent, astring, fpath, uuseg]
- install menhirSdk         20240715 [required by ocamlformat-lib]
- install either            1.0.0    [required by ocamlformat-lib]
- install cmdliner          1.3.0    [required by ocamlformat]
- install ocaml-version     4.0.0    [required by ocamlformat-lib]
- install seq               base     [required by re]
- install camlp-streams     5.0.1    [required by ocamlformat-lib]
- install csexp             1.5.2    [required by ocamlformat]
- install ocamlbuild        0.16.1   [required by fpath, astring, uuseg]
- install fix               20230505 [required by ocamlformat-lib]
- install base-bytes        base     [required by ocp-indent]
- install menhir            20240715 [required by ocamlformat-lib]
- install re                1.11.0   [required by ocamlformat]
- install dune-configurator 3.18.0   [required by base]
- install topkg             1.0.8    [required by fpath, astring, uuseg]
- install ocp-indent        1.8.1    [required by ocamlformat-lib]
- install base              v0.14.3  [required by ocamlformat-lib]
- install uutf              1.0.4    [required by ocamlformat-lib]
- install astring           0.8.5    [required by ocamlformat-lib]
- install stdio             v0.14.0  [required by ocamlformat-lib]
- install uucp              15.0.0   [required by uuseg]
- install fpath             0.7.3    [required by ocamlformat-lib]
- install uuseg             15.0.0   [required by ocamlformat-lib]
- install ocamlformat-lib   0.27.0   [required by ocamlformat]
- install ocamlformat       0.27.0
===== 29 to install =====


<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[astring.0.8.5] found in cache
[base.v0.14.3] found in cache
[camlp-streams.5.0.1] found in cache
[cmdliner.1.3.0] found in cache
[csexp.1.5.2] found in cache
[dune-build-info.3.18.0] found in cache
[dune-configurator.3.18.0] found in cache
[either.1.0.0] found in cache
[fix.20230505] found in cache
[fpath.0.7.3] found in cache
[menhir.20240715] found in cache
[menhirCST.20240715] found in cache
[menhirLib.20240715] found in cache
[menhirSdk.20240715] found in cache
[ocaml-version.4.0.0] found in cache
[ocamlbuild.0.16.1] found in cache
[ocamlfind.1.9.8] found in cache
[ocamlformat.0.27.0] found in cache
[ocamlformat-lib.0.27.0] found in cache
[ocp-indent.1.8.1] found in cache
[re.1.11.0] found in cache
[sexplib0.v0.14.0] found in cache
[stdio.v0.14.0] found in cache
[topkg.1.0.8] found in cache
[uucp.15.0.0] found in cache
[uuseg.15.0.0] found in cache
[uutf.1.0.4] found in cache


<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed seq.base
-> installed camlp-streams.5.0.1
-> installed csexp.1.5.2
-> installed either.1.0.0
-> installed fix.20230505
-> installed cmdliner.1.3.0
-> installed menhirCST.20240715
-> installed menhirLib.20240715
-> installed menhirSdk.20240715
-> installed ocaml-version.4.0.0
-> installed re.1.11.0
-> installed sexplib0.v0.14.0
-> installed dune-build-info.3.18.0
-> installed dune-configurator.3.18.0
-> installed ocamlfind.1.9.8
-> installed base-bytes.base
-> installed ocamlbuild.0.16.1
-> installed ocp-indent.1.8.1
-> installed base.v0.14.3
-> installed topkg.1.0.8
-> installed stdio.v0.14.0
-> installed menhir.20240715
-> installed uutf.1.0.4
-> installed astring.0.8.5
-> installed fpath.0.7.3
-> installed uucp.15.0.0
-> installed uuseg.15.0.0
-> installed ocamlformat-lib.0.27.0
-> installed ocamlformat.0.27.0
Done.


<><> ocp-indent.1.8.1 installed successfully ><><><><><><><><><><><><><><><><><>
=> This package requires additional configuration for use in editors. Install package 'user-setup', or manually:


* for Emacs, add these lines to ~/.emacs:
(add-to-list 'load-path "/home/opam/.opam/4.08/share/emacs/site-lisp")
(require 'ocp-indent)


* for Vim, add this line to ~/.vimrc:
set rtp^="/home/opam/.opam/4.08/share/ocp-indent/vim"
# Run eval $(opam env) to update the current shell environment
2025-04-07 11:03.24 ---> using "3eaf583fc757da4e3a161be6f9e69e2992a8d7d7ae32644d3bede13e754a1a37" from cache


/src: (copy (src .) (dst /src/))
2025-04-07 11:03.25 ---> saved as "f06f55e30303847d176ba37235eb878cb0ec24c2d0f49e4be29e276989546b1c"


/src: (run (shell "opam exec -- dune build @fmt --ignore-promoted-rules || (echo \"dune build @fmt failed\"; exit 2)"))
File "bin/micrograd_basic.ml", line 1, characters 0-0:
diff --git a/_build/default/bin/micrograd_basic.ml b/_build/default/bin/.formatted/micrograd_basic.ml
index aea3a9c..377466c 100644
--- a/_build/default/bin/micrograd_basic.ml
+++ b/_build/default/bin/.formatted/micrograd_basic.ml
@@ -6,6 +6,7 @@ module TDSL = Operation.TDSL
module NTDSL = Operation.NTDSL
module Utils = Arrayjit.Utils
module Rand = Arrayjit.Rand.Lib
+
let _get_local_debug_runtime = Utils.get_local_debug_runtime


let%diagn_sexp () =
Warning: Invalid documentation comment:
File "lib/shape.mli", line 86, characters 107-108:
Unpaired '}' (end of markup).
Suggestion: try '\}'.
File "arrayjit/lib/task.ml", line 1, characters 0-0:
diff --git a/_build/default/arrayjit/lib/task.ml b/_build/default/arrayjit/lib/.formatted/task.ml
index fdbdc70..afd8337 100644
--- a/_build/default/arrayjit/lib/task.ml
+++ b/_build/default/arrayjit/lib/.formatted/task.ml
@@ -36,8 +36,8 @@ let append ~work (Task task) =
work ());
}


-let%track3_sexp enschedule ~schedule_task ~get_stream_name stream
-    (Task { description; _ } as task) =
+let%track3_sexp enschedule ~schedule_task ~get_stream_name stream (Task { description; _ } as task)
+    =
[%log_result "enschedule", description, "on", get_stream_name stream];
let work () = schedule_task stream task in
Task
File "arrayjit/lib/backend_impl.ml", line 1, characters 0-0:
diff --git a/_build/default/arrayjit/lib/backend_impl.ml b/_build/default/arrayjit/lib/.formatted/backend_impl.ml
index 35eb7c1..9d51702 100644
--- a/_build/default/arrayjit/lib/backend_impl.ml
+++ b/_build/default/arrayjit/lib/.formatted/backend_impl.ml
@@ -68,8 +68,8 @@ module No_device_buffer_and_copying () :
let sexp_of_void_buffer_ptr (p : void_buffer_ptr) =
Sexp.Atom (Ctypes_value_printing_stubs.string_of_pointer p)


-  let%track7_sexp memcpy ~(dst : void_buffer_ptr) ~(src : void_buffer_ptr) ~(size_in_bytes : int)
-      : unit =
+  let%track7_sexp memcpy ~(dst : void_buffer_ptr) ~(src : void_buffer_ptr) ~(size_in_bytes : int) :
+      unit =
if Ctypes_ptr.Fat.compare dst src <> 0 then
Ctypes_memory_stubs.memcpy ~dst ~src ~size:size_in_bytes


File "test/primitive_ops.ml", line 1, characters 0-0:
diff --git a/_build/default/test/primitive_ops.ml b/_build/default/test/.formatted/primitive_ops.ml
index 0f03f8c..eeb00de 100644
--- a/_build/default/test/primitive_ops.ml
+++ b/_build/default/test/.formatted/primitive_ops.ml
@@ -743,7 +743,8 @@ let%expect_test "where(x < 0, sin(x), cos(x))" =
let%op f x = where (x < !.0.) (sin x) (cos x) in
let plot_box = plot_unop ~f () in
PrintBox_text.output Stdio.stdout plot_box;
-  [%expect {|
+  [%expect
+    {|
┌─────────┬────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ 9.99e-1 │  #                                                                                             *   │
│         │#### ##                                        *** ##                                        **  ***│
File "arrayjit/lib/ndarray.ml", line 1, characters 0-0:
diff --git a/_build/default/arrayjit/lib/ndarray.ml b/_build/default/arrayjit/lib/.formatted/ndarray.ml
index 9305013..f9b9b0b 100644
--- a/_build/default/arrayjit/lib/ndarray.ml
+++ b/_build/default/arrayjit/lib/.formatted/ndarray.ml
@@ -387,8 +387,8 @@ let hash_t nd = Nativeint.hash @@ to_native nd


let used_memory = Atomic.make 0


-let%track7_sexp create_array ~debug:(_debug : string) (prec : Ops.prec) ~(dims : int array)
-    init_op =
+let%track7_sexp create_array ~debug:(_debug : string) (prec : Ops.prec) ~(dims : int array) init_op
+    =
let size_in_bytes : int =
(if Array.length dims = 0 then 0 else Array.reduce_exn dims ~f:( * )) * Ops.prec_in_bytes prec
in
File "arrayjit/lib/utils.ml", line 1, characters 0-0:
diff --git a/_build/default/arrayjit/lib/utils.ml b/_build/default/arrayjit/lib/.formatted/utils.ml
index 86c6b33..5da2855 100644
--- a/_build/default/arrayjit/lib/utils.ml
+++ b/_build/default/arrayjit/lib/.formatted/utils.ml
@@ -355,9 +355,9 @@ let get_local_debug_runtime =
~verbose_entry_ids ~global_prefix:name ~for_append:false ~log_level:original_log_level
filename
| false, None ->
-      Minidebug_runtime.prefixed_runtime ~time_tagged ~elapsed_times ~location_format ~print_entry_ids
-        ~verbose_entry_ids ~global_prefix:name ~toc_entry ~toc_specific_hyperlink:""
-        ~highlight_terms
+      Minidebug_runtime.prefixed_runtime ~time_tagged ~elapsed_times ~location_format
+        ~print_entry_ids ~verbose_entry_ids ~global_prefix:name ~toc_entry
+        ~toc_specific_hyperlink:"" ~highlight_terms
~exclude_on_path:Re.(str "env")
~log_level:original_log_level ?snapshot_every_sec ()
| false, Some filename ->
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
2025-04-07 11:03.27: Job failed: Failed: Build failed