(for PR #29952)
2026-05-25 04:39.58: New job: test contract.0.1.0, using opam 2.1
from https://github.com/ocaml/opam-repository.git#refs/pull/29952/head (6bd94e649fd37e846e43afa12ad324faba41e969)
on debian-13-ocaml-5.4/amd64
To reproduce locally:
cd $(mktemp -d)
git clone --recursive "https://github.com/ocaml/opam-repository.git" && cd "opam-repository" && git fetch origin "refs/pull/29952/head" && git reset --hard 6bd94e64
git fetch origin master
git merge --no-edit 856df280428c158a5bb0b3afce1bec956b10ae6f
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-13-ocaml-5.4@sha256:f9700a48fc9ceee25e58aabe0b5d3c4d88bf2427ddb44e9208e4f5acbfe4dfdc
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-2.1 /usr/bin/opam
RUN opam init --reinit -ni
RUN opam option solver=builtin-0install && opam config report
ENV OPAMDOWNLOADJOBS="1"
ENV OPAMERRLOGLEN="0"
ENV OPAMPRECISETRACKING="1"
ENV CI="true"
ENV OPAM_REPO_CI="true"
RUN rm -rf opam-repository/
COPY --chown=1000:1000 . opam-repository/
RUN opam repository set-url --strict default opam-repository/
RUN opam update --depexts || true
RUN opam pin add -k version -yn contract.0.1.0 0.1.0
RUN opam reinstall contract.0.1.0; \
res=$?; \
test "$res" != 31 && exit "$res"; \
export OPAMCLI=2.0; \
build_dir=$(opam var prefix)/.opam-switch/build; \
failed=$(ls "$build_dir"); \
partial_fails=""; \
for pkg in $failed; do \
if opam show -f x-ci-accept-failures: "$pkg" | grep -qF "\"debian-13\""; then \
echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
fi; \
test "$pkg" != 'contract.0.1.0' && partial_fails="$partial_fails $pkg"; \
done; \
test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}"; \
exit 1
RUN (opam reinstall --with-test contract.0.1.0) || true
RUN opam reinstall --with-test --verbose contract.0.1.0; \
res=$?; \
test "$res" != 31 && exit "$res"; \
export OPAMCLI=2.0; \
build_dir=$(opam var prefix)/.opam-switch/build; \
failed=$(ls "$build_dir"); \
partial_fails=""; \
for pkg in $failed; do \
if opam show -f x-ci-accept-failures: "$pkg" | grep -qF "\"debian-13\""; then \
echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
fi; \
test "$pkg" != 'contract.0.1.0' && partial_fails="$partial_fails $pkg"; \
done; \
test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}"; \
exit 1
END-OF-DOCKERFILE
docker build -f ../Dockerfile .
2026-05-25 04:39.58: Using cache hint "ocaml/opam:debian-13-ocaml-5.4@sha256:f9700a48fc9ceee25e58aabe0b5d3c4d88bf2427ddb44e9208e4f5acbfe4dfdc-contract.0.1.0-6bd94e649fd37e846e43afa12ad324faba41e969"
2026-05-25 04:39.58: Using OBuilder spec:
((from ocaml/opam:debian-13-ocaml-5.4@sha256:f9700a48fc9ceee25e58aabe0b5d3c4d88bf2427ddb44e9208e4f5acbfe4dfdc)
(user (uid 1000) (gid 1000))
(workdir /home/opam)
(run (shell "sudo ln -f /usr/bin/opam-2.1 /usr/bin/opam"))
(run (network host)
(shell "opam init --reinit --config .opamrc-sandbox -ni"))
(run (shell "opam option solver=builtin-0install && opam config report"))
(env OPAMDOWNLOADJOBS 1)
(env OPAMERRLOGLEN 0)
(env OPAMPRECISETRACKING 1)
(env CI true)
(env OPAM_REPO_CI true)
(run (shell "rm -rf opam-repository/"))
(copy (src .) (dst opam-repository/))
(run (shell "opam repository set-url --strict default opam-repository/"))
(run (network host)
(shell "opam update --depexts || true"))
(run (shell "opam pin add -k version -yn contract.0.1.0 0.1.0"))
(run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam reinstall contract.0.1.0;\
\n res=$?;\
\n test \"$res\" != 31 && exit \"$res\";\
\n export OPAMCLI=2.0;\
\n build_dir=$(opam var prefix)/.opam-switch/build;\
\n failed=$(ls \"$build_dir\");\
\n partial_fails=\"\";\
\n for pkg in $failed; do\
\n if opam show -f x-ci-accept-failures: \"$pkg\" | grep -qF \"\\\"debian-13\\\"\"; then\
\n echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
\n fi;\
\n test \"$pkg\" != 'contract.0.1.0' && partial_fails=\"$partial_fails $pkg\";\
\n done;\
\n test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
\n exit 1"))
(run (network host)
(shell "(opam reinstall --with-test contract.0.1.0) || true"))
(run (shell "opam reinstall --with-test --verbose contract.0.1.0;\
\n res=$?;\
\n test \"$res\" != 31 && exit \"$res\";\
\n export OPAMCLI=2.0;\
\n build_dir=$(opam var prefix)/.opam-switch/build;\
\n failed=$(ls \"$build_dir\");\
\n partial_fails=\"\";\
\n for pkg in $failed; do\
\n if opam show -f x-ci-accept-failures: \"$pkg\" | grep -qF \"\\\"debian-13\\\"\"; then\
\n echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
\n fi;\
\n test \"$pkg\" != 'contract.0.1.0' && partial_fails=\"$partial_fails $pkg\";\
\n done;\
\n test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
\n exit 1"))
)
2026-05-25 04:39.58: Waiting for resource in pool OCluster
2026-05-25 04:39.58: Waiting for worker…
2026-05-25 04:40.00: Got resource from pool OCluster
Building on toxis.caelum.ci.dev
All commits already cached
HEAD is now at 856df28042 Merge pull request #29946 from hannesm/release-mirage-net-solo5-v0.8.1
Updating 856df28042..6bd94e649f
Fast-forward
packages/contract/contract.0.1.0/opam | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
create mode 100644 packages/contract/contract.0.1.0/opam
(from ocaml/opam:debian-13-ocaml-5.4@sha256:f9700a48fc9ceee25e58aabe0b5d3c4d88bf2427ddb44e9208e4f5acbfe4dfdc)
2026-05-25 04:40.53 ---> using "ac1995f8abd260285fd7f15d3dfa37a0c18d5abe2573e173c9117b295287210f" from cache
/: (user (uid 1000) (gid 1000))
/: (workdir /home/opam)
/home/opam: (run (shell "sudo ln -f /usr/bin/opam-2.1 /usr/bin/opam"))
2026-05-25 04:40.53 ---> using "688c46b3729d4d44e6294b5dbc3144fe1e77e349148dba56ba52c65c8751cc00" from cache
/home/opam: (run (network host)
(shell "opam init --reinit --config .opamrc-sandbox -ni"))
Configuring from /home/opam/.opamrc-sandbox, then /home/opam/.opamrc, and finally 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.
<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] no changes from git+file:///home/opam/opam-repository
2026-05-25 04:41.14 ---> saved as "6ff9f227318ced3826ee778e564a5faf9a9fe6a9f10d2b1fdc59b2c6b07c4b22"
/home/opam: (run (shell "opam option solver=builtin-0install && opam config report"))
Set to 'builtin-0install' the field solver in global configuration
# opam config report
# opam-version 2.1.6 (263921263e1f745613e2882745114b7b08f3608b)
# self-upgrade no
# system arch=x86_64 os=linux os-distribution=debian os-version=13
# solver builtin-0install
# install-criteria
# upgrade-criteria
# jobs 71
# repositories 1 (version-controlled)
# pinned 1 (version)
# current-switch 5.4
# ocaml:native true
# ocaml:native-tools true
# ocaml:native-dynlink true
# ocaml:stubsdir /home/opam/.opam/5.4/lib/ocaml/stublibs:/home/opam/.opam/5.4/lib/ocaml
# ocaml:preinstalled false
# ocaml:compiler 5.4.1
2026-05-25 04:41.17 ---> saved as "aece597466071897f2129e44649ddf826792545d59d101a324ae52628f20e447"
/home/opam: (env OPAMDOWNLOADJOBS 1)
/home/opam: (env OPAMERRLOGLEN 0)
/home/opam: (env OPAMPRECISETRACKING 1)
/home/opam: (env CI true)
/home/opam: (env OPAM_REPO_CI true)
/home/opam: (run (shell "rm -rf opam-repository/"))
2026-05-25 04:41.29 ---> saved as "4fc0fb55a46ad50477689d187ff56b603e4a1c4e16d14967eb2a4beb2751fe7c"
/home/opam: (copy (src .) (dst opam-repository/))
2026-05-25 04:41.40 ---> saved as "2021babed126c4c770a156efd87afdce45a5539f410ff9cc077489038353a759"
/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2026-05-25 04:41.51 ---> saved as "d8e274eeee61f9e884e41d5b5798fa380106c94871834384de15fa5e1e8dc2f5"
/home/opam: (run (network host)
(shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Get:1 http://deb.debian.org/debian trixie InRelease [140 kB]
- Get:2 http://deb.debian.org/debian trixie-updates InRelease [47.3 kB]
- Get:3 http://deb.debian.org/debian-security trixie-security InRelease [43.4 kB]
- Get:4 http://deb.debian.org/debian trixie/main amd64 Packages [9671 kB]
- Get:5 http://deb.debian.org/debian-security trixie-security/main amd64 Packages [171 kB]
- Fetched 10.1 MB in 2s (6189 kB/s)
- Reading package lists...
-
2026-05-25 04:41.54 ---> saved as "f97c98887326f1b3e2a181788b9064c333fe50d62b267e3cb376355b7ee846f7"
/home/opam: (run (shell "opam pin add -k version -yn contract.0.1.0 0.1.0"))
contract is now pinned to version 0.1.0
2026-05-25 04:41.55 ---> saved as "34067fd8d70c93e93ceef5159d85377778ca5602b1e4971edf3173fbc5116136"
/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam reinstall contract.0.1.0;\
\n res=$?;\
\n test \"$res\" != 31 && exit \"$res\";\
\n export OPAMCLI=2.0;\
\n build_dir=$(opam var prefix)/.opam-switch/build;\
\n failed=$(ls \"$build_dir\");\
\n partial_fails=\"\";\
\n for pkg in $failed; do\
\n if opam show -f x-ci-accept-failures: \"$pkg\" | grep -qF \"\\\"debian-13\\\"\"; then\
\n echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
\n fi;\
\n test \"$pkg\" != 'contract.0.1.0' && partial_fails=\"$partial_fails $pkg\";\
\n done;\
\n test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
\n exit 1"))
contract.0.1.0 is not installed. Install it? [Y/n] y
The following actions will be performed:
- recompile ocaml-compiler 5.4.1 [upstream or system changes]
- recompile ocaml-base-compiler 5.4.1* [uses ocaml-compiler]
- recompile ocaml-config 3 [uses ocaml-base-compiler]
- recompile ocaml 5.4.1 [upstream or system changes]
- install dune 3.23.1 [required by contract]
- recompile opam-depext 1.2.3 [uses ocaml]
- recompile base-effects base [uses ocaml]
- recompile base-domains base [uses ocaml]
- install yojson 3.0.0 [required by contract]
- recompile base-nnp base [uses base-domains]
- install contract 0.1.0*
===== 3 to install | 8 to recompile =====
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved contract.0.1.0 (cached)
-> retrieved dune.3.23.1 (cached)
-> retrieved ocaml-compiler.5.4.1 (cached)
-> retrieved ocaml-config.3 (cached)
-> retrieved opam-depext.1.2.3 (cached)
-> retrieved yojson.3.0.0 (cached)
-> removed base-effects.base
-> removed base-nnp.base
-> removed base-domains.base
-> removed opam-depext.1.2.3
-> removed ocaml.5.4.1
-> removed ocaml-config.3
-> removed ocaml-base-compiler.5.4.1
-> removed ocaml-compiler.5.4.1
-> installed ocaml-compiler.5.4.1
-> installed ocaml-base-compiler.5.4.1
-> installed ocaml-config.3
-> installed ocaml.5.4.1
-> installed base-domains.base
-> installed base-effects.base
-> installed base-nnp.base
-> installed opam-depext.1.2.3
-> installed dune.3.23.1
-> installed yojson.3.0.0
-> installed contract.0.1.0
Done.
<><> opam-depext.1.2.3 installed successfully <><><><><><><><><><><><><><><><><>
=> opam-depext is unnecessary when used with opam >= 2.1. Please use opam install directly instead
# Run eval $(opam env) to update the current shell environment
2026-05-25 04:44.37 ---> saved as "f4e8498febcf905edc842f530866ec17918e825ce7b00b8a6d5fc065058642cd"
/home/opam: (run (network host)
(shell "(opam reinstall --with-test contract.0.1.0) || true"))
The following actions will be performed:
- install cmdliner 2.1.1 [required by alcotest]
- install ocamlbuild 0.16.1 [required by fmt, astring, uutf]
- install ocaml-syntax-shims 1.0.0 [required by alcotest]
- install ocamlfind 1.9.8 [required by fmt, astring, uutf]
- install re 1.14.0 [required by alcotest]
- install stdlib-shims 0.3.0 [required by alcotest]
- install topkg 1.1.1 [required by fmt, astring, uutf]
- install uutf 1.0.4 [required by alcotest]
- install fmt 0.11.0 [required by alcotest]
- install astring 0.8.5 [required by alcotest]
- install alcotest 1.9.1 [required by contract]
- recompile contract 0.1.0*
===== 11 to install | 1 to recompile =====
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved alcotest.1.9.1 (https://opam.ocaml.org/cache)
-> retrieved astring.0.8.5 (https://opam.ocaml.org/cache)
-> retrieved cmdliner.2.1.1 (https://opam.ocaml.org/cache)
-> retrieved contract.0.1.0 (https://github.com/funwithcthulhu/contract/archive/refs/tags/0.1.0.tar.gz)
-> retrieved fmt.0.11.0 (https://opam.ocaml.org/cache)
-> retrieved ocaml-syntax-shims.1.0.0 (https://opam.ocaml.org/cache)
-> retrieved ocamlbuild.0.16.1 (https://opam.ocaml.org/cache)
-> retrieved ocamlfind.1.9.8 (https://opam.ocaml.org/cache)
-> retrieved re.1.14.0 (https://opam.ocaml.org/cache)
-> retrieved stdlib-shims.0.3.0 (https://opam.ocaml.org/cache)
-> retrieved topkg.1.1.1 (https://opam.ocaml.org/cache)
-> retrieved uutf.1.0.4 (https://opam.ocaml.org/cache)
-> installed stdlib-shims.0.3.0
-> installed ocaml-syntax-shims.1.0.0
-> installed re.1.14.0
-> installed cmdliner.2.1.1
-> installed ocamlfind.1.9.8
-> removed contract.0.1.0
-> installed ocamlbuild.0.16.1
-> installed topkg.1.1.1
-> installed uutf.1.0.4
-> installed fmt.0.11.0
-> installed astring.0.8.5
-> installed alcotest.1.9.1
-> installed contract.0.1.0
Done.
# Run eval $(opam env) to update the current shell environment
2026-05-25 04:45.00 ---> saved as "e598a2281928d342fbb89c77bb6a7875c0c6da30de560df9c163f692f18730fa"
/home/opam: (run (shell "opam reinstall --with-test --verbose contract.0.1.0;\
\n res=$?;\
\n test \"$res\" != 31 && exit \"$res\";\
\n export OPAMCLI=2.0;\
\n build_dir=$(opam var prefix)/.opam-switch/build;\
\n failed=$(ls \"$build_dir\");\
\n partial_fails=\"\";\
\n for pkg in $failed; do\
\n if opam show -f x-ci-accept-failures: \"$pkg\" | grep -qF \"\\\"debian-13\\\"\"; then\
\n echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
\n fi;\
\n test \"$pkg\" != 'contract.0.1.0' && partial_fails=\"$partial_fails $pkg\";\
\n done;\
\n test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
\n exit 1"))
The following actions will be performed:
- recompile contract 0.1.0*
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing 1/4:
-> retrieved contract.0.1.0 (cached)
Processing 2/4: [contract: dune build]
+ /home/opam/.opam/opam-init/hooks/sandbox.sh "build" "dune" "build" "-p" "contract" "-j" "71" (CWD=/home/opam/.opam/5.4/.opam-switch/build/contract.0.1.0)
Processing 2/4: [contract: dune runtest]
+ /home/opam/.opam/opam-init/hooks/sandbox.sh "build" "dune" "runtest" "-p" "contract" (CWD=/home/opam/.opam/5.4/.opam-switch/build/contract.0.1.0)
- (cd _build/default/test && ./test_contract.exe)
- Testing `contract'.
- This run has ID `RS2ZGJMW'.
-
- [OK] path templates 0 parses /users/:id.
- [OK] path templates 1 matches /users/42.
- [OK] path templates 2 decodes %20 in path param.
- [OK] path templates 3 decodes %2F inside path param.
- [OK] path templates 4 decodes lowercase and upperca...
- [OK] path templates 5 literal slash still splits pa...
- [OK] path templates 6 literal segment is not percen...
- [OK] path templates 7 rejects percent at end.
- [OK] path templates 8 rejects non-hex percent escape.
- [OK] path templates 9 rejects invalid UTF-8 percent...
- [OK] path templates 10 rejects missing segment.
- [OK] path templates 11 rejects extra segment.
- [OK] path templates 12 converts to OpenAPI path.
- [OK] scalar codecs 0 int success.
- [OK] scalar codecs 1 int failure.
- [OK] scalar codecs 2 bool success.
- [OK] scalar codecs 3 bool failure.
- [OK] endpoints 0 constructs from valid template.
- [OK] endpoints 1 rejects invalid template.
- [OK] endpoints 2 method name.
- [OK] json codecs 0 string success.
- [OK] json codecs 1 string failure.
- [OK] json codecs 2 required field success.
- [OK] json codecs 3 required field missing.
- [OK] json codecs 4 optional field missing.
- [OK] json codecs 5 optional field null.
- [OK] request validation 0 valid GET.
- [OK] request validation 1 ignores undeclared query params.
- [OK] request validation 2 duplicate query uses first va...
- [OK] request validation 3 invalid method.
- [OK] request validation 4 invalid path.
- [OK] request validation 5 bad path param type.
- [OK] request validation 6 bad query param type.
- [OK] request validation 7 required query param missing.
- [OK] request validation 8 declared path param must matc...
- [OK] request validation 9 valid POST body.
- [OK] request validation 10 invalid JSON body field.
- [OK] request validation 11 extra JSON body fields are ig...
- [OK] request validation 12 missing POST body.
- [OK] openapi 0 contains OpenAPI version.
- [OK] openapi 1 contains /users/{id}.
- [OK] openapi 2 contains GET operation.
- [OK] openapi 3 contains POST operation.
- [OK] openapi 4 contains POST requestBody.
- [OK] openapi 5 contains response 200.
-
- Full test results in `~/.opam/5.4/.opam-switch/build/contract.0.1.0/_build/default/test/_build/_tests/contract'.
- Test Successful in 0.003s. 45 tests run.
-> compiled contract.0.1.0
-> removed contract.0.1.0
-> installed contract.0.1.0
Done.
# Run eval $(opam env) to update the current shell environment
2026-05-25 04:45.09 ---> saved as "9c9e226da5e0b3714d1956b45ec3f9f7a47a3883526a1a6186922e56215a049f"
Job succeeded
2026-05-25 04:45.21: Job succeeded