- github
- ocaml
- opam-repository
- adc5db
- distributions,debian-unstable-ocaml-5.4,ocaml-protoc.4.0,tests
(not at the head of any monitored branch or PR)
2025-11-19 19:31.56: New job: test ocaml-protoc.4.0, using opam dev
from https://github.com/ocaml/opam-repository.git#refs/pull/28902/head (adc5db1552e3f9d4ca0762400bfebd1c1ac398e9)
on debian-unstable-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/28902/head" && git reset --hard adc5db15
git fetch origin master
git merge --no-edit fec8c490c3a00e719b359dce180fbfff342471f7
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-unstable-ocaml-5.4@sha256:d41c26f6f54dcca3f4396b708b145b0daadb0ca8a202aaad950c78b76ac1e8ca
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-dev /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 ocaml-protoc.4.0 4.0
RUN opam reinstall ocaml-protoc.4.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-unstable\""; then \
echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
fi; \
test "$pkg" != 'ocaml-protoc.4.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 ocaml-protoc.4.0) || true
RUN opam reinstall --with-test --verbose ocaml-protoc.4.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-unstable\""; then \
echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
fi; \
test "$pkg" != 'ocaml-protoc.4.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 .
2025-11-19 19:31.56: Using cache hint "ocaml/opam:debian-unstable-ocaml-5.4@sha256:d41c26f6f54dcca3f4396b708b145b0daadb0ca8a202aaad950c78b76ac1e8ca-ocaml-protoc.4.0-adc5db1552e3f9d4ca0762400bfebd1c1ac398e9"
2025-11-19 19:31.56: Using OBuilder spec:
((from ocaml/opam:debian-unstable-ocaml-5.4@sha256:d41c26f6f54dcca3f4396b708b145b0daadb0ca8a202aaad950c78b76ac1e8ca)
(user (uid 1000) (gid 1000))
(workdir /home/opam)
(run (shell "sudo ln -f /usr/bin/opam-dev /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 ocaml-protoc.4.0 4.0"))
(run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam reinstall ocaml-protoc.4.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-unstable\\\"\"; then\
\n echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
\n fi;\
\n test \"$pkg\" != 'ocaml-protoc.4.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 ocaml-protoc.4.0) || true"))
(run (shell "opam reinstall --with-test --verbose ocaml-protoc.4.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-unstable\\\"\"; then\
\n echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
\n fi;\
\n test \"$pkg\" != 'ocaml-protoc.4.0' && partial_fails=\"$partial_fails $pkg\";\
\n done;\
\n test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
\n exit 1"))
)
2025-11-19 19:31.56: Waiting for resource in pool OCluster
2025-11-19 19:31.59: Waiting for worker…
2025-11-19 19:32.08: Got resource from pool OCluster
Building on toxis.caelum.ci.dev
All commits already cached
HEAD is now at fec8c490c3 Merge pull request #28851 from jhjourdan/unison_release
Updating fec8c490c3..adc5db1552
Fast-forward
packages/ocaml-protoc/ocaml-protoc.4.0/opam | 42 +++++++++++++++++++++++++++
packages/pbrt/pbrt.4.0/opam | 40 +++++++++++++++++++++++++
packages/pbrt_services/pbrt_services.4.0/opam | 38 ++++++++++++++++++++++++
packages/pbrt_yojson/pbrt_yojson.4.0/opam | 41 ++++++++++++++++++++++++++
4 files changed, 161 insertions(+)
create mode 100644 packages/ocaml-protoc/ocaml-protoc.4.0/opam
create mode 100644 packages/pbrt/pbrt.4.0/opam
create mode 100644 packages/pbrt_services/pbrt_services.4.0/opam
create mode 100644 packages/pbrt_yojson/pbrt_yojson.4.0/opam
(from ocaml/opam:debian-unstable-ocaml-5.4@sha256:d41c26f6f54dcca3f4396b708b145b0daadb0ca8a202aaad950c78b76ac1e8ca)
2025-11-19 19:33.18 ---> using "399b73928f5b10f2bbada27382636eefb8afa3f58f1911bcc75abe45fa8a08a1" from cache
/: (user (uid 1000) (gid 1000))
/: (workdir /home/opam)
/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2025-11-19 19:33.18 ---> using "2bbe300becb6fb7addd203d68400db27ec96d9b9ead2ca71755f6b307d11684c" 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.
This 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
Format upgrade done.
<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
2025-11-19 19:33.18 ---> using "514a32f44339ac919b287bb606c025e9079315ef68d26adcc09fa46e9ce8afe9" from cache
/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.5.0~beta1
# self-upgrade no
# system arch=x86_64 os=linux os-distribution=debian os-version=unknown
# solver builtin-0install
# install-criteria -changed,-count[avoid-version,solution]
# upgrade-criteria -count[avoid-version,solution]
# jobs 71
# repositories 1 (version-controlled)
# pinned 1 (version)
# current-switch 5.4
# invariant ["ocaml-base-compiler" {>= "5.4.0"}]
# compiler-packages ocaml-base-compiler.5.4.0, ocaml-compiler.5.4.0, ocaml-options-vanilla.1
# 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.0
2025-11-19 19:33.18 ---> using "d572349824a40786f294e67b7ff79181e57dfb6a76610de7d04c3b99fb171a9c" from cache
/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/"))
2025-11-19 19:33.18 ---> using "4b54cad4f21bf473136f67f731f89b4612c0ce803bb037bdfa8352f3dbe3e840" from cache
/home/opam: (copy (src .) (dst opam-repository/))
2025-11-19 19:33.41 ---> saved as "99101db77a1d2fcb09af1b92aabc90f48455958a501aa9f2e26da87712ba77d3"
/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-11-19 19:34.07 ---> saved as "f510427a5b7ca12857d2428e3f41be32d309f67f8af3097b2926d42ba9eef26e"
/home/opam: (run (network host)
(shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Get:1 http://deb.debian.org/debian unstable InRelease [176 kB]
- Get:2 http://deb.debian.org/debian unstable/main amd64 Packages.diff/Index [63.6 kB]
- Get:3 http://deb.debian.org/debian unstable/main amd64 Packages T-2025-11-19-1410.07-F-2025-11-15-0804.21.pdiff [344 kB]
- Get:3 http://deb.debian.org/debian unstable/main amd64 Packages T-2025-11-19-1410.07-F-2025-11-15-0804.21.pdiff [344 kB]
- Fetched 583 kB in 3s (221 kB/s)
- Reading package lists...
-
2025-11-19 19:34.24 ---> saved as "34ef55ade99102c6c4468d1da032e9f8ba8fde51af29fd32e0e09c82e4fcc4d0"
/home/opam: (run (shell "opam pin add -k version -yn ocaml-protoc.4.0 4.0"))
ocaml-protoc is now pinned to version 4.0
2025-11-19 19:34.39 ---> saved as "b52f434478aa6913b88b2b0b1fe18a628fb004c29a63fbce407f57eecb69ace7"
/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam reinstall ocaml-protoc.4.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-unstable\\\"\"; then\
\n echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
\n fi;\
\n test \"$pkg\" != 'ocaml-protoc.4.0' && partial_fails=\"$partial_fails $pkg\";\
\n done;\
\n test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
\n exit 1"))
ocaml-protoc.4.0 is not installed. Install it? [Y/n] y
The following actions will be performed:
=== install 4 packages
- install dune 3.20.2 [required by ocaml-protoc]
- install ocaml-protoc 4.0 (pinned)
- install pbrt 4.0 [required by ocaml-protoc]
- install stdlib-shims 0.3.0 [required by pbrt]
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved dune.3.20.2 (cached)
-> retrieved ocaml-protoc.4.0, pbrt.4.0 (cached)
-> retrieved stdlib-shims.0.3.0 (cached)
-> installed dune.3.20.2
-> installed stdlib-shims.0.3.0
-> installed pbrt.4.0
-> installed ocaml-protoc.4.0
Done.
# To update the current shell environment, run: eval $(opam env)
2025-11-19 19:35.36 ---> saved as "f6e6e2456e16e5cf1e3c6100504085de61e88f12415b60a6c0e96b972a97f3fc"
/home/opam: (run (network host)
(shell "(opam reinstall --with-test ocaml-protoc.4.0) || true"))
The following actions will be performed:
=== recompile 1 package
- recompile ocaml-protoc 4.0 (pinned)
=== install 11 packages
- install base64 3.5.2 [required by pbrt_yojson]
- install cppo 1.8.0 [required by ppx_deriving]
- install ocaml-compiler-libs v0.17.0 [required by ppxlib]
- install ocamlfind 1.9.8 [required by ppx_deriving]
- install pbrt_services 4.0 [required by ocaml-protoc]
- install pbrt_yojson 4.0 [required by ocaml-protoc]
- install ppx_derivers 1.2.1 [required by ppx_deriving]
- install ppx_deriving 6.1.1 [required by ocaml-protoc]
- install ppxlib 0.37.0 [required by ppx_deriving]
- install sexplib0 v0.17.0 [required by ppxlib]
- install yojson 3.0.0 [required by pbrt_yojson]
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved base64.3.5.2 (https://opam.ocaml.org/cache)
-> retrieved cppo.1.8.0 (https://opam.ocaml.org/cache)
-> retrieved ocaml-compiler-libs.v0.17.0 (https://opam.ocaml.org/cache)
-> installed base64.3.5.2
-> retrieved ocaml-protoc.4.0, pbrt_services.4.0, pbrt_yojson.4.0 (https://github.com/mransan/ocaml-protoc/releases/download/v4.0/ocaml-protoc-4.0.tbz)
-> retrieved ocamlfind.1.9.8 (https://opam.ocaml.org/cache)
-> retrieved ppx_derivers.1.2.1 (https://opam.ocaml.org/cache)
-> retrieved ppx_deriving.6.1.1 (https://opam.ocaml.org/cache)
-> installed ppx_derivers.1.2.1
-> retrieved ppxlib.0.37.0 (https://opam.ocaml.org/cache)
-> retrieved sexplib0.v0.17.0 (https://opam.ocaml.org/cache)
-> installed ocaml-compiler-libs.v0.17.0
-> retrieved yojson.3.0.0 (https://opam.ocaml.org/cache)
-> installed cppo.1.8.0
-> installed sexplib0.v0.17.0
-> installed yojson.3.0.0
-> installed pbrt_yojson.4.0
-> installed pbrt_services.4.0
-> removed ocaml-protoc.4.0
-> installed ocamlfind.1.9.8
-> installed ppxlib.0.37.0
-> installed ppx_deriving.6.1.1
-> installed ocaml-protoc.4.0
Done.
# To update the current shell environment, run: eval $(opam env)
2025-11-19 19:36.30 ---> saved as "938f3d0c19b1adb08e354268bcc2b125ff43791a7fcfc5fc33c3efdd78b8aeaf"
/home/opam: (run (shell "opam reinstall --with-test --verbose ocaml-protoc.4.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-unstable\\\"\"; then\
\n echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
\n fi;\
\n test \"$pkg\" != 'ocaml-protoc.4.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 1 package
- recompile ocaml-protoc 4.0 (pinned)
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing 2/4: [ocaml-protoc: dune subst]
+ /home/opam/.opam/opam-init/hooks/sandbox.sh "build" "dune" "subst" (CWD=/home/opam/.opam/5.4/.opam-switch/build/ocaml-protoc.4.0)
Processing 2/4: [ocaml-protoc: dune build]
+ /home/opam/.opam/opam-init/hooks/sandbox.sh "build" "dune" "build" "-p" "ocaml-protoc" "-j" "71" "@install" "@runtest" (CWD=/home/opam/.opam/5.4/.opam-switch/build/ocaml-protoc.4.0)
- (cd _build/default/src/tests/unit-tests && ./graph_test.exe)
- Graph Test ... Ok
- (cd _build/default/src/tests/unit-tests && ./parse_import.exe)
- Parse Import ... Ok
- (cd _build/default/src/tests/unit-tests && ./parse_field_options.exe)
- Parse Field Options ... Ok
- (cd _build/default/src/tests/unit-tests && ./verify_syntax_invariants.exe)
- Verify syntax invariants ... Ok
- (cd _build/default/src/tests/unit-tests && ./parse_file_options.exe)
- Parse File Options ... Ok
- (cd _build/default/src/tests/unit-tests && ./parse_enum.exe)
- Parse Enum ... Ok
- (cd _build/default/src/tests/unit-tests && ./pbtt_compile_p1.exe)
- Pbtt Compile P1 ... Ok
- (cd _build/default/src/tests/unit-tests && ./pbtt_compile_p2.exe)
- Pbtt Compile P2 ... Ok
- (cd _build/default/src/tests/unit-tests && ./parse_message.exe)
- Parse Message ... Ok
- Parse Message ... Ok
- (cd _build/default/src/tests/yojson && ./yojson_unittest_ml.exe)
- {"basic":[{"name":"basic0"}],"repeatedEnum":["VALUE0","Value1","Value_Two"],"singleOneOfRecursive":{"recursiveValue":{"smallMessage":{"smString":"This \"IS\" a small string"}}},"singleOneOfSmallMessage":{"smallMessage":{"smString":"This \"IS\" a small string"}},"singleOneOfEnum":{"enumValue":"VALUE0"},"singleOneOfInt":{"intValue":-273962069},"singleOneOfString":{"stringValue":"This is the single one \"string\""},"testEnum2":"Value_Two","testEnum1":"Value1","testEnum0":"VALUE0","allBasicTypes":{"repeated14":["This is a test \"string\""],"repeated13":[true],"repeated10":["-1464888499971052629"],"repeated09":[-268435457],"repeated08":["-1464888499971052629"],"repeated07":[-268435457],"repeated06":["8911405041490570155"],"repeated05":[2147483647],"repeated04":["-1464888499971052629"],"repeated03":[-268435457],"repeated02":[1.2],"repeated01":["1.2000001"],"field14":"This is a test \"string\"","field13":true,"field10":"-1464888499971052629","field09":-268435457,"field08":"-1464888499971052629","field07":-268435457,"field06":"8911405041490570155","field05":2147483647,"field04":"-1464888499971052629","field03":-268435457,"field02":1.2,"field01":"1.2000001"}}
-
- Consistency tests... Ok
-
- Conformance tests ... Ok
- (cd _build/default/src/tests/google_unittest && ./google_unittest.exe)
- Google unittest .... OK
-> compiled ocaml-protoc.4.0
-> removed ocaml-protoc.4.0
-> installed ocaml-protoc.4.0
Done.
# To update the current shell environment, run: eval $(opam env)
2025-11-19 19:37.03 ---> saved as "0c72455e7c783b346c7304b4f8deceb9a1c1f8a8e6183f818f5bf4d153094217"
Job succeeded
2025-11-19 19:37.32: Job succeeded