- github
- ocaml
- opam-repository
- fd56df
- distributions,debian-unstable-ocaml-5.3,metadata.0.3.1,tests
(not at the head of any monitored branch or PR)
2025-04-01 19:49.18: New job: test metadata.0.3.1, using opam 2.3
from https://github.com/ocaml/opam-repository.git#refs/pull/27698/head (fd56df80ed95cbe760cf7d92ab5f337d6244e661)
on debian-unstable-ocaml-5.3/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/27698/head" && git reset --hard fd56df80
git fetch origin master
git merge --no-edit 4d8fa0fb8fce3b6c8b06f29ebcfa844c292d4f3e
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-unstable-ocaml-5.3@sha256:ef32c2bde58cf58292fc12bfebb203c4210a921b6859ab4dea6fb5634a36b253
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-2.3 /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 metadata.0.3.1 0.3.1
RUN opam reinstall metadata.0.3.1; \
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" != 'metadata.0.3.1' && 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 metadata.0.3.1) || true
RUN opam reinstall --with-test --verbose metadata.0.3.1; \
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" != 'metadata.0.3.1' && 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-04-01 19:49.18: Using cache hint "ocaml/opam:debian-unstable-ocaml-5.3@sha256:ef32c2bde58cf58292fc12bfebb203c4210a921b6859ab4dea6fb5634a36b253-metadata.0.3.1-fd56df80ed95cbe760cf7d92ab5f337d6244e661"
2025-04-01 19:49.18: Using OBuilder spec:
((from ocaml/opam:debian-unstable-ocaml-5.3@sha256:ef32c2bde58cf58292fc12bfebb203c4210a921b6859ab4dea6fb5634a36b253)
(user (uid 1000) (gid 1000))
(workdir /home/opam)
(run (shell "sudo ln -f /usr/bin/opam-2.3 /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 metadata.0.3.1 0.3.1"))
(run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam reinstall metadata.0.3.1;\
\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\" != 'metadata.0.3.1' && 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 metadata.0.3.1) || true"))
(run (shell "opam reinstall --with-test --verbose metadata.0.3.1;\
\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\" != 'metadata.0.3.1' && partial_fails=\"$partial_fails $pkg\";\
\n done;\
\n test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
\n exit 1"))
)
2025-04-01 19:49.18: Waiting for resource in pool OCluster
2025-04-02 06:32.38: Waiting for worker…
2025-04-02 06:35.30: Got resource from pool OCluster
Building on x86-bm-c5.sw.ocaml.org
All commits already cached
Updating files: 95% (21802/22765)
Updating files: 96% (21855/22765)
Updating files: 97% (22083/22765)
Updating files: 98% (22310/22765)
Updating files: 99% (22538/22765)
Updating files: 100% (22765/22765)
Updating files: 100% (22765/22765), done.
HEAD is now at 4d8fa0fb8f Merge pull request #27693 from hhugo/lwt-ppx
Updating 4d8fa0fb8f..fd56df80ed
Fast-forward
packages/metadata/metadata.0.3.1/opam | 37 +++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
create mode 100644 packages/metadata/metadata.0.3.1/opam
(from ocaml/opam:debian-unstable-ocaml-5.3@sha256:ef32c2bde58cf58292fc12bfebb203c4210a921b6859ab4dea6fb5634a36b253)
Unable to find image 'ocaml/opam:debian-unstable-ocaml-5.3@sha256:ef32c2bde58cf58292fc12bfebb203c4210a921b6859ab4dea6fb5634a36b253' locally
docker.io/ocaml/opam@sha256:ef32c2bde58cf58292fc12bfebb203c4210a921b6859ab4dea6fb5634a36b253: Pulling from ocaml/opam
d0d20c26f57d: Pulling fs layer
d0d20c26f57d: Verifying Checksum
d0d20c26f57d: Download complete
d0d20c26f57d: Pull complete
Digest: sha256:ef32c2bde58cf58292fc12bfebb203c4210a921b6859ab4dea6fb5634a36b253
Status: Downloaded newer image for ocaml/opam@sha256:ef32c2bde58cf58292fc12bfebb203c4210a921b6859ab4dea6fb5634a36b253
2025-04-02 06:36.30 ---> saved as "72cd99dc11c439115619b963d7c5f96a42e25c629269572fe6a0320743d7553b"
/: (user (uid 1000) (gid 1000))
/: (workdir /home/opam)
/home/opam: (run (shell "sudo ln -f /usr/bin/opam-2.3 /usr/bin/opam"))
2025-04-02 06:36.30 ---> saved as "f4634a0e0be10022fd8bef17cff53ec831b4b592034759ed7a1d9e98d62269bc"
/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 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
Format upgrade done.
<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from file:///home/opam/opam-repository
2025-04-02 06:37.31 ---> saved as "25c35af3feb68b8c6b8ec59e4609b338be90a51c879de198c0a99df69507e893"
/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.3.0 (35acd0c5abc5e66cdbd5be16ba77aa6c33a4c724)
# 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 31
# repositories 1 (local)
# pinned 1 (version)
# current-switch 5.3
# invariant ["ocaml-base-compiler" {>= "5.3.0"}]
# compiler-packages ocaml-base-compiler.5.3.0, ocaml-compiler.5.3.0, ocaml-options-vanilla.1
# ocaml:native true
# ocaml:native-tools true
# ocaml:native-dynlink true
# ocaml:stubsdir /home/opam/.opam/5.3/lib/ocaml/stublibs:/home/opam/.opam/5.3/lib/ocaml
# ocaml:preinstalled false
# ocaml:compiler 5.3.0
2025-04-02 06:37.32 ---> saved as "1b927512809abb9b2b925aa8a4dd850ce3f078bd99817568b50c25a4dc6faa7b"
/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-04-02 06:37.39 ---> saved as "7c8f0513a1fe13eb45b0f33c1538644a47f8b73b31231c05a02fcf46e9bc9902"
/home/opam: (copy (src .) (dst opam-repository/))
2025-04-02 06:37.49 ---> saved as "84f1f7cf6b292529b24d2debe9c9ea3fdfb2cc12d0564b95e865e444abf22ab6"
/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-04-02 06:38.30 ---> saved as "210e1633b7c967bde81a019d708fccb8bcb92052385b5ac4afae51810c8b0684"
/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 [205 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-04-02-0221.10-F-2025-03-30-0808.55.pdiff [216 kB]
- Get:3 http://deb.debian.org/debian unstable/main amd64 Packages T-2025-04-02-0221.10-F-2025-03-30-0808.55.pdiff [216 kB]
- Fetched 485 kB in 2s (198 kB/s)
- Reading package lists...
-
2025-04-02 06:38.33 ---> saved as "5c454646d07b03a65b92899d838f1c16f736bdfee07d10e2c67ff0b308b67fe2"
/home/opam: (run (shell "opam pin add -k version -yn metadata.0.3.1 0.3.1"))
metadata is now pinned to version 0.3.1
2025-04-02 06:38.34 ---> saved as "7328d5b3cb0160100febbbd7078c61c3ce1bafbb217483b944bab056a09e6cf2"
/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam reinstall metadata.0.3.1;\
\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\" != 'metadata.0.3.1' && partial_fails=\"$partial_fails $pkg\";\
\n done;\
\n test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
\n exit 1"))
metadata.0.3.1 is not installed. Install it? [y/n] y
The following actions will be performed:
=== install 2 packages
- install dune 3.17.2 [required by metadata]
- install metadata 0.3.1 (pinned)
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved dune.3.17.2 (cached)
-> retrieved metadata.0.3.1 (https://github.com/savonet/ocaml-metadata/archive/refs/tags/v0.3.1.tar.gz)
-> installed dune.3.17.2
-> installed metadata.0.3.1
Done.
# To update the current shell environment, run: eval $(opam env)
2025-04-02 06:39.07 ---> saved as "5d8d0d187873636953a0a6bb14666323a77e901876c82c8711fc6ee2ce6d167d"
/home/opam: (run (network host)
(shell "(opam reinstall --with-test metadata.0.3.1) || true"))
The following actions will be performed:
=== recompile 1 package
- recompile metadata 0.3.1 (pinned)
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> removed metadata.0.3.1
-> installed metadata.0.3.1
Done.
# To update the current shell environment, run: eval $(opam env)
2025-04-02 06:39.13 ---> saved as "24cf30c548cab9369a9d51a7c2b1753f9f6a3054f614b020a73bf52b1ac0729a"
/home/opam: (run (shell "opam reinstall --with-test --verbose metadata.0.3.1;\
\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\" != 'metadata.0.3.1' && 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 metadata 0.3.1 (pinned)
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing 2/4: [metadata: dune build]
+ /home/opam/.opam/opam-init/hooks/sandbox.sh "build" "dune" "build" "-p" "metadata" "-j" "31" "@install" "@runtest" (CWD=/home/opam/.opam/5.3/.opam-switch/build/metadata.0.3.1)
-> compiled metadata.0.3.1
-> removed metadata.0.3.1
-> installed metadata.0.3.1
Done.
# To update the current shell environment, run: eval $(opam env)
2025-04-02 06:39.20 ---> saved as "d6d2e42242e1afd9108980c888996713043d77e0a0c570a90bfdf8b830b7e360"
Job succeeded
2025-04-02 06:39.28: Job succeeded