- github
- ocaml
- opam-repository
- fd56df
- extras,opam-2.0-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.0
from https://github.com/ocaml/opam-repository.git#refs/pull/27698/head (fd56df80ed95cbe760cf7d92ab5f337d6244e661)
on debian-12-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-12-ocaml-5.3@sha256:531e94709b66da9b515e50f6d39f1299514fde0dbf4429080784012dd08bb975
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-2.0 /usr/bin/opam
RUN opam init --reinit -ni
RUN 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 depext -u || true
RUN opam pin add -k version -yn metadata.0.3.1 0.3.1
RUN opam depext metadata.0.3.1 && 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-12\""; 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 depext --with-test metadata.0.3.1 && opam reinstall --with-test metadata.0.3.1) || true
RUN opam depext --with-test metadata.0.3.1 && 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-12\""; 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-12-ocaml-5.3@sha256:531e94709b66da9b515e50f6d39f1299514fde0dbf4429080784012dd08bb975-metadata.0.3.1-fd56df80ed95cbe760cf7d92ab5f337d6244e661"
2025-04-01 19:49.18: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-5.3@sha256:531e94709b66da9b515e50f6d39f1299514fde0dbf4429080784012dd08bb975)
(user (uid 1000) (gid 1000))
(workdir /home/opam)
(run (shell "sudo ln -f /usr/bin/opam-2.0 /usr/bin/opam"))
(run (network host)
(shell "opam init --reinit --config .opamrc-sandbox -ni"))
(run (shell "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 depext -u || 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 depext metadata.0.3.1 && 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-12\\\"\"; 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 depext --with-test metadata.0.3.1 && opam reinstall --with-test metadata.0.3.1) || true"))
(run (shell "opam depext --with-test metadata.0.3.1 && 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-12\\\"\"; 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:33.13: Waiting for worker…
2025-04-02 06:35.21: Got resource from pool OCluster
Building on x86-bm-c1.sw.ocaml.org
All commits already cached
Updating files: 89% (20366/22765)
Updating files: 90% (20489/22765)
Updating files: 91% (20717/22765)
Updating files: 92% (20944/22765)
Updating files: 93% (21172/22765)
Updating files: 94% (21400/22765)
Updating files: 95% (21627/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-12-ocaml-5.3@sha256:531e94709b66da9b515e50f6d39f1299514fde0dbf4429080784012dd08bb975)
2025-04-02 06:35.23 ---> using "b2674d75bd761ae0940cbbcd0e3587e1677ed25681fd5f43c3e5e50c82b8fc4f" from cache
/: (user (uid 1000) (gid 1000))
/: (workdir /home/opam)
/home/opam: (run (shell "sudo ln -f /usr/bin/opam-2.0 /usr/bin/opam"))
2025-04-02 06:35.23 ---> using "a0fda5f9a0cec2f1a54da6364c747a4f0ecc743725c8ad9e7e6672d9495e45b6" from cache
/home/opam: (run (network host)
(shell "opam init --reinit --config .opamrc-sandbox -ni"))
[NOTE] Will configure 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.
[WARNING] Recommended dependencies -- most packages rely on these:
- m4
<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from file:///home/opam/opam-repository
default (at file:///home/opam/opam-repository):
[INFO] opam 2.1 and 2.2 include many performance and security improvements over 2.0; please consider upgrading (https://opam.ocaml.org/doc/Install.html)
2025-04-02 06:36.05 ---> saved as "fc3298a14ef9a9aaf784f10108ca436b9428f66102175d62ce1e041ff2d831d7"
/home/opam: (run (shell "opam config report"))
# opam config report
# opam-version 2.0.10 (adc1e1829a2bef5b240746df80341b508290fe3b)
# self-upgrade no
# system arch=x86_64 os=linux os-distribution=debian os-version=12
# solver builtin-mccs+glpk
# install-criteria -removed,-count[version-lag,request],-count[version-lag,changed],-changed
# upgrade-criteria -removed,-count[version-lag,solution],-new
# jobs 39
# repositories 1 (local)
# pinned 1 (version)
# current-switch 5.3
2025-04-02 06:36.06 ---> saved as "eeb485ef7327f62920ce7cb98e6139b15fd05784400cf6c4b582d2bcf9928bab"
/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:36.12 ---> saved as "ac94e2e43762d8ecaf09c37f43edd79a7060251d9147dafc0d2cb70dcc750354"
/home/opam: (copy (src .) (dst opam-repository/))
2025-04-02 06:36.17 ---> saved as "e9cc5cb60dff0fc3a2c0dd330260b3fc237f36c8406c1599506370216d427995"
/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
default (at file:///home/opam/opam-repository):
[INFO] opam 2.1 and 2.2 include many performance and security improvements over 2.0; please consider upgrading (https://opam.ocaml.org/doc/Install.html)
2025-04-02 06:36.36 ---> saved as "b893f6b156f913d69a0893e24aaefcf95511490739a02a278809bcaa6f31f8f3"
/home/opam: (run (network host)
(shell "opam depext -u || true"))
# Detecting depexts using vars: arch=x86_64, os=linux, os-distribution=debian, os-family=debian
# No extra OS packages requirements found.
# All required OS packages found.
The following command needs to be run through "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]
Fetched 103 kB in 0s (493 kB/s)
Reading package lists...
# OS package update successful
2025-04-02 06:36.37 ---> saved as "ceb0ef48567fced5dbd8c377ecfd9ebeb141b9b9f4ee922df9494675356fe237"
/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:36.39 ---> saved as "6d534d9c7c5c7955fe435288889c1dfe88828149af605f2d044b422d8394afbc"
/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam depext metadata.0.3.1 && 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-12\\\"\"; 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"))
# Detecting depexts using vars: arch=x86_64, os=linux, os-distribution=debian, os-family=debian
# No extra OS packages requirements found.
# All required OS packages found.
metadata.0.3.1 is not installed. Install it? [Y/n] y
The following actions will be performed:
- install dune 3.17.2 [required by metadata]
- install metadata 0.3.1*
===== 2 to install =====
<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[dune.3.17.2] found in cache
[metadata.0.3.1] downloaded from https://github.com/savonet/ocaml-metadata/archive/refs/tags/v0.3.1.tar.gz
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed dune.3.17.2
-> installed metadata.0.3.1
Done.
# Run eval $(opam env) to update the current shell environment
2025-04-02 06:37.22 ---> saved as "b8a21f33b5ffc9bfa02d59dbbedb5fc2700dabf8608b1df07bb932ccd1d8a8d2"
/home/opam: (run (network host)
(shell "(opam depext --with-test metadata.0.3.1 && opam reinstall --with-test metadata.0.3.1) || true"))
# Detecting depexts using vars: arch=x86_64, os=linux, os-distribution=debian, os-family=debian
# No extra OS packages requirements found.
# All required OS packages found.
The following actions will be performed:
- recompile metadata 0.3.1*
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> removed metadata.0.3.1
-> installed metadata.0.3.1
Done.
# Run eval $(opam env) to update the current shell environment
2025-04-02 06:37.35 ---> saved as "1a54cf5cc95ca01baefd4941c581195f769c7720f7ef4522e4fd73b2835df3a2"
/home/opam: (run (shell "opam depext --with-test metadata.0.3.1 && 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-12\\\"\"; 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"))
# Detecting depexts using vars: arch=x86_64, os=linux, os-distribution=debian, os-family=debian
# No extra OS packages requirements found.
# All required OS packages found.
The following actions will be performed:
- recompile metadata 0.3.1*
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing 1/3: [metadata: dune build]
+ /home/opam/.opam/opam-init/hooks/sandbox.sh "build" "dune" "build" "-p" "metadata" "-j" "39" "@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.
# Run eval $(opam env) to update the current shell environment
2025-04-02 06:37.51 ---> saved as "6f7616927ee8c7952f11c6c7f20d1d86327bd8e991b428b747970e80354597b5"
Job succeeded
2025-04-02 06:37.57: Job succeeded