(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-25.04-ocaml-5.4/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/29233/head" && git reset --hard d6c2a3a1
git fetch origin master
git merge --no-edit 6bda456f941d6c1e0773fcb1fd57c0eb54b8a2c1
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:ubuntu-25.04-ocaml-5.4@sha256:ac704a823990cbb54db5281ae92b0bb3680d06c809f1d91aa8d7b790e53c1d19
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-25.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-25.04-ocaml-5.4@sha256:ac704a823990cbb54db5281ae92b0bb3680d06c809f1d91aa8d7b790e53c1d19-restricted.1.2.0-d6c2a3a1ddf4f76798c0b8ca62fa72ad16336102"
2026-01-17 14:54.41: Using OBuilder spec:
((from ocaml/opam:ubuntu-25.04-ocaml-5.4@sha256:ac704a823990cbb54db5281ae92b0bb3680d06c809f1d91aa8d7b790e53c1d19)
 (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-25.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:54.42: Got resource from pool OCluster
Building on laodoke.caelum.ci.dev
All commits already cached
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-25.04-ocaml-5.4@sha256:ac704a823990cbb54db5281ae92b0bb3680d06c809f1d91aa8d7b790e53c1d19)
Unable to find image 'ocaml/opam:ubuntu-25.04-ocaml-5.4@sha256:ac704a823990cbb54db5281ae92b0bb3680d06c809f1d91aa8d7b790e53c1d19' locally
docker.io/ocaml/opam@sha256:ac704a823990cbb54db5281ae92b0bb3680d06c809f1d91aa8d7b790e53c1d19: Pulling from ocaml/opam
c62190a9ab61: Pulling fs layer
8c22c3a9fee5: Pulling fs layer
b6a3881708c6: Pulling fs layer
181330b22b7e: Pulling fs layer
506bc07f54fb: Pulling fs layer
445a1d2e706e: Pulling fs layer
7a1946ec19c4: Pulling fs layer
181330b22b7e: Waiting
98b064112b67: Pulling fs layer
1aec4bda6ddc: Pulling fs layer
506bc07f54fb: Waiting
445a1d2e706e: Waiting
7a1946ec19c4: Waiting
76877c886107: Pulling fs layer
98b064112b67: Waiting
1aec4bda6ddc: Waiting
b702cfeb6615: Pulling fs layer
76877c886107: Waiting
099ebca02eb1: Pulling fs layer
b702cfeb6615: Waiting
94b85c014d20: Pulling fs layer
099ebca02eb1: Waiting
e00c8f8334dc: Pulling fs layer
94b85c014d20: Waiting
9a9581a3a202: Pulling fs layer
e00c8f8334dc: Waiting
0ab820126803: Pulling fs layer
9a9581a3a202: Waiting
e578d8d3689b: Pulling fs layer
0ab820126803: Waiting
e578d8d3689b: Waiting
37286d2d5f81: Pulling fs layer
90223cbaf085: Pulling fs layer
c788b16891b0: Pulling fs layer
37286d2d5f81: Waiting
81346b5ad6e3: Pulling fs layer
c788b16891b0: Waiting
4f4fb700ef54: Pulling fs layer
81346b5ad6e3: Waiting
e654b9dd0f7f: Pulling fs layer
4f4fb700ef54: Waiting
e08cf68499fe: Pulling fs layer
6bb38bef3de3: Pulling fs layer
5cc64a03c4df: Pulling fs layer
e08cf68499fe: Waiting
6bb38bef3de3: Waiting
4dafc3bf5bc1: Pulling fs layer
5cc64a03c4df: Waiting
4dafc3bf5bc1: Waiting
79ef16461777: Pulling fs layer
51a91543f56b: Pulling fs layer
79ef16461777: Waiting
649cda3295cf: Pulling fs layer
51a91543f56b: Waiting
b1c66dda0dac: Pulling fs layer
48e1615134a1: Pulling fs layer
a504a74d82d4: Pulling fs layer
649cda3295cf: Waiting
48e1615134a1: Waiting
b1c66dda0dac: Waiting
1660d21f3d44: Pulling fs layer
a504a74d82d4: Waiting
fe4ca76dbe90: Pulling fs layer
dc22b0ac9683: Pulling fs layer
1660d21f3d44: Waiting
0e4d85318e88: Pulling fs layer
fe4ca76dbe90: Waiting
dc22b0ac9683: Waiting
bd96c5e5416a: Pulling fs layer
27914dbe48de: Pulling fs layer
0e4d85318e88: Waiting
601a5842f018: Pulling fs layer
bd96c5e5416a: Waiting
27914dbe48de: Waiting
e19d17f8bd20: Pulling fs layer
601a5842f018: Waiting
8ae0496702bb: Pulling fs layer
877abaeb7886: Pulling fs layer
e19d17f8bd20: Waiting
a3cefe177cda: Pulling fs layer
8ae0496702bb: Waiting
2cfef1d69c0e: Pulling fs layer
a3cefe177cda: Waiting
dfa5d1ac507f: Pulling fs layer
2cfef1d69c0e: Waiting
b8591fa73c60: Pulling fs layer
dfa5d1ac507f: Waiting
b8591fa73c60: Waiting
b6a3881708c6: Verifying Checksum
b6a3881708c6: Download complete
8c22c3a9fee5: Download complete
506bc07f54fb: Download complete
c62190a9ab61: Verifying Checksum
c62190a9ab61: Download complete
7a1946ec19c4: Verifying Checksum
7a1946ec19c4: Download complete
181330b22b7e: Verifying Checksum
181330b22b7e: Download complete
98b064112b67: Verifying Checksum
98b064112b67: Download complete
1aec4bda6ddc: Verifying Checksum
1aec4bda6ddc: Download complete
76877c886107: Verifying Checksum
76877c886107: Download complete
b702cfeb6615: Verifying Checksum
b702cfeb6615: Download complete
c62190a9ab61: Pull complete
8c22c3a9fee5: Pull complete
b6a3881708c6: Pull complete
445a1d2e706e: Verifying Checksum
445a1d2e706e: Download complete
099ebca02eb1: Verifying Checksum
099ebca02eb1: Download complete
e00c8f8334dc: Verifying Checksum
e00c8f8334dc: Download complete
9a9581a3a202: Verifying Checksum
9a9581a3a202: Download complete
94b85c014d20: Verifying Checksum
94b85c014d20: Download complete
0ab820126803: Verifying Checksum
0ab820126803: Download complete
e578d8d3689b: Download complete
37286d2d5f81: Download complete
90223cbaf085: Download complete
c788b16891b0: Download complete
81346b5ad6e3: Verifying Checksum
81346b5ad6e3: Download complete
4f4fb700ef54: Verifying Checksum
4f4fb700ef54: Download complete
181330b22b7e: Pull complete
506bc07f54fb: Pull complete
e654b9dd0f7f: Verifying Checksum
e654b9dd0f7f: Download complete
e08cf68499fe: Verifying Checksum
e08cf68499fe: Download complete
5cc64a03c4df: Download complete
4dafc3bf5bc1: Download complete
79ef16461777: Verifying Checksum
79ef16461777: Download complete
6bb38bef3de3: Verifying Checksum
6bb38bef3de3: Download complete
51a91543f56b: Download complete
649cda3295cf: Verifying Checksum
649cda3295cf: Download complete
b1c66dda0dac: Download complete
48e1615134a1: Verifying Checksum
48e1615134a1: Download complete
1660d21f3d44: Verifying Checksum
1660d21f3d44: Download complete
a504a74d82d4: Verifying Checksum
a504a74d82d4: Download complete
dc22b0ac9683: Download complete
bd96c5e5416a: Verifying Checksum
bd96c5e5416a: Download complete
27914dbe48de: Verifying Checksum
27914dbe48de: Download complete
601a5842f018: Download complete
e19d17f8bd20: Verifying Checksum
e19d17f8bd20: Download complete
0e4d85318e88: Verifying Checksum
0e4d85318e88: Download complete
8ae0496702bb: Verifying Checksum
8ae0496702bb: Download complete
877abaeb7886: Verifying Checksum
877abaeb7886: Download complete
2cfef1d69c0e: Download complete
dfa5d1ac507f: Verifying Checksum
dfa5d1ac507f: Download complete
b8591fa73c60: Verifying Checksum
b8591fa73c60: Download complete
a3cefe177cda: Verifying Checksum
a3cefe177cda: Download complete
445a1d2e706e: Pull complete
7a1946ec19c4: Pull complete
98b064112b67: Pull complete
1aec4bda6ddc: Pull complete
76877c886107: Pull complete
b702cfeb6615: Pull complete
099ebca02eb1: Pull complete
94b85c014d20: Pull complete
e00c8f8334dc: Pull complete
9a9581a3a202: Pull complete
0ab820126803: Pull complete
e578d8d3689b: Pull complete
fe4ca76dbe90: Verifying Checksum
fe4ca76dbe90: Download complete
37286d2d5f81: Pull complete
90223cbaf085: Pull complete
c788b16891b0: Pull complete
81346b5ad6e3: Pull complete
4f4fb700ef54: Pull complete
e654b9dd0f7f: Pull complete
e08cf68499fe: Pull complete
6bb38bef3de3: Pull complete
5cc64a03c4df: Pull complete
4dafc3bf5bc1: Pull complete
79ef16461777: Pull complete
51a91543f56b: Pull complete
649cda3295cf: Pull complete
b1c66dda0dac: Pull complete
48e1615134a1: Pull complete
a504a74d82d4: Pull complete
1660d21f3d44: Pull complete
fe4ca76dbe90: Pull complete
dc22b0ac9683: Pull complete
0e4d85318e88: Pull complete
bd96c5e5416a: Pull complete
27914dbe48de: Pull complete
601a5842f018: Pull complete
e19d17f8bd20: Pull complete
8ae0496702bb: Pull complete
877abaeb7886: Pull complete
a3cefe177cda: Pull complete
2cfef1d69c0e: Pull complete
dfa5d1ac507f: Pull complete
b8591fa73c60: Pull complete
Digest: sha256:ac704a823990cbb54db5281ae92b0bb3680d06c809f1d91aa8d7b790e53c1d19
Status: Downloaded newer image for ocaml/opam@sha256:ac704a823990cbb54db5281ae92b0bb3680d06c809f1d91aa8d7b790e53c1d19
2026-01-17 14:55.01 ---> using "d86b7185c290bc6a4f60170a37b97c8bc81ebe149a49860ee5f44a858de68b40" 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:55.01 ---> using "41a9eae0ea2beb784869e7d0c067fc9536fe9678844f20f9f16488d458d76ce0" 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
[NOTE] The 'jobs' option was reset, its value was 255 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=255 --global
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
2026-01-17 14:55.01 ---> using "98a97b6392e52baeeccf547aed546b540b1be0ecdfae0b0ece32a466bb1ab993" 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=ubuntu os-version=25.04
# 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       5.4
# invariant            ["ocaml-base-compiler" {>= "5.4.0"}]
# compiler-packages    ocaml-base-compiler.5.4.0, ocaml-compiler.5.4.0, ocaml-options-vanilla.1
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /home/opam/.opam/5.4/lib/ocaml/stublibs:/home/opam/.opam/5.4/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       5.4.0
2026-01-17 14:55.01 ---> using "4c269f399dd0d214ec79d555d38a0dd27097fdf2a9ae638cb63d336188c6f8ff" 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:55.01 ---> using "1e1d70fcaeb4b88b329780730162bcf98af3cc7cc1f7895872900328db1b6f01" from cache

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

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

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://archive.ubuntu.com/ubuntu plucky InRelease
- Get:2 http://archive.ubuntu.com/ubuntu plucky-updates InRelease [126 kB]
- Get:3 http://security.ubuntu.com/ubuntu plucky-security InRelease [126 kB]
- Get:4 http://archive.ubuntu.com/ubuntu plucky-backports InRelease [126 kB]
- Get:5 http://security.ubuntu.com/ubuntu plucky-security/main amd64 Packages [290 kB]
- Get:6 http://archive.ubuntu.com/ubuntu plucky-updates/main amd64 Packages [452 kB]
- Get:7 http://security.ubuntu.com/ubuntu plucky-security/universe amd64 Packages [233 kB]
- Get:8 http://security.ubuntu.com/ubuntu plucky-security/restricted amd64 Packages [330 kB]
- Get:9 http://archive.ubuntu.com/ubuntu plucky-updates/universe amd64 Packages [325 kB]
- Get:10 http://archive.ubuntu.com/ubuntu plucky-updates/restricted amd64 Packages [363 kB]
- Fetched 2371 kB in 0s (9156 kB/s)
- Reading package lists...
- 
2026-01-17 14:55.31 ---> saved as "4e9e43beb72ac50bfc761935d5426a7b6f38b6f975d92cd861bfc1adf6ab6580"

/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:55.32 ---> saved as "0870b5f80b17bfe4b61538f41e60818300a52128b89ab26b47576262a7af1d30"

/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-25.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-25.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:55.42: Job failed: Failed: Build failed
2026-01-17 14:55.42: Log analysis:
2026-01-17 14:55.42: >>> 
[ERROR] restricted = 1.2.0: unmet availability conditions: 'os-family != "debian"'
 (score = 100)
2026-01-17 14:55.42: [SKIP] Package not available