(for PR #27502)

2025-06-02 07:56.19: New job: build archive-lwt.3.7.2+5, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/27502/head (e90d7362f65e9013b405e2247c943bdfccc0ac1e)
                              on fedora-42-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/27502/head" && git reset --hard e90d7362
git fetch origin master
git merge --no-edit 164308699cf74247b8ad3b002e88bd80a586c79e
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:fedora-42-ocaml-4.14@sha256:ad92f161cbbad9e3b98b876244adb3bed99b77a5ec57b1d69a2d6752bb6186ef
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-dev /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 archive-lwt.3.7.2+5 3.7.2+5
RUN opam reinstall archive-lwt.3.7.2+5; \
    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 "\"fedora-42\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'archive-lwt.3.7.2+5' && 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-06-02 07:56.19: Using cache hint "ocaml/opam:fedora-42-ocaml-4.14@sha256:ad92f161cbbad9e3b98b876244adb3bed99b77a5ec57b1d69a2d6752bb6186ef-archive-lwt.3.7.2+5-e90d7362f65e9013b405e2247c943bdfccc0ac1e"
2025-06-02 07:56.19: Using OBuilder spec:
((from ocaml/opam:fedora-42-ocaml-4.14@sha256:ad92f161cbbad9e3b98b876244adb3bed99b77a5ec57b1d69a2d6752bb6186ef)
 (user (uid 1000) (gid 1000))
 (workdir /home/opam)
 (run (shell "sudo ln -f /usr/bin/opam-dev /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 archive-lwt.3.7.2+5 3.7.2+5"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall archive-lwt.3.7.2+5;\
             \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 \"\\\"fedora-42\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'archive-lwt.3.7.2+5' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2025-06-02 07:56.19: Connecting to build cluster…
2025-06-02 07:56.19: Waiting for resource in pool OCluster
2025-06-02 08:02.29: Waiting for worker…
2025-06-02 08:04.03: Got resource from pool OCluster
Building on laodoke.caelum.ci.dev
All commits already cached
Updating files:  94% (21862/23177)
Updating files:  95% (22019/23177)
Updating files:  96% (22250/23177)
Updating files:  97% (22482/23177)
Updating files:  98% (22714/23177)
Updating files:  99% (22946/23177)
Updating files: 100% (23177/23177)
Updating files: 100% (23177/23177), done.
HEAD is now at 164308699c Merge pull request #27973 from mtelvers/opam-publish-dockerfile-cmd.8.2.8
Merge made by the 'ort' strategy.
 packages/archive-lwt/archive-lwt.3.7.2+5/opam | 52 ++++++++++++++++++++
 packages/archive/archive.3.7.2+5/opam         | 68 +++++++++++++++++++++++++++
 2 files changed, 120 insertions(+)
 create mode 100644 packages/archive-lwt/archive-lwt.3.7.2+5/opam
 create mode 100644 packages/archive/archive.3.7.2+5/opam

(from ocaml/opam:fedora-42-ocaml-4.14@sha256:ad92f161cbbad9e3b98b876244adb3bed99b77a5ec57b1d69a2d6752bb6186ef)
Unable to find image 'ocaml/opam:fedora-42-ocaml-4.14@sha256:ad92f161cbbad9e3b98b876244adb3bed99b77a5ec57b1d69a2d6752bb6186ef' locally
docker.io/ocaml/opam@sha256:ad92f161cbbad9e3b98b876244adb3bed99b77a5ec57b1d69a2d6752bb6186ef: Pulling from ocaml/opam
534064f45c4b: Pulling fs layer
534064f45c4b: Verifying Checksum
534064f45c4b: Download complete
534064f45c4b: Pull complete
Digest: sha256:ad92f161cbbad9e3b98b876244adb3bed99b77a5ec57b1d69a2d6752bb6186ef
Status: Downloaded newer image for ocaml/opam@sha256:ad92f161cbbad9e3b98b876244adb3bed99b77a5ec57b1d69a2d6752bb6186ef
2025-06-02 08:04.25 ---> using "bb439da85de9a945ea71dda36acced28d8fcac920b11f47761947b18b4dcbeda" from cache

/: (user (uid 1000) (gid 1000))

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2025-06-02 08:04.25 ---> using "ff19e3d83fb60a4560cc862b569621ed87ed543b978e810ce39e7d6a90d66ec4" 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.

Continue? [Y/n] y
This 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.

Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
2025-06-02 08:04.25 ---> using "8861b470a916cef0a4b88b72293e143d0049faaae938f400c1c344a9a97467ed" 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.4.0~alpha2
# self-upgrade         no
# system               arch=x86_64 os=linux os-distribution=fedora os-version=42
# 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-06-02 08:04.25 ---> using "fb7a4e8fcd72c04b9695e9f7f225e07cf4b9eae0ae82147bdac4591d5b3330b5" 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-06-02 08:04.25 ---> using "039e459f8b4b9c95a16978063cf8c2952222cb6c326a319b73dd5666a7fed958" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-06-02 08:04.27 ---> using "412386472d7b37ab463928407240c495c0c754a725239228dd3ddb6ba6dde201" from cache

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-06-02 08:04.54 ---> saved as "824d5134ac3d217b89b0b67204387fefdb0c5ea2771047a50ed630bfae0a760d"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/sbin/sudo "yum" "makecache"
- Updating and loading repositories:
-  Fedora 42 - x86_64 - Updates           100% |  23.7 KiB/s |  11.9 KiB |  00m01s
-  Fedora 42 - x86_64 - Updates           100% | 476.2 KiB/s |   3.1 MiB |  00m07s
- Repositories loaded.
- Metadata cache created.
2025-06-02 08:05.05 ---> saved as "418b4b9f99c02fd234acb1738b92acc9e9e96232b73234dcd01667fd2f9adfe1"

/home/opam: (run (shell "opam pin add -k version -yn archive-lwt.3.7.2+5 3.7.2+5"))
archive-lwt is now pinned to version 3.7.2+5
2025-06-02 08:05.07 ---> saved as "f3ebbf5d3940629218faebc3421a7909f1c11d0629e45fa41debb8e94cb3f88f"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall archive-lwt.3.7.2+5;\
                        \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 \"\\\"fedora-42\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'archive-lwt.3.7.2+5' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
archive-lwt.3.7.2+5 is not installed. Install it? [Y/n] y
The following actions will be performed:
=== install 12 packages
  - install archive           3.7.2+5          [required by archive-lwt]
  - install archive-lwt       3.7.2+5 (pinned)
  - install base-bytes        base             [required by ocplib-endian]
  - install conf-pkg-config   4                [required by archive]
  - install cppo              1.8.0            [required by lwt]
  - install csexp             1.5.2            [required by dune-configurator]
  - install dune              3.19.0           [required by archive-lwt]
  - install dune-configurator 3.19.0           [required by archive, lwt]
  - install fileutils         0.6.6            [required by archive]
  - install lwt               5.9.1            [required by archive-lwt]
  - install ocamlfind         1.9.8            [required by base-bytes]
  - install ocplib-endian     1.2              [required by lwt]

The following system packages will first need to be installed:
    libarchive-devel

<><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><>

opam believes some required external dependencies are missing. opam can:
> 1. Run yum to install them (may need root/sudo access)
  2. Display the recommended yum 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/sbin/sudo "yum" "install" "-y" "libarchive-devel"
- Updating and loading repositories:
- Repositories loaded.
- Package           Arch   Version        Repository      Size
- Installing:
-  libarchive-devel x86_64 3.7.7-4.fc42   fedora     179.3 KiB
- Installing dependencies:
-  openssl-devel    x86_64 1:3.2.4-3.fc42 fedora       4.3 MiB
- 
- Transaction Summary:
-  Installing:         2 packages
- 
- Total size of inbound packages is 3 MiB. Need to download 3 MiB.
- After this operation, 4 MiB extra will be used (install 4 MiB, remove 0 B).
- [1/2] libarchive-devel-0:3.7.7-4.fc42.x 100% | 362.3 KiB/s | 133.7 KiB |  00m00s
- [2/2] openssl-devel-1:3.2.4-3.fc42.x86_ 100% |   3.0 MiB/s |   2.8 MiB |  00m01s
- --------------------------------------------------------------------------------
- [2/2] Total                             100% |   2.7 MiB/s |   2.9 MiB |  00m01s
- Running transaction
- [1/4] Verify package files              100% |  51.0   B/s |   2.0   B |  00m00s
- [2/4] Prepare transaction               100% |  10.0   B/s |   2.0   B |  00m00s
- [3/4] Installing openssl-devel-1:3.2.4- 100% |  50.9 MiB/s |   5.2 MiB |  00m00s
- [4/4] Installing libarchive-devel-0:3.7 100% |   1.6 MiB/s | 185.9 KiB |  00m00s
- Complete!
+ /usr/sbin/rpm "-q" "--whatprovides" "libarchive-devel"
- libarchive-devel-3.7.7-4.fc42.x86_64

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved archive.3.7.2+5, archive-lwt.3.7.2+5  (https://github.com/gildor478/ocaml-archive/releases/download/v3.7.2%2B5/archive-3.7.2.5.tbz)
-> retrieved cppo.1.8.0  (cached)
-> retrieved csexp.1.5.2  (cached)
-> installed conf-pkg-config.4
-> retrieved dune.3.19.0, dune-configurator.3.19.0  (cached)
-> retrieved fileutils.0.6.6  (cached)
-> retrieved lwt.5.9.1  (cached)
-> retrieved ocamlfind.1.9.8  (cached)
-> retrieved ocplib-endian.1.2  (cached)
-> installed ocamlfind.1.9.8
-> installed base-bytes.base
-> installed dune.3.19.0
-> installed csexp.1.5.2
-> installed cppo.1.8.0
-> installed fileutils.0.6.6
-> installed ocplib-endian.1.2
-> installed dune-configurator.3.19.0
-> installed archive.3.7.2+5
-> installed lwt.5.9.1
-> installed archive-lwt.3.7.2+5
Done.
# To update the current shell environment, run: eval $(opam env)
2025-06-02 08:06.22 ---> saved as "4e014533e276431664dc86f229419c56884b980007c8f22fdc1411569a4dfb28"
Job succeeded
2025-06-02 08:06.33: Job succeeded