(for PR #29233)

2026-01-17 14:54.41: New job: build restricted.1.2.0, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/29233/head (d6c2a3a1ddf4f76798c0b8ca62fa72ad16336102)
                              on ubuntu-24.04-ocaml-4.14/riscv64

To reproduce locally:

cd $(mktemp -d)
git clone --recursive "https://github.com/ocaml/opam-repository.git" && cd "opam-repository" && git fetch origin "refs/pull/29233/head" && git reset --hard d6c2a3a1
git fetch origin master
git merge --no-edit 6bda456f941d6c1e0773fcb1fd57c0eb54b8a2c1
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:ubuntu-24.04-ocaml-4.14@sha256:f20ef09e777da135c4ee8d0398873c087223035afd7a128f8bfd33dd9b8f4966
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 restricted.1.2.0 1.2.0
RUN opam reinstall restricted.1.2.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 "\"ubuntu-24.04\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'restricted.1.2.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 .

2026-01-17 14:54.41: Using cache hint "ocaml/opam:ubuntu-24.04-ocaml-4.14@sha256:f20ef09e777da135c4ee8d0398873c087223035afd7a128f8bfd33dd9b8f4966-restricted.1.2.0-d6c2a3a1ddf4f76798c0b8ca62fa72ad16336102"
2026-01-17 14:54.41: Using OBuilder spec:
((from ocaml/opam:ubuntu-24.04-ocaml-4.14@sha256:f20ef09e777da135c4ee8d0398873c087223035afd7a128f8bfd33dd9b8f4966)
 (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 restricted.1.2.0 1.2.0"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall restricted.1.2.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 \"\\\"ubuntu-24.04\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'restricted.1.2.0' && 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-17 14:54.41: Waiting for resource in pool OCluster
2026-01-17 14:54.41: Waiting for worker…
2026-01-17 14:56.09: Got resource from pool OCluster
Building on riscv-bm-03.sw.ci.dev
Updating files:  10% (2051/19221)
Updating files:  11% (2115/19221)
Updating files:  12% (2307/19221)
Updating files:  13% (2499/19221)
Updating files:  14% (2691/19221)
Updating files:  15% (2884/19221)
Updating files:  16% (3076/19221)
Updating files:  17% (3268/19221)
Updating files:  18% (3460/19221)
Updating files:  19% (3652/19221)
Updating files:  20% (3845/19221)
Updating files:  21% (4037/19221)
Updating files:  22% (4229/19221)
Updating files:  22% (4361/19221)
Updating files:  23% (4421/19221)
Updating files:  24% (4614/19221)
Updating files:  25% (4806/19221)
Updating files:  26% (4998/19221)
Updating files:  27% (5190/19221)
Updating files:  28% (5382/19221)
Updating files:  29% (5575/19221)
Updating files:  30% (5767/19221)
Updating files:  31% (5959/19221)
Updating files:  32% (6151/19221)
Updating files:  33% (6343/19221)
Updating files:  33% (6524/19221)
Updating files:  34% (6536/19221)
Updating files:  35% (6728/19221)
Updating files:  36% (6920/19221)
Updating files:  37% (7112/19221)
Updating files:  38% (7304/19221)
Updating files:  39% (7497/19221)
Updating files:  40% (7689/19221)
Updating files:  41% (7881/19221)
Updating files:  42% (8073/19221)
Updating files:  43% (8266/19221)
Updating files:  44% (8458/19221)
Updating files:  45% (8650/19221)
Updating files:  46% (8842/19221)
Updating files:  46% (8921/19221)
Updating files:  47% (9034/19221)
Updating files:  48% (9227/19221)
Updating files:  49% (9419/19221)
Updating files:  50% (9611/19221)
Updating files:  51% (9803/19221)
Updating files:  52% (9995/19221)
Updating files:  53% (10188/19221)
Updating files:  54% (10380/19221)
Updating files:  55% (10572/19221)
Updating files:  56% (10764/19221)
Updating files:  57% (10956/19221)
Updating files:  57% (10964/19221)
Updating files:  58% (11149/19221)
Updating files:  59% (11341/19221)
Updating files:  60% (11533/19221)
Updating files:  61% (11725/19221)
Updating files:  62% (11918/19221)
Updating files:  63% (12110/19221)
Updating files:  64% (12302/19221)
Updating files:  65% (12494/19221)
Updating files:  66% (12686/19221)
Updating files:  67% (12879/19221)
Updating files:  68% (13071/19221)
Updating files:  68% (13243/19221)
Updating files:  69% (13263/19221)
Updating files:  70% (13455/19221)
Updating files:  71% (13647/19221)
Updating files:  72% (13840/19221)
Updating files:  73% (14032/19221)
Updating files:  74% (14224/19221)
Updating files:  75% (14416/19221)
Updating files:  76% (14608/19221)
Updating files:  77% (14801/19221)
Updating files:  77% (14991/19221)
Updating files:  78% (14993/19221)
Updating files:  79% (15185/19221)
Updating files:  80% (15377/19221)
Updating files:  81% (15570/19221)
Updating files:  82% (15762/19221)
Updating files:  83% (15954/19221)
Updating files:  84% (16146/19221)
Updating files:  85% (16338/19221)
Updating files:  86% (16531/19221)
Updating files:  87% (16723/19221)
Updating files:  88% (16915/19221)
Updating files:  88% (16974/19221)
Updating files:  89% (17107/19221)
Updating files:  90% (17299/19221)
Updating files:  91% (17492/19221)
Updating files:  92% (17684/19221)
Updating files:  93% (17876/19221)
Updating files:  94% (18068/19221)
Updating files:  95% (18260/19221)
Updating files:  96% (18453/19221)
Updating files:  97% (18645/19221)
Updating files:  98% (18837/19221)
Updating files:  99% (19029/19221)
Updating files: 100% (19221/19221)
Updating files: 100% (19221/19221), done.
HEAD is now at e050e40c72 remove dependency config-pkg
HEAD is now at 6bda456f94 Merge pull request #29229 from elias-utf8/opam-publish-qcaml.0.1.7
Updating 6bda456f94..d6c2a3a1dd
Fast-forward
 packages/restricted/restricted.1.2.0/opam | 48 +++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)
 create mode 100644 packages/restricted/restricted.1.2.0/opam

(from ocaml/opam:ubuntu-24.04-ocaml-4.14@sha256:f20ef09e777da135c4ee8d0398873c087223035afd7a128f8bfd33dd9b8f4966)
2026-01-17 14:56.43 ---> using "4626d4a5a131a88d02479f5c3b21defc447f75fbe8e0dea7762a8bf70d192939" 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-17 14:56.43 ---> using "2cf77de0c9217b9f307fb96292f7e750553dddea1ae1c3af3d877c5064cd48be" 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-17 14:56.43 ---> using "e97b1f5b3923c1d4406517373572055c44243d2c7e5d515860195f8caac29ab2" 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=riscv64 os=linux os-distribution=ubuntu os-version=24.04
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 3
# 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
2026-01-17 14:56.43 ---> using "7446a1617c0a540a3bcb1fa66767241aea48568e6441847fecb4c62276a88c16" 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-17 14:56.43 ---> using "6a1c59d3cd71ed778ec1a09ca3f6c9b8135cf735686be40ac73fa2d2fb3e5849" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2026-01-17 14:57.09 ---> saved as "ae7726d2804557ab47702a005d7b2a0fd95cb3870c52529587842c786a4b4b8e"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2026-01-17 14:58.49 ---> saved as "29147732ca55adc80b6852caea0c44ca86bbd763a626b21c057449d46d72bee9"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://ports.ubuntu.com/ubuntu-ports noble InRelease
- Get:2 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease [126 kB]
- Get:3 http://ports.ubuntu.com/ubuntu-ports noble-backports InRelease [126 kB]
- Get:4 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease [126 kB]
- Get:5 http://ports.ubuntu.com/ubuntu-ports noble-updates/universe riscv64 Packages [1473 kB]
- Get:6 http://ports.ubuntu.com/ubuntu-ports noble-updates/main riscv64 Packages [903 kB]
- Get:7 http://ports.ubuntu.com/ubuntu-ports noble-security/universe riscv64 Packages [929 kB]
- Get:8 http://ports.ubuntu.com/ubuntu-ports noble-security/main riscv64 Packages [581 kB]
- Fetched 4264 kB in 2s (1978 kB/s)
- Reading package lists...
- 
2026-01-17 14:58.57 ---> saved as "d17edaa02ac078ea72edcf26d1076d7a5894670370d45f4b696980e63f0b1cee"

/home/opam: (run (shell "opam pin add -k version -yn restricted.1.2.0 1.2.0"))
restricted is now pinned to version 1.2.0
2026-01-17 14:59.00 ---> saved as "bc9da677c0a6505abd48d93d1c57345124005f2a5f0d5382db73f985b6c4f635"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall restricted.1.2.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 \"\\\"ubuntu-24.04\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'restricted.1.2.0' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
[ERROR] restricted = 1.2.0: unmet availability conditions: 'os-family != "debian"'
"/usr/bin/env" "bash" "-c" "opam reinstall restricted.1.2.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 "\"ubuntu-24.04\""; then
            echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.";
          fi;
          test "$pkg" != 'restricted.1.2.0' && partial_fails="$partial_fails $pkg";
        done;
        test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}";
        exit 1" failed with exit status 5
2026-01-17 14:59.42: Job failed: Failed: Build failed
2026-01-17 14:59.42: Log analysis:
2026-01-17 14:59.42: >>> 
[ERROR] restricted = 1.2.0: unmet availability conditions: 'os-family != "debian"'
 (score = 100)
2026-01-17 14:59.42: [SKIP] Package not available