(for PR #24884)

2024-04-17 19:59.51: New job: build sqlgg.20231201, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/24884/head (99ad1d7d48d9229d74a0974ecae3b1466253573e)
                              on oraclelinux-9-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/24884/head" && git reset --hard 99ad1d7d
git fetch origin master
git merge --no-edit f089d8564db935c703bea70a4b3d8335ffa1bef3
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:oraclelinux-9-ocaml-4.14@sha256:29b10cd4fe2fe0dfe3bb7de262865141bdfc0ca178754f80189e760929e2ca62
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-dev /usr/bin/opam
RUN opam init --reinit -ni
RUN uname -rs && opam exec -- ocaml -version && opam --version
ENV OPAMDOWNLOADJOBS="1"
ENV OPAMERRLOGLEN="0"
ENV OPAMSOLVERTIMEOUT="500"
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
ENV OPAMCRITERIA="-removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed"
ENV OPAMFIXUPCRITERIA="-removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed"
ENV OPAMUPGRADECRITERIA="-removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed"
RUN opam pin add -k version -yn sqlgg.20231201 20231201
RUN opam reinstall sqlgg.20231201; \
    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 "\"oraclelinux-9\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'sqlgg.20231201' && 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 .

2024-04-17 19:59.51: Using cache hint "ocaml/opam:oraclelinux-9-ocaml-4.14@sha256:29b10cd4fe2fe0dfe3bb7de262865141bdfc0ca178754f80189e760929e2ca62-sqlgg.20231201-99ad1d7d48d9229d74a0974ecae3b1466253573e"
2024-04-17 19:59.51: Using OBuilder spec:
((from ocaml/opam:oraclelinux-9-ocaml-4.14@sha256:29b10cd4fe2fe0dfe3bb7de262865141bdfc0ca178754f80189e760929e2ca62)
 (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 "uname -rs && opam exec -- ocaml -version && opam --version"))
 (env OPAMDOWNLOADJOBS 1)
 (env OPAMERRLOGLEN 0)
 (env OPAMSOLVERTIMEOUT 500)
 (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"))
 (env OPAMCRITERIA -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed)
 (env OPAMFIXUPCRITERIA -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed)
 (env OPAMUPGRADECRITERIA -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed)
 (run (shell "opam pin add -k version -yn sqlgg.20231201 20231201"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall sqlgg.20231201;\
             \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 \"\\\"oraclelinux-9\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'sqlgg.20231201' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2024-04-17 19:59.51: Waiting for resource in pool OCluster
2024-04-17 21:14.48: Waiting for worker…
2024-04-17 21:16.55: Got resource from pool OCluster
Building on x86-bm-c10.sw.ocaml.org
All commits already cached
Updating files:  45% (15262/33523)
Updating files:  46% (15421/33523)
Updating files:  47% (15756/33523)
Updating files:  48% (16092/33523)
Updating files:  49% (16427/33523)
Updating files:  50% (16762/33523)
Updating files:  51% (17097/33523)
Updating files:  52% (17432/33523)
Updating files:  53% (17768/33523)
Updating files:  54% (18103/33523)
Updating files:  55% (18438/33523)
Updating files:  56% (18773/33523)
Updating files:  57% (19109/33523)
Updating files:  58% (19444/33523)
Updating files:  59% (19779/33523)
Updating files:  60% (20114/33523)
Updating files:  61% (20450/33523)
Updating files:  62% (20785/33523)
Updating files:  63% (21120/33523)
Updating files:  64% (21455/33523)
Updating files:  65% (21790/33523)
Updating files:  66% (22126/33523)
Updating files:  67% (22461/33523)
Updating files:  68% (22796/33523)
Updating files:  69% (23131/33523)
Updating files:  70% (23467/33523)
Updating files:  71% (23802/33523)
Updating files:  72% (24137/33523)
Updating files:  73% (24472/33523)
Updating files:  74% (24808/33523)
Updating files:  75% (25143/33523)
Updating files:  76% (25478/33523)
Updating files:  77% (25813/33523)
Updating files:  78% (26148/33523)
Updating files:  79% (26484/33523)
Updating files:  80% (26819/33523)
Updating files:  81% (27154/33523)
Updating files:  82% (27489/33523)
Updating files:  83% (27825/33523)
Updating files:  84% (28160/33523)
Updating files:  85% (28495/33523)
Updating files:  86% (28830/33523)
Updating files:  87% (29166/33523)
Updating files:  87% (29471/33523)
Updating files:  88% (29501/33523)
Updating files:  89% (29836/33523)
Updating files:  90% (30171/33523)
Updating files:  91% (30506/33523)
Updating files:  92% (30842/33523)
Updating files:  93% (31177/33523)
Updating files:  94% (31512/33523)
Updating files:  95% (31847/33523)
Updating files:  96% (32183/33523)
Updating files:  97% (32518/33523)
Updating files:  98% (32853/33523)
Updating files:  99% (33188/33523)
Updating files: 100% (33523/33523)
Updating files: 100% (33523/33523), done.
HEAD is now at f089d8564d Merge pull request #25672 from gborough/opam-publish-fred.0.1.0
Merge made by the 'ort' strategy.
 packages/sqlgg/sqlgg.20231201/opam | 44 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)
 create mode 100644 packages/sqlgg/sqlgg.20231201/opam

(from ocaml/opam:oraclelinux-9-ocaml-4.14@sha256:29b10cd4fe2fe0dfe3bb7de262865141bdfc0ca178754f80189e760929e2ca62)
2024-04-17 21:16.59 ---> using "d67da15bb18562ccfe65720954de366c006a2d542cdb485bd7fef9dd23c234d6" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2024-04-17 21:16.59 ---> using "c010950140ff1527cc65b11c24defcceb9fc3ad6cd256976e436eb58e7583f31" 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 development version of opam requires an update to the layout of /home/opam/.opam from version 2.0 to version 2.2~alpha, 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 ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from file:///home/opam/opam-repository
2024-04-17 21:16.59 ---> using "0cd9de563a662ffdea5cea786aac2fd8099c4b4a290273279ad3e18e666844f6" from cache

/home/opam: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 5.15.0-102-generic
The OCaml toplevel, version 4.14.2
2.2.0~beta3~dev
2024-04-17 21:16.59 ---> using "d4ea75aec9f376d58175488a554df88dbcc39b0e7310c56806a97b9d397ec0a3" from cache

/home/opam: (env OPAMDOWNLOADJOBS 1)

/home/opam: (env OPAMERRLOGLEN 0)

/home/opam: (env OPAMSOLVERTIMEOUT 500)

/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/"))
2024-04-17 21:16.59 ---> using "7c388d1c53f94d5375b8be607241a24fe811d73f6277373f78e0bf855128d5d4" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2024-04-17 21:17.07 ---> saved as "da2d66357c78056c6fa7a03517d6221b561cdefc021a421aa7610a62bead85dd"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2024-04-17 21:18.10 ---> saved as "9f75a591c7485d0e20ef99cf33fbaf835660e3f63483825b0974caea5ab356ea"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "yum" "makecache"
- Oracle Linux 9 BaseOS Latest (x86_64)            75 kB/s | 3.6 kB     00:00    
- Oracle Linux 9 BaseOS Latest (x86_64)            55 MB/s |  23 MB     00:00    
- Oracle Linux 9 Application Stream Packages (x86  54 kB/s | 3.9 kB     00:00    
- Oracle Linux 9 Application Stream Packages (x86  42 MB/s |  30 MB     00:00    
- Last metadata expiration check: 0:00:05 ago on Wed Apr 17 21:18:16 2024.
- Metadata cache created.
2024-04-17 21:18.32 ---> saved as "a3bb4777d8207522d3665ef8316d5ee9dbd4f1f4b740c3216bc23881df1e5f23"

/home/opam: (env OPAMCRITERIA -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed)

/home/opam: (env OPAMFIXUPCRITERIA -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed)

/home/opam: (env OPAMUPGRADECRITERIA -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed)

/home/opam: (run (shell "opam pin add -k version -yn sqlgg.20231201 20231201"))
sqlgg is now pinned to version 20231201
2024-04-17 21:18.33 ---> saved as "36bb5ec9e4f18f13bf2cf3e6b7ff8242e3cc93262cb778813802c5161c8d3c04"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall sqlgg.20231201;\
                        \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 \"\\\"oraclelinux-9\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'sqlgg.20231201' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
sqlgg.20231201 is not installed. Install it? [y/n] y
The following actions will be performed:
=== install 21 packages
  - install cppo                1.6.9             [required by extlib, ppx_deriving]
  - install dune                3.15.0            [required by sqlgg]
  - install extlib              1.7.9             [required by sqlgg]
  - install menhir              20231231          [required by sqlgg]
  - install menhirCST           20231231          [required by menhir]
  - install menhirLib           20231231          [required by menhir]
  - install menhirSdk           20231231          [required by menhir]
  - install mybuild             6                 [required by sqlgg]
  - install ocaml-compiler-libs v0.12.4           [required by ppxlib]
  - install ocamlbuild          0.14.3            [required by mybuild]
  - install ocamlfind           1.9.6             [required by ounit, mybuild, ppx_deriving]
  - install ounit               2.2.7             [required by sqlgg]
  - install ounit2              2.2.7             [required by ounit]
  - install ppx_derivers        1.2.1             [required by ppx_deriving]
  - install ppx_deriving        5.2.1             [required by sqlgg]
  - install ppxlib              0.32.0            [required by ppx_deriving]
  - install result              1.5               [required by ppx_deriving]
  - install seq                 base              [required by ounit2]
  - install sexplib0            v0.16.0           [required by ppxlib]
  - install sqlgg               20231201 (pinned)
  - install stdlib-shims        0.3.0             [required by ounit2, ppxlib]

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved cppo.1.6.9  (cached)
-> retrieved dune.3.15.0  (cached)
-> retrieved extlib.1.7.9  (cached)
-> retrieved menhir.20231231, menhirCST.20231231, menhirLib.20231231, menhirSdk.20231231  (cached)
-> retrieved mybuild.6  (cached)
-> retrieved ocaml-compiler-libs.v0.12.4  (cached)
-> retrieved ocamlbuild.0.14.3  (cached)
-> retrieved ocamlfind.1.9.6  (cached)
-> retrieved ounit.2.2.7, ounit2.2.2.7  (cached)
-> retrieved ppx_derivers.1.2.1  (cached)
-> retrieved ppx_deriving.5.2.1  (cached)
-> retrieved ppxlib.0.32.0  (cached)
-> retrieved result.1.5  (cached)
-> installed seq.base
-> retrieved sexplib0.v0.16.0  (cached)
-> retrieved sqlgg.20231201  (https://ygrek.org/p/release/sqlgg/sqlgg-20231201.tar.gz)
-> retrieved stdlib-shims.0.3.0  (cached)
-> installed ocamlfind.1.9.6
-> installed ocamlbuild.0.14.3
-> installed mybuild.6
-> installed dune.3.15.0
-> installed menhirCST.20231231
-> installed ppx_derivers.1.2.1
-> installed stdlib-shims.0.3.0
-> installed result.1.5
-> installed menhirSdk.20231231
-> installed sexplib0.v0.16.0
-> installed menhirLib.20231231
-> installed cppo.1.6.9
-> installed ocaml-compiler-libs.v0.12.4
-> installed ounit2.2.2.7
-> installed ounit.2.2.7
-> installed extlib.1.7.9
-> installed menhir.20231231
-> installed ppxlib.0.32.0
-> installed ppx_deriving.5.2.1
-> installed sqlgg.20231201
Done.
# Run eval $(opam env) to update the current shell environment
2024-04-17 21:19.39 ---> saved as "5222e6ca2a293d2c98fffcc9e0cfaf30942cc03e81bb86998ffc61310ab9f6f2"
Job succeeded
2024-04-17 21:19.47: Job succeeded