(for PR #28563)

2025-09-22 08:20.54: New job: build incremental_cycles.0.1, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/28563/head (b92d3898d89e5d8bdd68b7a1756128d4d4b5bde6)
                              on fedora-42-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/28563/head" && git reset --hard b92d3898
git fetch origin master
git merge --no-edit bf453cf4c33583be527ae85253aaf0d48f6c85d7
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:fedora-42-ocaml-5.3@sha256:1692973f106bce89bdc8a714ce1cc5a8ade9999a1ca0e0e27ec14024efbe1e05
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 incremental_cycles.0.1 0.1
RUN opam reinstall incremental_cycles.0.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 "\"fedora-42\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'incremental_cycles.0.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-09-22 08:20.54: Using cache hint "ocaml/opam:fedora-42-ocaml-5.3@sha256:1692973f106bce89bdc8a714ce1cc5a8ade9999a1ca0e0e27ec14024efbe1e05-incremental_cycles.0.1-b92d3898d89e5d8bdd68b7a1756128d4d4b5bde6"
2025-09-22 08:20.54: Using OBuilder spec:
((from ocaml/opam:fedora-42-ocaml-5.3@sha256:1692973f106bce89bdc8a714ce1cc5a8ade9999a1ca0e0e27ec14024efbe1e05)
 (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 incremental_cycles.0.1 0.1"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall incremental_cycles.0.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 \"\\\"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\" != 'incremental_cycles.0.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-09-22 08:20.54: Waiting for resource in pool OCluster
2025-09-22 08:20.55: Waiting for worker…
2025-09-22 08:21.32: Got resource from pool OCluster
Building on asteria.caelum.ci.dev
All commits already cached
HEAD is now at bf453cf4c3 Merge pull request #28548 from Frama-C/frama-c.31.0
Updating bf453cf4c3..b92d3898d8
Fast-forward
 .../incremental_cycles/incremental_cycles.0.1/opam | 38 ++++++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 packages/incremental_cycles/incremental_cycles.0.1/opam

(from ocaml/opam:fedora-42-ocaml-5.3@sha256:1692973f106bce89bdc8a714ce1cc5a8ade9999a1ca0e0e27ec14024efbe1e05)
Unable to find image 'ocaml/opam:fedora-42-ocaml-5.3@sha256:1692973f106bce89bdc8a714ce1cc5a8ade9999a1ca0e0e27ec14024efbe1e05' locally
docker.io/ocaml/opam@sha256:1692973f106bce89bdc8a714ce1cc5a8ade9999a1ca0e0e27ec14024efbe1e05: Pulling from ocaml/opam
e909c7ea073f: Pulling fs layer
e909c7ea073f: Verifying Checksum
e909c7ea073f: Download complete
e909c7ea073f: Pull complete
Digest: sha256:1692973f106bce89bdc8a714ce1cc5a8ade9999a1ca0e0e27ec14024efbe1e05
Status: Downloaded newer image for ocaml/opam@sha256:1692973f106bce89bdc8a714ce1cc5a8ade9999a1ca0e0e27ec14024efbe1e05
2025-09-22 08:22.55 ---> saved as "35eb8746178ea8e003a48b9dd0b81f90508d2a71d9005f1bcd0e69f5de88cc13"

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2025-09-22 08:22.56 ---> saved as "82b2d1f51f9b8ecfdb67798d3ee7c699c492d02d4bb0d530ec8d5711b1fb244b"

/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 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-09-22 08:23.18 ---> saved as "a1804826e829eb0d415d4d6d5cdc861ffbe072cca4be2547ab0b2b19b1512ad8"

/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.1
# 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                 255
# 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-09-22 08:23.18 ---> saved as "4cd812a8c8fc228ec5f41eae5063d463dd144c9b5c7fda8b03c6b8d98b0787a0"

/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-09-22 08:23.29 ---> saved as "6300e1790de13b552fdf327af9246d1480c20201f982b0d5aad0b8024df4fbd8"

/home/opam: (copy (src .) (dst opam-repository/))
2025-09-22 08:23.35 ---> saved as "d31adc1979c990932b46946121126a843d729805bd8bb5150e44ea3e752506ef"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-09-22 08:23.56 ---> saved as "d4be40e49884a1c0b6feb1e81b0b5ef7db356e5ce0a758af4849552a45b58fe2"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/sbin/sudo "yum" "makecache"
- Updating and loading repositories:
-  Fedora 42 - x86_64                     100% |  94.7 KiB/s |  25.7 KiB |  00m00s
-  Fedora 42 - x86_64 - Updates           100% |  55.5 KiB/s |   8.5 KiB |  00m00s
- Repositories loaded.
- Metadata cache created.
2025-09-22 08:23.59 ---> saved as "5d1edd37858fe829c98d54cfe46fbf372d118c8c5e199b55522996d28d916465"

/home/opam: (run (shell "opam pin add -k version -yn incremental_cycles.0.1 0.1"))
incremental_cycles is now pinned to version 0.1
2025-09-22 08:24.00 ---> saved as "a037b7f229c2924e6d9f5e308f39025933e57385888f919eca20e3482a7aef67"

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

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved dune.3.20.2  (cached)
-> retrieved incremental_cycles.0.1  (cached)
-> installed dune.3.20.2
-> installed incremental_cycles.0.1
Done.
# To update the current shell environment, run: eval $(opam env)
2025-09-22 08:24.26 ---> saved as "198e3a5bb4929941ea522902bf4b998b779cc0a8dd0a07f1271b5efdee6f5260"
Job succeeded
2025-09-22 08:24.33: Job succeeded