Build:
  1. 0
2026-03-02 22:27.27: New job: build conf-mingw-w64-bzip2-x86_64.1, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/29485/head (05129752edef67816511a437891384e37ac16023)
                              on ubuntu-22.04-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/29485/head" && git reset --hard 05129752
git fetch origin master
git merge --no-edit 4d2d05075ed20338fa6af3429fc5c18858025bd3
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:ubuntu-22.04-ocaml-4.14@sha256:7b5d9e65ed6c65fa8d9bebbc9ac793186c30c21f008883324dcc048a04b0fece
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 conf-mingw-w64-bzip2-x86_64.1 1
RUN opam reinstall conf-mingw-w64-bzip2-x86_64.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 "\"ubuntu-22.04\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'conf-mingw-w64-bzip2-x86_64.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 .

2026-03-02 22:27.27: Using cache hint "ocaml/opam:ubuntu-22.04-ocaml-4.14@sha256:7b5d9e65ed6c65fa8d9bebbc9ac793186c30c21f008883324dcc048a04b0fece-conf-mingw-w64-bzip2-x86_64.1-05129752edef67816511a437891384e37ac16023"
2026-03-02 22:27.27: Using OBuilder spec:
((from ocaml/opam:ubuntu-22.04-ocaml-4.14@sha256:7b5d9e65ed6c65fa8d9bebbc9ac793186c30c21f008883324dcc048a04b0fece)
 (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 conf-mingw-w64-bzip2-x86_64.1 1"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall conf-mingw-w64-bzip2-x86_64.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 \"\\\"ubuntu-22.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\" != 'conf-mingw-w64-bzip2-x86_64.1' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2026-03-02 22:27.27: Waiting for resource in pool OCluster
2026-03-03 10:03.57: Waiting for worker…
2026-03-03 10:06.21: Got resource from pool OCluster
Building on toxis.caelum.ci.dev
All commits already cached
HEAD is now at 4d2d05075e Merge pull request #29493 from filipeom/opam-publish-smtml.0.22.0
Merge made by the 'ort' strategy.
 .../conf-mingw-w64-bzip2-x86_64.1/opam                           | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

(from ocaml/opam:ubuntu-22.04-ocaml-4.14@sha256:7b5d9e65ed6c65fa8d9bebbc9ac793186c30c21f008883324dcc048a04b0fece)
2026-03-03 10:06.50 ---> using "a092c3b151a826637b4973bdcd89040c59b1f055869e1ae28ca69a3c46b24c29" 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-03-03 10:06.50 ---> using "cb088b351489fd38d38272d12183ba9bdfa0ae4c75ed6c8a9bf3b7a8a941d870" 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-03-03 10:06.50 ---> using "6016e7c7bc027c7b9d2f981a87d1e7ce92d810b43aca540f3dbb182605849ba9" 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=22.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       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-03-03 10:06.50 ---> using "5d3077db6b6710196a23f8ddafe1963b58ec7a1d6b3711b498348d6028665ed8" 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-03-03 10:06.50 ---> using "1c22537d5844f7442c757e2ba33376a315296a40fa2d97416d109d7c6ef391ec" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2026-03-03 10:07.22 ---> saved as "23cbe3ac34c0ecd37fcd3701e7aa811d477f4dde9d005ad04a43299e855dbbf9"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2026-03-03 10:07.43 ---> saved as "1a3f0b306e05e5c719784feb32e705abf038e91ca40a328f7be3a8a10f9ada4a"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Get:1 http://security.ubuntu.com/ubuntu jammy-security InRelease [129 kB]
- Get:2 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [3772 kB]
- Get:3 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [1301 kB]
- Hit:4 http://archive.ubuntu.com/ubuntu jammy InRelease
- Get:5 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [128 kB]
- Get:6 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [127 kB]
- Fetched 5457 kB in 1s (8037 kB/s)
- Reading package lists...
- 
2026-03-03 10:07.46 ---> saved as "3959c83659a6bf902ddaec1870abbc8d1c5e46520e9b7c97bf72088567507edc"

/home/opam: (run (shell "opam pin add -k version -yn conf-mingw-w64-bzip2-x86_64.1 1"))
conf-mingw-w64-bzip2-x86_64 is now pinned to version 1
2026-03-03 10:07.46 ---> saved as "7a9025c8755c2b71c9e330f2f8acee499ba9cee5a5c3c55a897ff3224902d538"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall conf-mingw-w64-bzip2-x86_64.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 \"\\\"ubuntu-22.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\" != 'conf-mingw-w64-bzip2-x86_64.1' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
[ERROR] conf-mingw-w64-bzip2-x86_64 = 1: unmet availability conditions: 'os = "win32"'
"/usr/bin/env" "bash" "-c" "opam reinstall conf-mingw-w64-bzip2-x86_64.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 "\"ubuntu-22.04\""; then
            echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.";
          fi;
          test "$pkg" != 'conf-mingw-w64-bzip2-x86_64.1' && 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-03-03 10:08.23: Job failed: Failed: Build failed
2026-03-03 10:08.23: Log analysis:
2026-03-03 10:08.23: >>> 
[ERROR] conf-mingw-w64-bzip2-x86_64 = 1: unmet availability conditions: 'os = "win32"'
 (score = 100)
2026-03-03 10:08.23: [SKIP] Package not available