Organisationshannesmduration0b278a ()fedora-43-4.14_opam-2.5

fedora-43-4.14_opam-2.5

Logs

Show full logs
2026-04-16 16:38.37: New job: test hannesm/duration https://github.com/hannesm/duration.git#refs/heads/main (0b278aa46102707d3c8b4633dd408862b30f6643) (linux-x86_64:fedora-43-4.14_opam-2.5)
Base: ocaml/opam:fedora-43-ocaml-4.14@sha256:f528d5f7ab638a3083ac221bc2e03d2e1e98a9fbf9a44997a87629aea78a4935
Opam project build

To reproduce locally:

git clone --recursive "https://github.com/hannesm/duration.git" -b "main" && cd "duration" && git reset --hard 0b278aa4
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:fedora-43-ocaml-4.14@sha256:f528d5f7ab638a3083ac221bc2e03d2e1e98a9fbf9a44997a87629aea78a4935
# fedora-43-4.14_opam-2.5
USER 1000:1000
ENV CLICOLOR_FORCE="1"
ENV OPAMCOLOR="always"
WORKDIR /src
RUN sudo dnf install -y findutils
RUN sudo ln -f /usr/bin/opam-2.5 /usr/bin/opam
RUN opam init --reinit -ni
RUN uname -rs && opam exec -- ocaml -version && opam --version
WORKDIR /src
RUN sudo chown opam /src
RUN cd ~/opam-repository && (git cat-file -e 5f7bb1a6e69f1ea15d8b2b08eeaa70a162c6fd41 || git fetch origin master) && git reset -q --hard 5f7bb1a6e69f1ea15d8b2b08eeaa70a162c6fd41 && git log --no-decorate -n1 --oneline && opam update -u
COPY --chown=1000:1000 duration.opam ./
RUN opam pin add -yn duration.dev './'
RUN echo '(lang dune 3.0)' > './dune-project'
ENV DEPS="alcotest.1.9.1 astring.0.8.5 base-bigarray.base base-threads.base base-unix.base cmdliner.2.1.0 dune.3.22.2 fmt.0.11.0 ocaml.4.14.3 ocaml-base-compiler.4.14.3 ocaml-config.2 ocaml-options-vanilla.1 ocaml-syntax-shims.1.0.0 ocamlbuild.0.16.1 ocamlfind.1.9.8 re.1.14.0 stdlib-shims.0.3.0 topkg.1.1.1 uutf.1.0.4"
ENV CI="true"
ENV OCAMLCI="true"
RUN opam update --depexts && opam install --cli=2.5 --depext-only -y duration.dev $DEPS
RUN opam install $DEPS
COPY --chown=1000:1000 . /src
RUN opam exec -- dune build @install @check @runtest && rm -rf _build

END-OF-DOCKERFILE
docker build .
END-REPRO-BLOCK

2026-04-16 16:38.37: Using cache hint "hannesm/duration-ocaml/opam:fedora-43-ocaml-4.14@sha256:f528d5f7ab638a3083ac221bc2e03d2e1e98a9fbf9a44997a87629aea78a4935-fedora-43-4.14_opam-2.5-97c0af7c5947e9b8f25ec09104c0f6ed"
2026-04-16 16:38.37: Using OBuilder spec:
((from ocaml/opam:fedora-43-ocaml-4.14@sha256:f528d5f7ab638a3083ac221bc2e03d2e1e98a9fbf9a44997a87629aea78a4935)
 (comment fedora-43-4.14_opam-2.5)
 (user (uid 1000) (gid 1000))
 (env CLICOLOR_FORCE 1)
 (env OPAMCOLOR always)
 (workdir /src)
 (run (network host)
      (shell "sudo dnf install -y findutils"))
 (run (shell "sudo ln -f /usr/bin/opam-2.5 /usr/bin/opam"))
 (run (shell "opam init --reinit -ni"))
 (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
 (workdir /src)
 (run (shell "sudo chown opam /src"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell "cd ~/opam-repository && (git cat-file -e 5f7bb1a6e69f1ea15d8b2b08eeaa70a162c6fd41 || git fetch origin master) && git reset -q --hard 5f7bb1a6e69f1ea15d8b2b08eeaa70a162c6fd41 && git log --no-decorate -n1 --oneline && opam update -u"))
 (copy (src duration.opam) (dst ./))
 (run (network host)
      (shell "opam pin add -yn duration.dev './'"))
 (run (shell "echo '(lang dune 3.0)' > './dune-project'"))
 (env DEPS "alcotest.1.9.1 astring.0.8.5 base-bigarray.base base-threads.base base-unix.base cmdliner.2.1.0 dune.3.22.2 fmt.0.11.0 ocaml.4.14.3 ocaml-base-compiler.4.14.3 ocaml-config.2 ocaml-options-vanilla.1 ocaml-syntax-shims.1.0.0 ocamlbuild.0.16.1 ocamlfind.1.9.8 re.1.14.0 stdlib-shims.0.3.0 topkg.1.1.1 uutf.1.0.4")
 (env CI true)
 (env OCAMLCI true)
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell "opam update --depexts && opam install --cli=2.5 --depext-only -y duration.dev $DEPS"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell "opam install $DEPS"))
 (copy (src .) (dst /src))
 (run (shell "opam exec -- dune build @install @check @runtest && rm -rf _build"))
)

2026-04-16 16:38.37: Waiting for resource in pool OCluster
2026-04-16 16:51.02: Waiting for worker…
2026-04-16 16:57.57: Got resource from pool OCluster
Building on asteria.caelum.ci.dev
All commits already cached
HEAD is now at 0b278aa changes for 0.3.0

(from ocaml/opam:fedora-43-ocaml-4.14@sha256:f528d5f7ab638a3083ac221bc2e03d2e1e98a9fbf9a44997a87629aea78a4935)
Unable to find image 'ocaml/opam:fedora-43-ocaml-4.14@sha256:f528d5f7ab638a3083ac221bc2e03d2e1e98a9fbf9a44997a87629aea78a4935' locally
docker.io/ocaml/opam@sha256:f528d5f7ab638a3083ac221bc2e03d2e1e98a9fbf9a44997a87629aea78a4935: Pulling from ocaml/opam
5bc90b3315da: Already exists
80d71788ea9e: Already exists
ad80df798a1c: Already exists
cd85517f6ae1: Already exists
a927948f92fa: Already exists
4433c52b5ab1: Already exists
8aa93bc8ca93: Already exists
7d31cd7e9a9b: Already exists
959a5be6bfab: Already exists
6569047248d7: Already exists
a01a3ff02f3d: Already exists
8b1106fd8e03: Already exists
61c97bcc90cd: Already exists
b9124a8b6c28: Already exists
d2c94cd49c4c: Already exists
0e63679d7dbc: Already exists
0e63679d7dbc: Already exists
6819a31cdb14: Already exists
1d67c4c09922: Already exists
3f456f1cc39a: Already exists
6afff2ae07da: Already exists
4f4fb700ef54: Already exists
90c294795090: Already exists
d7c6287626d1: Already exists
0e6719fd9f6d: Already exists
53830a3a67c9: Already exists
b407be133f08: Already exists
951a5932e150: Already exists
dcc0f382cd80: Already exists
d3cdec43bf88: Already exists
d69ff9f37121: Already exists
cfcfca2848c7: Already exists
08269f8e9f88: Already exists
3e59769da2fa: Already exists
a1004eb1842a: Already exists
3a6ed7e0720e: Already exists
5503bfbdb082: Already exists
4685c134845d: Already exists
67f122543075: Already exists
d60a75d560f5: Already exists
d18a54147636: Pulling fs layer
933e64a11ba6: Pulling fs layer
d18a54147636: Waiting
f36483d78a79: Pulling fs layer
35267044a36f: Pulling fs layer
933e64a11ba6: Waiting
75b654a3d9d2: Pulling fs layer
35267044a36f: Waiting
f36483d78a79: Waiting
75b654a3d9d2: Waiting
933e64a11ba6: Verifying Checksum
933e64a11ba6: Download complete
f36483d78a79: Download complete
75b654a3d9d2: Verifying Checksum
75b654a3d9d2: Download complete
35267044a36f: Verifying Checksum
35267044a36f: Download complete
d18a54147636: Verifying Checksum
d18a54147636: Download complete
d18a54147636: Pull complete
933e64a11ba6: Pull complete
f36483d78a79: Pull complete
35267044a36f: Pull complete
75b654a3d9d2: Pull complete
Digest: sha256:f528d5f7ab638a3083ac221bc2e03d2e1e98a9fbf9a44997a87629aea78a4935
Status: Downloaded newer image for ocaml/opam@sha256:f528d5f7ab638a3083ac221bc2e03d2e1e98a9fbf9a44997a87629aea78a4935
2026-04-16 17:02.31 ---> using "427db3f6677dae2b06058d8dcb2f7770b96873f6845d54b43f9e27571c659618" from cache

/: (comment fedora-43-4.14_opam-2.5)

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

/: (env CLICOLOR_FORCE 1)

/: (env OPAMCOLOR always)

/: (workdir /src)

/src: (run (network host)
           (shell "sudo dnf install -y findutils"))
Updating and loading repositories:
 Fedora 43 openh264 (From Cisco) - x86_ 100% |   1.2 KiB/s | 986.0   B |  00m01s
 Fedora 43 - x86_64 - Updates           100% |  25.9 KiB/s |  15.7 KiB |  00m01s
 Fedora 43 - x86_64                     100% |  42.9 KiB/s |  21.8 KiB |  00m01s
Repositories loaded.
Package "findutils-1:4.10.0-6.fc43.x86_64" is already installed.

Nothing to do.
2026-04-16 17:02.38 ---> using "1a8c422457ca43273c120d41b99eceaf5146711b71420e35a2bee4d81364b1a5" from cache

/src: (run (shell "sudo ln -f /usr/bin/opam-2.5 /usr/bin/opam"))
2026-04-16 17:02.38 ---> using "f67c481a1daa386f6430f66eef705f2c3e718af0cca248ff8d8a2fe5f109817f" from cache

/src: (run (shell "opam init --reinit -ni"))
Configuring from /home/opam/.opamrc and then 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
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[ERROR] Could not update repository "ocaml-patches-overlay": "/usr/sbin/git fetch -q" exited with code 128 "fatal: unable to access 'https://github.com/ocurrent/opam-repository/': Could not resolve host: github.com"
[default] Initialised
2026-04-16 17:02.41 ---> using "bc829d8a618f2e3092457d9785bca8fbf68fdeb24e20105fc3a383cae7a6c00a" from cache

/src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 6.8.0-107-generic
The OCaml toplevel, version 4.14.3
2.5.0
2026-04-16 17:02.41 ---> using "84ee295ef92075699b3be334bcafee05db7a203f6059e3b9b39cbe4faefef15a" from cache

/src: (workdir /src)

/src: (run (shell "sudo chown opam /src"))
2026-04-16 17:02.46 ---> using "5d31372e0e59d5a520b30695d22f10f0053c544e25e0f7f722eaf7806eb253db" from cache

/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
           (network host)
           (shell "cd ~/opam-repository && (git cat-file -e 5f7bb1a6e69f1ea15d8b2b08eeaa70a162c6fd41 || git fetch origin master) && git reset -q --hard 5f7bb1a6e69f1ea15d8b2b08eeaa70a162c6fd41 && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
 * branch                  master     -> FETCH_HEAD
   42844088d7..0b0acbee05  master     -> origin/master
5f7bb1a6e6 Merge pull request #29704 from shonfeder/release-dune-3.22.2

<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[ocaml-patches-overlay] no changes from git+https://github.com/ocurrent/opam-repository#patches
[default] synchronised from git+file:///home/opam/opam-repository

Everything as up-to-date as possible (run with --verbose to show unavailable upgrades).
However, you may "opam upgrade" these packages explicitly at these versions (e.g. "opam upgrade ocaml.5.5.0"), which will ask permission to downgrade or uninstall the conflicting packages.
Nothing to do.
# To update the current shell environment, run: eval $(opam env)
2026-04-16 17:02.48 ---> using "2ffbd0f12d6bab220d810a77516951f3543d88b8952e41766bdc149b5db32930" from cache

/src: (copy (src duration.opam) (dst ./))
2026-04-16 17:02.50 ---> using "81e3fb48c976c61e62e41bedf93db8b035092c10ff36686a6211ddf79a056b72" from cache

/src: (run (network host)
           (shell "opam pin add -yn duration.dev './'"))
[duration.dev] synchronised (file:///src)
duration is now pinned to file:///src (version dev)
2026-04-16 17:02.51 ---> using "6c24a4bf84aa8cf9cf323e7e93a431dc33e0f44fa0c09513fda01fd16f5a2eff" from cache

/src: (run (shell "echo '(lang dune 3.0)' > './dune-project'"))
2026-04-16 17:02.55 ---> using "92c656c3e5a0dc3a5638e0b7a5260b6f70af0cb34ddfec568fc115fa0b9ed63c" from cache

/src: (env DEPS "alcotest.1.9.1 astring.0.8.5 base-bigarray.base base-threads.base base-unix.base cmdliner.2.1.0 dune.3.22.2 fmt.0.11.0 ocaml.4.14.3 ocaml-base-compiler.4.14.3 ocaml-config.2 ocaml-options-vanilla.1 ocaml-syntax-shims.1.0.0 ocamlbuild.0.16.1 ocamlfind.1.9.8 re.1.14.0 stdlib-shims.0.3.0 topkg.1.1.1 uutf.1.0.4")

/src: (env CI true)

/src: (env OCAMLCI true)

/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
           (network host)
           (shell "opam update --depexts && opam install --cli=2.5 --depext-only -y duration.dev $DEPS"))
+ /usr/sbin/sudo "yum" "makecache"
- Updating and loading repositories:
- Repositories loaded.
- Metadata cache created.

<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[duration.dev] synchronised (file:///src)

[NOTE] Package ocaml-options-vanilla is already installed (current version is 1).
[NOTE] Package ocaml-config is already installed (current version is 2).
[NOTE] Package ocaml-base-compiler is already installed (current version is 4.14.3).
[NOTE] Package ocaml is already installed (current version is 4.14.3).
[NOTE] Package base-unix is already installed (current version is base).
[NOTE] Package base-threads is already installed (current version is base).
[NOTE] Package base-bigarray is already installed (current version is base).
# To update the current shell environment, run: eval $(opam env)
2026-04-16 17:02.55 ---> using "79fd2d31210302c8fe473e6ab97028c01eee11c8364bc7f152d639e3693b95c4" from cache

/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
           (network host)
           (shell "opam install $DEPS"))
[NOTE] Package ocaml-options-vanilla is already installed (current version is 1).
[NOTE] Package ocaml-config is already installed (current version is 2).
[NOTE] Package ocaml-base-compiler is already installed (current version is 4.14.3).
[NOTE] Package ocaml is already installed (current version is 4.14.3).
[NOTE] Package base-unix is already installed (current version is base).
[NOTE] Package base-threads is already installed (current version is base).
[NOTE] Package base-bigarray is already installed (current version is base).
The following actions will be performed:
=== install 12 packages
  - install alcotest           1.9.1
  - install astring            0.8.5
  - install cmdliner           2.1.0
  - install dune               3.22.2
  - install fmt                0.11.0
  - install ocaml-syntax-shims 1.0.0
  - install ocamlbuild         0.16.1
  - install ocamlfind          1.9.8
  - install re                 1.14.0
  - install stdlib-shims       0.3.0
  - install topkg              1.1.1
  - install uutf               1.0.4

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved alcotest.1.9.1  (cached)
-> retrieved astring.0.8.5  (cached)
-> retrieved cmdliner.2.1.0  (cached)
-> retrieved fmt.0.11.0  (cached)
-> retrieved ocaml-syntax-shims.1.0.0  (cached)
-> retrieved ocamlfind.1.9.8  (cached)
-> retrieved ocamlbuild.0.16.1  (cached)
-> retrieved re.1.14.0  (cached)
-> retrieved stdlib-shims.0.3.0  (cached)
-> retrieved uutf.1.0.4  (cached)
-> retrieved topkg.1.1.1  (cached)
-> retrieved dune.3.22.2  (cached)
-> installed cmdliner.2.1.0
-> installed ocamlbuild.0.16.1
-> installed ocamlfind.1.9.8
-> installed topkg.1.1.1
-> installed uutf.1.0.4
-> installed fmt.0.11.0
-> installed astring.0.8.5
-> installed dune.3.22.2
-> installed stdlib-shims.0.3.0
-> installed ocaml-syntax-shims.1.0.0
-> installed re.1.14.0
-> installed alcotest.1.9.1
Done.
# To update the current shell environment, run: eval $(opam env)
2026-04-16 17:03.04 ---> saved as "d1a63b18db991a2e8160145dae9ac1642c1ee6e800dcda9b285d2a058ddfdd10"

/src: (copy (src .) (dst /src))
2026-04-16 17:03.39 ---> saved as "6b82ab27f7ac67b6a4ed11914cc764934e1e0caeb54fbf6cd9162f7c364bc694"

/src: (run (shell "opam exec -- dune build @install @check @runtest && rm -rf _build"))
(cd _build/default && ./tests.exe)
Testing `Duration tests'.
This run has ID `ZR4H91AG'.

  [OK]          Duration          0   of_us is good.
  [OK]          Duration          1   to_us is good.
  [OK]          Duration          2   inverse of/to_us.
  [OK]          Duration          3   of_us is good.
  [OK]          Duration          4   to_us is good.
  [OK]          Duration          5   inverse of/to_us.
  [OK]          Duration          6   of_ms is good.
  [OK]          Duration          7   to_ms is good.
  [OK]          Duration          8   inverse of/to_ms.
  [OK]          Duration          9   of_ms is good.
  [OK]          Duration         10   to_ms is good.
  [OK]          Duration         11   inverse of/to_ms.
  [OK]          Duration         12   of_sec is good.
  [OK]          Duration         13   to_sec is good.
  [OK]          Duration         14   inverse of/to_sec.
  [OK]          Duration         15   of_sec is good.
  [OK]          Duration         16   to_sec is good.
  [OK]          Duration         17   inverse of/to_sec.
  [OK]          Duration         18   of_min is good.
  [OK]          Duration         19   to_min is good.
  [OK]          Duration         20   inverse of/to_min.
  [OK]          Duration         21   of_hour is good.
  [OK]          Duration         22   to_hour is good.
  [OK]          Duration         23   inverse of/to_hour.
  [OK]          Duration         24   of_day is good.
  [OK]          Duration         25   to_day is good.
  [OK]          Duration         26   inverse of/to_day.
  [OK]          Duration         27   of_year is good.
  [OK]          Duration         28   to_year is good.
  [OK]          Duration         29   inverse of/to_year.
  [OK]          Duration         30   of_f is good.
  [OK]          Duration         31   to_f is good.
  [OK]          Duration         32   inverse of/to_f.
  [OK]          Duration         33   of_string_exn.
  [OK]          Duration         34   of_string_exn: composite.
  [OK]          Duration         35   of_string_exn: duplicate metrics.
  [OK]          Duration         36   of_string_exn: invalid metric.
  [OK]          Duration         37   of_string_exn: malformed input.
  [OK]          Duration         38   of_string_exn: out of range.
  [OK]          Duration         39   of_string_exn: empty string.

Full test results in `/src/_build/default/_build/_tests/Duration tests'.
Test Successful in 0.003s. 40 tests run.
2026-04-16 17:03.54 ---> saved as "9d55daa9979791f3457acf1388a6ba7e7f98c22f2d7e32d6a3c62e3126522bbc"
Job succeeded
2026-04-16 17:04.09: Job succeeded