(for PR #25379)

2024-04-24 12:15.01: New job: build vlt.0.1.2, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/25379/head (2cfe47973fc11d3a31efa7de47bc64adcf96560d)
                              on fedora-40-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/25379/head" && git reset --hard 2cfe4797
git fetch origin master
git merge --no-edit 543cd221e481d9942aeb9832179a38bdd41639d4
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:fedora-40-ocaml-4.14@sha256:dc7c852280406c6d78f5e38481dc278a038d72e8923025849196b63d16cde238
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-dev /usr/bin/opam
RUN opam init --reinit -ni
RUN uname -rs && opam exec -- ocaml -version && opam --version
ENV OPAMDOWNLOADJOBS="1"
ENV OPAMERRLOGLEN="0"
ENV OPAMSOLVERTIMEOUT="500"
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
ENV OPAMCRITERIA="-removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed"
ENV OPAMFIXUPCRITERIA="-removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed"
ENV OPAMUPGRADECRITERIA="-removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed"
RUN opam pin add -k version -yn vlt.0.1.2 0.1.2
RUN opam reinstall vlt.0.1.2; \
    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-40\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'vlt.0.1.2' && 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 .

2024-04-24 12:15.01: Using cache hint "ocaml/opam:fedora-40-ocaml-4.14@sha256:dc7c852280406c6d78f5e38481dc278a038d72e8923025849196b63d16cde238-vlt.0.1.2-2cfe47973fc11d3a31efa7de47bc64adcf96560d"
2024-04-24 12:15.01: Using OBuilder spec:
((from ocaml/opam:fedora-40-ocaml-4.14@sha256:dc7c852280406c6d78f5e38481dc278a038d72e8923025849196b63d16cde238)
 (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 "uname -rs && opam exec -- ocaml -version && opam --version"))
 (env OPAMDOWNLOADJOBS 1)
 (env OPAMERRLOGLEN 0)
 (env OPAMSOLVERTIMEOUT 500)
 (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"))
 (env OPAMCRITERIA -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed)
 (env OPAMFIXUPCRITERIA -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed)
 (env OPAMUPGRADECRITERIA -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed)
 (run (shell "opam pin add -k version -yn vlt.0.1.2 0.1.2"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall vlt.0.1.2;\
             \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-40\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'vlt.0.1.2' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2024-04-24 12:15.01: Connecting to build cluster…
2024-04-24 12:15.01: Waiting for resource in pool OCluster
2024-04-24 12:15.02: Waiting for worker…
2024-04-24 12:15.06: Got resource from pool OCluster
Building on asteria.caelum.ci.dev
All commits already cached
Updating files:  95% (31994/33543)
Updating files:  96% (32202/33543)
Updating files:  97% (32537/33543)
Updating files:  98% (32873/33543)
Updating files:  99% (33208/33543)
Updating files: 100% (33543/33543)
Updating files: 100% (33543/33543), done.
HEAD is now at 543cd221e4 Merge pull request #25715 from hannesm/ocaml-solo5-synopsis
Merge made by the 'ort' strategy.
 packages/vlt/vlt.0.1.2/opam | 42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)
 create mode 100644 packages/vlt/vlt.0.1.2/opam

(from ocaml/opam:fedora-40-ocaml-4.14@sha256:dc7c852280406c6d78f5e38481dc278a038d72e8923025849196b63d16cde238)
Unable to find image 'ocaml/opam:fedora-40-ocaml-4.14@sha256:dc7c852280406c6d78f5e38481dc278a038d72e8923025849196b63d16cde238' locally
docker.io/ocaml/opam@sha256:dc7c852280406c6d78f5e38481dc278a038d72e8923025849196b63d16cde238: Pulling from ocaml/opam
Digest: sha256:dc7c852280406c6d78f5e38481dc278a038d72e8923025849196b63d16cde238
Status: Downloaded newer image for ocaml/opam@sha256:dc7c852280406c6d78f5e38481dc278a038d72e8923025849196b63d16cde238
2024-04-24 12:18.10 ---> using "3e14f4115c83e0879ff3062ed477dd5c3b3644407d5316c78560d0cc18f3038a" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2024-04-24 12:18.10 ---> using "c0ac121200abe8c309d0bc1d3da0942e49e751849bc8ceb2ae021e1ac1f9bfaa" 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~alpha, 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 39 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=39 --global
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from file:///home/opam/opam-repository
2024-04-24 12:18.10 ---> using "4380cb4f7f87df8bcc89436284f228b7ac57c5cafc224e823bc5c1486bf41443" from cache

/home/opam: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 5.15.0-101-generic
The OCaml toplevel, version 4.14.2
2.2.0~beta3~dev
2024-04-24 12:18.10 ---> using "69bc85c698b7a2a37d79abba109ca86c5ef5f5bea70623275fbc08ec1026b4e0" from cache

/home/opam: (env OPAMDOWNLOADJOBS 1)

/home/opam: (env OPAMERRLOGLEN 0)

/home/opam: (env OPAMSOLVERTIMEOUT 500)

/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/"))
2024-04-24 12:18.10 ---> using "962f3ee90e176d59cad5a3ae077ebd99a83d60ab1c96874b23b4f540d7f3a5d4" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2024-04-24 12:19.00 ---> saved as "3074e007ca005e0b5e83ca86377b560185086c580babf1625510564d255e3ae7"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2024-04-24 12:20.47 ---> saved as "1c23878d29eca09953031865e670238b9455d52717d3b1426c0051726f390208"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "yum" "makecache"
- Fedora 40 - x86_64                               92 kB/s |  21 kB     00:00    
- Fedora 40 openh264 (From Cisco) - x86_64        2.5 kB/s | 989  B     00:00    
- Fedora 40 - x86_64 - Updates                     41 kB/s |  15 kB     00:00    
- Fedora 40 - x86_64 - Updates                    1.7 MB/s | 899 kB     00:00    
- Metadata cache created.
2024-04-24 12:20.51 ---> saved as "fad1333cc6cbb4bba2b05e54a528ba28700da9579677da299359910836032782"

/home/opam: (env OPAMCRITERIA -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed)

/home/opam: (env OPAMFIXUPCRITERIA -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed)

/home/opam: (env OPAMUPGRADECRITERIA -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed)

/home/opam: (run (shell "opam pin add -k version -yn vlt.0.1.2 0.1.2"))
vlt is now pinned to version 0.1.2
2024-04-24 12:20.51 ---> saved as "9700ce45f43474a44f8ade43004659b845d1a54755fab37c4f5d918afcb03fa0"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall vlt.0.1.2;\
                        \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-40\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'vlt.0.1.2' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
vlt.0.1.2 is not installed. Install it? [y/n] y
The following actions will be performed:
=== install 7 packages
  - install dune                3.15.0         [required by vlt]
  - install ocaml-compiler-libs v0.12.4        [required by ppxlib]
  - install ppx_derivers        1.2.1          [required by ppxlib]
  - install ppxlib              0.32.0         [required by vlt]
  - install sexplib0            v0.16.0        [required by ppxlib]
  - install stdlib-shims        0.3.0          [required by ppxlib]
  - install vlt                 0.1.2 (pinned)

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved dune.3.15.0  (cached)
-> retrieved ocaml-compiler-libs.v0.12.4  (cached)
-> retrieved ppx_derivers.1.2.1  (cached)
-> retrieved ppxlib.0.32.0  (cached)
-> retrieved sexplib0.v0.16.0  (cached)
-> retrieved stdlib-shims.0.3.0  (cached)
-> retrieved vlt.0.1.2  (cached)
-> installed dune.3.15.0
-> installed ppx_derivers.1.2.1
-> installed stdlib-shims.0.3.0
-> installed sexplib0.v0.16.0
-> installed ocaml-compiler-libs.v0.12.4
-> installed ppxlib.0.32.0
-> installed vlt.0.1.2
Done.
# Run eval $(opam env) to update the current shell environment
2024-04-24 12:21.43 ---> saved as "ad87c755a44547932270c9e0a0e08ca4374b6366da1d1d2b5956758ed861b3cb"
Job succeeded
2024-04-24 12:23.31: Job succeeded