(for PR #27772)

2025-04-18 08:17.33: New job: build conf-guile.1, using opam 2.3
                              from https://github.com/ocaml/opam-repository.git#refs/pull/27772/head (497446a512165ef94ab1ef24c75489e17a33a7e8)
                              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/27772/head" && git reset --hard 497446a5
git fetch origin master
git merge --no-edit a84d26e26b3ca794e650c0fd99492d0c35bb2f63
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:alpine-3.21-ocaml-4.14@sha256:8953245878ad0db826dd4d0dbc02ed32b99e1475c53e9bbf259dc594a7eb2614
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 conf-guile.1 1
RUN opam reinstall conf-guile.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 "\"alpine-3.21\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'conf-guile.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-18 08:17.33: Using cache hint "ocaml/opam:alpine-3.21-ocaml-4.14@sha256:8953245878ad0db826dd4d0dbc02ed32b99e1475c53e9bbf259dc594a7eb2614-conf-guile.1-497446a512165ef94ab1ef24c75489e17a33a7e8"
2025-04-18 08:17.33: Using OBuilder spec:
((from ocaml/opam:alpine-3.21-ocaml-4.14@sha256:8953245878ad0db826dd4d0dbc02ed32b99e1475c53e9bbf259dc594a7eb2614)
 (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 conf-guile.1 1"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall conf-guile.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 \"\\\"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\" != 'conf-guile.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-18 08:17.33: Waiting for resource in pool OCluster
2025-04-18 08:17.33: Waiting for worker…
2025-04-18 08:17.36: Got resource from pool OCluster
Building on doris.caelum.ci.dev
All commits already cached
Updating files:  88% (20169/22917)
Updating files:  89% (20397/22917)
Updating files:  90% (20626/22917)
Updating files:  91% (20855/22917)
Updating files:  92% (21084/22917)
Updating files:  93% (21313/22917)
Updating files:  94% (21542/22917)
Updating files:  95% (21772/22917)
Updating files:  96% (22001/22917)
Updating files:  97% (22230/22917)
Updating files:  98% (22459/22917)
Updating files:  99% (22688/22917)
Updating files: 100% (22917/22917)
Updating files: 100% (22917/22917), done.
HEAD is now at a84d26e26b Merge pull request #27790 from mseri/smtml
Merge made by the 'ort' strategy.
 packages/conf-guile/conf-guile.1/opam | 1 +
 packages/guile/guile.1.0/opam         | 7 +++++++
 2 files changed, 8 insertions(+)

(from ocaml/opam:alpine-3.21-ocaml-4.14@sha256:8953245878ad0db826dd4d0dbc02ed32b99e1475c53e9bbf259dc594a7eb2614)
2025-04-18 08:18.32 ---> using "6612f1bbb56022cff4ffb679d47608c0d436ca44cb00336b8952d71d9eec77cd" 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-18 08:18.32 ---> using "a8cd48796c7b72924edf7785b8e6b945d5440548040a69f9533325d091103bde" 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
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
2025-04-18 08:18.32 ---> using "f86be971b3920365e199bb088206834adc48f56ebe53981f2103344e94ce9e27" 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                 255
# 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-18 08:18.32 ---> using "cf60c94f9b24f4fa3f7e6d87b5aee0eea39a35eae4ac550aea12ab6ce2c36bb9" 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-18 08:18.32 ---> using "3cfdfcd6cb6ddecbff8a2a4bf7a166d565e06832c2a4cccc02dbce3a398ba1c6" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-04-18 08:18.41 ---> saved as "37672ea57a7133e1fb99ce16822b271b98d7e41db20e7484475eed13d942f36f"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-04-18 08:19.05 ---> saved as "5d10951c9d0a6d6950de9deaf17f5ef47698bb5f87126923d4b9d5672dfc0cbe"

/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-336-g7bbc1e1ec7b [https://dl-cdn.alpinelinux.org/alpine/v3.21/main]
- v3.21.3-339-gc96af5b6598 [https://dl-cdn.alpinelinux.org/alpine/v3.21/community]
- v20250108-5963-g267b66a1d7c [https://dl-cdn.alpinelinux.org/alpine/edge/main]
- v20250108-5962-g862d752cd8c [https://dl-cdn.alpinelinux.org/alpine/edge/community]
- v20250108-5961-g615ef36c892 [https://dl-cdn.alpinelinux.org/alpine/edge/testing]
- OK: 57798 distinct packages available
2025-04-18 08:19.07 ---> saved as "7862fd33146d5b5749c725fe5a8d95c94b7d85c06edf2b3ce2e8ba79048cf282"

/home/opam: (run (shell "opam pin add -k version -yn conf-guile.1 1"))
conf-guile is now pinned to version 1
2025-04-18 08:19.08 ---> saved as "f0e3caea40c95435c3c184a12ad489cf1d1b562244aa48df27f96f0e4b419d37"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall conf-guile.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 \"\\\"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\" != 'conf-guile.1' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
conf-guile.1 is not installed. Install it? [y/n] y
The following actions will be performed:
=== install 2 packages
  - install conf-guile      1 (pinned)
  - install conf-pkg-config 4          [required by conf-guile]

The following system packages will first need to be installed:
    guile-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" "guile-dev"
- (1/8) Installing gc (8.2.8-r0)
- (2/8) Installing guile-libs (3.0.9-r1)
- (3/8) Installing guile (3.0.9-r1)
- (4/8) Installing libgc++ (8.2.8-r0)
- (5/8) Installing gc-dev (8.2.8-r0)
- (6/8) Installing libgmpxx (6.3.0-r2)
- (7/8) Installing gmp-dev (6.3.0-r2)
- (8/8) Installing guile-dev (3.0.9-r1)
- Executing busybox-1.37.0-r12.trigger
- OK: 364 MiB in 109 packages

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed conf-pkg-config.4
-> installed conf-guile.1
Done.
# To update the current shell environment, run: eval $(opam env)
2025-04-18 08:19.14 ---> saved as "16d15063f50f2bc3e003249b987f99d40541e937284bf8fed293bb7a78e021cd"
Job succeeded
2025-04-18 08:19.29: Job succeeded