Organisationsocaml-semverocaml-api-watcheea7bb ()debian-12-5.2_opam-2.3

debian-12-5.2_opam-2.3

Link Copied
Code Copied

Logs

2025-02-21 15:58.57: New job: test ocaml-semver/ocaml-api-watch https://github.com/ocaml-semver/ocaml-api-watch.git#refs/pull/131/head (eea7bb690130db1877f7248f45b8fa9e1c82d6b8) (linux-x86_64:debian-12-5.2_opam-2.3)
Base: ocaml/opam:debian-12-ocaml-5.2@sha256:f9c047f90fe3f2ffc2284d583cbab5c101c9603dcbee3c1f4285ddba15d4eeb2
Opam project build


To reproduce locally:


git clone --recursive "https://github.com/ocaml-semver/ocaml-api-watch.git" && cd "ocaml-api-watch" && git fetch origin "refs/pull/131/head" && git reset --hard eea7bb69
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-12-ocaml-5.2@sha256:f9c047f90fe3f2ffc2284d583cbab5c101c9603dcbee3c1f4285ddba15d4eeb2
# debian-12-5.2_opam-2.3
USER 1000:1000
ENV CLICOLOR_FORCE="1"
ENV OPAMCOLOR="always"
WORKDIR /src
RUN sudo ln -f /usr/bin/opam-2.3 /usr/bin/opam
RUN opam init --reinit -ni
RUN uname -rs && opam exec -- ocaml -version && opam --version
WORKDIR /src
RUN sudo chown opam /src
RUN cd ~/opam-repository && (git cat-file -e 34c3343b5f75151737387099c7515a74f860d08a || git fetch origin master) && git reset -q --hard 34c3343b5f75151737387099c7515a74f860d08a && git log --no-decorate -n1 --oneline && opam update -u
COPY --chown=1000:1000 api-watch.opam ./
RUN opam pin add -yn api-watch.dev './'
RUN echo '(lang dune 3.0)' > './dune-project'
ENV DEPS="base.v0.17.1 base-bigarray.base base-domains.base base-nnp.base base-threads.base base-unix.base cmdliner.1.3.0 containers.3.15 cppo.1.8.0 csexp.1.5.2 dune.3.17.2 dune-configurator.3.17.2 either.1.0.0 fmt.0.9.0 jane-street-headers.v0.17.0 jst-config.v0.17.0 logs.0.7.0 ocaml.5.2.1 ocaml-base-compiler.5.2.1 ocaml-compiler-libs.v0.17.0 ocaml-config.3 ocaml-options-vanilla.1 ocaml_intrinsics_kernel.v0.17.1 ocamlbuild.0.15.0 ocamlfind.1.9.8 ppx_assert.v0.17.0 ppx_base.v0.17.0 ppx_cold.v0.17.0 ppx_compare.v0.17.0 ppx_derivers.1.2.1 ppx_deriving.6.0.3 ppx_enumerate.v0.17.0 ppx_expect.v0.17.2 ppx_globalize.v0.17.0 ppx_hash.v0.17.0 ppx_here.v0.17.0 ppx_inline_test.v0.17.0 ppx_optcomp.v0.17.0 ppx_sexp_conv.v0.17.0 ppxlib.0.35.0 ppxlib_jane.v0.17.0 sexplib0.v0.17.0 stdio.v0.17.0 stdlib-shims.0.3.0 time_now.v0.17.0 topkg.1.0.7"
ENV CI="true"
ENV OCAMLCI="true"
RUN opam update --depexts && opam install --cli=2.3 --depext-only -y api-watch.dev $DEPS
RUN opam install $DEPS
COPY --chown=1000:1000 . /src
RUN opam exec -- dune build @install @check @runtest && rm -rf _build


END-OF-DOCKERFILE
docker build .
END-REPRO-BLOCK


2025-02-21 15:58.57: Using cache hint "ocaml-semver/ocaml-api-watch-ocaml/opam:debian-12-ocaml-5.2@sha256:f9c047f90fe3f2ffc2284d583cbab5c101c9603dcbee3c1f4285ddba15d4eeb2-debian-12-5.2_opam-2.3-30999a07ba38dc485b7b0bb14cbbd89e"
2025-02-21 15:58.57: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-5.2@sha256:f9c047f90fe3f2ffc2284d583cbab5c101c9603dcbee3c1f4285ddba15d4eeb2)
(comment debian-12-5.2_opam-2.3)
(user (uid 1000) (gid 1000))
(env CLICOLOR_FORCE 1)
(env OPAMCOLOR always)
(workdir /src)
(run (shell "sudo ln -f /usr/bin/opam-2.3 /usr/bin/opam"))
(run (shell "opam init --reinit -ni"))
(run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
(workdir /src)
(run (shell "sudo chown opam /src"))
(run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e 34c3343b5f75151737387099c7515a74f860d08a || git fetch origin master) && git reset -q --hard 34c3343b5f75151737387099c7515a74f860d08a && git log --no-decorate -n1 --oneline && opam update -u"))
(copy (src api-watch.opam) (dst ./))
(run (network host)
(shell "opam pin add -yn api-watch.dev './'"))
(run (network host)
(shell "echo '(lang dune 3.0)' > './dune-project'"))
(env DEPS "base.v0.17.1 base-bigarray.base base-domains.base base-nnp.base base-threads.base base-unix.base cmdliner.1.3.0 containers.3.15 cppo.1.8.0 csexp.1.5.2 dune.3.17.2 dune-configurator.3.17.2 either.1.0.0 fmt.0.9.0 jane-street-headers.v0.17.0 jst-config.v0.17.0 logs.0.7.0 ocaml.5.2.1 ocaml-base-compiler.5.2.1 ocaml-compiler-libs.v0.17.0 ocaml-config.3 ocaml-options-vanilla.1 ocaml_intrinsics_kernel.v0.17.1 ocamlbuild.0.15.0 ocamlfind.1.9.8 ppx_assert.v0.17.0 ppx_base.v0.17.0 ppx_cold.v0.17.0 ppx_compare.v0.17.0 ppx_derivers.1.2.1 ppx_deriving.6.0.3 ppx_enumerate.v0.17.0 ppx_expect.v0.17.2 ppx_globalize.v0.17.0 ppx_hash.v0.17.0 ppx_here.v0.17.0 ppx_inline_test.v0.17.0 ppx_optcomp.v0.17.0 ppx_sexp_conv.v0.17.0 ppxlib.0.35.0 ppxlib_jane.v0.17.0 sexplib0.v0.17.0 stdio.v0.17.0 stdlib-shims.0.3.0 time_now.v0.17.0 topkg.1.0.7")
(env CI true)
(env OCAMLCI true)
(run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam update --depexts && opam install --cli=2.3 --depext-only -y api-watch.dev $DEPS"))
(run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam install $DEPS"))
(copy (src .) (dst /src))
(run (shell "opam exec -- dune build @install @check @runtest && rm -rf _build"))
)


2025-02-21 15:58.57: Waiting for resource in pool OCluster
2025-02-21 15:58.57: Waiting for worker…
2025-02-21 16:02.05: Got resource from pool OCluster
Building on asteria.caelum.ci.dev
HEAD is now at 09955ea Minor fix
HEAD is now at eea7bb6 Add a command flag for word diff textual diff output


(from ocaml/opam:debian-12-ocaml-5.2@sha256:f9c047f90fe3f2ffc2284d583cbab5c101c9603dcbee3c1f4285ddba15d4eeb2)
2025-02-21 16:02.06 ---> using "4dc5055807d3bb18e9c26039fe3a97972d26e8775397762acd9918e30b065c21" from cache


/: (comment debian-12-5.2_opam-2.3)


/: (user (uid 1000) (gid 1000))


/: (env CLICOLOR_FORCE 1)


/: (env OPAMCOLOR always)


/: (workdir /src)


/src: (run (shell "sudo ln -f /usr/bin/opam-2.3 /usr/bin/opam"))
2025-02-21 16:02.06 ---> using "d460a53d10ae8dfac02b2a9aaabe192c3ba6f5a3afe77cbb516235ed775fa789" from cache


/src: (run (shell "opam init --reinit -ni"))
Configuring from /home/opam/.opamrc and then from built-in defaults.
Checking for available remotes: rsync and local, git.
- you won't be able to use mercurial repositories unless you install the hg command on your system.
- you won't be able to use darcs repositories unless you install the darcs command on your system.


This development version of opam requires an update to the layout of /home/opam/.opam from version 2.0 to version 2.2, which can't be reverted.
You may want to back it up before going further.


Continue? [y/n] y
[NOTE] The 'jobs' option was reset, its value was 39 and its new value will vary according to the current number of cores on your machine. You can restore the fixed value using:
opam option jobs=39 --global
Format upgrade done.


<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[ERROR] Could not update repository "opam-repository-archive": "/usr/bin/git fetch -q" exited with code 128 "fatal: unable to access 'https://github.com/ocaml/opam-repository-archive/': Could not resolve host: github.com"
[default] synchronised from file:///home/opam/opam-repository
2025-02-21 16:02.06 ---> using "532d99b5b6491ae616b62c59abc3adbdccae182e212aa10bf842eada9282a442" from cache


/src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 5.15.0-131-generic
The OCaml toplevel, version 5.2.1
2.3.0
2025-02-21 16:02.06 ---> using "669a9c6db374e49ed83bb10c63e6575c50714b29aa38b531e309c31c6fb714df" from cache


/src: (workdir /src)


/src: (run (shell "sudo chown opam /src"))
2025-02-21 16:02.06 ---> using "18edefe626c307bcbdb8ce40fbe42711cc5b4ef14835a913e6e0b61e279f25f8" from cache


/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e 34c3343b5f75151737387099c7515a74f860d08a || git fetch origin master) && git reset -q --hard 34c3343b5f75151737387099c7515a74f860d08a && git log --no-decorate -n1 --oneline && opam update -u"))
34c3343b5f Merge pull request #27426 from dra27/ocaml.5.2.1


<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[opam-repository-archive] synchronised from git+https://github.com/ocaml/opam-repository-archive
[default] synchronised from file:///home/opam/opam-repository


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.
# To update the current shell environment, run: eval $(opam env)
2025-02-21 16:02.59 ---> saved as "8773bdc45759d38d53a70d6b9ab183c5f356b97dd60e5eb651e1dad102354d04"


/src: (copy (src api-watch.opam) (dst ./))
2025-02-21 16:03.00 ---> saved as "9d53fa50aa82492d5a3a00362aad68dd95b390f6eb320122ae4cce660a0ff474"


/src: (run (network host)
(shell "opam pin add -yn api-watch.dev './'"))
[api-watch.dev] synchronised (file:///src)
api-watch is now pinned to file:///src (version dev)
2025-02-21 16:03.02 ---> saved as "9c5c146ce0f51f9c4d31509bdd7e7f7f0625c552e191c513f4707b6ca24cc5e4"


/src: (run (network host)
(shell "echo '(lang dune 3.0)' > './dune-project'"))
2025-02-21 16:03.02 ---> saved as "a2b8d88155f637ac56128e02fc97dca5e410d545102b13652dbb8c38b7b14aea"


/src: (env DEPS "base.v0.17.1 base-bigarray.base base-domains.base base-nnp.base base-threads.base base-unix.base cmdliner.1.3.0 containers.3.15 cppo.1.8.0 csexp.1.5.2 dune.3.17.2 dune-configurator.3.17.2 either.1.0.0 fmt.0.9.0 jane-street-headers.v0.17.0 jst-config.v0.17.0 logs.0.7.0 ocaml.5.2.1 ocaml-base-compiler.5.2.1 ocaml-compiler-libs.v0.17.0 ocaml-config.3 ocaml-options-vanilla.1 ocaml_intrinsics_kernel.v0.17.1 ocamlbuild.0.15.0 ocamlfind.1.9.8 ppx_assert.v0.17.0 ppx_base.v0.17.0 ppx_cold.v0.17.0 ppx_compare.v0.17.0 ppx_derivers.1.2.1 ppx_deriving.6.0.3 ppx_enumerate.v0.17.0 ppx_expect.v0.17.2 ppx_globalize.v0.17.0 ppx_hash.v0.17.0 ppx_here.v0.17.0 ppx_inline_test.v0.17.0 ppx_optcomp.v0.17.0 ppx_sexp_conv.v0.17.0 ppxlib.0.35.0 ppxlib_jane.v0.17.0 sexplib0.v0.17.0 stdio.v0.17.0 stdlib-shims.0.3.0 time_now.v0.17.0 topkg.1.0.7")


/src: (env CI true)


/src: (env OCAMLCI true)


/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam update --depexts && opam install --cli=2.3 --depext-only -y api-watch.dev $DEPS"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://deb.debian.org/debian bookworm InRelease
- Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
- Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
- Get:4 http://deb.debian.org/debian-security bookworm-security/main amd64 Packages [246 kB]
- Fetched 349 kB in 0s (860 kB/s)
- Reading package lists...


<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[api-watch.dev] synchronised (file:///src)


[NOTE] Package ocaml-options-vanilla is already installed (current version is 1).
[NOTE] Package ocaml-config is already installed (current version is 3).
[NOTE] Package ocaml-base-compiler is already installed (current version is 5.2.1).
[NOTE] Package ocaml is already installed (current version is 5.2.1).
[NOTE] Package base-unix is already installed (current version is base).
[NOTE] Package base-threads is already installed (current version is base).
[NOTE] Package base-nnp is already installed (current version is base).
[NOTE] Package base-domains is already installed (current version is base).
[NOTE] Package base-bigarray is already installed (current version is base).
2025-02-21 16:03.15 ---> saved as "af908db7515206c6fe06c0f01ea0aa838e7850ce249977a4bf49acaebae43d80"


/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam install $DEPS"))
[NOTE] Package ocaml-options-vanilla is already installed (current version is 1).
[NOTE] Package ocaml-config is already installed (current version is 3).
[NOTE] Package ocaml-base-compiler is already installed (current version is 5.2.1).
[NOTE] Package ocaml is already installed (current version is 5.2.1).
[NOTE] Package base-unix is already installed (current version is base).
[NOTE] Package base-threads is already installed (current version is base).
[NOTE] Package base-nnp is already installed (current version is base).
[NOTE] Package base-domains is already installed (current version is base).
[NOTE] Package base-bigarray is already installed (current version is base).
The following actions will be performed:
=== install 37 packages
- install base                    v0.17.1
- install cmdliner                1.3.0
- install containers              3.15
- install cppo                    1.8.0
- install csexp                   1.5.2
- install dune                    3.17.2
- install dune-configurator       3.17.2
- install either                  1.0.0
- install fmt                     0.9.0
- install jane-street-headers     v0.17.0
- install jst-config              v0.17.0
- install logs                    0.7.0
- install ocaml-compiler-libs     v0.17.0
- install ocaml_intrinsics_kernel v0.17.1
- install ocamlbuild              0.15.0
- install ocamlfind               1.9.8
- install ppx_assert              v0.17.0
- install ppx_base                v0.17.0
- install ppx_cold                v0.17.0
- install ppx_compare             v0.17.0
- install ppx_derivers            1.2.1
- install ppx_deriving            6.0.3
- install ppx_enumerate           v0.17.0
- install ppx_expect              v0.17.2
- install ppx_globalize           v0.17.0
- install ppx_hash                v0.17.0
- install ppx_here                v0.17.0
- install ppx_inline_test         v0.17.0
- install ppx_optcomp             v0.17.0
- install ppx_sexp_conv           v0.17.0
- install ppxlib                  0.35.0
- install ppxlib_jane             v0.17.0
- install sexplib0                v0.17.0
- install stdio                   v0.17.0
- install stdlib-shims            0.3.0
- install time_now                v0.17.0
- install topkg                   1.0.7


<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved cmdliner.1.3.0  (cached)
-> retrieved base.v0.17.1  (cached)
-> retrieved containers.3.15  (cached)
-> retrieved cppo.1.8.0  (cached)
-> retrieved csexp.1.5.2  (cached)
-> retrieved either.1.0.0  (cached)
-> retrieved fmt.0.9.0  (cached)
-> retrieved jane-street-headers.v0.17.0  (cached)
-> retrieved jst-config.v0.17.0  (cached)
-> retrieved logs.0.7.0  (cached)
-> retrieved ocaml-compiler-libs.v0.17.0  (cached)
-> retrieved ocaml_intrinsics_kernel.v0.17.1  (cached)
-> retrieved ocamlbuild.0.15.0  (cached)
-> retrieved ocamlfind.1.9.8  (cached)
-> retrieved ppx_assert.v0.17.0  (cached)
-> retrieved ppx_base.v0.17.0  (cached)
-> retrieved ppx_cold.v0.17.0  (cached)
-> retrieved ppx_compare.v0.17.0  (cached)
-> retrieved ppx_derivers.1.2.1  (cached)
-> retrieved ppx_enumerate.v0.17.0  (cached)
-> retrieved ppx_deriving.6.0.3  (cached)
-> retrieved ppx_expect.v0.17.2  (cached)
-> retrieved ppx_globalize.v0.17.0  (cached)
-> retrieved ppx_hash.v0.17.0  (cached)
-> retrieved ppx_here.v0.17.0  (cached)
-> retrieved ppx_inline_test.v0.17.0  (cached)
-> retrieved ppx_optcomp.v0.17.0  (cached)
-> retrieved ppx_sexp_conv.v0.17.0  (cached)
-> retrieved ppxlib_jane.v0.17.0  (cached)
-> retrieved sexplib0.v0.17.0  (cached)
-> retrieved stdio.v0.17.0  (cached)
-> retrieved stdlib-shims.0.3.0  (cached)
-> retrieved time_now.v0.17.0  (cached)
-> retrieved topkg.1.0.7  (cached)
-> retrieved ppxlib.0.35.0  (cached)
-> retrieved dune.3.17.2, dune-configurator.3.17.2  (cached)
-> installed cmdliner.1.3.0
-> installed ocamlbuild.0.15.0
-> installed ocamlfind.1.9.8
-> installed topkg.1.0.7
-> installed fmt.0.9.0
-> installed logs.0.7.0
-> installed dune.3.17.2
-> installed jane-street-headers.v0.17.0
-> installed ppx_derivers.1.2.1
-> installed csexp.1.5.2
-> installed cppo.1.8.0
-> installed either.1.0.0
-> installed ocaml-compiler-libs.v0.17.0
-> installed ocaml_intrinsics_kernel.v0.17.1
-> installed sexplib0.v0.17.0
-> installed stdlib-shims.0.3.0
-> installed dune-configurator.3.17.2
-> installed containers.3.15
-> installed base.v0.17.1
-> installed stdio.v0.17.0
-> installed ppxlib.0.35.0
-> installed ppxlib_jane.v0.17.0
-> installed ppx_optcomp.v0.17.0
-> installed ppx_cold.v0.17.0
-> installed ppx_here.v0.17.0
-> installed ppx_enumerate.v0.17.0
-> installed ppx_globalize.v0.17.0
-> installed ppx_deriving.6.0.3
-> installed ppx_compare.v0.17.0
-> installed ppx_sexp_conv.v0.17.0
-> installed ppx_hash.v0.17.0
-> installed ppx_assert.v0.17.0
-> installed ppx_base.v0.17.0
-> installed jst-config.v0.17.0
-> installed time_now.v0.17.0
-> installed ppx_inline_test.v0.17.0
-> installed ppx_expect.v0.17.2
Done.
# To update the current shell environment, run: eval $(opam env)
2025-02-21 16:04.21 ---> saved as "985e2f9d66c2e362a9900925893c462f1adbca3cf47d06ad4c94216aaf7bc41a"


/src: (copy (src .) (dst /src))
2025-02-21 16:04.21 ---> saved as "fdba20e8416bcbda677f6a29719db7ab36ebcbf402964370ba9e5aac437165bb"


/src: (run (shell "opam exec -- dune build @install @check @runtest && rm -rf _build"))
File "tests/api-diff/type_manifest_tests.t", line 1, characters 0-0:
/usr/bin/git --no-pager diff --no-index --color=always -u _build/.sandbox/5550e4448deb9f32a504414c51ab53ab/default/tests/api-diff/type_manifest_tests.t _build/.sandbox/5550e4448deb9f32a504414c51ab53ab/default/tests/api-diff/type_manifest_tests.t.corrected
diff --git a/_build/.sandbox/5550e4448deb9f32a504414c51ab53ab/default/tests/api-diff/type_manifest_tests.t b/_build/.sandbox/5550e4448deb9f32a504414c51ab53ab/default/tests/api-diff/type_manifest_tests.t.corrected
index 38ea63c..79e0b8f 100644
--- a/_build/.sandbox/5550e4448deb9f32a504414c51ab53ab/default/tests/api-diff/type_manifest_tests.t
+++ b/_build/.sandbox/5550e4448deb9f32a504414c51ab53ab/default/tests/api-diff/type_manifest_tests.t.corrected
@@ -21,11 +21,10 @@ We generate the .cmi file
Run the api-watcher on the two cmi files


$ api-diff ref.cmi add_manifest.cmi
-  diff module Add_manifest:
-  -type t
-  +type t = int list
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]


### Adding a type manifest and private type abberivation


@@ -40,8 +39,7 @@ We generate the .cmi file
Run the api-watcher on the two cmi files


$ api-diff ref.cmi add_manifest_private.cmi
-  diff module Add_manifest_private:
-  -type t
-  +type t = private int list
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]
File "tests/api-diff/type_privacy_tests.t", line 1, characters 0-0:
/usr/bin/git --no-pager diff --no-index --color=always -u _build/.sandbox/53145de2e80333f61d93aa6cbfa4545a/default/tests/api-diff/type_privacy_tests.t _build/.sandbox/53145de2e80333f61d93aa6cbfa4545a/default/tests/api-diff/type_privacy_tests.t.corrected
diff --git a/_build/.sandbox/53145de2e80333f61d93aa6cbfa4545a/default/tests/api-diff/type_privacy_tests.t b/_build/.sandbox/53145de2e80333f61d93aa6cbfa4545a/default/tests/api-diff/type_privacy_tests.t.corrected
index 281972f..388b5a8 100644
--- a/_build/.sandbox/53145de2e80333f61d93aa6cbfa4545a/default/tests/api-diff/type_privacy_tests.t
+++ b/_build/.sandbox/53145de2e80333f61d93aa6cbfa4545a/default/tests/api-diff/type_privacy_tests.t.corrected
@@ -21,12 +21,10 @@ We generate the .cmi file
Run the api-watcher on the two cmi files


$ api-diff ref.cmi remove_private.cmi
-  diff module Remove_private:
-  -type t = private
-  +type t =
-     { a : int; b : float; }
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]


# Removing a private type abbreviation from a type declaration and modifying record fields


@@ -41,10 +39,7 @@ We generate the .cmi file
Run the api-watcher on the two cmi files


$ api-diff ref.cmi remove_private_modify_record.cmi
-  diff module Remove_private_modify_record:
-  -type t = private
-  +type t =
-  -  { a : int; b : float; }
-  +  { a : float; }
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]
File "tests/api-diff/value_tests.t", line 1, characters 0-0:
/usr/bin/git --no-pager diff --no-index --color=always -u _build/.sandbox/bd900bd0a04a17c78c9bfefb27804935/default/tests/api-diff/value_tests.t _build/.sandbox/bd900bd0a04a17c78c9bfefb27804935/default/tests/api-diff/value_tests.t.corrected
diff --git a/_build/.sandbox/bd900bd0a04a17c78c9bfefb27804935/default/tests/api-diff/value_tests.t b/_build/.sandbox/bd900bd0a04a17c78c9bfefb27804935/default/tests/api-diff/value_tests.t.corrected
index a2d3551..5a81e49 100644
--- a/_build/.sandbox/bd900bd0a04a17c78c9bfefb27804935/default/tests/api-diff/value_tests.t
+++ b/_build/.sandbox/bd900bd0a04a17c78c9bfefb27804935/default/tests/api-diff/value_tests.t.corrected
@@ -27,10 +27,10 @@ Compile the new .mli file to a .cmi file


Run api-diff and check the output
$ api-diff ref.cmi add_value.cmi
-  diff module Add_value:
-  +val g : t -> t
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]


### Removing a value:


@@ -45,10 +45,10 @@ Compile the new .mli file to a .cmi file


Run api-diff and check the output
$ api-diff ref.cmi remove_value.cmi
-  diff module Remove_value:
-  -val f : t -> string
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]


### Modifying a value:


@@ -64,8 +64,7 @@ Compile the new .mli file to a .cmi file


Run api-diff and check the output
$ api-diff ref.cmi modify_value.cmi
-  diff module Modify_value:
-  -val f : t -> string
-  +val f : t -> t
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]
File "tests/api-diff/class_detection.t", line 1, characters 0-0:
/usr/bin/git --no-pager diff --no-index --color=always -u _build/.sandbox/b9d47c6a7ce2f2fe2c4759e1ab5cecca/default/tests/api-diff/class_detection.t _build/.sandbox/b9d47c6a7ce2f2fe2c4759e1ab5cecca/default/tests/api-diff/class_detection.t.corrected
diff --git a/_build/.sandbox/b9d47c6a7ce2f2fe2c4759e1ab5cecca/default/tests/api-diff/class_detection.t b/_build/.sandbox/b9d47c6a7ce2f2fe2c4759e1ab5cecca/default/tests/api-diff/class_detection.t.corrected
index bd08a43..0f684e0 100644
--- a/_build/.sandbox/b9d47c6a7ce2f2fe2c4759e1ab5cecca/default/tests/api-diff/class_detection.t
+++ b/_build/.sandbox/b9d47c6a7ce2f2fe2c4759e1ab5cecca/default/tests/api-diff/class_detection.t.corrected
@@ -31,10 +31,10 @@ Compile the new .mli file to a .cmi file


Run api-diff and check the output
$ api-diff ref_class.cmi add_class.cmi
-  diff module Add_class:
-  +class add_class : object method calculate : float -> float end
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]


### Removing a class:


@@ -47,10 +47,10 @@ Compile the new .mli file to a .cmi file


Run api-diff and check the output
$ api-diff ref_class.cmi remove_class.cmi
-  diff module Remove_class:
-  -class ref_class : object method get : int method set : int -> unit end
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]


### Modifing a class:


@@ -68,8 +68,7 @@ We generate a .cmi file
Run api-watcher on the two cmi files, there should be a difference


$ api-diff ref_class.cmi modify_class.cmi
-  diff module Modify_class:
-  -class ref_class : object method get : int method set : int -> unit end
-  +class ref_class : object method set : int -> int method size : int end
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]
File "tests/api-diff/cltype_tests.t", line 1, characters 0-0:
/usr/bin/git --no-pager diff --no-index --color=always -u _build/.sandbox/e7a5e236440d0b27d12ee0e89566d4df/default/tests/api-diff/cltype_tests.t _build/.sandbox/e7a5e236440d0b27d12ee0e89566d4df/default/tests/api-diff/cltype_tests.t.corrected
diff --git a/_build/.sandbox/e7a5e236440d0b27d12ee0e89566d4df/default/tests/api-diff/cltype_tests.t b/_build/.sandbox/e7a5e236440d0b27d12ee0e89566d4df/default/tests/api-diff/cltype_tests.t.corrected
index 9520520..9c246e9 100644
--- a/_build/.sandbox/e7a5e236440d0b27d12ee0e89566d4df/default/tests/api-diff/cltype_tests.t
+++ b/_build/.sandbox/e7a5e236440d0b27d12ee0e89566d4df/default/tests/api-diff/cltype_tests.t.corrected
@@ -32,11 +32,10 @@ Compile the new .mli file to a .cmi file


Run api-diff and check the output
$ api-diff ref_cltype.cmi add_cltype.cmi
-  diff module Add_cltype:
-  +class type new_cltype =
-  +  object method mk : int -> unit method mn : int -> int end
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]


### Removing a class type:


@@ -49,11 +48,10 @@ Compile the new .mli file to a .cmi file


Run api-diff and check the output
$ api-diff ref_cltype.cmi remove_cltype.cmi
-  diff module Remove_cltype:
-  -class type ref_cltype =
-  -  object method m1 : string method m2 : string -> unit end
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]


### Modifing a class type:


@@ -71,10 +69,7 @@ We generate a .cmi file
Run api-watcher on the two cmi files, there should be a difference


$ api-diff ref_cltype.cmi modify_cltype.cmi
-  diff module Modify_cltype:
-  -class type ref_cltype =
-  -  object method m1 : string method m2 : string -> unit end
-  +class type ref_cltype =
-  +  object method m2 : float -> unit method m3 : int -> float end
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]
File "tests/api-diff/type_tests.t", line 1, characters 0-0:
/usr/bin/git --no-pager diff --no-index --color=always -u _build/.sandbox/705db24f77ad916c8a233e43d72f187b/default/tests/api-diff/type_tests.t _build/.sandbox/705db24f77ad916c8a233e43d72f187b/default/tests/api-diff/type_tests.t.corrected
diff --git a/_build/.sandbox/705db24f77ad916c8a233e43d72f187b/default/tests/api-diff/type_tests.t b/_build/.sandbox/705db24f77ad916c8a233e43d72f187b/default/tests/api-diff/type_tests.t.corrected
index babfa07..e191d1c 100644
--- a/_build/.sandbox/705db24f77ad916c8a233e43d72f187b/default/tests/api-diff/type_tests.t
+++ b/_build/.sandbox/705db24f77ad916c8a233e43d72f187b/default/tests/api-diff/type_tests.t.corrected
@@ -28,10 +28,10 @@ We generate the .cmi file
Run api-watcher on the two cmi files, there should be a difference


$ api-diff ref.cmi add_type.cmi
-  diff module Add_type:
-  +type added_t = float
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]


### A file with a removed type:


@@ -47,10 +47,10 @@ We generate the .cmi file
Run api-watcher on the two cmi files, there should be a difference


$ api-diff ref.cmi remove_type.cmi
-  diff module Remove_type:
-  -type unused_type = string
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]


### A file with a modified type:


@@ -67,8 +67,7 @@ We generate a .cmi file
Run api-watcher on the two cmi files, there should be a difference


$ api-diff ref.cmi modify_type.cmi
-  diff module Modify_type:
-  -type t = int
-  +type t = float
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]
File "tests/api-diff/type_kind_tests.t", line 1, characters 0-0:
/usr/bin/git --no-pager diff --no-index --color=always -u _build/.sandbox/16fe7b2fae6341e326f453968bebc09a/default/tests/api-diff/type_kind_tests.t _build/.sandbox/16fe7b2fae6341e326f453968bebc09a/default/tests/api-diff/type_kind_tests.t.corrected
diff --git a/_build/.sandbox/16fe7b2fae6341e326f453968bebc09a/default/tests/api-diff/type_kind_tests.t b/_build/.sandbox/16fe7b2fae6341e326f453968bebc09a/default/tests/api-diff/type_kind_tests.t.corrected
index 44282b1..343ae0f 100644
--- a/_build/.sandbox/16fe7b2fae6341e326f453968bebc09a/default/tests/api-diff/type_kind_tests.t
+++ b/_build/.sandbox/16fe7b2fae6341e326f453968bebc09a/default/tests/api-diff/type_kind_tests.t.corrected
@@ -43,33 +43,26 @@ We generate the .cmi file
Run the api-watcher on record and varient type kinds cmi files


$ api-diff ref_record_kind.cmi ref_variant_kind.cmi
-  diff module Ref_variant_kind:
-   type t =
-  -  { a : int; b : float; }
-  +  | A of int
-  +  | B of string
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]


Run the api-watcher on record and abstract type kinds cmi files


$ api-diff ref_record_kind.cmi ref_abstract_kind.cmi
-  diff module Ref_abstract_kind:
-  -type t =
-  +type t
-  -  { a : int; b : float; }
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]


Run the api-watcher on record and open type kinds cmi files


$ api-diff ref_record_kind.cmi ref_open_kind.cmi
-  diff module Ref_open_kind:
-   type t =
-  -  { a : int; b : float; }
-  +  ..
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]


Run the api-watcher on two abstract type kinds cmi files


File "tests/api-diff/record_type_tests.t", line 1, characters 0-0:
/usr/bin/git --no-pager diff --no-index --color=always -u _build/.sandbox/ac0c2f1f4f843667fed61beb9ffa01a0/default/tests/api-diff/record_type_tests.t _build/.sandbox/ac0c2f1f4f843667fed61beb9ffa01a0/default/tests/api-diff/record_type_tests.t.corrected
diff --git a/_build/.sandbox/ac0c2f1f4f843667fed61beb9ffa01a0/default/tests/api-diff/record_type_tests.t b/_build/.sandbox/ac0c2f1f4f843667fed61beb9ffa01a0/default/tests/api-diff/record_type_tests.t.corrected
index 89a4bf1..7b4ad24 100644
--- a/_build/.sandbox/ac0c2f1f4f843667fed61beb9ffa01a0/default/tests/api-diff/record_type_tests.t
+++ b/_build/.sandbox/ac0c2f1f4f843667fed61beb9ffa01a0/default/tests/api-diff/record_type_tests.t.corrected
@@ -23,12 +23,10 @@ We generate the .cmi file
Run the api-watcher on the two cmi files


$ api-diff ref.cmi add_field.cmi
-  diff module Add_field:
-   type student =
-  -  { first_name : string; id : int option; last_name : string; }
-  +  { first_name : string; id : int option; last_name : string; level : int; }
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]


### Removing a field from a record type:


@@ -43,12 +41,10 @@ We generate the .cmi file
Run the api-watcher on the two cmi files


$ api-diff ref.cmi remove_field.cmi
-  diff module Remove_field:
-   type student =
-  -  { first_name : string; last_name : string; id : int option; }
-  +  { first_name : string; last_name : string; }
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]


### Modifying a field type in a record type:


@@ -63,12 +59,10 @@ We generate the .cmi file
Run api-watcher on the two cmi files


$ api-diff ref.cmi modify_field_type.cmi
-  diff module Modify_field_type:
-   type student =
-  -  { first_name : string; last_name : string; id : int option; }
-  +  { first_name : string; last_name : string; id : int; }
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]


### Modifying a field type in a record type to a same alias type:


@@ -84,8 +78,8 @@ We generate the .cmi file
Run api-watcher on the two cmi files


$ api-diff ref.cmi alias_field_type.cmi
-  diff module Alias_field_type:
-  +type y = int option
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]


File "tests/api-diff/module_tests.t", line 1, characters 0-0:
/usr/bin/git --no-pager diff --no-index --color=always -u _build/.sandbox/3fc56af6f5c5d36d50ffbd81b2d22048/default/tests/api-diff/module_tests.t _build/.sandbox/3fc56af6f5c5d36d50ffbd81b2d22048/default/tests/api-diff/module_tests.t.corrected
diff --git a/_build/.sandbox/3fc56af6f5c5d36d50ffbd81b2d22048/default/tests/api-diff/module_tests.t b/_build/.sandbox/3fc56af6f5c5d36d50ffbd81b2d22048/default/tests/api-diff/module_tests.t.corrected
index 828f0a5..1e5c869 100644
--- a/_build/.sandbox/3fc56af6f5c5d36d50ffbd81b2d22048/default/tests/api-diff/module_tests.t
+++ b/_build/.sandbox/3fc56af6f5c5d36d50ffbd81b2d22048/default/tests/api-diff/module_tests.t.corrected
@@ -30,10 +30,10 @@ Compile the new .mli file to a .cmi file


Run api-diff and check the output
$ api-diff mod_ref.cmi add_module.cmi
-  diff module Add_module:
-  +module N: sig val y : float end
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]


### Removing a module:


@@ -47,10 +47,10 @@ Compile the new .mli file to a .cmi file


Run api-diff and check the output
$ api-diff mod_ref.cmi remove_module.cmi
-  diff module Remove_module:
-  -module M: sig val x : int end
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]


### Modifying a module:


@@ -65,11 +65,10 @@ Compile the new .mli file to a .cmi file


Run api-diff and check the output
$ api-diff mod_ref.cmi modify_module.cmi
-  diff module Modify_module.M:
-  -val x : int
-  +val x : float
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]


Generate a new .mli file with values and submodules
$ cat > orig_module.mli << EOF
@@ -104,17 +103,7 @@ Compile the modified .mli file to a .cmi file


Run api-diff and check the output
$ api-diff orig_module.cmi modified_module.cmi
-  diff module Modified_module:
-  -val a : string -> int
-  +val a : string -> float
-  -val f : int -> string
-  +val f : int -> (string, string) result
-  +module E: sig val x : int end
-  
-  diff module Modified_module.D:
-  -val b : int list -> int
-  +val b : float list -> float
-  -val g : int -> string
-  +val g : int -> (string, string) result
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]
File "tests/api-diff/module_type_test.t", line 1, characters 0-0:
/usr/bin/git --no-pager diff --no-index --color=always -u _build/.sandbox/e0776c61e9875d0ac5e783184a9f3bc7/default/tests/api-diff/module_type_test.t _build/.sandbox/e0776c61e9875d0ac5e783184a9f3bc7/default/tests/api-diff/module_type_test.t.corrected
diff --git a/_build/.sandbox/e0776c61e9875d0ac5e783184a9f3bc7/default/tests/api-diff/module_type_test.t b/_build/.sandbox/e0776c61e9875d0ac5e783184a9f3bc7/default/tests/api-diff/module_type_test.t.corrected
index da027d7..bd3d339 100644
--- a/_build/.sandbox/e0776c61e9875d0ac5e783184a9f3bc7/default/tests/api-diff/module_type_test.t
+++ b/_build/.sandbox/e0776c61e9875d0ac5e783184a9f3bc7/default/tests/api-diff/module_type_test.t.corrected
@@ -30,10 +30,10 @@ Compile the new .mli file to a .cmi file


Run api-diff and check the output
$ api-diff modtype_ref.cmi add_modtype.cmi
-  diff module Add_modtype:
-  +module type P = sig val y : float end
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]


### Removing a module type:


@@ -47,10 +47,10 @@ Compile the new .mli file to a .cmi file


Run api-diff and check the output
$ api-diff modtype_ref.cmi remove_modtype.cmi
-  diff module Remove_modtype:
-  -module type M = sig val x : int end
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]


### Modifying a module type:


@@ -65,11 +65,10 @@ Compile the new .mli file to a .cmi file


Run api-diff and check the output
$ api-diff modtype_ref.cmi modify_modtype.cmi
-  diff module Modify_modtype.M:
-  -val x : int
-  +val x : float
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]


# Switching a module type from concrete to abstract
@@ -95,13 +94,7 @@ Compile the modified .mli file to a .cmi file


Run api-diff and check the output
$ api-diff conc_modtype.cmi abs_modtype.cmi
-  diff module Abs_modtype:
-  +module type N = sig val d : int end
-  
-  diff module Abs_modtype.M:
-  +<unsupported change>
-  
-  diff module Abs_modtype.P:
-  +<unsupported change>
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]
File "tests/api-diff/parametrized_types_tests.t", line 1, characters 0-0:
/usr/bin/git --no-pager diff --no-index --color=always -u _build/.sandbox/66569a69893b9a65467aac038e405a21/default/tests/api-diff/parametrized_types_tests.t _build/.sandbox/66569a69893b9a65467aac038e405a21/default/tests/api-diff/parametrized_types_tests.t.corrected
diff --git a/_build/.sandbox/66569a69893b9a65467aac038e405a21/default/tests/api-diff/parametrized_types_tests.t b/_build/.sandbox/66569a69893b9a65467aac038e405a21/default/tests/api-diff/parametrized_types_tests.t.corrected
index c4eaa39..c01bc51 100644
--- a/_build/.sandbox/66569a69893b9a65467aac038e405a21/default/tests/api-diff/parametrized_types_tests.t
+++ b/_build/.sandbox/66569a69893b9a65467aac038e405a21/default/tests/api-diff/parametrized_types_tests.t.corrected
@@ -35,13 +35,10 @@ We generate the .cmi file
Run the api-watcher on the two cmi files


$ api-diff ref.cmi add_type_var.cmi
-  diff module Add_type_var:
-  -type ('a, 'b) t =
-  +type ('a, 'b, 'c) t =
-  -  { a : 'a; b : 'b; }
-  +  { a : 'a; b : 'b * 'c; }
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]


# Removing a type variable from a type declaration:


@@ -56,13 +53,10 @@ We generate the .cmi file
Run the api-watcher on the two cmi files


$ api-diff ref.cmi remove_type_var.cmi
-  diff module Remove_type_var:
-  -type ('a, 'b) t =
-  +type ('a) t =
-  -  { a : 'a; b : 'b; }
-  +  { a : 'a; b : int; }
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]


# Changing the use of type variables in a type declaration:


@@ -77,12 +71,10 @@ We generate the .cmi file
Run the api-watcher on the two cmi files


$ api-diff ref.cmi change_type_var_use.cmi
-  diff module Change_type_var_use:
-   type ('a, 'b) t =
-  -  { a : 'a; b : 'b; }
-  +  { a : 'b; b : 'a; }
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]


# Swapping the order of type variables in a type declaration:


@@ -97,12 +89,10 @@ We generate the .cmi file
Run the api-watcher on the two cmi files


$ api-diff ref.cmi swap_type_vars.cmi
-  diff module Swap_type_vars:
-   type ('t1, 't2) t =
-  -  { a : 't1; b : 't2; }
-  +  { a : 't2; b : 't1; }
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]


Here we generate `.mli` files with two paramterized types:


@@ -129,17 +119,10 @@ We generate the .cmi file
Run the api-watcher on the two cmi files


$ api-diff ref2.cmi add_remove.cmi
-  diff module Add_remove:
-  -type ('t1, 't2) s =
-  +type ('t1) s =
-  -  { a : 't1; b : 't2; }
-  +  { a : 't1; b : int; }
-  -type ('t1) t =
-  +type ('t1, 't2) t =
-  -  | A of 't1
-  +  | A of 't1 * 't2
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]


Here we generate a `.mli` file with an arrow paramterized type:


File "tests/api-diff/modified_variant_type_tests.t", line 1, characters 0-0:
/usr/bin/git --no-pager diff --no-index --color=always -u _build/.sandbox/e6dcc1a5c037daa9ab4ab11fa9921a91/default/tests/api-diff/modified_variant_type_tests.t _build/.sandbox/e6dcc1a5c037daa9ab4ab11fa9921a91/default/tests/api-diff/modified_variant_type_tests.t.corrected
diff --git a/_build/.sandbox/e6dcc1a5c037daa9ab4ab11fa9921a91/default/tests/api-diff/modified_variant_type_tests.t b/_build/.sandbox/e6dcc1a5c037daa9ab4ab11fa9921a91/default/tests/api-diff/modified_variant_type_tests.t.corrected
index bf51f4e..2f4c9e2 100644
--- a/_build/.sandbox/e6dcc1a5c037daa9ab4ab11fa9921a91/default/tests/api-diff/modified_variant_type_tests.t
+++ b/_build/.sandbox/e6dcc1a5c037daa9ab4ab11fa9921a91/default/tests/api-diff/modified_variant_type_tests.t.corrected
@@ -23,15 +23,10 @@ We generate the .cmi file
Run the api-watcher on the two cmi files


$ api-diff ref.cmi add_constructor.cmi
-  diff module Add_constructor:
-   type rank =
-     | Ace
-     | King
-     | Number of int
-     | Queen
-  +  | Jack
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]


### Removing a constructor from a variant type:


@@ -46,14 +41,10 @@ We generate the .cmi file
Run the api-watcher on the two cmi files


$ api-diff ref.cmi remove_constructor.cmi
-  diff module Remove_constructor:
-   type rank =
-     | Ace
-     | King
-     | Queen
-  -  | Number of int
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]


### Modifying a constructor arguments in a variant type:


@@ -68,15 +59,10 @@ We generate the .cmi file
Run the api-watcher on the two cmi files


$ api-diff ref.cmi modify_constructor_type.cmi
-  diff module Modify_constructor_type:
-   type rank =
-     | Ace
-     | King
-     | Queen
-  -  | Number of int
-  +  | Number of float
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]


Tests for modifying constructor record argument


@@ -107,14 +93,10 @@ We generate the .cmi file
Run the api-watcher on the two cmi files


$ api-diff shapes.cmi add_field.cmi
-  diff module Add_field:
-   type shape =
-  -  | Circle of { center : point; raduis : int; }
-  +  | Circle of { center : point; raduis : int; color : int; }
-  -  | Rectangle of { lower_left : point; upper_right : point; }
-  +  | Rectangle of { lower_left : point; upper_right : point; color : int; }
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]


### Removing a field from a record type in a constructor argument:


@@ -132,13 +114,10 @@ We generate the .cmi file
Run the api-watcher on the two cmi files


$ api-diff shapes.cmi remove_field.cmi
-  diff module Remove_field:
-   type shape =
-     | Rectangle of { lower_left : point; upper_right : point; }
-  -  | Circle of { center : point; raduis : int; }
-  +  | Circle of { center : point; }
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]


### Modifying a field in a record type in a constructor argument:


@@ -156,13 +135,10 @@ We generate the .cmi file
Run the api-watcher on the two cmi files


$ api-diff shapes.cmi modify_field.cmi
-  diff module Modify_field:
-   type shape =
-     | Rectangle of { lower_left : point; upper_right : point; }
-  -  | Circle of { center : point; raduis : int; }
-  +  | Circle of { center : point; raduis : float; }
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]


Tests for modifying constructor tuple argument


@@ -193,14 +169,10 @@ We generate the .cmi file
Run the api-watcher on the two cmi files


$ api-diff shapes2.cmi add_component.cmi
-  diff module Add_component:
-   type shape =
-  -  | Circle of point * int
-  +  | Circle of point * int * int
-  -  | Rectangle of point * point
-  +  | Rectangle of point * point * int
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]


### Removing a component from a tuple type in a constructor argument:


@@ -218,13 +190,10 @@ We generate the .cmi file
Run the api-watcher on the two cmi files


$ api-diff shapes2.cmi remove_component.cmi
-  diff module Remove_component:
-   type shape =
-     | Rectangle of point * point
-  -  | Circle of point * int
-  +  | Circle of point
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]


### Modifying a component in a tuple type in a constructor argument:


@@ -242,10 +211,7 @@ We generate the .cmi file
Run the api-watcher on the two cmi files


$ api-diff shapes2.cmi modify_component.cmi
-  diff module Modify_component:
-   type shape =
-     | Rectangle of point * point
-  -  | Circle of point * int
-  +  | Circle of point * float
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]
File "tests/api-diff/project_comparison.t", line 1, characters 0-0:
/usr/bin/git --no-pager diff --no-index --color=always -u _build/.sandbox/f3e8d9af385c54b130b9c15f576b02da/default/tests/api-diff/project_comparison.t _build/.sandbox/f3e8d9af385c54b130b9c15f576b02da/default/tests/api-diff/project_comparison.t.corrected
diff --git a/_build/.sandbox/f3e8d9af385c54b130b9c15f576b02da/default/tests/api-diff/project_comparison.t b/_build/.sandbox/f3e8d9af385c54b130b9c15f576b02da/default/tests/api-diff/project_comparison.t.corrected
index 3b69f3d..10839ef 100644
--- a/_build/.sandbox/f3e8d9af385c54b130b9c15f576b02da/default/tests/api-diff/project_comparison.t
+++ b/_build/.sandbox/f3e8d9af385c54b130b9c15f576b02da/default/tests/api-diff/project_comparison.t.corrected
@@ -96,23 +96,10 @@ Build the second version


Run the api-diff tool on the two project versions
$ api-diff --main-module mylib  project_v1/_build/default/lib/.mylib.objs/byte project_v2/_build/default/lib/.mylib.objs/byte
-  diff module Mylib.Math:
-  -val add : int -> int -> int
-  +val add : int -> int -> int -> int
-  +val multiply : int -> int -> int
-  +module New_module: sig val hello : unit -> string end
-  
-  diff module Mylib.Math.Advanced:
-  +val cube : int -> int
-   type shape =
-     | Circle
-     | Square
-  +  | Triangle
-  
-  diff module Mylib.Utils:
-  +val triple : int -> int
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]


# Test for unwrapped libraries
@@ -214,20 +201,7 @@ Build the second version


Run the api-diff tool on the two project versions
$ api-diff --unwrapped proj_v1/_build/default/lib/.mylib.objs/byte proj_v2/_build/default/lib/.mylib.objs/byte
-  diff module Math:
-  -val add : int -> int -> int
-  +val add : int -> int -> int -> int
-  +val multiply : int -> int -> int
-  +module New_module: sig val hello : unit -> string end
-  
-  diff module Math.Advanced:
-  +val cube : int -> int
-   type shape =
-     | Circle
-     | Square
-  +  | Triangle
-  
-  diff module Utils:
-  +val triple : int -> int
-  
-  [1]
+  api-diff: internal error, uncaught exception:
+            File "lib/text_diff.ml", line 635, characters 19-25: Assertion failed
+            
+  [125]
"/usr/bin/env" "bash" "-c" "opam exec -- dune build @install @check @runtest && rm -rf _build" failed with exit status 1
2025-02-21 16:04.25: Job failed: Failed: Build failed