(for PR #29259)

2026-01-21 14:06.25: New job: build frama_c_codex.1.0-rc4, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/29259/head (6e8e829f522606bcc768caf41c97751270c5398f)
                              on debian-13-ocaml-4.08/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/29259/head" && git reset --hard 6e8e829f
git fetch origin master
git merge --no-edit 10a02a697b08f6d78a6c4c2cb9a76136afc7776d
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-13-ocaml-4.08@sha256:78d717fcca7c0865b5f7f500d51b5a746fcfc798c6869a4b6bf22e87791aef84
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 frama_c_codex.1.0-rc4 1.0-rc4
RUN opam reinstall frama_c_codex.1.0-rc4; \
    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 "\"debian-13\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'frama_c_codex.1.0-rc4' && 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 .

2026-01-21 14:06.25: Using cache hint "ocaml/opam:debian-13-ocaml-4.08@sha256:78d717fcca7c0865b5f7f500d51b5a746fcfc798c6869a4b6bf22e87791aef84-frama_c_codex.1.0-rc4-6e8e829f522606bcc768caf41c97751270c5398f"
2026-01-21 14:06.25: Using OBuilder spec:
((from ocaml/opam:debian-13-ocaml-4.08@sha256:78d717fcca7c0865b5f7f500d51b5a746fcfc798c6869a4b6bf22e87791aef84)
 (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 frama_c_codex.1.0-rc4 1.0-rc4"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall frama_c_codex.1.0-rc4;\
             \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 \"\\\"debian-13\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'frama_c_codex.1.0-rc4' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2026-01-21 14:06.25: Waiting for resource in pool OCluster
2026-01-21 14:06.27: Waiting for worker…
2026-01-21 14:06.27: Got resource from pool OCluster
Building on toxis.caelum.ci.dev
Updating files:  75% (14459/19235)
Updating files:  76% (14619/19235)
Updating files:  77% (14811/19235)
Updating files:  78% (15004/19235)
Updating files:  79% (15196/19235)
Updating files:  80% (15388/19235)
Updating files:  81% (15581/19235)
Updating files:  82% (15773/19235)
Updating files:  83% (15966/19235)
Updating files:  84% (16158/19235)
Updating files:  85% (16350/19235)
Updating files:  86% (16543/19235)
Updating files:  87% (16735/19235)
Updating files:  88% (16927/19235)
Updating files:  89% (17120/19235)
Updating files:  90% (17312/19235)
Updating files:  91% (17504/19235)
Updating files:  92% (17697/19235)
Updating files:  93% (17889/19235)
Updating files:  94% (18081/19235)
Updating files:  95% (18274/19235)
Updating files:  96% (18466/19235)
Updating files:  97% (18658/19235)
Updating files:  98% (18851/19235)
Updating files:  99% (19043/19235)
Updating files: 100% (19235/19235)
Updating files: 100% (19235/19235), done.
HEAD is now at 1254c043ff [new release] reason and rtop (3.17.3)
HEAD is now at 10a02a697b Merge pull request #29249 from panglesd/release-slipshow-v0.8.0
Updating 10a02a697b..6e8e829f52
Fast-forward
 packages/binsec_codex/binsec_codex.1.0-rc4/opam   | 54 +++++++++++++
 packages/codex/codex.1.0~rc4/opam                 | 92 +++++++++++++++++++++++
 packages/frama_c_codex/frama_c_codex.1.0-rc4/opam | 55 ++++++++++++++
 3 files changed, 201 insertions(+)
 create mode 100644 packages/binsec_codex/binsec_codex.1.0-rc4/opam
 create mode 100644 packages/codex/codex.1.0~rc4/opam
 create mode 100644 packages/frama_c_codex/frama_c_codex.1.0-rc4/opam

(from ocaml/opam:debian-13-ocaml-4.08@sha256:78d717fcca7c0865b5f7f500d51b5a746fcfc798c6869a4b6bf22e87791aef84)
2026-01-21 14:06.32 ---> using "353beaf5a3c9b032ecb62c926e7ce7890656c3345a46e1ff971d316d3c6ff58e" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2026-01-21 14:06.32 ---> using "63532de8ef4927ccdad7ca3391b68b0daa45eab7ed0d0f804cf18b9d1df3e325" 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 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
2026-01-21 14:06.32 ---> using "93d3c206eebbfe7da278de7c7345a2674dc22e61b59a22a8c14a7d7b67a23ccc" 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.5.0
# self-upgrade         no
# system               arch=x86_64 os=linux os-distribution=debian os-version=13
# 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.08
# invariant            ["ocaml-base-compiler" {= "4.08.1"}]
# compiler-packages    ocaml-base-compiler.4.08.1
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /home/opam/.opam/4.08/lib/ocaml/stublibs:/home/opam/.opam/4.08/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       4.08.1
2026-01-21 14:06.32 ---> using "ac144c659552a0f0aaf9a89540e179d0ee44c1a5b67302ceed4a2d842a614077" 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/"))
2026-01-21 14:06.32 ---> using "0204137ae72a4d432fbb9fde22067f2fb33263a75d4997585db1426430fa3725" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2026-01-21 14:06.41 ---> saved as "5d49cac2eca13f98d86673b1114f380bced85e053b321839809218ebd4a3f017"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2026-01-21 14:07.02 ---> saved as "388b59b1f828e5c38ab35bfbf4bc26c30df62237d30c43a4b69f80648565b232"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://deb.debian.org/debian trixie InRelease
- Get:2 http://deb.debian.org/debian trixie-updates InRelease [47.3 kB]
- Get:3 http://deb.debian.org/debian-security trixie-security InRelease [43.4 kB]
- Get:4 http://deb.debian.org/debian-security trixie-security/main amd64 Packages [96.3 kB]
- Fetched 187 kB in 0s (1692 kB/s)
- Reading package lists...
- 
2026-01-21 14:07.04 ---> saved as "3bb5589cc4db4462ae65d835a9d0bd845a92aa7c0cbe2ced1d9c978ad67e76ce"

/home/opam: (run (shell "opam pin add -k version -yn frama_c_codex.1.0-rc4 1.0-rc4"))
frama_c_codex is now pinned to version 1.0-rc4
2026-01-21 14:07.05 ---> saved as "89aa82ecd7733930038cc7a972a2b95139309fb33fde691d5bf4cf33531005c4"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall frama_c_codex.1.0-rc4;\
                        \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 \"\\\"debian-13\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'frama_c_codex.1.0-rc4' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
frama_c_codex.1.0-rc4 is not installed. Install it? [Y/n] y
  * No agreement on the version of ocaml:
    - (invariant) -> ocaml-base-compiler = 4.08.1 -> ocaml = 4.08.1
    - frama_c_codex -> frama-c = 31.0 -> ocaml >= 4.14.0
    You can temporarily relax the switch invariant with `--update-invariant'
  * Incompatible packages:
    - (invariant) -> ocaml-base-compiler = 4.08.1
    - frama_c_codex -> frama-c = 31.0 -> ocaml >= 4.14.0 -> ocaml-variants >= 4.14.0~
  * Missing dependency:
    - frama_c_codex -> frama-c = 31.0 -> ocaml >= 4.14.0 -> ocaml-variants >= 4.14.0~ -> system-msvc
    unmet availability conditions: 'os = "win32"'

No solution found, exiting
"/usr/bin/env" "bash" "-c" "opam reinstall frama_c_codex.1.0-rc4;
        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 "\"debian-13\""; then
            echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.";
          fi;
          test "$pkg" != 'frama_c_codex.1.0-rc4' && partial_fails="$partial_fails $pkg";
        done;
        test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}";
        exit 1" failed with exit status 20
2026-01-21 14:07.21: Job failed: Failed: Build failed
2026-01-21 14:07.21: Log analysis:
2026-01-21 14:07.21: >>> 
No solution found, exiting
 (score = 100)
2026-01-21 14:07.21: [SKIP] Package not available