2025-06-03 04:00.34: New job: test tarides/runtime_events_tools https://github.com/tarides/runtime_events_tools.git#refs/heads/main (6a3f6f6c90181e09c90fa69c5b4a0551c0810367) (linux-x86_64:(lint-fmt))Base: ocaml/opam:debian-12-ocaml-4.08@sha256:48fa4a7216c3973bb95572cf5dca98cbbcefe90f288f552e7ac70a8ccd438aa7ocamlformat version: version 0.26.2 (from opam)To reproduce locally:git clone --recursive "https://github.com/tarides/runtime_events_tools.git" -b "main" && cd "runtime_events_tools" && git reset --hard 6a3f6f6ccat > Dockerfile <<'END-OF-DOCKERFILE'FROM ocaml/opam:debian-12-ocaml-4.08@sha256:48fa4a7216c3973bb95572cf5dca98cbbcefe90f288f552e7ac70a8ccd438aa7USER 1000:1000RUN cd ~/opam-repository && (git cat-file -e 0eea63ad71af2b1116c556023bedc6bf083e6125 || git fetch origin master) && git reset -q --hard 0eea63ad71af2b1116c556023bedc6bf083e6125 && git log --no-decorate -n1 --oneline && opam update -uRUN opam depext -i duneWORKDIR /srcRUN opam depext -i ocamlformat=0.26.2COPY --chown=1000:1000 . /src/RUN opam exec -- dune build @fmt --ignore-promoted-rules || (echo "dune build @fmt failed"; exit 2)END-OF-DOCKERFILEdocker build .END-REPRO-BLOCK2025-06-03 04:00.34: Using cache hint "tarides/runtime_events_tools-ocaml/opam:debian-12-ocaml-4.08@sha256:48fa4a7216c3973bb95572cf5dca98cbbcefe90f288f552e7ac70a8ccd438aa7-debian-12-4.08_opam-2.3-ocamlformat-0eea63ad71af2b1116c556023bedc6bf083e6125"2025-06-03 04:00.34: Using OBuilder spec:((from ocaml/opam:debian-12-ocaml-4.08@sha256:48fa4a7216c3973bb95572cf5dca98cbbcefe90f288f552e7ac70a8ccd438aa7)(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 0eea63ad71af2b1116c556023bedc6bf083e6125 || git fetch origin master) && git reset -q --hard 0eea63ad71af2b1116c556023bedc6bf083e6125 && 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.26.2"))(copy (src .) (dst /src/))(run (shell "opam exec -- dune build @fmt --ignore-promoted-rules || (echo \"dune build @fmt failed\"; exit 2)")))2025-06-03 04:00.34: Waiting for resource in pool OCluster2025-06-03 04:00.34: Waiting for worker…2025-06-03 04:00.35: Got resource from pool OClusterBuilding on doris.caelum.ci.devAll commits already cachedHEAD is now at 6a3f6f6 Merge pull request #55 from tmcgilchrist/hack(from ocaml/opam:debian-12-ocaml-4.08@sha256:48fa4a7216c3973bb95572cf5dca98cbbcefe90f288f552e7ac70a8ccd438aa7)Unable to find image 'ocaml/opam:debian-12-ocaml-4.08@sha256:48fa4a7216c3973bb95572cf5dca98cbbcefe90f288f552e7ac70a8ccd438aa7' locallydocker.io/ocaml/opam@sha256:48fa4a7216c3973bb95572cf5dca98cbbcefe90f288f552e7ac70a8ccd438aa7: Pulling from ocaml/opam4b9a22ae493c: Pulling fs layer4b9a22ae493c: Verifying Checksum4b9a22ae493c: Download complete4b9a22ae493c: Pull completeDigest: sha256:48fa4a7216c3973bb95572cf5dca98cbbcefe90f288f552e7ac70a8ccd438aa7Status: Downloaded newer image for ocaml/opam@sha256:48fa4a7216c3973bb95572cf5dca98cbbcefe90f288f552e7ac70a8ccd438aa72025-06-03 04:00.36 ---> using "d1b97f3f32fc7cff4791d73e3fff398d19cc5b0541c709028ff05a921e22d2c8" 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 0eea63ad71af2b1116c556023bedc6bf083e6125 || git fetch origin master) && git reset -q --hard 0eea63ad71af2b1116c556023bedc6bf083e6125 && git log --no-decorate -n1 --oneline && opam update -u"))From https://github.com/ocaml/opam-repository* branch master -> FETCH_HEAD0d013e603b..c037675bed master -> origin/master0eea63ad71 Merge pull request #27946 from mtelvers/opam-publish-ocaml-version.4.0.1<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>[default] Initialiseddefault (at git+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 environment2025-06-03 04:00.36 ---> using "96cf7cb4f290bdde63e0891300660f309335b98ec063b9c2de517b6b08952aac" 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 packagesThe following actions will be performed:- install dune 3.19.0<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>[dune.3.19.0] found in cache<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>-> installed dune.3.19.0Done.# Run eval $(opam env) to update the current shell environment2025-06-03 04:00.36 ---> using "89c0585fea6e0efe18837c1dd4fe4772483d123bc62d2e4be11e9db74e5475f0" from cache/: (workdir /src)/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))(network host)(shell "opam depext -i ocamlformat=0.26.2"))# 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 packagesThe following actions will be performed:- install sexplib0 v0.14.0 [required by base]- install cmdliner 1.3.0 [required by ocamlformat]- install menhirLib 20240715 [required by ocamlformat-lib]- install menhirCST 20240715 [required by menhir]- install ocamlbuild 0.16.1 [required by fpath, astring, uuseg]- install menhirSdk 20240715 [required by ocamlformat-lib]- install either 1.0.0 [required by ocamlformat-lib]- install ocaml-version 4.0.1 [required by ocamlformat-lib]- install result 1.5 [required by ocamlformat-lib]- install camlp-streams 5.0.1 [required by ocamlformat-lib]- install csexp 1.5.2 [required by ocamlformat-lib]- install seq base [required by re]- install fix 20250428 [required by ocamlformat-lib]- install ocamlfind 1.9.8 [required by ocp-indent, astring, fpath, uuseg]- install dune-build-info 3.19.0 [required by ocamlformat-lib]- install menhir 20240715 [required by ocamlformat-lib]- install dune-configurator 3.19.0 [required by base]- install re 1.11.0 [required by ocamlformat]- install topkg 1.0.8 [required by fpath, astring, uuseg]- install base-bytes base [required by ocp-indent]- 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 ocp-indent 1.8.1 [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.26.2 [required by ocamlformat]- install ocamlformat 0.26.2===== 30 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.19.0] found in cache[dune-configurator.3.19.0] found in cache[either.1.0.0] found in cache[fix.20250428] 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.1] found in cache[ocamlbuild.0.16.1] found in cache[ocamlfind.1.9.8] found in cache[ocamlformat.0.26.2] found in cache[ocamlformat-lib.0.26.2] found in cache[ocp-indent.1.8.1] found in cache[re.1.11.0] found in cache[result.1.5] 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 cmdliner.1.3.0-> installed either.1.0.0-> installed fix.20250428-> installed menhirCST.20240715-> installed menhirLib.20240715-> installed menhirSdk.20240715-> installed ocaml-version.4.0.1-> installed re.1.11.0-> installed result.1.5-> installed sexplib0.v0.14.0-> installed dune-build-info.3.19.0-> installed dune-configurator.3.19.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 uutf.1.0.4-> installed astring.0.8.5-> installed menhir.20240715-> installed fpath.0.7.3-> installed uucp.15.0.0-> installed uuseg.15.0.0-> installed ocamlformat-lib.0.26.2-> installed ocamlformat.0.26.2Done.<><> 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 environment2025-06-03 04:00.36 ---> using "d4b210b2ae456b744c774a617bda109b260e6769e817ce6c891aeffd59db4bb6" from cache/src: (copy (src .) (dst /src/))2025-06-03 04:00.36 ---> using "2524d51372fb4ad0f48249c8dcf0065d6fb50f9bb03311a5f287b4f2cbdc21dd" from cache/src: (run (shell "opam exec -- dune build @fmt --ignore-promoted-rules || (echo \"dune build @fmt failed\"; exit 2)"))File "test/dune", line 1, characters 0-0:diff --git a/_build/default/test/dune b/_build/default/test/.formatted/duneindex 1cbe357..6e32f2c 100644--- a/_build/default/test/dune+++ b/_build/default/test/.formatted/dune@@ -56,6 +56,7 @@(run olly_bare trace --format=json test-bare-json.trace ./test_fib.exe)))); Dummy process for testing process launching.+(executables(names run_endlessly)(libraries unix))@@ -66,5 +67,6 @@(enabled_if(>= %{ocaml_version} 5.1.0))(libraries olly_common alcotest)- (deps run_endlessly.exe)- (action (run %{test} --show-errors)))+ (deps run_endlessly.exe)+ (action+ (run %{test} --show-errors)))File "test/run_endlessly.ml", line 1, characters 0-0:diff --git a/_build/default/test/run_endlessly.ml b/_build/default/test/.formatted/run_endlessly.mlindex 52d8b74..698adec 100644--- a/_build/default/test/run_endlessly.ml+++ b/_build/default/test/.formatted/run_endlessly.ml@@ -2,4 +2,4 @@ let _ =let i = ref 0 inwhile true doi := 42- done\ No newline at end of file+ doneFile "test/test_launch.ml", line 1, characters 0-0:diff --git a/_build/default/test/test_launch.ml b/_build/default/test/.formatted/test_launch.mlindex 3457645..b0b3b17 100644--- a/_build/default/test/test_launch.ml+++ b/_build/default/test/.formatted/test_launch.ml@@ -3,47 +3,44 @@ let process_launch_failure () =let open Alcotest inmatch_raises "executable not found on path should not launch"(* Executable not found on path *)- (function- | Launch.Fail _ -> true- | _exn -> false)- (fun () -> ignore (Launch.exec_process ["missing.exe"]));+ (function Launch.Fail _ -> true | _exn -> false)+ (fun () -> ignore (Launch.exec_process [ "missing.exe" ]));match_raises "non-executable should not launch"(* File for exec_process is not an executable *)- (function- | Unix.Unix_error(Unix.EACCES, _, _) -> true- | _exn -> false)- (fun () -> ignore ( Launch.exec_process ["./run_endlessly.ml"]));+ (function Unix.Unix_error (Unix.EACCES, _, _) -> true | _exn -> false)+ (fun () -> ignore (Launch.exec_process [ "./run_endlessly.ml" ]));match_raises "empty executable string should not launch"(* Empty executable string provided *)- (function- | Launch.Fail _ -> true- | _exn -> false)- (fun () -> ignore ( Launch.exec_process [""]))-+ (function Launch.Fail _ -> true | _exn -> false)+ (fun () -> ignore (Launch.exec_process [ "" ]))let process_launch () =let open Olly_common in- Alcotest.(check bool) "process should launch" true+ Alcotest.(check bool)+ "process should launch" true(try- let a = Launch.exec_process ["./run_endlessly.exe"] in+ let a = Launch.exec_process [ "./run_endlessly.exe" ] intry(* Sending signal Zero to kill checks the process exists for Unix. *)Unix.kill a.pid 0;truewith Unix.Unix_error (Unix.ESRCH, _, _) -> false-with- (* Any exceptions indicate a failure to launch *)- | Unix.Unix_error(Unix.ENOENT, _, _) -> false- | _exn -> Printf.printf "%s" (Printexc.to_string _exn); false)+ (* Any exceptions indicate a failure to launch *)+ | Unix.Unix_error (Unix.ENOENT, _, _) -> false+ | _exn ->+ Printf.printf "%s" (Printexc.to_string _exn);+ false)let () =let open Alcotest in- run "Runtime Events Tools" [- "process",- [test_case "process::launch success" `Quick process_launch- ; test_case "process::launch failure" `Quick process_launch_failure- ]- ]\ No newline at end of file+ run "Runtime Events Tools"+ [+ ( "process",+ [+ test_case "process::launch success" `Quick process_launch;+ test_case "process::launch failure" `Quick process_launch_failure;+ ] );+ ]File "lib/olly_common/cli.ml", line 1, characters 0-0:diff --git a/_build/default/lib/olly_common/cli.ml b/_build/default/lib/olly_common/.formatted/cli.mlindex 9f75d35..b9981ee 100644--- a/_build/default/lib/olly_common/cli.ml+++ b/_build/default/lib/olly_common/.formatted/cli.ml@@ -37,9 +37,13 @@ let exec_args p =let exec_and_args, ea_docv =let doc = "Executable and arguments to trace." inlet docv = "EXECUTABLE" in- Term.(const List.concat- $ Arg.(value & pos_right (p - 1) (list ~sep: ' ' string) []- & info [] ~docv ~doc), docv)+ Term.+ ( (const List.concat+ $ Arg.(+ value+ & pos_right (p - 1) (list ~sep:' ' string) []+ & info [] ~docv ~doc)),+ docv )inlet attach_opt, ao_docv =let doc =File "lib/olly_common/launch.ml", line 1, characters 0-0:diff --git a/_build/default/lib/olly_common/launch.ml b/_build/default/lib/olly_common/.formatted/launch.mlindex fad4d58..1fdb4c9 100644--- a/_build/default/lib/olly_common/launch.ml+++ b/_build/default/lib/olly_common/.formatted/launch.ml@@ -8,9 +8,7 @@ type subprocess = {pid : int;}-type exec_config =- | Attach of string * int- | Execute of string list+type exec_config = Attach of string * int | Execute of string list(* Raised by exec_process to indicate various unrecoverable failures. *)exception Fail of string@@ -37,12 +35,13 @@ let exec_process (argsl : string list) : subprocess =|](Unix.environment ())in- let child_pid = try- Unix.create_process_env executable_filename (Array.of_list argsl) env- Unix.stdin Unix.stdout Unix.stderr- with- | Unix.Unix_error(Unix.ENOENT, _, _) ->- raise (Fail (Printf.sprintf "executable %s not found" executable_filename))+ let child_pid =+ try+ Unix.create_process_env executable_filename (Array.of_list argsl) env+ Unix.stdin Unix.stdout Unix.stderr+ with Unix.Unix_error (Unix.ENOENT, _, _) ->+ raise+ (Fail (Printf.sprintf "executable %s not found" executable_filename))inUnix.sleepf 0.1;let cursor = Runtime_events.create_cursor (Some (dir, child_pid)) in@@ -55,9 +54,7 @@ let exec_process (argsl : string list) : subprocess =Runtime_events.free_cursor cursor;(* We need to remove the ring buffers ourselves because we toldthe child process not to remove them *)- let ring_file =- Filename.concat dir (string_of_int child_pid ^ ".events")- in+ let ring_file = Filename.concat dir (string_of_int child_pid ^ ".events") inUnix.unlink ring_filein{ alive; cursor; close; pid = child_pid }File "lib/olly_gc_stats/olly_gc_stats.ml", line 1, characters 0-0:diff --git a/_build/default/lib/olly_gc_stats/olly_gc_stats.ml b/_build/default/lib/olly_gc_stats/.formatted/olly_gc_stats.mlindex 6a5c214..f12fe30 100644--- a/_build/default/lib/olly_gc_stats/olly_gc_stats.ml+++ b/_build/default/lib/olly_gc_stats/.formatted/olly_gc_stats.ml@@ -142,8 +142,9 @@ let gc_stats json output exec_args =olly{ empty_config with runtime_begin; runtime_end; lifecycle; init; cleanup }exec_args- with- | Fail msg -> Printf.eprintf "%s\n" msg; exit (-1)+ with Fail msg ->+ Printf.eprintf "%s\n" msg;+ exit (-1)let gc_stats_cmd =let open Cmdliner indune 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 22025-06-03 04:00.37: Job failed: Failed: Build failed