(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-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/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-5.3@sha256:9712446faad000d6728ff7ac0061680a5ba06e2c575346f3866e376d1e4e8cd9
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-5.3@sha256:9712446faad000d6728ff7ac0061680a5ba06e2c575346f3866e376d1e4e8cd9-conf-guile.1-497446a512165ef94ab1ef24c75489e17a33a7e8"
2025-04-18 08:17.33: Using OBuilder spec:
((from ocaml/opam:alpine-3.21-ocaml-5.3@sha256:9712446faad000d6728ff7ac0061680a5ba06e2c575346f3866e376d1e4e8cd9)
 (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.34: Got resource from pool OCluster
Building on x86-bm-c6.sw.ocaml.org
All commits already cached
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-5.3@sha256:9712446faad000d6728ff7ac0061680a5ba06e2c575346f3866e376d1e4e8cd9)
Unable to find image 'ocaml/opam:alpine-3.21-ocaml-5.3@sha256:9712446faad000d6728ff7ac0061680a5ba06e2c575346f3866e376d1e4e8cd9' locally
docker.io/ocaml/opam@sha256:9712446faad000d6728ff7ac0061680a5ba06e2c575346f3866e376d1e4e8cd9: Pulling from ocaml/opam
d963a7719668: Pulling fs layer
d963a7719668: Verifying Checksum
d963a7719668: Download complete
d963a7719668: Pull complete
Digest: sha256:9712446faad000d6728ff7ac0061680a5ba06e2c575346f3866e376d1e4e8cd9
Status: Downloaded newer image for ocaml/opam@sha256:9712446faad000d6728ff7ac0061680a5ba06e2c575346f3866e376d1e4e8cd9
2025-04-18 08:19.44 ---> saved as "6d1cfe79e2ed44c9e232a48b769e24b654ef4f3d50f0f626cb7a0cc14094a674"

/: (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:19.44 ---> saved as "5ab2ac4f739c86e6ba738277863f0397e65c7b6fa1bffaca040aef2acb5bc109"

/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-18 08:20.19 ---> saved as "f032e710ad092c70b012a89294eb72c842298520a929792bedf2d1c896c2a861"

/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                 31
# 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-18 08:20.19 ---> saved as "0ab77c576140ce2314a6bae32be6737396bc8d8a82146ae3b1057c57cd8f0c14"

/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:20.28 ---> saved as "5107c199a56f2e424500c2366fbfff64858b4d2afb64a1aab77bc8c287434b5f"

/home/opam: (copy (src .) (dst opam-repository/))
2025-04-18 08:20.35 ---> saved as "6e8d8ff8cb24a298e286d49cc7d5b44b052772fdcbb63be8959f320f25c967d1"

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

/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:21.00 ---> saved as "a9d0da85f950c05db9e467e3728c7dca9deaec8f4234c1b773f843dad8875a98"

/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:21.01 ---> saved as "5fbf7eed21a13a4be4f79c311a7b71f08a8933fb513042cf1375e673319d6cea"

/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 110 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:21.07 ---> saved as "3603bab777e29cfa804d301e4fd72ac66635c0c7ab509102aef2f2e7706f8f1b"
Job succeeded
2025-04-18 08:21.13: Job succeeded