- github
- ocaml
- opam-repository
- fd56df
- distributions,ubuntu-22.04-ocaml-4.14,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 ubuntu-22.04-ocaml-4.14/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:ubuntu-22.04-ocaml-4.14@sha256:1f9ee9bd3302b5f546c3bcbd7ae9fd4b132c1da366153d870007612a1495e27d
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 "\"ubuntu-22.04\""; 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 "\"ubuntu-22.04\""; 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:ubuntu-22.04-ocaml-4.14@sha256:1f9ee9bd3302b5f546c3bcbd7ae9fd4b132c1da366153d870007612a1495e27d-metadata.0.3.1-fd56df80ed95cbe760cf7d92ab5f337d6244e661"
2025-04-01 19:49.18: Using OBuilder spec:
((from ocaml/opam:ubuntu-22.04-ocaml-4.14@sha256:1f9ee9bd3302b5f546c3bcbd7ae9fd4b132c1da366153d870007612a1495e27d)
(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 \"\\\"ubuntu-22.04\\\"\"; 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 \"\\\"ubuntu-22.04\\\"\"; 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.47: Waiting for worker…
2025-04-02 06:35.10: Got resource from pool OCluster
Building on toxis.caelum.ci.dev
All commits already cached
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:ubuntu-22.04-ocaml-4.14@sha256:1f9ee9bd3302b5f546c3bcbd7ae9fd4b132c1da366153d870007612a1495e27d)
Unable to find image 'ocaml/opam:ubuntu-22.04-ocaml-4.14@sha256:1f9ee9bd3302b5f546c3bcbd7ae9fd4b132c1da366153d870007612a1495e27d' locally
docker.io/ocaml/opam@sha256:1f9ee9bd3302b5f546c3bcbd7ae9fd4b132c1da366153d870007612a1495e27d: Pulling from ocaml/opam
903fb76eb1a2: Pulling fs layer
903fb76eb1a2: Verifying Checksum
903fb76eb1a2: Download complete
903fb76eb1a2: Pull complete
Digest: sha256:1f9ee9bd3302b5f546c3bcbd7ae9fd4b132c1da366153d870007612a1495e27d
Status: Downloaded newer image for ocaml/opam@sha256:1f9ee9bd3302b5f546c3bcbd7ae9fd4b132c1da366153d870007612a1495e27d
2025-04-02 06:37.18 ---> saved as "07d315db604f93cee078bdb35d98b11fa16c1203785655d84dc8d25ac8225ff0"
/: (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:37.18 ---> saved as "adb129a08e460a1ae2b81f2c39f93ca9e09044f208d93c444312b8619521dc5f"
/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
[NOTE] The 'jobs' option was reset, its value was 255 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=255 --global
Format upgrade done.
<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from file:///home/opam/opam-repository
2025-04-02 06:38.26 ---> saved as "e260be0b345f8ab4a4adf964b5e3af3bcd763761263073b1c26b4fbc97d0c969"
/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=ubuntu os-version=22.04
# solver builtin-0install
# install-criteria -changed,-count[avoid-version,solution]
# upgrade-criteria -count[avoid-version,solution]
# jobs 71
# repositories 1 (local)
# pinned 1 (version)
# current-switch 4.14
# invariant ["ocaml-base-compiler" {= "4.14.2"}]
# compiler-packages ocaml-base-compiler.4.14.2, ocaml-options-vanilla.1
# ocaml:native true
# ocaml:native-tools true
# ocaml:native-dynlink true
# ocaml:stubsdir /home/opam/.opam/4.14/lib/ocaml/stublibs:/home/opam/.opam/4.14/lib/ocaml
# ocaml:preinstalled false
# ocaml:compiler 4.14.2
2025-04-02 06:38.26 ---> saved as "5fe4e08b8b763f89a03b73d1e75607cd7f02ab174d243c3937a71e5ebbb46bc7"
/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:38.35 ---> saved as "57725bc6e3aca55422484059ef85c2ade66aa560ab1f1183a7918fdf22e45446"
/home/opam: (copy (src .) (dst opam-repository/))
2025-04-02 06:38.42 ---> saved as "b4813b92042c6acdc47e2ecdbd63a889c5cb200d200e095421b2d227c073479b"
/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-04-02 06:39.27 ---> saved as "1ea2205925648844340d09c8aa83e53832068fd28db8e702427f49797268e3a9"
/home/opam: (run (network host)
(shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Get:1 http://security.ubuntu.com/ubuntu jammy-security InRelease [129 kB]
- Hit:2 http://archive.ubuntu.com/ubuntu jammy InRelease
- Get:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [128 kB]
- Get:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [127 kB]
- Get:5 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [3972 kB]
- Get:6 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1540 kB]
- Get:7 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [1241 kB]
- Get:8 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [2773 kB]
- Get:9 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [4126 kB]
- Get:10 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [3081 kB]
- Fetched 17.1 MB in 1s (12.6 MB/s)
- Reading package lists...
-
2025-04-02 06:39.30 ---> saved as "442c3a0f487d14010b769f272af45affa072b724413071079cf1570d2acb76ae"
/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:39.30 ---> saved as "809ab04ce5916bd97931b2aaa1606568d70abaeae2d5467953e2dff4b3577c16"
/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 \"\\\"ubuntu-22.04\\\"\"; 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 (cached)
-> 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:40.01 ---> saved as "706c9ffad49a06219a0d42adc3d32a435805690a51a3b1c210dc8d8d834803d9"
/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:40.08 ---> saved as "e72afa0fc3948af9aeb153d6ab6dc8a0ec202d0b956cf3a060d5c09f9a366858"
/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 \"\\\"ubuntu-22.04\\\"\"; 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" "71" "@install" "@runtest" (CWD=/home/opam/.opam/4.14/.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:40.15 ---> saved as "1f61cb41282f43e79da846e507ce4c9a7da5552660f8060f0cdb54156ccbb3a0"
Job succeeded
2025-04-02 06:40.29: Job succeeded