(for PR #27458)

2025-02-16 23:42.35: New job: test gettext-stub.0.5.0, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/27458/head (e73fb24dc0ddbf5840eab7d67368c66e6f23ddb9)
                              on debian-unstable-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/27458/head" && git reset --hard e73fb24d
git fetch origin master
git merge --no-edit a17a63ad3c59d7e1f745e87d85b858a34e0cda25
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-unstable-ocaml-4.14@sha256:21f7ef2086704d307bbd64e6f2db2a2a0d6acfe8156e6242d84c25a23344e472
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 gettext-stub.0.5.0 0.5.0
RUN opam reinstall gettext-stub.0.5.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-unstable\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'gettext-stub.0.5.0' && partial_fails="$partial_fails $pkg"; \
    done; \
    test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}"; \
    exit 1
RUN (opam reinstall --with-test gettext-stub.0.5.0) || true
RUN opam reinstall --with-test --verbose gettext-stub.0.5.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-unstable\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'gettext-stub.0.5.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 .

2025-02-16 23:42.35: Using cache hint "ocaml/opam:debian-unstable-ocaml-4.14@sha256:21f7ef2086704d307bbd64e6f2db2a2a0d6acfe8156e6242d84c25a23344e472-gettext-stub.0.5.0-e73fb24dc0ddbf5840eab7d67368c66e6f23ddb9"
2025-02-16 23:42.35: Using OBuilder spec:
((from ocaml/opam:debian-unstable-ocaml-4.14@sha256:21f7ef2086704d307bbd64e6f2db2a2a0d6acfe8156e6242d84c25a23344e472)
 (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 gettext-stub.0.5.0 0.5.0"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall gettext-stub.0.5.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-unstable\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'gettext-stub.0.5.0' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
 (run (network host)
      (shell "(opam reinstall --with-test gettext-stub.0.5.0) || true"))
 (run (shell  "opam reinstall --with-test --verbose gettext-stub.0.5.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-unstable\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'gettext-stub.0.5.0' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2025-02-16 23:42.35: Waiting for resource in pool OCluster
2025-02-16 23:42.39: Waiting for worker…
2025-02-16 23:47.16: Got resource from pool OCluster
Building on asteria.caelum.ci.dev
All commits already cached
Updating files:  94% (21984/23371)
Updating files:  95% (22203/23371)
Updating files:  96% (22437/23371)
Updating files:  97% (22670/23371)
Updating files:  98% (22904/23371)
Updating files:  99% (23138/23371)
Updating files: 100% (23371/23371)
Updating files: 100% (23371/23371), done.
HEAD is now at a17a63ad3c Merge pull request #27452 from chetmurthy/release-pcre2-ocaml-8.0.3
Updating a17a63ad3c..e73fb24dc0
Fast-forward
 .../gettext-camomile/gettext-camomile.0.5.0/opam   | 43 +++++++++++++++++
 packages/gettext-stub/gettext-stub.0.5.0/opam      | 50 ++++++++++++++++++++
 packages/gettext/gettext.0.5.0/opam                | 54 ++++++++++++++++++++++
 3 files changed, 147 insertions(+)
 create mode 100644 packages/gettext-camomile/gettext-camomile.0.5.0/opam
 create mode 100644 packages/gettext-stub/gettext-stub.0.5.0/opam
 create mode 100644 packages/gettext/gettext.0.5.0/opam

(from ocaml/opam:debian-unstable-ocaml-4.14@sha256:21f7ef2086704d307bbd64e6f2db2a2a0d6acfe8156e6242d84c25a23344e472)
Unable to find image 'ocaml/opam:debian-unstable-ocaml-4.14@sha256:21f7ef2086704d307bbd64e6f2db2a2a0d6acfe8156e6242d84c25a23344e472' locally
docker.io/ocaml/opam@sha256:21f7ef2086704d307bbd64e6f2db2a2a0d6acfe8156e6242d84c25a23344e472: Pulling from ocaml/opam
27215cebf293: Pulling fs layer
27215cebf293: Waiting
27215cebf293: Download complete
27215cebf293: Pull complete
Digest: sha256:21f7ef2086704d307bbd64e6f2db2a2a0d6acfe8156e6242d84c25a23344e472
Status: Downloaded newer image for ocaml/opam@sha256:21f7ef2086704d307bbd64e6f2db2a2a0d6acfe8156e6242d84c25a23344e472
2025-02-16 23:50.33 ---> saved as "729dcd90d4ce31b27389f374abba1050e3ea9e09667868f7b95d756cf47b57a2"

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2025-02-16 23:50.34 ---> saved as "0b5860551783cb0791a4d9dab838f1e7416b8648244b6c976bfb6a58c1fd0390"

/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 development 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 31 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=31 --global
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[opam-repository-archive] no changes from git+https://github.com/ocaml/opam-repository-archive
[default] synchronised from file:///home/opam/opam-repository
2025-02-16 23:51.41 ---> saved as "3e12b1a3ff1a27701e93c3cc8e2825ca7bba1ca4ff7e9122e7571896c80fdf91"

/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.4.0~alpha1~dev (747e73667ad9d054b0f736be205c0013e1bec087)
# self-upgrade         no
# system               arch=x86_64 os=linux os-distribution=debian os-version=unknown
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 255
# repositories         1 (local), 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
2025-02-16 23:51.43 ---> saved as "fd920bfb6827a63c2f58ed7b06a590e365e8941efe31e2672ee676d461fd4c2d"

/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/"))
2025-02-16 23:51.55 ---> saved as "f62830d4ca13289817ead795d698ddcc84506ddab36c39a72744069194972471"

/home/opam: (copy (src .) (dst opam-repository/))
2025-02-16 23:52.35 ---> saved as "8f4fea19fba54f98a95a5a3dd5ddae4e09e7ffb5dfdda97d09543d3f8ffde095"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-02-16 23:53.39 ---> saved as "a1c6b770fbb06e388a42cb279df3eed05a54ecd58d0f50c24b55dddb984b3df8"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Get:1 http://deb.debian.org/debian unstable InRelease [205 kB]
- Get:2 http://deb.debian.org/debian unstable/main amd64 Packages.diff/Index [63.6 kB]
- Get:3 http://deb.debian.org/debian unstable/main amd64 Packages T-2025-02-16-2015.54-F-2025-02-09-1438.19.pdiff [781 kB]
- Get:3 http://deb.debian.org/debian unstable/main amd64 Packages T-2025-02-16-2015.54-F-2025-02-09-1438.19.pdiff [781 kB]
- Fetched 1050 kB in 5s (211 kB/s)
- Reading package lists...
2025-02-16 23:53.45 ---> saved as "a5c07f971618a9dd81c825eb66bd7dc8b31ec28493c5a3f98885f738e370390d"

/home/opam: (run (shell "opam pin add -k version -yn gettext-stub.0.5.0 0.5.0"))
gettext-stub is now pinned to version 0.5.0
2025-02-16 23:53.47 ---> saved as "20f8a385f30045ae9e377434f17e8e2d2c68af786eab11f9f04573ba0368cb21"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall gettext-stub.0.5.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-unstable\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'gettext-stub.0.5.0' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
gettext-stub.0.5.0 is not installed. Install it? [Y/n] y
The following actions will be performed:
=== install 13 packages
  - install cppo              1.8.0          [required by gettext]
  - install csexp             1.5.2          [required by dune-configurator]
  - install dune              3.17.2         [required by gettext-stub]
  - install dune-configurator 3.17.2         [required by gettext-stub]
  - install dune-private-libs 3.17.2         [required by dune-site]
  - install dune-site         3.17.2         [required by gettext]
  - install dyn               3.17.2         [required by dune-private-libs]
  - install fileutils         0.6.6          [required by gettext]
  - install gettext           0.5.0          [required by gettext-stub]
  - install gettext-stub      0.5.0 (pinned)
  - install ordering          3.17.2         [required by dyn, stdune]
  - install pp                2.0.0          [required by dune-private-libs]
  - install stdune            3.17.2         [required by dune-private-libs]

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved cppo.1.8.0  (cached)
-> retrieved csexp.1.5.2  (cached)
-> retrieved dune.3.17.2, dune-configurator.3.17.2, dune-private-libs.3.17.2, dune-site.3.17.2, dyn.3.17.2, ordering.3.17.2, stdune.3.17.2  (cached)
-> retrieved fileutils.0.6.6  (cached)
-> retrieved gettext.0.5.0, gettext-stub.0.5.0  (cached)
-> retrieved pp.2.0.0  (cached)
-> installed dune.3.17.2
-> installed cppo.1.8.0
-> installed csexp.1.5.2
-> installed pp.2.0.0
-> installed fileutils.0.6.6
-> installed ordering.3.17.2
-> installed dune-configurator.3.17.2
-> installed dyn.3.17.2
-> installed stdune.3.17.2
-> installed dune-private-libs.3.17.2
-> installed dune-site.3.17.2
-> installed gettext.0.5.0
-> installed gettext-stub.0.5.0
Done.
# To update the current shell environment, run: eval $(opam env)
2025-02-16 23:54.42 ---> saved as "aa8c9ee43a7f48a166db5daf74920dcddae8e00f78306b6f06458b4dc4ffbdfe"

/home/opam: (run (network host)
                 (shell "(opam reinstall --with-test gettext-stub.0.5.0) || true"))
The following actions will be performed:
=== recompile 1 package
  - recompile gettext-stub 0.5.0 (pinned)
=== install 3 packages
  - install   ounit2       2.2.7          [required by gettext-stub]
  - install   seq          base           [required by ounit2]
  - install   stdlib-shims 0.3.0          [required by ounit2]

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved ounit2.2.2.7  (https://github.com/gildor478/ounit/releases/download/v2.2.7/ounit-2.2.7.tbz)
-> retrieved seq.base  (2 extra sources)
-> retrieved seq.base  (2 extra sources)
-> installed seq.base
-> retrieved stdlib-shims.0.3.0  (https://github.com/ocaml/stdlib-shims/releases/download/0.3.0/stdlib-shims-0.3.0.tbz)
-> removed   gettext-stub.0.5.0
-> installed stdlib-shims.0.3.0
-> installed ounit2.2.2.7
-> installed gettext-stub.0.5.0
Done.
# To update the current shell environment, run: eval $(opam env)
2025-02-16 23:54.52 ---> saved as "889821b4701850682a7a59d132a5a392c9814c0c1fe54450f24620578fc79dc6"

/home/opam: (run (shell  "opam reinstall --with-test --verbose gettext-stub.0.5.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-unstable\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'gettext-stub.0.5.0' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
The following actions will be performed:
=== recompile 1 package
  - recompile gettext-stub 0.5.0 (pinned)

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  2/4: [gettext-stub: dune build]
+ /home/opam/.opam/opam-init/hooks/sandbox.sh "build" "dune" "build" "-p" "gettext-stub" "-j" "255" "--promote-install-files=false" "@install" "@runtest" (CWD=/home/opam/.opam/4.14/.opam-switch/build/gettext-stub.0.5.0)
- (cd _build/default/test/test-stub && ./test.exe -test-dir ../testdata)
- ...................
- Ran: 19 tests in: 0.11 seconds.
- OK
Processing  2/4: [gettext-stub: dune install]
+ /home/opam/.opam/opam-init/hooks/sandbox.sh "build" "dune" "install" "-p" "gettext-stub" "--create-install-files" "gettext-stub" (CWD=/home/opam/.opam/4.14/.opam-switch/build/gettext-stub.0.5.0)
-> compiled  gettext-stub.0.5.0
-> removed   gettext-stub.0.5.0
-> installed gettext-stub.0.5.0
Done.
# To update the current shell environment, run: eval $(opam env)
2025-02-16 23:55.00 ---> saved as "7432bcc3c51a7e8a27dbb8293377492edb9429d3572361039f41147b47cae617"
Job succeeded
2025-02-16 23:55.22: Job succeeded