- github
- ocaml
- opam-repository
- 25b899
- distributions,alpine-3.21-ocaml-4.14,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 alpine-3.21-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/27750/head" && git reset --hard 25b8999a
git fetch origin master
git merge --no-edit 34a3fc46c301a891122df75c17fef6b5358bd68f
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:alpine-3.21-ocaml-4.14@sha256:700cef7086e5ab8f24a42fb371b7be0855051db65c822dc447f90adc9609dbb7
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 "\"alpine-3.21\""; 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:alpine-3.21-ocaml-4.14@sha256:700cef7086e5ab8f24a42fb371b7be0855051db65c822dc447f90adc9609dbb7-coccinelle.1.2.0-25b8999a95f160856787575b704e43752a1dc5bf"
2025-04-13 16:01.41: Using OBuilder spec:
((from ocaml/opam:alpine-3.21-ocaml-4.14@sha256:700cef7086e5ab8f24a42fb371b7be0855051db65c822dc447f90adc9609dbb7)
(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 \"\\\"alpine-3.21\\\"\"; 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 toxis.caelum.ci.dev
All commits already cached
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:alpine-3.21-ocaml-4.14@sha256:700cef7086e5ab8f24a42fb371b7be0855051db65c822dc447f90adc9609dbb7)
Unable to find image 'ocaml/opam:alpine-3.21-ocaml-4.14@sha256:700cef7086e5ab8f24a42fb371b7be0855051db65c822dc447f90adc9609dbb7' locally
docker.io/ocaml/opam@sha256:700cef7086e5ab8f24a42fb371b7be0855051db65c822dc447f90adc9609dbb7: Pulling from ocaml/opam
47b08425ee9b: Pulling fs layer
47b08425ee9b: Verifying Checksum
47b08425ee9b: Download complete
47b08425ee9b: Pull complete
Digest: sha256:700cef7086e5ab8f24a42fb371b7be0855051db65c822dc447f90adc9609dbb7
Status: Downloaded newer image for ocaml/opam@sha256:700cef7086e5ab8f24a42fb371b7be0855051db65c822dc447f90adc9609dbb7
2025-04-13 16:02.01 ---> using "bd1a6ff8682763d02f6ea8340f8477bfdb4114ca8e4b584f0035829bd3e9edc4" from cache
/: (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:02.01 ---> using "d706825e0da74469e43beb3eaae6e7bcc116697ae9aa80a65a1046b80822e32f" 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 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] Initialised
2025-04-13 16:02.01 ---> using "e523b983806ec139e927299c7913f7340c50522d7c217889d99678ce89aae609" 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.3.0 (35acd0c5abc5e66cdbd5be16ba77aa6c33a4c724)
# self-upgrade no
# system arch=x86_64 os=linux os-distribution=alpine os-version=3.21.3
# 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 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-13 16:02.01 ---> using "da24e5e904cc3c01ee379504ee14f0a72d6406aa11bbfeeae42db277d8d2d3aa" 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-04-13 16:02.01 ---> using "b99c164147d90655370e39c7b32c5bd22a9f3b5b71f753d79b9f7c86bb1a18b0" from cache
/home/opam: (copy (src .) (dst opam-repository/))
2025-04-13 16:02.12 ---> saved as "2c4b5e543bf0205de3eb09dea97db205fc40a2822dc42aa02cbb4f839e63408d"
/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-04-13 16:02.36 ---> saved as "c71a6f24cc9de30ea6df7d171905ff7c9835ab3e8f3882e92c88969fbae702e9"
/home/opam: (run (network host)
(shell "opam update --depexts || true"))
+ /usr/bin/sudo "apk" "update"
- fetch https://dl-cdn.alpinelinux.org/alpine/v3.21/main/x86_64/APKINDEX.tar.gz
- fetch https://dl-cdn.alpinelinux.org/alpine/v3.21/community/x86_64/APKINDEX.tar.gz
- fetch https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
- fetch https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
- fetch https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
- v3.21.3-311-g7bb846c6e94 [https://dl-cdn.alpinelinux.org/alpine/v3.21/main]
- v3.21.3-310-g56edb80e0d9 [https://dl-cdn.alpinelinux.org/alpine/v3.21/community]
- v20250108-5674-g9dddd15ec60 [https://dl-cdn.alpinelinux.org/alpine/edge/main]
- v20250108-5690-gf2b661f0e52 [https://dl-cdn.alpinelinux.org/alpine/edge/community]
- v20250108-5569-ga95aaf6abbc [https://dl-cdn.alpinelinux.org/alpine/edge/testing]
- OK: 57611 distinct packages available
2025-04-13 16:02.38 ---> saved as "76b84d53b82fb372fe3aaff287cd4bf6141761f5b960550b06e505ca52e64b60"
/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:02.38 ---> saved as "aed5ea119e7c0a136a62faaa0c1a83d1f44587b9313b406901605c798ec7d0e6"
/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 \"\\\"alpine-3.21\\\"\"; 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
The following actions will be performed:
=== install 21 packages
- install coccinelle 1.2.0 (pinned)
- install conf-aclocal 2 [required by coccinelle]
- install conf-autoconf 0.2 [required by coccinelle]
- install conf-automake 1 [required by conf-aclocal]
- install conf-libpcre 2 [required by pcre]
- install conf-pkg-config 4 [required by coccinelle]
- install conf-python-3 9.0.0 [required by coccinelle]
- install conf-python-3-dev 1 [required by coccinelle]
- install csexp 1.5.2 [required by dune-configurator]
- install dune 3.18.0 [required by pcre, menhir, parmap, pyml]
- install dune-configurator 3.18.0 [required by parmap, pcre]
- install menhir 20240715 [required by coccinelle]
- install menhirCST 20240715 [required by menhir]
- install menhirLib 20240715 [required by menhir]
- install menhirSdk 20240715 [required by menhir]
- install num 1.5-1 [required by coccinelle]
- install ocamlfind 1.9.8 [required by coccinelle]
- install parmap 1.2.5 [required by coccinelle]
- install pcre 8.0.3 [required by coccinelle]
- install pyml 20231101 [required by coccinelle]
- install stdcompat 20.1 [required by coccinelle]
The following system packages will first need to be installed:
autoconf automake pcre-dev python3 python3-dev
<><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><>
opam believes some required external dependencies are missing. opam can:
> 1. Run apk to install them (may need root/sudo access)
2. Display the recommended apk command and wait while you run it manually (e.g. in another terminal)
3. Continue anyway, and, upon success, permanently register that this external dependency is present, but not detectable
4. Abort the installation
[1/2/3/4] 1
+ /usr/bin/sudo "apk" "add" "autoconf" "automake" "pcre-dev" "python3" "python3-dev"
- (1/16) Installing m4 (1.4.19-r3)
- (2/16) Installing perl (5.40.1-r0)
- (3/16) Installing autoconf (2.72-r0)
- (4/16) Installing automake (1.17-r0)
- (5/16) Installing perl-error (0.17029-r2)
- (6/16) Installing perl-git (2.47.2-r0)
- (7/16) Installing git-perl (2.47.2-r0)
- (8/16) Upgrading python3 (3.12.9-r0 -> 3.12.10-r0)
- (9/16) Upgrading python3-pycache-pyc0 (3.12.9-r0 -> 3.12.10-r0)
- (10/16) Upgrading python3-pyc (3.12.9-r0 -> 3.12.10-r0)
- (11/16) Installing libpcre16 (8.45-r3)
- (12/16) Installing libpcre32 (8.45-r3)
- (13/16) Installing pcre (8.45-r3)
- (14/16) Installing libpcrecpp (8.45-r3)
- (15/16) Installing pcre-dev (8.45-r3)
- (16/16) Installing python3-dev (3.12.10-r0)
- Executing busybox-1.37.0-r12.trigger
- OK: 440 MiB in 114 packages
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved coccinelle.1.2.0 (https://github.com/coccinelle/coccinelle/archive/refs/tags/1.2.0.tar.gz)
-> retrieved conf-python-3.9.0.0 (cached)
-> retrieved conf-python-3-dev.1 (cached)
-> retrieved csexp.1.5.2 (cached)
-> installed conf-pkg-config.4
-> installed conf-autoconf.0.2
-> installed conf-python-3.9.0.0
-> installed conf-libpcre.2
-> installed conf-python-3-dev.1
-> installed conf-automake.1
-> installed conf-aclocal.2
-> retrieved dune.3.18.0, dune-configurator.3.18.0 (cached)
-> retrieved menhir.20240715, menhirCST.20240715, menhirLib.20240715, menhirSdk.20240715 (cached)
-> retrieved num.1.5-1 (cached)
-> retrieved ocamlfind.1.9.8 (cached)
-> retrieved parmap.1.2.5 (cached)
-> retrieved pcre.8.0.3 (cached)
-> retrieved pyml.20231101 (cached)
-> retrieved stdcompat.20.1 (cached)
-> installed num.1.5-1
-> installed ocamlfind.1.9.8
-> installed dune.3.18.0
-> installed csexp.1.5.2
-> installed menhirCST.20240715
-> installed menhirLib.20240715
-> installed menhirSdk.20240715
-> installed dune-configurator.3.18.0
-> installed parmap.1.2.5
-> installed pcre.8.0.3
-> installed stdcompat.20.1
-> installed pyml.20231101
-> installed menhir.20240715
-> installed coccinelle.1.2.0
Done.
# To update the current shell environment, run: eval $(opam env)
2025-04-13 16:05.03 ---> saved as "3e088e5f5af0decb42f0d7e10ed56ad7db765447aae92a574cf73f9829cf85f0"
Job succeeded
2025-04-13 16:05.07: Job succeeded