2024-05-12 09:16.17: New job: test hannesm/duration https://github.com/hannesm/duration.git#refs/heads/main (6abe42ebe585a96f79eb91045911b9a73c1db19e) (linux-x86_64:fedora-38-4.14_opam-2.1)
Base: ocaml/opam@sha256:af80e7e7fbfba8b61627fd767c033b0281835ab451c56b3772aa6d21d6760101
Opam project build
To reproduce locally:
git clone --recursive "https://github.com/hannesm/duration.git" -b "main" && cd "duration" && git reset --hard 6abe42eb
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam@sha256:af80e7e7fbfba8b61627fd767c033b0281835ab451c56b3772aa6d21d6760101
# fedora-38-4.14_opam-2.1
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.1 /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 307e33d08fc4ccc1ea453ab45b0ead8ed574b97b || git fetch origin master) && git reset -q --hard 307e33d08fc4ccc1ea453ab45b0ead8ed574b97b && git log --no-decorate -n1 --oneline && opam update -u
COPY --chown=1000:1000 duration.opam ./
RUN opam pin add -yn duration.dev './'
ENV DEPS="alcotest.1.7.0 astring.0.8.5 base-bigarray.base base-threads.base base-unix.base cmdliner.1.2.0 dune.3.15.2 fmt.0.9.0 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-config.2 ocaml-options-vanilla.1 ocaml-syntax-shims.1.0.0 ocamlbuild.0.14.3 ocamlfind.1.9.6 re.1.11.0 seq.base stdlib-shims.0.3.0 topkg.1.0.7 uutf.1.0.3"
ENV CI="true"
ENV OCAMLCI="true"
RUN opam update --depexts && opam install --cli=2.1 --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
2024-05-12 09:16.17: Using cache hint "hannesm/duration-ocaml/opam@sha256:af80e7e7fbfba8b61627fd767c033b0281835ab451c56b3772aa6d21d6760101-fedora-38-4.14_opam-2.1-6af871df9bf64f6c926ade4b53c7bc1b"
2024-05-12 09:16.17: Using OBuilder spec:
((from ocaml/opam@sha256:af80e7e7fbfba8b61627fd767c033b0281835ab451c56b3772aa6d21d6760101)
(comment fedora-38-4.14_opam-2.1)
(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.1 /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 307e33d08fc4ccc1ea453ab45b0ead8ed574b97b || git fetch origin master) && git reset -q --hard 307e33d08fc4ccc1ea453ab45b0ead8ed574b97b && git log --no-decorate -n1 --oneline && opam update -u"))
(copy (src duration.opam) (dst ./))
(run (network host)
(shell "opam pin add -yn duration.dev './'"))
(env DEPS "alcotest.1.7.0 astring.0.8.5 base-bigarray.base base-threads.base base-unix.base cmdliner.1.2.0 dune.3.15.2 fmt.0.9.0 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-config.2 ocaml-options-vanilla.1 ocaml-syntax-shims.1.0.0 ocamlbuild.0.14.3 ocamlfind.1.9.6 re.1.11.0 seq.base stdlib-shims.0.3.0 topkg.1.0.7 uutf.1.0.3")
(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.1 --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"))
)
2024-05-12 09:16.17: Waiting for resource in pool OCluster
2024-05-12 09:16.18: Waiting for worker…
2024-05-12 09:16.46: Got resource from pool OCluster
Building on doris.caelum.ci.dev
All commits already cached
HEAD is now at 6abe42e changes for 0.2.1
(from ocaml/opam@sha256:af80e7e7fbfba8b61627fd767c033b0281835ab451c56b3772aa6d21d6760101)
2024-05-12 09:16.46 ---> using "c8fcc6f6743854d61e83ec532243b7842802baad10ad200a5e4b9d06496f1a39" from cache
/: (comment fedora-38-4.14_opam-2.1)
/: (user (uid 1000) (gid 1000))
/: (env CLICOLOR_FORCE 1)
/: (env OPAMCOLOR always)
/: (workdir /src)
/src: (run (network host)
(shell "sudo dnf install -y findutils"))
Fedora 38 - x86_64 - Updates 31 kB/s | 22 kB 00:00
Fedora 38 - x86_64 - Updates 6.5 MB/s | 13 MB 00:01
Fedora Modular 38 - x86_64 - Updates 172 kB/s | 24 kB 00:00
Package findutils-1:4.9.0-3.fc38.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
2024-05-12 09:16.46 ---> using "8beba12bb3916922dac18a983f8c02a7d9f23caa8afb5bc5a19fd1048fe329d5" from cache
/src: (run (shell "sudo ln -f /usr/bin/opam-2.1 /usr/bin/opam"))
2024-05-12 09:16.46 ---> using "5d300b83cf96ca53af026add7e9a34129e5ac42651d1a10dc71d685d8c3e3d45" 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.1, which can't be reverted.
You may want to back it up before going further.
Continue? [Y/n] y
Format upgrade done.
<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from file:///home/opam/opam-repository
2024-05-12 09:16.46 ---> using "c79e7ee7ff7f997a7ac1b5544316ab15ff19e6a9b213c801c392cfe13fe04112" from cache
/src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 5.15.0-101-generic
The OCaml toplevel, version 4.14.2
2.1.5
2024-05-12 09:16.46 ---> using "b544ab9d5c56fefcbaccb2287e4d3bf51f5345daffd3e33e36112d5d6149d003" from cache
/src: (workdir /src)
/src: (run (shell "sudo chown opam /src"))
2024-05-12 09:16.46 ---> using "ae835d1bf1a8feef001fcfff27f264df5f90171bf80aeb2de080852e08058f09" from cache
/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e 307e33d08fc4ccc1ea453ab45b0ead8ed574b97b || git fetch origin master) && git reset -q --hard 307e33d08fc4ccc1ea453ab45b0ead8ed574b97b && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
* branch master -> FETCH_HEAD
eb2dcab0d8..fec8ff50cd master -> origin/master
307e33d08f @dra27 and @Octachron maintain the 4.08+ packages
<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from 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, which will ask permission to downgrade or uninstall the conflicting packages.
Nothing to do.
# Run eval $(opam env) to update the current shell environment
2024-05-12 09:16.46 ---> using "d80d714ac192841249f5b9650e1856e759136932b0402aeba1a124719b560fb8" from cache
/src: (copy (src duration.opam) (dst ./))
2024-05-12 09:16.46 ---> saved as "2a183ccc8edb2761761132d0a1a91f069c3a03b084e8a6cf27a9c5f2ca8f3fba"
/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)
2024-05-12 09:16.47 ---> saved as "528e00e129d90e9156820826182f518df9961177d8074a7162df6396289fee2c"
/src: (env DEPS "alcotest.1.7.0 astring.0.8.5 base-bigarray.base base-threads.base base-unix.base cmdliner.1.2.0 dune.3.15.2 fmt.0.9.0 ocaml.4.14.2 ocaml-base-compiler.4.14.2 ocaml-config.2 ocaml-options-vanilla.1 ocaml-syntax-shims.1.0.0 ocamlbuild.0.14.3 ocamlfind.1.9.6 re.1.11.0 seq.base stdlib-shims.0.3.0 topkg.1.0.7 uutf.1.0.3")
/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.1 --depext-only -y duration.dev $DEPS"))
+ /usr/bin/sudo "yum" "makecache"
- Fedora 38 - x86_64 200 kB/s | 26 kB 00:00
- Fedora 38 openh264 (From Cisco) - x86_64 9.6 kB/s | 989 B 00:00
- Fedora Modular 38 - x86_64 202 kB/s | 25 kB 00:00
- Fedora 38 - x86_64 - Updates 157 kB/s | 22 kB 00:00
- Fedora Modular 38 - x86_64 - Updates 185 kB/s | 24 kB 00:00
- Metadata cache created.
<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[duration.dev] synchronised (no changes)
[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.2).
[NOTE] Package ocaml is already installed (current version is 4.14.2).
[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).
2024-05-12 09:17.01 ---> saved as "11e9647c3816e145258192cbea84e118c4d5e82dffd39023114bef50cc4212bf"
/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.2).
[NOTE] Package ocaml is already installed (current version is 4.14.2).
[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 seq base
- install dune 3.15.2
- install ocamlbuild 0.14.3
- install cmdliner 1.2.0
- install ocamlfind 1.9.6
- install stdlib-shims 0.3.0
- install re 1.11.0
- install ocaml-syntax-shims 1.0.0
- install topkg 1.0.7
- install uutf 1.0.3
- install fmt 0.9.0
- install astring 0.8.5
- install alcotest 1.7.0
===== 13 to install =====
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved astring.0.8.5 (cached)
-> retrieved alcotest.1.7.0 (cached)
-> retrieved cmdliner.1.2.0 (cached)
-> retrieved dune.3.15.2 (cached)
-> retrieved fmt.0.9.0 (cached)
-> retrieved ocaml-syntax-shims.1.0.0 (cached)
-> retrieved ocamlbuild.0.14.3 (cached)
-> installed seq.base
-> retrieved ocamlfind.1.9.6 (cached)
-> retrieved re.1.11.0 (cached)
-> retrieved stdlib-shims.0.3.0 (cached)
-> retrieved topkg.1.0.7 (cached)
-> retrieved uutf.1.0.3 (cached)
-> installed cmdliner.1.2.0
-> installed ocamlfind.1.9.6
-> installed ocamlbuild.0.14.3
-> installed topkg.1.0.7
-> installed uutf.1.0.3
-> installed fmt.0.9.0
-> installed astring.0.8.5
-> installed dune.3.15.2
-> installed stdlib-shims.0.3.0
-> installed re.1.11.0
-> installed ocaml-syntax-shims.1.0.0
-> installed alcotest.1.7.0
Done.
# Run eval $(opam env) to update the current shell environment
2024-05-12 09:17.38 ---> saved as "fc88e0845c8246ed5dc175979a29833f154d49c353a776c6222a4e9933c08751"
/src: (copy (src .) (dst /src))
2024-05-12 09:17.38 ---> saved as "f1f216ec3eaf9d7c9a7309d6f3c6c6e9660d68a485b30c3e94ebb5c6d8ba32bc"
/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 `8HODISC8'.
[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.
Full test results in `/src/_build/default/_build/_tests/Duration tests'.
Test Successful in 0.002s. 33 tests run.
2024-05-12 09:17.39 ---> saved as "df91a70280b36bce29e826de79c312dee966011c5e4245741a1185e0ef2e8e50"
Job succeeded
2024-05-12 09:17.40: Job succeeded