2024-05-10 09:27.29: New job: test mirage/eqaf https://github.com/mirage/eqaf.git#refs/heads/no-cstruct (788c584671732dca41a6096af45864c9cd46dbc1) (freebsd-x86_64:freebsd-4.14_opam-2.1)
Base: freebsd-ocaml-4.14
Opam project build
To reproduce locally:
git clone --recursive "https://github.com/mirage/eqaf.git" -b "no-cstruct" && cd "eqaf" && git reset --hard 788c5846
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM freebsd-ocaml-4.14
# freebsd-4.14_opam-2.1
USER 1000:1000
ENV CLICOLOR_FORCE="1"
ENV OPAMCOLOR="always"
WORKDIR /src
RUN sudo ln -f /usr/local/bin/opam-2.1 /usr/local/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 eqaf.opam eqaf-cstruct.opam ./
RUN opam pin add -yn eqaf.dev './' && \
opam pin add -yn eqaf-cstruct.dev './'
ENV DEPS="afl-persistent.1.4 alcotest.1.7.0 astring.0.8.5 base-bigarray.base base-bytes.base base-threads.base base-unix.base base64.3.5.1 bechamel.0.5.0 cmdliner.1.2.0 cppo.1.6.9 crowbar.0.2.1 cstruct.6.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 ocplib-endian.1.2 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 eqaf.dev eqaf-cstruct.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-10 09:27.29: Using cache hint "mirage/eqaf-freebsd-freebsd-ocaml-4.14-freebsd-4.14_opam-2.1-8a6289ec249568384c06a28646b70979"
2024-05-10 09:27.29: Using OBuilder spec:
((from freebsd-ocaml-4.14)
(comment freebsd-4.14_opam-2.1)
(user (uid 1000) (gid 1000))
(env CLICOLOR_FORCE 1)
(env OPAMCOLOR always)
(workdir /src)
(run (shell "sudo ln -f /usr/local/bin/opam-2.1 /usr/local/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 eqaf.opam eqaf-cstruct.opam) (dst ./))
(run (network host)
(shell "opam pin add -yn eqaf.dev './' && \
\nopam pin add -yn eqaf-cstruct.dev './'"))
(env DEPS "afl-persistent.1.4 alcotest.1.7.0 astring.0.8.5 base-bigarray.base base-bytes.base base-threads.base base-unix.base base64.3.5.1 bechamel.0.5.0 cmdliner.1.2.0 cppo.1.6.9 crowbar.0.2.1 cstruct.6.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 ocplib-endian.1.2 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 eqaf.dev eqaf-cstruct.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-10 09:27.29: Waiting for resource in pool OCluster
2024-05-10 13:50.40: Waiting for worker…
2024-05-10 15:56.47: Got resource from pool OCluster
Building on spring
All commits already cached
HEAD is now at 788c584 Split out eqaf and eqaf-cstruct
(from freebsd-ocaml-4.14)
2024-05-10 15:51.19 ---> using "57eeeabfec88366322a66f228a693df277d348dc99f1cc2a63749102c5e1e405" from cache
/: (comment freebsd-4.14_opam-2.1)
/: (user (uid 1000) (gid 1000))
/: (env CLICOLOR_FORCE 1)
/: (env OPAMCOLOR always)
/: (workdir /src)
/src: (run (shell "sudo ln -f /usr/local/bin/opam-2.1 /usr/local/bin/opam"))
2024-05-10 15:51.20 ---> using "e9fe3959c02c848d2766600d2fd363dc0faa291980b23311949b4972bc5ea188" from cache
/src: (run (shell "opam init --reinit -ni"))
No configuration file found, using 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.
<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] no changes from git+file:///home/opam/opam-repository
2024-05-10 15:51.21 ---> using "dba2ef0de478afdbd43a6552d310929f1c3c3ee6b86c81b7ff6f06256f6544c3" from cache
/src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
FreeBSD 14.0-RELEASE-p5
The OCaml toplevel, version 4.14.2
2.1.5
2024-05-10 15:51.23 ---> using "fa8577a82f6c8311031f5ac9ddbcefef5d36d0876493f17a1dc5aa96593235c6" from cache
/src: (workdir /src)
/src: (run (shell "sudo chown opam /src"))
2024-05-10 15:51.24 ---> using "1b1f323c7946b3615d1855d65edd6179caf157152d4670670539e49efbdc1d2e" 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
69e073a577..20baedeee4 master -> origin/master
307e33d08f @dra27 and @Octachron maintain the 4.08+ packages
<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from git+file:///home/opam/opam-repository
Constructing initial basis...
Everything as up-to-date as possible (run with --verbose to show unavailable upgrades).
The following packages are not being upgraded because the new versions conflict with other installed packages:
- ocaml.5.3.0
- ocaml-config.3
However, you may "opam upgrade" these packages explicitly, which will ask permission to downgrade or uninstall the conflicting packages.
Nothing to do.
2024-05-10 15:51.24 ---> using "8500110bb34f5fa0eecc8ffdce35dbb8d679b67af89bb1cba1cce8086b8f5e32" from cache
/src: (copy (src eqaf.opam eqaf-cstruct.opam) (dst ./))
2024-05-10 15:52.04 ---> saved as "82f3d22f4e7726ea5fa265d74706c05507bced7a6bdaf1421157a1d6cb8e82e9"
/src: (run (network host)
(shell "opam pin add -yn eqaf.dev './' && \
\nopam pin add -yn eqaf-cstruct.dev './'"))
[eqaf.dev] synchronised (file:///src)
eqaf is now pinned to file:///src (version dev)
Package eqaf-cstruct does not exist, create as a NEW package? [Y/n] y
[eqaf-cstruct.dev] synchronised (file:///src)
eqaf-cstruct is now pinned to file:///src (version dev)
2024-05-10 15:52.17 ---> saved as "fb192b175563316ee039e1d0b3b5215541464e704c04edcee778652046666f6f"
/src: (env DEPS "afl-persistent.1.4 alcotest.1.7.0 astring.0.8.5 base-bigarray.base base-bytes.base base-threads.base base-unix.base base64.3.5.1 bechamel.0.5.0 cmdliner.1.2.0 cppo.1.6.9 crowbar.0.2.1 cstruct.6.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 ocplib-endian.1.2 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 eqaf.dev eqaf-cstruct.dev $DEPS"))
[WARNING] Unknown update command for bsd, skipping system update
<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[eqaf-cstruct.dev] synchronised (no changes)
[eqaf.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).
Constructing initial basis...
Number of 0-1 knapsack inequalities = 3
Constructing conflict graph...
Conflict graph has 4 + 3 = 7 vertices
2024-05-10 15:53.03 ---> saved as "b8e110ba58d7aba2ad93531bc6a59ba3fe039566041385a310f748adffe3eb3a"
/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).
Constructing initial basis...
Number of 0-1 knapsack inequalities = 3
Constructing conflict graph...
Conflict graph has 4 + 3 = 7 vertices
The following actions will be performed:
∗ install ocamlbuild 0.14.3
∗ install cmdliner 1.2.0
∗ install ocamlfind 1.9.6
∗ install seq base
∗ install dune 3.15.2
∗ install topkg 1.0.7
∗ install base-bytes base
∗ install stdlib-shims 0.3.0
∗ install re 1.11.0
∗ install ocaml-syntax-shims 1.0.0
∗ install cppo 1.6.9
∗ install base64 3.5.1
∗ install afl-persistent 1.4
∗ install uutf 1.0.3
∗ install fmt 0.9.0
∗ install astring 0.8.5
∗ install ocplib-endian 1.2
∗ install cstruct 6.2.0
∗ install bechamel 0.5.0
∗ install alcotest 1.7.0
∗ install crowbar 0.2.1
===== ∗ 21 =====
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
⬇ retrieved afl-persistent.1.4 (cached)
⬇ retrieved astring.0.8.5 (cached)
⬇ retrieved base64.3.5.1 (cached)
⬇ retrieved bechamel.0.5.0 (cached)
⬇ retrieved cmdliner.1.2.0 (cached)
⬇ retrieved crowbar.0.2.1 (cached)
⬇ retrieved cppo.1.6.9 (cached)
⬇ retrieved cstruct.6.2.0 (cached)
⬇ retrieved dune.3.15.2 (cached)
⬇ retrieved ocaml-syntax-shims.1.0.0 (cached)
⬇ retrieved fmt.0.9.0 (cached)
⬇ retrieved ocamlbuild.0.14.3 (cached)
⬇ retrieved ocplib-endian.1.2 (cached)
⬇ retrieved ocamlfind.1.9.6 (cached)
∗ installed seq.base
⬇ retrieved stdlib-shims.0.3.0 (cached)
⬇ retrieved re.1.11.0 (cached)
⬇ retrieved topkg.1.0.7 (cached)
⬇ retrieved uutf.1.0.3 (cached)
⬇ retrieved alcotest.1.7.0 (cached)
∗ installed cmdliner.1.2.0
∗ installed ocamlfind.1.9.6
∗ installed base-bytes.base
∗ 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 base64.3.5.1
∗ installed stdlib-shims.0.3.0
∗ installed afl-persistent.1.4
∗ installed cstruct.6.2.0
∗ installed ocaml-syntax-shims.1.0.0
∗ installed cppo.1.6.9
∗ installed bechamel.0.5.0
∗ installed re.1.11.0
∗ installed ocplib-endian.1.2
∗ installed crowbar.0.2.1
∗ installed alcotest.1.7.0
Done.
<><> afl-persistent.1.4 installed successfully ><><><><><><><><><><><><><><><><>
=> afl-persistent is installed, but since the current OCaml compiler does
not enable AFL instrumentation by default, most packages will not be
instrumented and fuzzing with afl-fuzz may not be effective.
To globally enable AFL instrumentation, create an OCaml switch like:
opam switch create 4.14.2+afl ocaml-variants.4.14.2+options ocaml-option-afl
2024-05-10 15:56.20 ---> saved as "32681bbc1108d7f61c66db1000748ddb9db88a22885e85382154178c7039f75d"
/src: (copy (src .) (dst /src))
2024-05-10 15:56.21 ---> saved as "95c941baef0a55b5d4a96423d7373b290e2a2e3ecf8c2c42fcc3d2f352d45483"
/src: (run (shell "opam exec -- dune build @install @check @runtest && rm -rf _build"))
(cd _build/default/fuzz && ./fuzz.exe)
bool_of_int: PASS
select_a_if_in_range: PASS
uppercase_ascii: PASS
lowercase_ascii: PASS
divmod: PASS
hex_of_string |> string_of_hex: PASS
string_of_hex |> hex_of_string: PASS
equal: PASS
compare_le: PASS
compare_be: PASS
(cd _build/default/test && ./test_branch.exe)
[one_if_not_zero]: 4 operation(s).
[zero_if_not_zero]: 5 operation(s).
[select_int]: 7 operation(s).
[one_if_not_zero 0x7eadbeef]: 4.000000s.
[one_if_not_zero 0x0]: 4.000000s.
[zero_if_not_zero 0x7eadbeef]: 5.000000s.
[zero_if_not_zero 0x0]: 5.000000s.
[select_int 0 1 2]: 7.000000s.
[select_int 2 1 0]: 7.000000s.
(cd _build/default/test && ./test.exe --color=always)
Testing `eqaf'.
This run has ID `DPPA6AVL'.
[OK] be 0 be "a" "a" = 0.
[OK] be 1 be "a" "b" = -1.
[OK] be 2 be "b" "a" = 1.
[OK] be 3 be "aa" "ab" = -1.
[OK] be 4 be "aaa" "aba" = -1.
[OK] be 5 be "bbb" "abc" = 1.
[OK] be 6 be "bbb" "bbc" = -1.
[OK] be 7 be "bbb" "abb" = 1.
[OK] be 8 be "\0004\018" "\0003\018" ...
[OK] be 9 be "\0004\018" "\0003\153" ...
[OK] le 0 le "a" "a" = 0.
[OK] le 1 le "a" "b" = -1.
[OK] le 2 le "b" "a" = 1.
[OK] le 3 le "aa" "ab" = -1.
[OK] le 4 le "aaa" "aba" = -1.
[OK] le 5 le "bbb" "abc" = -1.
[OK] le 6 le "bbb" "bbc" = -1.
[OK] le 7 le "bbb" "abb" = 1.
[OK] le 8 le "\0004\018" "\0003\018" ...
[OK] le 9 le "\0004\018" "\0003\153" ...
[OK] exists 0 contains "a" a = true.
[OK] exists 1 contains "a" b = false.
[OK] exists 2 contains "abc" c = true.
[OK] exists 3 contains "abc" a = true.
[OK] exists 4 contains "abc" b = true.
[OK] exists 5 contains "abc" d = false.
[OK] find 0 index "a" a = 0.
[OK] find 1 index "a" b = -1.
[OK] find 2 index "aaaa" a = 0.
[OK] find 3 index "bbbb" a = -1.
[OK] find 4 index "aabb" b = 2.
[OK] find 5 index "aabb" a = 0.
[OK] find 6 index "aaab" b = 3.
[OK] int_of_bool 0 int_of_bool false = 0.
[OK] int_of_bool 1 int_of_bool true = 1.
[OK] bool_of_int 0 int_of_bool 0 = false.
[OK] bool_of_int 1 int_of_bool -1 = true.
[OK] bool_of_int 2 int_of_bool 2 = true.
[OK] bool_of_int 3 int_of_bool max_int = true.
[OK] bool_of_int 4 int_of_bool min_int = true.
[OK] bool_of_int 5 int_of_bool 1 = true.
[OK] select_a_if_in_range 0 select_a_if_in_range (0,3) ...
[OK] select_a_if_in_range 1 select_a_if_in_range (0,3) ...
[OK] select_a_if_in_range 2 select_a_if_in_range (0,3) ...
[OK] select_a_if_in_range 3 select_a_if_in_range (0,3) ...
[OK] select_a_if_in_range 4 select_a_if_in_range (0,3) ...
[OK] select_a_if_in_range 5 select_a_if_in_range (0,3) ...
[OK] select_a_if_in_range 6 select_a_if_in_range (0,0) ...
[OK] select_a_if_in_range 7 select_a_if_in_range (1,1) ...
[OK] select_a_if_in_range 8 select_a_if_in_range (1,1) ...
[OK] select_a_if_in_range 9 select_a_if_in_range (1,1) ...
[OK] select_a_if_in_range 10 select_a_if_in_range (0,0) ...
[OK] select_a_if_in_range 11 select_a_if_in_range (0,3) ...
[OK] select_a_if_in_range 12 select_a_if_in_range (0,3) ...
[OK] select_a_if_in_range 13 select_a_if_in_range (1,461...
[OK] select_a_if_in_range 14 select_a_if_in_range (1,461...
[OK] select_a_if_in_range 15 select_a_if_in_range (1,461...
[OK] select_a_if_in_range 16 select_a_if_in_range (1,461...
[OK] select_a_if_in_range 17 select_a_if_in_range (1,461...
[OK] select_a_if_in_range 18 select_a_if_in_range (1,461...
[OK] select_a_if_in_range 19 select_a_if_in_range (1,461...
[OK] select_a_if_in_range 20 select_a_if_in_range (1,461...
[OK] select_a_if_in_range 21 select_a_if_in_range (1,461...
[OK] select_a_if_in_range 22 select_a_if_in_range (0,461...
[OK] select_a_if_in_range 23 select_a_if_in_range (0,461...
[OK] select_a_if_in_range 24 select_a_if_in_range (0,461...
[OK] select_a_if_in_range 25 select_a_if_in_range (0,461...
[OK] divmod 0 divmod 1 / 2 = 0, 1 mod 2 ...
[OK] divmod 1 divmod 123 / 1 = 123, 123 ...
[OK] divmod 2 divmod 1 / 3 = 0, 1 mod 3 ...
[OK] divmod 3 divmod 2 / 3 = 0, 2 mod 3 ...
[OK] divmod 4 divmod 3 / 2 = 1, 3 mod 2 ...
[OK] divmod 5 divmod 10 / 6 = 1, 10 mod ...
[OK] divmod 6 divmod 10 / 4 = 2, 10 mod ...
[OK] divmod 7 divmod 1 / 2 = 0, 1 mod 2 ...
[OK] divmod 8 divmod 30 / 7 = 4, 30 mod ...
[OK] divmod 9 divmod 4 / 2 = 2, 4 mod 2 ...
[OK] divmod 10 divmod 1234567 / 1 = 12345...
[OK] divmod 11 divmod 1234567 / 10 = 1234...
[OK] divmod 12 divmod 1234567 / 100 = 123...
[OK] divmod 13 divmod 1234567 / 1000 = 12...
[OK] divmod 14 divmod 1234567 / 10000 = 1...
[OK] divmod 15 divmod 12345 / 100 = 123, ...
[OK] divmod 16 divmod 4294906420 / 1000 =...
[OK] divmod 17 divmod 1123456789 / 10000 ...
[OK] ascii_of_int32 0 ascii_of_string 6 12345678...
[OK] ascii_of_int32 1 ascii_of_string -1 1234 "0...
[OK] ascii_of_int32 2 ascii_of_string 1 9876 "6".
[OK] ascii_of_int32 3 ascii_of_string 4 0 "0000".
[OK] ascii_of_int32 4 ascii_of_string 6 1234 "00...
[OK] ascii_of_int32 5 ascii_of_string 0 1234 "".
[OK] string_of_hex 0 "2d2d486924" "--Hi$".
[OK] string_of_hex 1 "2D2d486924" "--Hi$".
[OK] string_of_hex 2 "1234" "\0184".
[OK] string_of_hex 3 "ff80" "\255\128".
[OK] string_of_hex 4 "b7DDdd" "\183\221\221".
[OK] string_of_hex 5 "808888Fd" "\128\136\136\...
[OK] string_of_hex 6 "E0EE8eEEEE" "\224\238\14...
[OK] string_of_hex 7 empty "" "".
[OK] hex_of_string 0 "--Hi$" "2d2d486924".
[OK] hex_of_string 1 "\0184" "1234".
[OK] hex_of_string 2 "\255\128" "ff80".
[OK] hex_of_string 3 "\183\255 " "b7ff20".
[OK] hex_of_string 4 "\000\001\000" "000100".
[OK] hex_of_string 5 empty "" "".
Full test results in `/src/_build/default/test/_build/_tests/eqaf'.
Test Successful in 0.010s. 105 tests run.
2024-05-10 15:56.57 ---> saved as "d4dbf32d7e8a35cb73a1cd1ced7488cf94be308c2a8ca4064e3c6861ee7d256b"
Job succeeded
2024-05-10 16:02.29: Job succeeded