2025-02-21 18:35.56: New job: test ocaml-semver/ocaml-api-watch https://github.com/ocaml-semver/ocaml-api-watch.git#refs/pull/131/head (9a927e62bca41c48366a251c989a8ea38b48b901) (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 9a927e62 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 18:35.56: 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 18:35.56: 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 18:35.56: Waiting for resource in pool OCluster 2025-02-21 18:35.56: Waiting for worker… 2025-02-21 18:36.02: Got resource from pool OCluster Building on asteria.caelum.ci.dev HEAD is now at eea7bb6 Add a command flag for word diff textual diff output HEAD is now at 9a927e6 Add pretty printer for word-based textual diff output (from ocaml/opam:debian-12-ocaml-5.2@sha256:f9c047f90fe3f2ffc2284d583cbab5c101c9603dcbee3c1f4285ddba15d4eeb2) 2025-02-21 18:36.02 ---> 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 18:36.02 ---> 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 18:36.02 ---> 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 18:36.02 ---> using "669a9c6db374e49ed83bb10c63e6575c50714b29aa38b531e309c31c6fb714df" from cache /src: (workdir /src) /src: (run (shell "sudo chown opam /src")) 2025-02-21 18:36.02 ---> 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 18:36.57 ---> saved as "8773bdc45759d38d53a70d6b9ab183c5f356b97dd60e5eb651e1dad102354d04" /src: (copy (src api-watch.opam) (dst ./)) 2025-02-21 18:36.57 ---> 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 18:36.59 ---> saved as "9c5c146ce0f51f9c4d31509bdd7e7f7f0625c552e191c513f4707b6ca24cc5e4" /src: (run (network host) (shell "echo '(lang dune 3.0)' > './dune-project'")) 2025-02-21 18:36.59 ---> 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 (974 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 18:37.14 ---> 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 jane-street-headers.v0.17.0 (cached) -> retrieved fmt.0.9.0 (cached) -> retrieved jst-config.v0.17.0 (cached) -> retrieved ocaml-compiler-libs.v0.17.0 (cached) -> retrieved logs.0.7.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 dune.3.17.2, dune-configurator.3.17.2 (cached) -> retrieved ppxlib.0.35.0 (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 stdlib-shims.0.3.0 -> 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 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 18:38.28 ---> saved as "985e2f9d66c2e362a9900925893c462f1adbca3cf47d06ad4c94216aaf7bc41a" /src: (copy (src .) (dst /src)) 2025-02-21 18:38.28 ---> saved as "832f9c9513da9f1095930868cf88d5fbdb254e0cad2c55413db2101de1db673c" /src: (run (shell "opam exec -- dune build @install @check @runtest && rm -rf _build")) 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/b773095f842d9b042d9d35d5713dffe0/default/tests/api-diff/type_privacy_tests.t _build/.sandbox/b773095f842d9b042d9d35d5713dffe0/default/tests/api-diff/type_privacy_tests.t.corrected diff --git a/_build/.sandbox/b773095f842d9b042d9d35d5713dffe0/default/tests/api-diff/type_privacy_tests.t b/_build/.sandbox/b773095f842d9b042d9d35d5713dffe0/default/tests/api-diff/type_privacy_tests.t.corrected index 281972f..4d61f3f 100644 --- a/_build/.sandbox/b773095f842d9b042d9d35d5713dffe0/default/tests/api-diff/type_privacy_tests.t +++ b/_build/.sandbox/b773095f842d9b042d9d35d5713dffe0/default/tests/api-diff/type_privacy_tests.t.corrected @@ -22,9 +22,7 @@ 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; } + type t =[- private-] { a : int; b : float; } [1] @@ -42,9 +40,5 @@ 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; } - + type t =[- private-] { a : [-int-]{+float+};[- b : float;-] } [1] 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/8475efaf265018c3e18718997461e3bf/default/tests/api-diff/type_manifest_tests.t _build/.sandbox/8475efaf265018c3e18718997461e3bf/default/tests/api-diff/type_manifest_tests.t.corrected diff --git a/_build/.sandbox/8475efaf265018c3e18718997461e3bf/default/tests/api-diff/type_manifest_tests.t b/_build/.sandbox/8475efaf265018c3e18718997461e3bf/default/tests/api-diff/type_manifest_tests.t.corrected index 38ea63c..40c475d 100644 --- a/_build/.sandbox/8475efaf265018c3e18718997461e3bf/default/tests/api-diff/type_manifest_tests.t +++ b/_build/.sandbox/8475efaf265018c3e18718997461e3bf/default/tests/api-diff/type_manifest_tests.t.corrected @@ -22,9 +22,7 @@ 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 - + type t{+ =+}{+ int list+} [1] ### Adding a type manifest and private type abberivation @@ -41,7 +39,5 @@ 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 - + type t{+ =+}{+ private+}{+ int list+} [1] 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/100141c403ddbd862713e5327ba6ae8b/default/tests/api-diff/type_tests.t _build/.sandbox/100141c403ddbd862713e5327ba6ae8b/default/tests/api-diff/type_tests.t.corrected diff --git a/_build/.sandbox/100141c403ddbd862713e5327ba6ae8b/default/tests/api-diff/type_tests.t b/_build/.sandbox/100141c403ddbd862713e5327ba6ae8b/default/tests/api-diff/type_tests.t.corrected index babfa07..a03fb32 100644 --- a/_build/.sandbox/100141c403ddbd862713e5327ba6ae8b/default/tests/api-diff/type_tests.t +++ b/_build/.sandbox/100141c403ddbd862713e5327ba6ae8b/default/tests/api-diff/type_tests.t.corrected @@ -68,7 +68,5 @@ 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 - + type t = [-int-]{+float+} [1] 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/b03f004e76de298fc8f22e5bacf5804c/default/tests/api-diff/type_kind_tests.t _build/.sandbox/b03f004e76de298fc8f22e5bacf5804c/default/tests/api-diff/type_kind_tests.t.corrected diff --git a/_build/.sandbox/b03f004e76de298fc8f22e5bacf5804c/default/tests/api-diff/type_kind_tests.t b/_build/.sandbox/b03f004e76de298fc8f22e5bacf5804c/default/tests/api-diff/type_kind_tests.t.corrected index 44282b1..defba15 100644 --- a/_build/.sandbox/b03f004e76de298fc8f22e5bacf5804c/default/tests/api-diff/type_kind_tests.t +++ b/_build/.sandbox/b03f004e76de298fc8f22e5bacf5804c/default/tests/api-diff/type_kind_tests.t.corrected @@ -55,9 +55,7 @@ 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; } + type t[- =-]- { a : int; b : float; } [1] 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/6c53eabe7e27a4e52fb222d102ef47f8/default/tests/api-diff/record_type_tests.t _build/.sandbox/6c53eabe7e27a4e52fb222d102ef47f8/default/tests/api-diff/record_type_tests.t.corrected diff --git a/_build/.sandbox/6c53eabe7e27a4e52fb222d102ef47f8/default/tests/api-diff/record_type_tests.t b/_build/.sandbox/6c53eabe7e27a4e52fb222d102ef47f8/default/tests/api-diff/record_type_tests.t.corrected index 89a4bf1..13135ce 100644 --- a/_build/.sandbox/6c53eabe7e27a4e52fb222d102ef47f8/default/tests/api-diff/record_type_tests.t +++ b/_build/.sandbox/6c53eabe7e27a4e52fb222d102ef47f8/default/tests/api-diff/record_type_tests.t.corrected @@ -25,9 +25,7 @@ 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; } - + { first_name : string; id : int option; last_name : string;{+ level : int;+} } [1] ### Removing a field from a record type: @@ -45,9 +43,7 @@ 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; } - + { first_name : string; last_name : string;[- id : int option;-] } [1] ### Modifying a field type in a record type: @@ -65,9 +61,7 @@ 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; } - + { first_name : string; last_name : string; id : [-int option-]{+int+}; } [1] ### Modifying a field type in a record type to a same alias type: 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/13a8a0023b2184e116e9550497d30c70/default/tests/api-diff/parametrized_types_tests.t _build/.sandbox/13a8a0023b2184e116e9550497d30c70/default/tests/api-diff/parametrized_types_tests.t.corrected diff --git a/_build/.sandbox/13a8a0023b2184e116e9550497d30c70/default/tests/api-diff/parametrized_types_tests.t b/_build/.sandbox/13a8a0023b2184e116e9550497d30c70/default/tests/api-diff/parametrized_types_tests.t.corrected index c4eaa39..ee9411b 100644 --- a/_build/.sandbox/13a8a0023b2184e116e9550497d30c70/default/tests/api-diff/parametrized_types_tests.t +++ b/_build/.sandbox/13a8a0023b2184e116e9550497d30c70/default/tests/api-diff/parametrized_types_tests.t.corrected @@ -36,11 +36,7 @@ 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; } - + type ('a, 'b{+, 'c+}) t = { a : 'a; b : [-'b-]{+'b * 'c+}; } [1] # Removing a type variable from a type declaration: @@ -57,11 +53,7 @@ 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; } - + type ('a[-, 'b-]) t = { a : 'a; b : [-'b-]{+int+}; } [1] # Changing the use of type variables in a type declaration: @@ -79,9 +71,7 @@ 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; } - + { a : [-'a-]{+'b+}; b : [-'b-]{+'a+}; } [1] # Swapping the order of type variables in a type declaration: @@ -99,9 +89,7 @@ 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; } - + { a : [-'t1-]{+'t2+}; b : [-'t2-]{+'t1+}; } [1] Here we generate `.mli` files with two paramterized types: @@ -130,15 +118,7 @@ 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 - + type ('t1[-, 't2-]) s = { a : 't1; b : [-'t2-]{+int+}; } type ('t1{+, 't2+}) t = | A of 't1{+ * 't2+} [1] 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/5f2fd66a29c9a4e28901ab97fecd13d4/default/tests/api-diff/modified_variant_type_tests.t _build/.sandbox/5f2fd66a29c9a4e28901ab97fecd13d4/default/tests/api-diff/modified_variant_type_tests.t.corrected diff --git a/_build/.sandbox/5f2fd66a29c9a4e28901ab97fecd13d4/default/tests/api-diff/modified_variant_type_tests.t b/_build/.sandbox/5f2fd66a29c9a4e28901ab97fecd13d4/default/tests/api-diff/modified_variant_type_tests.t.corrected index bf51f4e..d2f4f3b 100644 --- a/_build/.sandbox/5f2fd66a29c9a4e28901ab97fecd13d4/default/tests/api-diff/modified_variant_type_tests.t +++ b/_build/.sandbox/5f2fd66a29c9a4e28901ab97fecd13d4/default/tests/api-diff/modified_variant_type_tests.t.corrected @@ -73,9 +73,7 @@ Run the api-watcher on the two cmi files | Ace | King | Queen - - | Number of int - + | Number of float - + | Number of [-int-]{+float+} [1] Tests for modifying constructor record argument @@ -109,11 +107,7 @@ 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; } - + | Circle of { center : point; raduis : int;{+ color : int;+} } | Rectangle of { lower_left : point; upper_right : point;{+ color : int;+} } [1] ### Removing a field from a record type in a constructor argument: @@ -135,9 +129,7 @@ Run the api-watcher on the two cmi files diff module Remove_field: type shape = | Rectangle of { lower_left : point; upper_right : point; } - - | Circle of { center : point; raduis : int; } - + | Circle of { center : point; } - + | Circle of { center : point;[- raduis : int;-] } [1] ### Modifying a field in a record type in a constructor argument: @@ -159,9 +151,7 @@ Run the api-watcher on the two cmi files 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; } - + | Circle of { center : point; raduis : [-int-]{+float+}; } [1] Tests for modifying constructor tuple argument @@ -195,11 +185,7 @@ 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 - + | Circle of point * int{+ * int+} | Rectangle of point * point{+ * int+} [1] ### Removing a component from a tuple type in a constructor argument: @@ -221,9 +207,7 @@ Run the api-watcher on the two cmi files diff module Remove_component: type shape = | Rectangle of point * point - - | Circle of point * int - + | Circle of point - + | Circle of point[- * int-] [1] ### Modifying a component in a tuple type in a constructor argument: @@ -245,7 +229,5 @@ Run the api-watcher on the two cmi files diff module Modify_component: type shape = | Rectangle of point * point - - | Circle of point * int - + | Circle of point * float - + | Circle of point * [-int-]{+float+} [1] "/usr/bin/env" "bash" "-c" "opam exec -- dune build @install @check @runtest && rm -rf _build" failed with exit status 1 2025-02-21 18:38.33: Job failed: Failed: Build failed