(for PR #29883)

2026-05-08 18:45.20: New job: build lstar.1.0, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/29883/head (e5ab047b033e89fa4026a3a78b062664a0cf8a36)
                              on macos-homebrew-ocaml-5.4/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/29883/head" && git reset --hard e5ab047b
git fetch origin master
git merge --no-edit fc08333d1ba03c1ffbc960479a92aa94085c5f78
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM macos-homebrew-ocaml-5.4
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 lstar.1.0 1.0
RUN opam reinstall lstar.1.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 "\"macos-homebrew\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'lstar.1.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-05-08 18:45.20: Using cache hint "macos-homebrew-ocaml-5.4-lstar.1.0-e5ab047b033e89fa4026a3a78b062664a0cf8a36"
2026-05-08 18:45.20: Using OBuilder spec:
((from macos-homebrew-ocaml-5.4)
 (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 lstar.1.0 1.0"))
 (run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
      (network host)
      (shell  "opam reinstall lstar.1.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 \"\\\"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\" != 'lstar.1.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-05-08 18:45.20: Waiting for resource in pool OCluster
2026-05-08 18:45.20: Waiting for worker…
2026-05-08 19:15.14: Got resource from pool OCluster
Building on m1-worker-02
All commits already cached
Updating files:  70% (12510/17840)
Updating files:  71% (12667/17840)
Updating files:  72% (12845/17840)
Updating files:  73% (13024/17840)
Updating files:  74% (13202/17840)
Updating files:  75% (13380/17840)
Updating files:  76% (13559/17840)
Updating files:  77% (13737/17840)
Updating files:  78% (13916/17840)
Updating files:  79% (14094/17840)
Updating files:  80% (14272/17840)
Updating files:  81% (14451/17840)
Updating files:  82% (14629/17840)
Updating files:  83% (14808/17840)
Updating files:  84% (14986/17840)
Updating files:  85% (15164/17840)
Updating files:  86% (15343/17840)
Updating files:  87% (15521/17840)
Updating files:  88% (15700/17840)
Updating files:  89% (15878/17840)
Updating files:  90% (16056/17840)
Updating files:  91% (16235/17840)
Updating files:  92% (16413/17840)
Updating files:  93% (16592/17840)
Updating files:  94% (16770/17840)
Updating files:  95% (16948/17840)
Updating files:  96% (17127/17840)
Updating files:  97% (17305/17840)
Updating files:  98% (17484/17840)
Updating files:  99% (17662/17840)
Updating files: 100% (17840/17840)
Updating files: 100% (17840/17840), done.
HEAD is now at fc08333d1b Merge pull request #29875 from ocaml/mseri-patch-3
Updating fc08333d1b..e5ab047b03
Fast-forward
 packages/lstar-rocq/lstar-rocq.1.0/opam | 39 +++++++++++++++++++++++++++++++++
 packages/lstar/lstar.1.0/opam           | 38 ++++++++++++++++++++++++++++++++
 2 files changed, 77 insertions(+)
 create mode 100644 packages/lstar-rocq/lstar-rocq.1.0/opam
 create mode 100644 packages/lstar/lstar.1.0/opam

(from macos-homebrew-ocaml-5.4)
2026-05-08 19:15.16 ---> using "338135fbf1889e924a607b47198b8b308c32a925cc9436066d65a9bdc402cad5" from cache

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

/: (run (shell "ln -f ~/local/bin/opam-dev ~/local/bin/opam"))
2026-05-08 19:15.16 ---> using "7aa34524ca0a69b4a488c30909f7495a04a243f9066091b1dfe73b446b0dfcd3" 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-05-08 19:15.16 ---> using "91dcaa513ca3161d91620d0583acdea5310cd52ccab1dfbdd183600da37afdb2" 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       5.4.0
# invariant            ["ocaml-base-compiler" {= "5.4.0"} | "ocaml-system" {= "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       /Users/mac1000/.opam/5.4.0/lib/ocaml/stublibs:/Users/mac1000/.opam/5.4.0/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       5.4.0
2026-05-08 19:15.16 ---> using "cea1bfc0b1cda73d964aa2fc69cc828a6e6d8edd86f991754707e8b004a3cb09" 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-05-08 19:15.16 ---> using "e3eba35b672d86e69268bbb9214f23a1f9d1fb0787b4d803840af8d45829b222" from cache

/: (copy (src .) (dst opam-repository/))
2026-05-08 19:15.17 ---> using "7c374e4d6ed13ac0de8d6fb749a12344475261eb94fd4a46ae181f7d0102bfa1" from cache

/: (run (shell "opam repository set-url -k local --strict default opam-repository/"))
[default] Initialised
default (at file:///Users/mac1000/opam-repository): 
    [WARNING] opam is out-of-date. Please consider updating it (https://opam.ocaml.org/doc/Install.html)

default (at file:///Users/mac1000/opam-repository): 
    [INFO] opam 2.5.1 includes security fixes; please consider upgrading (https://opam.ocaml.org/doc/Install.html)

2026-05-08 19:15.18 ---> using "7f20849e1f340b74b32c3402545e85341c4865658025197e22aae287f892e189" 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:8ad98d9cf15477d1a43f4012cfd5eff5c271398bca1e2724b55bd4944a0bb1d4
- #=#=#                                                                          

                                                                           0.6%
- 
#                                                                          1.4%
#                                                                          2.3%
##                                                                         3.0%
##                                                                         3.8%
###                                                                        4.7%
###                                                                        5.5%
####                                                                       6.3%
#####                                                                      7.1%
#####                                                                      7.9%
######                                                                     8.7%
######                                                                     9.5%
- 
#######                                                                   10.4%
########                                                                  11.1%
########                                                                  12.0%
#########                                                                 12.8%
#########                                                                 13.6%
##########                                                                14.3%
##########                                                                15.2%
###########                                                               16.0%
############                                                              16.7%
############                                                              17.7%
#############                                                             18.5%
#############                                             
-           
-       19.2%
- 
##############                                                            20.0%
###############                                                           20.9%
###############                                                           21.7%
################                                                          22.6%
################                                                          23.3%
#################                                                         24.1%
##################                                                        25.0%
##################                                                        25.8%
###################                                                       26.6%
###################                                                       27.4%
- 
####################                                                      28.2%
####################                                                      29.0%
#####################                                                     29.7%
######################                                                    30.6%
######################                                                    31.4%
#######################                                                   32.3%
#######################                                                   33.1%
########################                                                  33.9%
########################                                                  34.6%
#########################                                                 35.4%
##########################                                                36.2%
##########################                                                37.1%
- 
###########################                                               37.9%
###########################                                               38.7%
############################                                              39.5%
#############################                                             40.3%
#############################                                             41.1%
##############################                                            42.0%
##############################                                            42.7%
###############################                                           43.6%
###############################                                           44.4%
################################                                          45.2%
#################################                                         45.9%
- 
#################################                                         46.8%
##################################                                        47.7%
##################################                                        48.5%
###################################                                       49.2%
####################################                                      50.1%
####################################                                      50.9%
#####################################                                     51.7%
#####################################                                     52.5%
######################################                                    53.3%
######################################                                    54.1%
#######################################                                   54.9%
- 
########################################                                  55.8%
########################################                                  56.6%
#########################################                                 57.3%
#########################################                                 58.2%
##########################################                                59.0%
###########################################                               59.9%
###########################################                               60.7%
############################################                              61.4%
############################################                              62.2%
#############################################                             63.1%
##############################################                            64.0%
- 
##############################################                            64.8%
###############################################                           65.5%
###############################################                           66.3%
################################################                          67.2%
################################################                          68.0%
#################################################                         68.7%
##################################################                        69.6%
##################################################                        70.4%
###################################################                       71.2%
###################################################                       71.9%
####################################################                      73.0%
- 
#####################################################                     73.7%
#####################################################                     74.5%
######################################################                    75.4%
######################################################                    76.2%
#######################################################                   76.9%
#######################################################                   77.7%
########################################################                  78.6%
#########################################################                 79.4%
#########################################################                 80.3%
##########################################################                81.0%
##########################################################                81.8%
- 
###########################################################               82.7%
############################################################              83.4%
############################################################              84.2%
#############################################################             85.0%
#############################################################             85.9%
##############################################################            86.7%
##############################################################            87.5%
###############################################################           88.3%
################################################################          89.1%
################################################################          89.9%
#################################################################         90.7%
#################################################################         91.6%
- 
##################################################################        92.3%
###################################################################       93.1%
###################################################################       94.0%
####################################################################      94.8%
####################################################################      95.7%
#####################################################################     96.4%
#####################################################################     97.2%
######################################################################    98.1%
#######################################################################   99.0%
#######################################################################   99.8%
######################################################################## 100.0%
- ==> Pouring portable-ruby-4.0.3.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-05-08 19:15.18 ---> using "e1b86b60aea2fa2eec8f4abc620710ccb7ad44356debf5d6348aeb2ced7c55b5" from cache

/: (run (shell "opam pin add -k version -yn lstar.1.0 1.0"))
lstar is now pinned to version 1.0
2026-05-08 19:15.19 ---> saved as "67d47ad295f265fbaccda167e938463811196d2790258798efa8cf7a93fb8b14"

/: (run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
        (network host)
        (shell  "opam reinstall lstar.1.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 \"\\\"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\" != 'lstar.1.0' && partial_fails=\"$partial_fails $pkg\";\
               \n        done;\
               \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
               \n        exit 1"))
lstar.1.0 is not installed. Install it? [Y/n] y
The following actions will be performed:
=== install 2 packages
  - install dune  3.23.0       [required by lstar]
  - install lstar 1.0 (pinned)

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved dune.3.23.0  (cached)
-> retrieved lstar.1.0  (cached)
-> installed dune.3.23.0
[ERROR] The compilation of lstar.1.0 failed at "dune build -p lstar -j 7 @install".

#=== ERROR while compiling lstar.1.0 ==========================================#
# context              2.5.0 | macos/arm64 | ocaml-base-compiler.5.4.0 | pinned(https://github.com/CharlesAverill/lstar-rocq/releases/download/v1.0/lstar-rocq-1.0.tbz)
# path                 ~/.opam/5.4.0/.opam-switch/build/lstar.1.0
# command              ~/.opam/opam-init/hooks/sandbox.sh build dune build -p lstar -j 7 @install
# exit-code            1
# env-file             ~/.opam/log/lstar-49169-4eb01e.env
# output-file          ~/.opam/log/lstar-49169-4eb01e.out
### output ###
# File "lib/dune", lines 1-5, characters 0-138:
# 1 | (rocq.extraction
# 2 |  (prelude Extraction)
# 3 |  (extracted_modules Lstar Datatypes 
# 4 |     Language Specif ListLemmas List)
# 5 |  (theories Stdlib lstar))
# Error: Program rocq not found in the tree or in PATH
#  (context: default)
# Hint: opam install rocq-runtime



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build lstar 1.0
+- 
+- The following changes have been performed
| - install dune 3.23.0
+- 
# To update the current shell environment, run: eval $(opam env)

The former state can be restored with:
    /opt/homebrew/bin/opam switch import "/Users/mac1000/.opam/5.4.0/.opam-switch/backup/state-20260508191520.export"
[WARNING] OPAMCONFIRMLEVEL was ignored because CLI 2.0 was requested and it was introduced in 2.1.
[WARNING] OPAMCONFIRMLEVEL was ignored because CLI 2.0 was requested and it was introduced in 2.1.
"/usr/bin/env" "bash" "-c" "opam reinstall lstar.1.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 "\"macos-homebrew\""; then
            echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.";
          fi;
          test "$pkg" != 'lstar.1.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 1
2026-05-08 19:16.06: Job failed: Failed: Build failed
2026-05-08 19:16.06: Log analysis:
2026-05-08 19:16.06: >>> 
[ERROR] The compilation of lstar.1.0 failed at "dune build -p lstar -j 7 @install".
 (score = 20)
2026-05-08 19:16.06: >>> 
# Error: Program rocq not found in the tree or in PATH
 (score = 48)
2026-05-08 19:16.06: Program rocq not found in the tree or in PATH