(for PR #29905)

2026-05-15 01:13.06: New job: build agentxm-example-tinyflags.0.1.0, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/29905/head (0a9a9e446f8a18b3bae4e1f8506be6b7511fea3b)
                              on ubuntu-24.04-ocaml-5.4/riscv64

To reproduce locally:

cd $(mktemp -d)
git clone --recursive "https://github.com/ocaml/opam-repository.git" && cd "opam-repository" && git fetch origin "refs/pull/29905/head" && git reset --hard 0a9a9e44
git fetch origin master
git merge --no-edit adfd36b5d12830043a1f66dbf8d5a820e784fb8f
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:ubuntu-24.04-ocaml-5.4@sha256:9c17239897ac5d43b6c4fe123fee38324055b9b8e728853efc9934e47c78121c
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 agentxm-example-tinyflags.0.1.0 0.1.0
RUN opam reinstall agentxm-example-tinyflags.0.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 "\"ubuntu-24.04\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'agentxm-example-tinyflags.0.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-15 01:13.06: Using cache hint "ocaml/opam:ubuntu-24.04-ocaml-5.4@sha256:9c17239897ac5d43b6c4fe123fee38324055b9b8e728853efc9934e47c78121c-agentxm-example-tinyflags.0.1.0-0a9a9e446f8a18b3bae4e1f8506be6b7511fea3b"
2026-05-15 01:13.06: Using OBuilder spec:
((from ocaml/opam:ubuntu-24.04-ocaml-5.4@sha256:9c17239897ac5d43b6c4fe123fee38324055b9b8e728853efc9934e47c78121c)
 (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 agentxm-example-tinyflags.0.1.0 0.1.0"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall agentxm-example-tinyflags.0.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 \"\\\"ubuntu-24.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\" != 'agentxm-example-tinyflags.0.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-15 01:13.06: Waiting for resource in pool OCluster
2026-05-15 01:13.06: Waiting for worker…
2026-05-15 01:13.18: Got resource from pool OCluster
Building on riscv-bm-03.sw.ci.dev
Updating files:  14% (2580/17889)
Updating files:  15% (2684/17889)
Updating files:  16% (2863/17889)
Updating files:  17% (3042/17889)
Updating files:  18% (3221/17889)
Updating files:  19% (3399/17889)
Updating files:  20% (3578/17889)
Updating files:  21% (3757/17889)
Updating files:  22% (3936/17889)
Updating files:  23% (4115/17889)
Updating files:  24% (4294/17889)
Updating files:  25% (4473/17889)
Updating files:  26% (4652/17889)
Updating files:  27% (4831/17889)
Updating files:  27% (4924/17889)
Updating files:  28% (5009/17889)
Updating files:  29% (5188/17889)
Updating files:  30% (5367/17889)
Updating files:  31% (5546/17889)
Updating files:  32% (5725/17889)
Updating files:  33% (5904/17889)
Updating files:  34% (6083/17889)
Updating files:  35% (6262/17889)
Updating files:  36% (6441/17889)
Updating files:  37% (6619/17889)
Updating files:  38% (6798/17889)
Updating files:  39% (6977/17889)
Updating files:  40% (7156/17889)
Updating files:  40% (7203/17889)
Updating files:  41% (7335/17889)
Updating files:  42% (7514/17889)
Updating files:  43% (7693/17889)
Updating files:  44% (7872/17889)
Updating files:  45% (8051/17889)
Updating files:  46% (8229/17889)
Updating files:  47% (8408/17889)
Updating files:  48% (8587/17889)
Updating files:  49% (8766/17889)
Updating files:  50% (8945/17889)
Updating files:  51% (9124/17889)
Updating files:  52% (9303/17889)
Updating files:  53% (9482/17889)
Updating files:  53% (9487/17889)
Updating files:  54% (9661/17889)
Updating files:  55% (9839/17889)
Updating files:  56% (10018/17889)
Updating files:  57% (10197/17889)
Updating files:  58% (10376/17889)
Updating files:  59% (10555/17889)
Updating files:  60% (10734/17889)
Updating files:  61% (10913/17889)
Updating files:  62% (11092/17889)
Updating files:  63% (11271/17889)
Updating files:  64% (11449/17889)
Updating files:  64% (11450/17889)
Updating files:  65% (11628/17889)
Updating files:  66% (11807/17889)
Updating files:  67% (11986/17889)
Updating files:  68% (12165/17889)
Updating files:  69% (12344/17889)
Updating files:  70% (12523/17889)
Updating files:  71% (12702/17889)
Updating files:  72% (12881/17889)
Updating files:  73% (13059/17889)
Updating files:  74% (13238/17889)
Updating files:  75% (13417/17889)
Updating files:  76% (13596/17889)
Updating files:  76% (13667/17889)
Updating files:  77% (13775/17889)
Updating files:  78% (13954/17889)
Updating files:  79% (14133/17889)
Updating files:  80% (14312/17889)
Updating files:  81% (14491/17889)
Updating files:  82% (14669/17889)
Updating files:  83% (14848/17889)
Updating files:  84% (15027/17889)
Updating files:  85% (15206/17889)
Updating files:  86% (15385/17889)
Updating files:  87% (15564/17889)
Updating files:  88% (15743/17889)
Updating files:  89% (15922/17889)
Updating files:  89% (16014/17889)
Updating files:  90% (16101/17889)
Updating files:  91% (16279/17889)
Updating files:  92% (16458/17889)
Updating files:  93% (16637/17889)
Updating files:  94% (16816/17889)
Updating files:  95% (16995/17889)
Updating files:  96% (17174/17889)
Updating files:  97% (17353/17889)
Updating files:  98% (17532/17889)
Updating files:  99% (17711/17889)
Updating files:  99% (17787/17889)
Updating files: 100% (17889/17889)
Updating files: 100% (17889/17889), done.
HEAD is now at 96d040643e [new release] dune (18 packages) (3.23.1)
HEAD is now at adfd36b5d1 Merge pull request #29901 from ajbt200128/opam-publish-pyro-caml-instruments.1.0.0
Updating adfd36b5d1..0a9a9e446f
Fast-forward
 .../agentxm-example-tinyflags.0.1.0/opam           | 32 ++++++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 packages/agentxm-example-tinyflags/agentxm-example-tinyflags.0.1.0/opam

(from ocaml/opam:ubuntu-24.04-ocaml-5.4@sha256:9c17239897ac5d43b6c4fe123fee38324055b9b8e728853efc9934e47c78121c)
2026-05-15 01:13.42 ---> using "a1656590e14c2bbb99fe4e1542a3da93ebad2c61b82ad4f5c6c4160a00d2bddc" 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-15 01:13.42 ---> using "4806f51d6f3bc2de9a852ee769a60dd035fc363f7fc4d1b69a79ef932ac93a70" 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.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:///home/opam/opam-repository
2026-05-15 01:13.42 ---> using "439dd86dec9fb362937d89ecd37491a6b41d2c1253aee3730a3983fad21710a6" 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=riscv64 os=linux os-distribution=ubuntu os-version=24.04
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 3
# repositories         1 (version-controlled)
# pinned               1 (version)
# current-switch       5.4
# invariant            ["ocaml-base-compiler" {= "5.4.1"}]
# compiler-packages    ocaml-base-compiler.5.4.1, ocaml-compiler.5.4.1, 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.1
2026-05-15 01:13.42 ---> using "ecccf7bb651d479573ac3620ad3e4cc37024872068ff91cb1ae564765b117df5" 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-15 01:13.42 ---> using "5f4873b758d7510d073dee429b7f7d65809f0ec20e5be63a2abc8d4d24c6041f" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2026-05-15 01:14.09 ---> saved as "86298418ca415c3b6d27d01791abd38702a8400c30421b7f349ead249649ce95"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2026-05-15 01:15.02 ---> saved as "1e7b277f255ced4fd7e8d5fac532805773f1b2d9cf4d7e798d21bfbc5e73a8c0"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://ports.ubuntu.com/ubuntu-ports noble InRelease
- Get:2 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease [126 kB]
- Get:3 http://ports.ubuntu.com/ubuntu-ports noble-backports InRelease [126 kB]
- Get:4 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease [126 kB]
- Get:5 http://ports.ubuntu.com/ubuntu-ports noble-updates/main riscv64 Packages [970 kB]
- Get:6 http://ports.ubuntu.com/ubuntu-ports noble-updates/universe riscv64 Packages [1601 kB]
- Get:7 http://ports.ubuntu.com/ubuntu-ports noble-backports/universe riscv64 Packages [29.7 kB]
- Get:8 http://ports.ubuntu.com/ubuntu-ports noble-security/main riscv64 Packages [649 kB]
- Get:9 http://ports.ubuntu.com/ubuntu-ports noble-security/universe riscv64 Packages [1125 kB]
- Fetched 4753 kB in 2s (2019 kB/s)
- Reading package lists...
- 
2026-05-15 01:15.11 ---> saved as "0ac3395f3314068e9003f9c94905869160016790030cbea1c2a7754fca1dfc73"

/home/opam: (run (shell "opam pin add -k version -yn agentxm-example-tinyflags.0.1.0 0.1.0"))
agentxm-example-tinyflags is now pinned to version 0.1.0
2026-05-15 01:15.13 ---> saved as "eca9c0ab83794bc7e943219cf56ad4df81c873bd3b1dd0bceb087606a8974e5f"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall agentxm-example-tinyflags.0.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 \"\\\"ubuntu-24.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\" != 'agentxm-example-tinyflags.0.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"))
agentxm-example-tinyflags.0.1.0 is not installed. Install it? [Y/n] y
The following actions will be performed:
=== install 2 packages
  - install agentxm-example-tinyflags 0.1.0 (pinned)
  - install dune                      3.23.0         [required by agentxm-example-tinyflags]

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved agentxm-example-tinyflags.0.1.0  (https://github.com/agentxm/agentxm-example-tinyflags-ocaml/releases/download/v0.1.0/agentxm-example-tinyflags-0.1.0.tar.gz)
-> retrieved dune.3.23.0  (cached)
-> installed dune.3.23.0
-> installed agentxm-example-tinyflags.0.1.0
Done.
# To update the current shell environment, run: eval $(opam env)
2026-05-15 01:20.33 ---> saved as "7777c78b220e36853b0b6f05e4973c5d49d0dab9c90712ef6ed4d03900968cd9"
Job succeeded
2026-05-15 01:21.08: Job succeeded