(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 debian-13-ocaml-4.14-flambda-fp/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/29883/head" && git reset --hard e5ab047b
git fetch origin master
git merge --no-edit fc08333d1ba03c1ffbc960479a92aa94085c5f78
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-13-ocaml-4.14-flambda-fp@sha256:3aabd0a38bf37503333b271fc1b7c21cd317ad66b882bec7a00af222be2cdf70
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 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 "\"debian-13\""; 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 "ocaml/opam:debian-13-ocaml-4.14-flambda-fp@sha256:3aabd0a38bf37503333b271fc1b7c21cd317ad66b882bec7a00af222be2cdf70-lstar.1.0-e5ab047b033e89fa4026a3a78b062664a0cf8a36"
2026-05-08 18:45.20: Using OBuilder spec:
((from ocaml/opam:debian-13-ocaml-4.14-flambda-fp@sha256:3aabd0a38bf37503333b271fc1b7c21cd317ad66b882bec7a00af222be2cdf70)
 (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 lstar.1.0 1.0"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (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 \"\\\"debian-13\\\"\"; 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.24: Waiting for worker…
2026-05-08 18:45.24: Got resource from pool OCluster
Building on doris.caelum.ci.dev
All commits already cached
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 ocaml/opam:debian-13-ocaml-4.14-flambda-fp@sha256:3aabd0a38bf37503333b271fc1b7c21cd317ad66b882bec7a00af222be2cdf70)
Unable to find image 'ocaml/opam:debian-13-ocaml-4.14-flambda-fp@sha256:3aabd0a38bf37503333b271fc1b7c21cd317ad66b882bec7a00af222be2cdf70' locally
docker.io/ocaml/opam@sha256:3aabd0a38bf37503333b271fc1b7c21cd317ad66b882bec7a00af222be2cdf70: Pulling from ocaml/opam
3b32e3bb7338: Already exists
0a2047d92c36: Already exists
6468c8739f79: Already exists
dc1c52e586c3: Already exists
62b886ae38ec: Already exists
c217a15c852c: Already exists
1631c3f40e56: Already exists
fec1b7aa2529: Already exists
46c2f2e52299: Already exists
dfd625f9488b: Already exists
a92b2bbc3601: Already exists
21b06961f9ce: Already exists
56ea7bb8517a: Already exists
f88fa5fac715: Already exists
ef860ccaf48a: Already exists
7299894d19a3: Already exists
cfd8a5bbbbad: Already exists
458be87cd8e2: Already exists
d25c8303c40a: Already exists
0dd0c180412f: Already exists
3cce6b8d3022: Already exists
48811119dc00: Already exists
4f4fb700ef54: Already exists
9274adcd9010: Already exists
d7f1811cc461: Already exists
9883b0c98d0f: Already exists
9be0dcfb3ea0: Already exists
b64ebb6ea54f: Already exists
7f7a3980142e: Already exists
c4dd42c2d373: Already exists
bd37488f4682: Already exists
efaea8bd3292: Already exists
d08303018370: Already exists
ccb64fc6d165: Already exists
df5461936c45: Already exists
4ad6d8be4e6f: Already exists
ad49b5bd4234: Already exists
3cca9ef56161: Already exists
4917de64b7d3: Already exists
0ce36fc523dd: Already exists
ec347e98f03b: Already exists
813a307585e9: Pulling fs layer
701bbc0b3ba1: Pulling fs layer
ef95af7c9950: Pulling fs layer
d250d083c671: Pulling fs layer
d250d083c671: Waiting
813a307585e9: Waiting
ef95af7c9950: Waiting
701bbc0b3ba1: Waiting
701bbc0b3ba1: Verifying Checksum
701bbc0b3ba1: Download complete
813a307585e9: Verifying Checksum
813a307585e9: Download complete
d250d083c671: Verifying Checksum
d250d083c671: Download complete
ef95af7c9950: Verifying Checksum
ef95af7c9950: Download complete
813a307585e9: Pull complete
701bbc0b3ba1: Pull complete
ef95af7c9950: Pull complete
d250d083c671: Pull complete
Digest: sha256:3aabd0a38bf37503333b271fc1b7c21cd317ad66b882bec7a00af222be2cdf70
Status: Downloaded newer image for ocaml/opam@sha256:3aabd0a38bf37503333b271fc1b7c21cd317ad66b882bec7a00af222be2cdf70
2026-05-08 18:46.10 ---> using "c0f2be807bdc43b8dc6519e45c43e79a8a6915c53c439bbf005406db78408060" 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-05-08 18:46.10 ---> using "88c26809c51f0543503801776a66cec8272d1aa9da058298ecd798eb3a52df56" 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 71 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=71 --global
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
2026-05-08 18:46.10 ---> using "b820d9910ee93f109ac9736372de3ab15a7b3379f0686dce98721b73bdcd6dda" 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.1
# self-upgrade         no
# system               arch=x86_64 os=linux os-distribution=debian os-version=13
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 255
# repositories         1 (version-controlled)
# pinned               1 (version)
# current-switch       4.14
# invariant            ["ocaml-options-only-flambda-fp"]
# compiler-packages    ocaml-option-flambda.1, ocaml-option-fp.1, ocaml-options-only-flambda-fp.1, ocaml-variants.4.14.3+options
# 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.3+options+fp+flambda
2026-05-08 18:46.10 ---> using "f45a64ab7ae2413d625057e417b6a214869753f0a4bb8996791d9337f0fbd5f8" 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-05-08 18:46.10 ---> using "f007de4356c600228f48dc7bb406007673f67b92e982cdfd74adcbe23cb7f662" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2026-05-08 18:46.19 ---> saved as "a8da9c6161903a170de4211ba00b4837ccf6666e6c26b49523de4b1658fd564a"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2026-05-08 18:46.36 ---> saved as "decdb0e2a8ca89085419ac58ac2fa81f5a5c7643e2a30bdf646289dcede3667f"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://deb.debian.org/debian trixie InRelease
- Get:2 http://deb.debian.org/debian trixie-updates InRelease [47.3 kB]
- Get:3 http://deb.debian.org/debian-security trixie-security InRelease [43.4 kB]
- Get:4 http://deb.debian.org/debian-security trixie-security/main amd64 Packages [156 kB]
- Fetched 247 kB in 0s (1036 kB/s)
- Reading package lists...
2026-05-08 18:46.38 ---> saved as "308575a14ea38ca3adfc6874aca8972976e0aa05afc3ae9fd760935a2651bdaf"

/home/opam: (run (shell "opam pin add -k version -yn lstar.1.0 1.0"))
lstar is now pinned to version 1.0
2026-05-08 18:46.39 ---> saved as "fea82ef0e37745bd3135a93717c2e02e1e9c72e150b68ff3adeba3b6db4783f0"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (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 \"\\\"debian-13\\\"\"; 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 255 @install".

#=== ERROR while compiling lstar.1.0 ==========================================#
# context              2.5.1 | linux/x86_64 | ocaml-options-only-flambda-fp.1 | pinned(https://github.com/CharlesAverill/lstar-rocq/releases/download/v1.0/lstar-rocq-1.0.tbz)
# path                 ~/.opam/4.14/.opam-switch/build/lstar.1.0
# command              ~/.opam/opam-init/hooks/sandbox.sh build dune build -p lstar -j 255 @install
# exit-code            1
# env-file             ~/.opam/log/lstar-7-7da836.env
# output-file          ~/.opam/log/lstar-7-7da836.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:
    /usr/bin/opam switch import "/home/opam/.opam/4.14/.opam-switch/backup/state-20260508184639.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 "\"debian-13\""; 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 18:47.24: Job failed: Failed: Build failed
2026-05-08 18:47.24: Log analysis:
2026-05-08 18:47.24: >>> 
[ERROR] The compilation of lstar.1.0 failed at "dune build -p lstar -j 255 @install".
 (score = 20)
2026-05-08 18:47.24: >>> 
# Error: Program rocq not found in the tree or in PATH
 (score = 48)
2026-05-08 18:47.24: Program rocq not found in the tree or in PATH