- github
- ocaml
- opam-repository
- 25b899
- distributions,ubuntu-24.10-ocaml-5.3,coccinelle.1.2.0
(not at the head of any monitored branch or PR)
2025-04-13 16:01.41: New job: build coccinelle.1.2.0, using opam 2.3
from https://github.com/ocaml/opam-repository.git#refs/pull/27750/head (25b8999a95f160856787575b704e43752a1dc5bf)
on ubuntu-24.10-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/27750/head" && git reset --hard 25b8999a
git fetch origin master
git merge --no-edit 34a3fc46c301a891122df75c17fef6b5358bd68f
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:ubuntu-24.10-ocaml-5.3@sha256:22f39e3e5f29f784e37f5f4a7ac52d8c9943321f8eb6cff9d38c0a9f96f49ec1
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 coccinelle.1.2.0 1.2.0
RUN opam reinstall coccinelle.1.2.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 "\"ubuntu-24.10\""; then \
echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
fi; \
test "$pkg" != 'coccinelle.1.2.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-04-13 16:01.41: Using cache hint "ocaml/opam:ubuntu-24.10-ocaml-5.3@sha256:22f39e3e5f29f784e37f5f4a7ac52d8c9943321f8eb6cff9d38c0a9f96f49ec1-coccinelle.1.2.0-25b8999a95f160856787575b704e43752a1dc5bf"
2025-04-13 16:01.41: Using OBuilder spec:
((from ocaml/opam:ubuntu-24.10-ocaml-5.3@sha256:22f39e3e5f29f784e37f5f4a7ac52d8c9943321f8eb6cff9d38c0a9f96f49ec1)
(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 coccinelle.1.2.0 1.2.0"))
(run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam reinstall coccinelle.1.2.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 \"\\\"ubuntu-24.10\\\"\"; then\
\n echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
\n fi;\
\n test \"$pkg\" != 'coccinelle.1.2.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-04-13 16:01.41: Waiting for resource in pool OCluster
2025-04-13 16:01.43: Waiting for worker…
2025-04-13 16:01.43: Got resource from pool OCluster
Building on x86-bm-c2.sw.ocaml.org
All commits already cached
Updating files: 90% (20742/22853)
Updating files: 91% (20797/22853)
Updating files: 92% (21025/22853)
Updating files: 93% (21254/22853)
Updating files: 94% (21482/22853)
Updating files: 95% (21711/22853)
Updating files: 96% (21939/22853)
Updating files: 97% (22168/22853)
Updating files: 98% (22396/22853)
Updating files: 99% (22625/22853)
Updating files: 100% (22853/22853)
Updating files: 100% (22853/22853), done.
HEAD is now at 34a3fc46c3 Merge pull request #27736 from Leonidas-from-XIV/core-unix-glibc
Updating 34a3fc46c3..25b8999a95
Fast-forward
packages/coccinelle/{coccinelle.1.2 => coccinelle.1.2.0}/opam | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
rename packages/coccinelle/{coccinelle.1.2 => coccinelle.1.2.0}/opam (84%)
(from ocaml/opam:ubuntu-24.10-ocaml-5.3@sha256:22f39e3e5f29f784e37f5f4a7ac52d8c9943321f8eb6cff9d38c0a9f96f49ec1)
Unable to find image 'ocaml/opam:ubuntu-24.10-ocaml-5.3@sha256:22f39e3e5f29f784e37f5f4a7ac52d8c9943321f8eb6cff9d38c0a9f96f49ec1' locally
docker.io/ocaml/opam@sha256:22f39e3e5f29f784e37f5f4a7ac52d8c9943321f8eb6cff9d38c0a9f96f49ec1: Pulling from ocaml/opam
c5fa2b11a541: Pulling fs layer
c5fa2b11a541: Verifying Checksum
c5fa2b11a541: Download complete
c5fa2b11a541: Pull complete
Digest: sha256:22f39e3e5f29f784e37f5f4a7ac52d8c9943321f8eb6cff9d38c0a9f96f49ec1
Status: Downloaded newer image for ocaml/opam@sha256:22f39e3e5f29f784e37f5f4a7ac52d8c9943321f8eb6cff9d38c0a9f96f49ec1
2025-04-13 16:03.44 ---> saved as "dd273e3de70e583659f8e8c91b627b23420c9f4152fd7ac57266fd58f1351b81"
/: (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-13 16:03.45 ---> saved as "657521b45eb3db659fbc8294328867f8c96916db393714c526a79faf3f687b1f"
/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 31 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=31 --global
Format upgrade done.
<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
2025-04-13 16:04.17 ---> saved as "7df6839ff5845cb1145191df9b00c24a33260e72b3c637cda37161b8135ba7e9"
/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=24.10
# solver builtin-0install
# install-criteria -changed,-count[avoid-version,solution]
# upgrade-criteria -count[avoid-version,solution]
# jobs 39
# repositories 1 (version-controlled)
# 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-13 16:04.18 ---> saved as "475d7b0128d1540b9cc36d619e218191bd3b712b94a0934dc58246ef37ce2951"
/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-13 16:04.25 ---> saved as "277ebf731276bd24804c871e5ee389e1201e099b6f45860e91c2190ce7d6cf40"
/home/opam: (copy (src .) (dst opam-repository/))
2025-04-13 16:04.34 ---> saved as "fbb1cb2eb976e4fbfbcd97c2fd04de9e25ccc02a2dbfc110816381003bf0d5b7"
/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-04-13 16:05.00 ---> saved as "a4335a9dd6b3420ef8220f41b8b453be938f2fe675c6fefa9f1027d879d1b66a"
/home/opam: (run (network host)
(shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Get:1 http://security.ubuntu.com/ubuntu oracular-security InRelease [126 kB]
- Hit:2 http://archive.ubuntu.com/ubuntu oracular InRelease
- Get:3 http://archive.ubuntu.com/ubuntu oracular-updates InRelease [126 kB]
- Get:4 http://archive.ubuntu.com/ubuntu oracular-backports InRelease [126 kB]
- Get:5 http://security.ubuntu.com/ubuntu oracular-security/universe amd64 Packages [213 kB]
- Get:6 http://security.ubuntu.com/ubuntu oracular-security/main amd64 Packages [332 kB]
- Get:7 http://archive.ubuntu.com/ubuntu oracular-updates/main amd64 Packages [462 kB]
- Get:8 http://archive.ubuntu.com/ubuntu oracular-updates/universe amd64 Packages [289 kB]
- Fetched 1675 kB in 0s (5884 kB/s)
- Reading package lists...
-
2025-04-13 16:05.02 ---> saved as "6537a94b700626ccc19fc5fe8bea6582dc768e6031d800f37bbd7bd2ae20f12f"
/home/opam: (run (shell "opam pin add -k version -yn coccinelle.1.2.0 1.2.0"))
coccinelle is now pinned to version 1.2.0
2025-04-13 16:05.03 ---> saved as "9e5cb6c8f5abd3af8312d77d99859340ec9dc5e1107f53c578b5568d01887154"
/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam reinstall coccinelle.1.2.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 \"\\\"ubuntu-24.10\\\"\"; then\
\n echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
\n fi;\
\n test \"$pkg\" != 'coccinelle.1.2.0' && partial_fails=\"$partial_fails $pkg\";\
\n done;\
\n test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
\n exit 1"))
coccinelle.1.2.0 is not installed. Install it? [y/n] y
* Incompatible packages:
- (invariant) -> ocaml-base-compiler >= 5.3.0
- coccinelle = 1.2.0 -> ocaml < 5.0 -> dkml-base-compiler
You can temporarily relax the switch invariant with `--update-invariant'
* Incompatible packages:
- (invariant) -> ocaml-base-compiler >= 5.3.0
- coccinelle = 1.2.0 -> ocaml < 5.0 -> ocaml-variants (< 4.04.4~ | >= 4.05.0)
* Missing dependency:
- coccinelle = 1.2.0 -> ocaml < 5.0 -> ocaml-base-compiler (<= 3.07+1 | = 3.07+2 | = 3.08.0 | = 3.08.1 | = 3.08.2 | = 3.08.3 | = 3.08.4 | = 3.09.0) | ocaml-system (<= 3.07+1 | = 3.07+2 | >= 3.08.0) | ocaml-variants < 3.09.1~
not available because the package is pinned to version 5.3.0
unmet availability conditions, e.g. 'sys-ocaml-version = "5.3.0" & (os != "win32" | sys-ocaml-libc = "msvc")'
no matching version
* Missing dependency:
- coccinelle = 1.2.0 -> ocaml < 5.0 -> ocaml-variants < 4.00.2~ -> xenbigarray
unknown package
* Missing dependency:
- coccinelle = 1.2.0 -> ocaml < 5.0 -> ocaml-variants >= 4.05.0 -> ocaml-beta
unmet availability conditions: 'enable-ocaml-beta-repository'
* Missing dependency:
- coccinelle = 1.2.0 -> ocaml < 5.0 -> ocaml-variants >= 4.05.0 -> system-msvc
unmet availability conditions: 'os = "win32"'
No solution found, exiting
"/usr/bin/env" "bash" "-c" "opam reinstall coccinelle.1.2.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 "\"ubuntu-24.10\""; then
echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.";
fi;
test "$pkg" != 'coccinelle.1.2.0' && partial_fails="$partial_fails $pkg";
done;
test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}";
exit 1" failed with exit status 20
2025-04-13 16:05.38: Job failed: Failed: Build failed
2025-04-13 16:05.38: Log analysis:
2025-04-13 16:05.38: >>>
No solution found, exiting
(score = 100)
2025-04-13 16:05.38: [SKIP] Package not available