(for PR #29582)

2026-03-25 08:40.00: New job: build ocaml-compiler.5.4.1, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/29582/head (fa5fb3a6a806e832e4c7791145889a6bbe8b64ef)
                              on macos-homebrew-ocaml-4.14/arm64

To reproduce locally:

cd $(mktemp -d)
git clone --recursive "https://github.com/ocaml/opam-repository.git" && cd "opam-repository" && git fetch origin "refs/pull/29582/head" && git reset --hard fa5fb3a6
git fetch origin master
git merge --no-edit 7216d2e0eb5d8d116434228a0b19a267b98e8510
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM macos-homebrew-ocaml-4.14
USER 1000:1000
RUN ln -f ~/local/bin/opam-dev ~/local/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 -k local --strict default opam-repository/
RUN opam update --depexts || true
RUN opam pin add -k version -yn ocaml-compiler.5.4.1 5.4.1
RUN opam reinstall --update-invariant ocaml-compiler.5.4.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 "\"macos-homebrew\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'ocaml-compiler.5.4.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-25 08:40.00: Using cache hint "macos-homebrew-ocaml-4.14-ocaml-compiler.5.4.1-fa5fb3a6a806e832e4c7791145889a6bbe8b64ef"
2026-03-25 08:40.00: Using OBuilder spec:
((from macos-homebrew-ocaml-4.14)
 (user (uid 1000) (gid 1000))
 (run (shell "ln -f ~/local/bin/opam-dev ~/local/bin/opam"))
 (run (network host)
      (shell "opam init --reinit -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 -k local --strict default opam-repository/"))
 (run (network host)
      (shell "opam update --depexts || true"))
 (run (shell "opam pin add -k version -yn ocaml-compiler.5.4.1 5.4.1"))
 (run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
      (network host)
      (shell  "opam reinstall --update-invariant ocaml-compiler.5.4.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 \"\\\"macos-homebrew\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'ocaml-compiler.5.4.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-25 08:40.00: Waiting for resource in pool OCluster
2026-03-25 08:40.03: Waiting for worker…
2026-03-25 09:16.08: Got resource from pool OCluster
Building on m1-worker-04
All commits already cached
Updating files:  63% (11803/18517)
Updating files:  64% (11851/18517)
Updating files:  65% (12037/18517)
Updating files:  66% (12222/18517)
Updating files:  67% (12407/18517)
Updating files:  68% (12592/18517)
Updating files:  69% (12777/18517)
Updating files:  70% (12962/18517)
Updating files:  71% (13148/18517)
Updating files:  72% (13333/18517)
Updating files:  73% (13518/18517)
Updating files:  74% (13703/18517)
Updating files:  75% (13888/18517)
Updating files:  76% (14073/18517)
Updating files:  77% (14259/18517)
Updating files:  78% (14444/18517)
Updating files:  79% (14629/18517)
Updating files:  80% (14814/18517)
Updating files:  81% (14999/18517)
Updating files:  82% (15184/18517)
Updating files:  83% (15370/18517)
Updating files:  84% (15555/18517)
Updating files:  85% (15740/18517)
Updating files:  86% (15925/18517)
Updating files:  87% (16110/18517)
Updating files:  88% (16295/18517)
Updating files:  89% (16481/18517)
Updating files:  90% (16666/18517)
Updating files:  91% (16851/18517)
Updating files:  92% (17036/18517)
Updating files:  93% (17221/18517)
Updating files:  94% (17406/18517)
Updating files:  95% (17592/18517)
Updating files:  96% (17777/18517)
Updating files:  97% (17962/18517)
Updating files:  98% (18147/18517)
Updating files:  99% (18332/18517)
Updating files: 100% (18517/18517)
Updating files: 100% (18517/18517), done.
HEAD is now at 7216d2e0eb Merge pull request #29593 from arvidj/aj/avoid-passage-0-3-2-3
Merge made by the 'ort' strategy.
 packages/ocaml-compiler/ocaml-compiler.5.3.0/opam      |  5 ++++-
 packages/ocaml-compiler/ocaml-compiler.5.3/opam        |  5 ++++-
 packages/ocaml-compiler/ocaml-compiler.5.4.0/opam      |  5 ++++-
 .../ocaml-compiler/ocaml-compiler.5.4.0~alpha1/opam    |  5 ++++-
 .../ocaml-compiler/ocaml-compiler.5.4.0~beta1/opam     |  5 ++++-
 .../ocaml-compiler/ocaml-compiler.5.4.0~beta2/opam     |  5 ++++-
 packages/ocaml-compiler/ocaml-compiler.5.4.0~rc1/opam  |  5 ++++-
 packages/ocaml-compiler/ocaml-compiler.5.4.1/opam      |  5 ++++-
 packages/ocaml-compiler/ocaml-compiler.5.4/opam        |  5 ++++-
 .../ocaml-compiler/ocaml-compiler.5.5.0~alpha1/opam    |  5 ++++-
 packages/ocaml-compiler/ocaml-compiler.5.5/opam        |  5 ++++-
 packages/ocaml-compiler/ocaml-compiler.5.6/opam        |  5 ++++-
 packages/ocaml-option-llvm/ocaml-option-llvm.1/opam    | 18 ++++++++++++++++++
 .../ocaml-options-vanilla/ocaml-options-vanilla.1/opam |  1 +
 packages/ocaml-variants/ocaml-variants.5.2.0+msvc/opam |  2 ++
 15 files changed, 69 insertions(+), 12 deletions(-)
 create mode 100644 packages/ocaml-option-llvm/ocaml-option-llvm.1/opam

(from macos-homebrew-ocaml-4.14)
2026-03-25 09:16.11 ---> using "0c60f117aee57abea8364cb033d47bb1d63ff0f68e5ee97378e032498e8442af" from cache

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

/: (run (shell "ln -f ~/local/bin/opam-dev ~/local/bin/opam"))
2026-03-25 09:16.11 ---> using "f20a31eccb94af52fa2a3ef86b723bc6460bac3d8a92b8861915540c2498d20a" from cache

/: (run (network host)
        (shell "opam init --reinit -ni"))
No configuration file found, using 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 /Users/mac1000/.opam from version 2.1 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 1 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=1 --global
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] no changes from git+file:///Users/mac1000/opam-repository
2026-03-25 09:16.11 ---> using "7818e224f85c11d1d318abe9ba4e297be345388b7ed476f912b6900c6bae56aa" from cache

/: (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=arm64 os=macos os-distribution=homebrew os-version=15.5
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 7
# repositories         1 (version-controlled)
# pinned               0
# current-switch       4.14.2
# invariant            ["ocaml-base-compiler" {= "4.14.2"} | "ocaml-system" {= "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       /Users/mac1000/.opam/4.14.2/lib/ocaml/stublibs:/Users/mac1000/.opam/4.14.2/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       4.14.2
2026-03-25 09:16.12 ---> using "625776f8b2f728a128171e2ba4372c97abd18632a07574a8412026e8be39dac5" from cache

/: (env OPAMDOWNLOADJOBS 1)

/: (env OPAMERRLOGLEN 0)

/: (env OPAMPRECISETRACKING 1)

/: (env CI true)

/: (env OPAM_REPO_CI true)

/: (run (shell "rm -rf opam-repository/"))
2026-03-25 09:16.12 ---> using "15fbb76bf7dee5d6e8ae583230339015a61d8d2d8397de2cfe6459f8ba421f1e" from cache

/: (copy (src .) (dst opam-repository/))
2026-03-25 09:16.13 ---> using "776718e859a598173cbe381d6c4d6ce06c187f2903974040462b301b17494735" from cache

/: (run (shell "opam repository set-url -k local --strict default opam-repository/"))
[default] Initialised
2026-03-25 09:16.13 ---> using "c5180bc18657bbe0ceaad8408ddfcb4d57d90eaac4a0bc2d39b6807d79d10d5d" from cache

/: (run (network host)
        (shell "opam update --depexts || true"))
+ /opt/homebrew/bin/brew "update"
- ==> Updating Homebrew...
- ==> Downloading https://ghcr.io/v2/homebrew/core/portable-ruby/blobs/sha256:cef6f881f516d2cdbd0a5bfc7e20318da8b047cf2674ee27c5d4858d3ecd6430
- #=#=#                                                                          

                                                                           0.7%
- 
#                                                                          1.5%
#                                                                          2.3%
##                                                                         3.0%
##                                                                         3.8%
###                                                                        4.7%
###                                                                        5.5%
####                                                                       6.4%
#####                                                                      7.2%
#####                                                                      8.1%
######                                                                     8.9%
######                                                                     9.7%
- 
#######                                                                   10.5%
########                                                                  11.3%
########                                                                  12.1%
#########                                                                 12.9%
#########                                                                 13.7%
##########                                                                14.6%
###########                                                               15.5%
###########                                                               16.3%
############                                                              17.0%
############                                                              17.8%
#############                                                             18.6%
##############                                                            19.5%
- 
##############                                                            20.3%
###############                                                           21.1%
###############                                                           22.0%
################                                                          22.8%
################                                                          23.5%
#################                                                         24.5%
##################                                                        25.4%
##################                                                        26.2%
###################                                                       26.9%
###################                                                       27.7%
####################                                                      28.6%
- 
#####################                                                     29.4%
#####################                                                     30.2%
######################                                                    31.0%
######################                                                    31.8%
#######################                                                   32.7%
########################                                                  33.5%
########################                                                  34.3%
#########################                                                 35.1%
#########################                                                 35.9%
##########################                                                36.5%
##########################                                                36.9%
- 
##########################                                                37.4%
###########################                                               37.8%
###########################                                               38.2%
###########################                                               38.6%
############################                                              39.1%
############################                                              39.5%
############################                                              39.9%
#############################                                             40.3%
#############################                                             40.7%
#############################                                             41.1%
#############################                                             41.6%
- 
##############################                                            42.0%
##############################                                            42.3%
##############################                                            42.7%
###############################                                           43.3%
###############################                                           43.7%
###############################                                           44.1%
################################                                          44.6%
################################                                          45.0%
################################                                          45.4%
################################                                          45.8%
#################################                                         46.1%
- 
#################################                                         46.6%
#################################                                         47.0%
##################################                                        47.4%
##################################                                        47.9%
##################################                                        48.3%
###################################                                       48.7%
###################################                                       49.2%
###################################                                       49.6%
####################################                                      50.0%
####################################                                      50.4%
- 
####################################                                      50.8%
####################################                                      51.2%
#####################################                                     51.7%
#####################################                                     52.1%
#####################################                                     52.5%
######################################                                    52.9%
######################################                                    53.3%
######################################                                    53.7%
#######################################                                   54.2%
#######################################                                   54.6%
#######################################                                   55.0%
- 
#######################################                                   55.5%
########################################                                  55.9%
########################################                                  56.4%
########################################                                  56.8%
#########################################                                 57.2%
#########################################                                 57.7%
#########################################                                 58.1%
##########################################                                58.5%
##########################################                                58.8%
##########################################                                59.2%
###########################################                               59.8%
###########################################                               60.2%
- 
###########################################                               60.5%
###########################################                               60.9%
############################################                              61.3%
############################################                              61.7%
############################################                              62.2%
#############################################                             62.6%
#############################################                             63.1%
#############################################                             63.5%
##############################################                            63.9%
##############################################                            64.3%
##############################################                            64.7%
- 
##############################################                            65.2%
###############################################                           65.6%
###############################################                           66.0%
###############################################                           66.4%
################################################                          66.9%
################################################                          67.3%
################################################                          67.7%
################################################                          68.1%
#################################################                         68.4%
#################################################                         68.9%
#################################################                         69.3%
- 
##################################################                        69.8%
##################################################                        70.2%
##################################################                        70.6%
###################################################                       71.1%
###################################################                       71.5%
###################################################                       71.9%
####################################################                      72.4%
####################################################                      72.8%
####################################################                      73.2%
#####################################################                     73.7%
#####################################################                     74.1%
- 
#####################################################                     74.5%
#####################################################                     74.8%
######################################################                    75.2%
######################################################                    75.6%
######################################################                    76.2%
#######################################################                   76.5%
#######################################################                   76.9%
#######################################################                   77.3%
#######################################################                   77.7%
########################################################                  78.2%
########################################################                  78.6%
- 
########################################################                  79.0%
#########################################################                 79.4%
#########################################################                 79.9%
#########################################################                 80.3%
##########################################################                80.7%
##########################################################                81.1%
##########################################################                81.5%
##########################################################                81.9%
###########################################################               82.4%
###########################################################               82.7%
###########################################################               83.1%
- 
############################################################              83.7%
############################################################              84.1%
############################################################              84.4%
#############################################################             84.9%
#############################################################             85.3%
#############################################################             85.9%
##############################################################            86.7%
##############################################################            87.5%
###############################################################           88.4%
################################################################          89.2%
################################################################          90.1%
- 
#################################################################         90.9%
##################################################################        91.8%
##################################################################        92.6%
###################################################################       93.3%
###################################################################       94.2%
####################################################################      95.0%
####################################################################      95.8%
#####################################################################     96.6%
######################################################################    97.4%
######################################################################    98.1%
#######################################################################   99.0%
#######################################################################   99.8%
- 
######################################################################## 100.0%
- ==> Pouring portable-ruby-4.0.1.arm64_big_sur.bottle.tar.gz
- ==> Homebrew collects anonymous analytics.
- Read the analytics documentation (and how to opt-out) here:
-   https://docs.brew.sh/Analytics
- No analytics have been recorded yet (nor will be during this `brew` run).
- 
- ==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
-   https://github.com/Homebrew/brew#donations
- 
- Already up-to-date.
2026-03-25 09:16.13 ---> using "45ceb7d439fb571f505904010b53b571aaa59c256b156539bc2b68e87fa321bb" from cache

/: (run (shell "opam pin add -k version -yn ocaml-compiler.5.4.1 5.4.1"))
ocaml-compiler is now pinned to version 5.4.1
2026-03-25 09:16.14 ---> saved as "f4b660da30771b7b1a461bff9a9cd9660cd6e15a732652dcb402480373af6f3a"

/: (run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
        (network host)
        (shell  "opam reinstall --update-invariant ocaml-compiler.5.4.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 \"\\\"macos-homebrew\\\"\"; then\
               \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
               \n          fi;\
               \n          test \"$pkg\" != 'ocaml-compiler.5.4.1' && partial_fails=\"$partial_fails $pkg\";\
               \n        done;\
               \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
               \n        exit 1"))
ocaml-compiler.5.4.1 is not installed. Install it? [Y/n] y
The following actions will be performed:
=== upgrade 3 packages
  - upgrade ocaml               4.14.2 to 5.4.1 [uses ocaml-base-compiler]
  - upgrade ocaml-base-compiler 4.14.2 to 5.4.1 [uses ocaml-compiler]
  - upgrade ocaml-config        2 to 3          [uses ocaml-base-compiler]
=== install 4 packages
  - install base-domains        base
  - install base-effects        base
  - install base-nnp            base
  - install ocaml-compiler      5.4.1 (pinned)

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved ocaml-compiler.5.4.1  (cached)
-> retrieved ocaml-config.3  (cached)
-> removed   ocaml.4.14.2
-> removed   ocaml-config.2
-> removed   ocaml-base-compiler.4.14.2
-> installed ocaml-compiler.5.4.1
-> installed ocaml-base-compiler.5.4.1
-> installed ocaml-config.3
-> installed ocaml.5.4.1
-> installed base-domains.base
-> installed base-effects.base
-> installed base-nnp.base
[NOTE] Switch invariant was updated to ["ocaml-base-compiler" {= "5.4.1"} | "ocaml-system" {= "4.14.2"}]
       Use `opam switch set-invariant' to change it.
Done.
# To update the current shell environment, run: eval $(opam env)
2026-03-25 09:18.22 ---> saved as "0742b8b7853b89dc172f409e8ab28b0b9f03e854030306192a1f89967937724e"
Job succeeded
2026-03-25 09:18.30: Job succeeded