(for PR #26991)

2025-04-03 13:30.28: New job: build conf-gcc-multilib.1.0, using opam 2.3
                              from https://github.com/ocaml/opam-repository.git#refs/pull/26991/head (3500c88614e8805aed82ce8c2bd2cee803e97b69)
                              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/26991/head" && git reset --hard 3500c886
git fetch origin master
git merge --no-edit ecbfc6754f6e95544eb1eab71c162099f77308bf
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:alpine-3.21-ocaml-5.3@sha256:321c22703e7033ab58d449949b366081ecbcf20d72c5ff6ef30fa82cf1ce2e9e
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-gcc-multilib.1.0 1.0
RUN opam reinstall conf-gcc-multilib.1.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" != 'conf-gcc-multilib.1.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-03 13:30.28: Using cache hint "ocaml/opam:alpine-3.21-ocaml-5.3@sha256:321c22703e7033ab58d449949b366081ecbcf20d72c5ff6ef30fa82cf1ce2e9e-conf-gcc-multilib.1.0-3500c88614e8805aed82ce8c2bd2cee803e97b69"
2025-04-03 13:30.28: Using OBuilder spec:
((from ocaml/opam:alpine-3.21-ocaml-5.3@sha256:321c22703e7033ab58d449949b366081ecbcf20d72c5ff6ef30fa82cf1ce2e9e)
 (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-gcc-multilib.1.0 1.0"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall conf-gcc-multilib.1.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\" != 'conf-gcc-multilib.1.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-03 13:30.28: Connecting to build cluster…
2025-04-03 13:30.28: Waiting for resource in pool OCluster
2025-04-03 16:18.51: Waiting for worker…
2025-04-03 16:21.29: Got resource from pool OCluster
Building on x86-bm-c8.sw.ocaml.org
All commits already cached
HEAD is now at ecbfc6754f Merge pull request #27708 from ocaml/dependabot/github_actions/dot-github/workflows/tj-actions/changed-files-46
Merge made by the 'ort' strategy.
 .../conf-gcc-multilib/conf-gcc-multilib.1.0/opam   | 23 ++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 packages/conf-gcc-multilib/conf-gcc-multilib.1.0/opam

(from ocaml/opam:alpine-3.21-ocaml-5.3@sha256:321c22703e7033ab58d449949b366081ecbcf20d72c5ff6ef30fa82cf1ce2e9e)
Unable to find image 'ocaml/opam:alpine-3.21-ocaml-5.3@sha256:321c22703e7033ab58d449949b366081ecbcf20d72c5ff6ef30fa82cf1ce2e9e' locally
docker.io/ocaml/opam@sha256:321c22703e7033ab58d449949b366081ecbcf20d72c5ff6ef30fa82cf1ce2e9e: Pulling from ocaml/opam
4c06aeb2da76: Pulling fs layer
4c06aeb2da76: Download complete
4c06aeb2da76: Pull complete
Digest: sha256:321c22703e7033ab58d449949b366081ecbcf20d72c5ff6ef30fa82cf1ce2e9e
Status: Downloaded newer image for ocaml/opam@sha256:321c22703e7033ab58d449949b366081ecbcf20d72c5ff6ef30fa82cf1ce2e9e
2025-04-03 16:23.25 ---> saved as "273e776dadb51ca7b9f5a2d2efd50fb961910b7d2f9950b64a94e27cb9d92399"

/: (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-03 16:23.25 ---> saved as "ac723447dab8d29cc904f9f68db84faa899c6f672026b8c49ae6fd2088ab8168"

/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] synchronised from file:///home/opam/opam-repository
2025-04-03 16:24.52 ---> saved as "7afa8333126a886d785af5d826fe92c95d7225335ec473b5ce2850c13ead6056"

/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 (local)
# 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-03 16:24.53 ---> saved as "c668fabf574ae866bc665bc6a3dafa033e67fb29cbad8537834032bdb39a7015"

/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-03 16:25.00 ---> saved as "6a6f1ea5d81580d4683526c7fc0b87c340abe84921bdeb4439fa39d4e6430b70"

/home/opam: (copy (src .) (dst opam-repository/))
2025-04-03 16:25.10 ---> saved as "b7700da75374f8ba45be3ea23a1e457f79120bd5374b325b1af7512ffefeed38"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-04-03 16:25.54 ---> saved as "2a0a02dd6804d8e3a496927325f3ac264be6919ad43df72e5b86b3557f190359"

/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-264-gb0ede8eacde [https://dl-cdn.alpinelinux.org/alpine/v3.21/main]
- v3.21.3-267-gb1b14b7bf27 [https://dl-cdn.alpinelinux.org/alpine/v3.21/community]
- v20250108-5008-g7b35ad49079 [https://dl-cdn.alpinelinux.org/alpine/edge/main]
- v20250108-5024-g06bf30d6c71 [https://dl-cdn.alpinelinux.org/alpine/edge/community]
- v20250108-5020-g17f9df84bed [https://dl-cdn.alpinelinux.org/alpine/edge/testing]
- OK: 57494 distinct packages available
2025-04-03 16:25.56 ---> saved as "241722e95ec833e7fac4870b77c28963e973774cc204571df6a5956c8035bee3"

/home/opam: (run (shell "opam pin add -k version -yn conf-gcc-multilib.1.0 1.0"))
conf-gcc-multilib is now pinned to version 1.0
2025-04-03 16:25.56 ---> saved as "3392e2e4d568c471c8b69f33ff55290f1070535c5a39323092ec7cb29545d3f9"

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

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed conf-gcc-multilib.1.0
Done.
# To update the current shell environment, run: eval $(opam env)
2025-04-03 16:26.03 ---> saved as "0f8956bc9bd07154da11c50e893038a3c43132b02df6c4758dcdd634c8c1e029"
Job succeeded
2025-04-03 16:26.09: Job succeeded