2024-04-05 08:11.19: New job: test ygrek/sqlgg https://github.com/ygrek/sqlgg.git#refs/pull/125/head (a8f666fc71a8d45a846b98af458153f694a59beb) (freebsd-x86_64:freebsd-5.1_opam-2.1)
Base: freebsd-ocaml-5.1
Opam project build
To reproduce locally:
git clone --recursive "https://github.com/ygrek/sqlgg.git" && cd "sqlgg" && git fetch origin "refs/pull/125/head" && git reset --hard a8f666fc
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM freebsd-ocaml-5.1
# freebsd-5.1_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 950c52962d34ab7507ecebe8cc7ef16fed0f292a || git fetch origin master) && git reset -q --hard 950c52962d34ab7507ecebe8cc7ef16fed0f292a && git log --no-decorate -n1 --oneline && opam update -u
COPY --chown=1000:1000 sqlgg.opam ./
RUN opam pin add -yn sqlgg.dev './'
ENV DEPS="base-bigarray.base base-domains.base base-nnp.base base-threads.base base-unix.base cppo.1.6.9 dune.3.15.0 extlib.1.7.9 menhir.20231231 menhirCST.20231231 menhirLib.20231231 menhirSdk.20231231 mybuild.6 ocaml.5.1.1 ocaml-base-compiler.5.1.1 ocaml-compiler-libs.v0.12.4 ocaml-config.3 ocaml-options-vanilla.1 ocamlbuild.0.14.3 ocamlfind.1.9.6 ounit.2.2.7 ounit2.2.2.7 ppx_derivers.1.2.1 ppx_deriving.5.2.1 ppxlib.0.32.0 result.1.5 seq.base sexplib0.v0.16.0 stdlib-shims.0.3.0"
ENV CI="true"
ENV OCAMLCI="true"
RUN opam update --depexts && opam install --cli=2.1 --depext-only -y sqlgg.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-04-05 08:11.19: Using cache hint "ygrek/sqlgg-freebsd-freebsd-ocaml-5.1-freebsd-5.1_opam-2.1-f423ac8ec371320a1234e7ece94090fc"
2024-04-05 08:11.19: Using OBuilder spec:
((from freebsd-ocaml-5.1)
(comment freebsd-5.1_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 950c52962d34ab7507ecebe8cc7ef16fed0f292a || git fetch origin master) && git reset -q --hard 950c52962d34ab7507ecebe8cc7ef16fed0f292a && git log --no-decorate -n1 --oneline && opam update -u"))
(copy (src sqlgg.opam) (dst ./))
(run (network host)
(shell "opam pin add -yn sqlgg.dev './'"))
(env DEPS "base-bigarray.base base-domains.base base-nnp.base base-threads.base base-unix.base cppo.1.6.9 dune.3.15.0 extlib.1.7.9 menhir.20231231 menhirCST.20231231 menhirLib.20231231 menhirSdk.20231231 mybuild.6 ocaml.5.1.1 ocaml-base-compiler.5.1.1 ocaml-compiler-libs.v0.12.4 ocaml-config.3 ocaml-options-vanilla.1 ocamlbuild.0.14.3 ocamlfind.1.9.6 ounit.2.2.7 ounit2.2.2.7 ppx_derivers.1.2.1 ppx_deriving.5.2.1 ppxlib.0.32.0 result.1.5 seq.base sexplib0.v0.16.0 stdlib-shims.0.3.0")
(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 sqlgg.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-04-05 08:11.19: Waiting for resource in pool OCluster
2024-04-05 08:11.19: Waiting for worker…
2024-04-05 09:58.43: Got resource from pool OCluster
Building on spring
All commits already cached
HEAD is now at a8f666f add coalesce tests
(from freebsd-ocaml-5.1)
2024-04-05 09:54.47 ---> using "813c71762ba09cfa8cfe3f05f009bdd39b1b347128fefd2e95099f87d236c989" from cache
/: (comment freebsd-5.1_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-04-05 09:54.49 ---> using "65a9b62d2493057013f99a47d1d57b6072f5b00406fb4bfea785e58388f6b852" 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-04-05 09:54.51 ---> using "e99a94697afa70d27199359988cb3c099e37a5c06ee07760e5a5921308c3119e" from cache
/src: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
FreeBSD 14.0-RELEASE-p5
The OCaml toplevel, version 5.1.1
2.1.5
2024-04-05 09:54.51 ---> using "ec35bf54fa4c1a8f744eebe8956e2d9e1f1f6379cf858b75ddefbabb954554fc" from cache
/src: (workdir /src)
/src: (run (shell "sudo chown opam /src"))
2024-04-05 09:54.52 ---> using "e452d16e32919148b58c7e1d1c9db9a6c0854da706cd5eb72487da563b728a13" from cache
/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e 950c52962d34ab7507ecebe8cc7ef16fed0f292a || git fetch origin master) && git reset -q --hard 950c52962d34ab7507ecebe8cc7ef16fed0f292a && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
* branch master -> FETCH_HEAD
69e073a577..9cbee1880f master -> origin/master
950c52962d [new release] dune (15 packages) (3.15.0)
<><> 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
However, you may "opam upgrade" these packages explicitly, which will ask permission to downgrade or uninstall the conflicting packages.
Nothing to do.
2024-04-05 09:54.54 ---> using "7004a958d53f89f94e2c4295939eee8863c01b6ca909e63a179822e7e3698cb8" from cache
/src: (copy (src sqlgg.opam) (dst ./))
2024-04-05 09:55.05 ---> saved as "a39e3df4870570cbde074f2f85bff938e154154c5139900694a5fb8167d8f76c"
/src: (run (network host)
(shell "opam pin add -yn sqlgg.dev './'"))
[sqlgg.dev] synchronised (file:///src)
sqlgg is now pinned to file:///src (version dev)
2024-04-05 09:55.19 ---> saved as "1b56d589ecede9393ea7745fb5753734e593bd174c5d23fcb16f5371d1b51903"
/src: (env DEPS "base-bigarray.base base-domains.base base-nnp.base base-threads.base base-unix.base cppo.1.6.9 dune.3.15.0 extlib.1.7.9 menhir.20231231 menhirCST.20231231 menhirLib.20231231 menhirSdk.20231231 mybuild.6 ocaml.5.1.1 ocaml-base-compiler.5.1.1 ocaml-compiler-libs.v0.12.4 ocaml-config.3 ocaml-options-vanilla.1 ocamlbuild.0.14.3 ocamlfind.1.9.6 ounit.2.2.7 ounit2.2.2.7 ppx_derivers.1.2.1 ppx_deriving.5.2.1 ppxlib.0.32.0 result.1.5 seq.base sexplib0.v0.16.0 stdlib-shims.0.3.0")
/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 sqlgg.dev $DEPS"))
[WARNING] Unknown update command for bsd, skipping system update
<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[sqlgg.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 3).
[NOTE] Package ocaml-base-compiler is already installed (current version is 5.1.1).
[NOTE] Package ocaml is already installed (current version is 5.1.1).
[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-nnp is already installed (current version is base).
[NOTE] Package base-domains 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 = 5
Constructing conflict graph...
Conflict graph has 8 + 6 = 14 vertices
2024-04-05 09:56.42 ---> saved as "9ef9e1e9e769340b46db792715a2be2c124d467f5fd1b3932adf94e501d57932"
/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 3).
[NOTE] Package ocaml-base-compiler is already installed (current version is 5.1.1).
[NOTE] Package ocaml is already installed (current version is 5.1.1).
[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-nnp is already installed (current version is base).
[NOTE] Package base-domains 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 dune 3.15.0
∗ install ocamlfind 1.9.6
∗ install seq base
∗ install stdlib-shims 0.3.0
∗ install sexplib0 v0.16.0
∗ install result 1.5
∗ install ppx_derivers 1.2.1
∗ install ocaml-compiler-libs v0.12.4
∗ install menhirSdk 20231231
∗ install menhirLib 20231231
∗ install menhirCST 20231231
∗ install cppo 1.6.9
∗ install mybuild 6
∗ install ounit2 2.2.7
∗ install ppxlib 0.32.0
∗ install menhir 20231231
∗ install extlib 1.7.9
∗ install ounit 2.2.7
∗ install ppx_deriving 5.2.1
===== ∗ 20 =====
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
⬇ retrieved cppo.1.6.9 (cached)
⬇ retrieved extlib.1.7.9 (cached)
⬇ retrieved menhir.20231231 (cached)
⬇ retrieved menhirCST.20231231 (cached)
⬇ retrieved menhirLib.20231231 (cached)
⬇ retrieved menhirSdk.20231231 (cached)
⬇ retrieved mybuild.6 (cached)
⬇ retrieved ocaml-compiler-libs.v0.12.4 (cached)
⬇ retrieved ocamlbuild.0.14.3 (cached)
⬇ retrieved ounit.2.2.7 (cached)
⬇ retrieved ocamlfind.1.9.6 (cached)
⬇ retrieved ppx_derivers.1.2.1 (cached)
⬇ retrieved ounit2.2.2.7 (cached)
⬇ retrieved ppx_deriving.5.2.1 (cached)
⬇ retrieved ppxlib.0.32.0 (cached)
∗ installed seq.base
⬇ retrieved sexplib0.v0.16.0 (cached)
⬇ retrieved result.1.5 (cached)
⬇ retrieved stdlib-shims.0.3.0 (cached)
⬇ retrieved dune.3.15.0 (cached)
∗ installed ocamlfind.1.9.6
∗ installed ocamlbuild.0.14.3
∗ installed mybuild.6
∗ installed dune.3.15.0
∗ installed menhirLib.20231231
∗ installed menhirCST.20231231
∗ installed cppo.1.6.9
∗ 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 ocaml-compiler-libs.v0.12.4
∗ installed extlib.1.7.9
∗ installed ounit2.2.2.7
∗ installed ounit.2.2.7
∗ installed ppxlib.0.32.0
∗ installed ppx_deriving.5.2.1
∗ installed menhir.20231231
Done.
2024-04-05 10:03.08 ---> saved as "a02d7169248d2068a87ba7bc8a7b3854c5a00af4509829af514e922650f456b4"
/src: (copy (src .) (dst /src))
2024-04-05 10:03.12 ---> saved as "60553685743078f90659f67554d26db52bd3ff62515bc9acf35c3b8116676e98"
/src: (run (shell "opam exec -- dune build @install @check @runtest && rm -rf _build"))
(cd _build/default/src && ./gen_version.exe version.ml)
fatal: not a git repository (or any of the parent directories): .git
(cd _build/default && /home/opam/.opam/5.1.1/bin/menhir lib/sql_parser.mly --base lib/sql_parser --infer-read-reply lib/sql_parser__mock.mli.inferred)
Warning: 26 states have shift/reduce conflicts.
Warning: 3 states have reduce/reduce conflicts.
Warning: 124 shift/reduce conflicts were arbitrarily resolved.
Warning: 17 reduce/reduce conflicts were arbitrarily resolved.
(cd _build/default && /home/opam/.opam/5.1.1/bin/ocamlc.opt -strict-sequence -strict-formats -short-paths -keep-locs -w +A@8-e-40-41-42-44-45-48-70 -g -bin-annot -I src/.cli.eobjs/byte -I /home/opam/.opam/5.1.1/lib/extlib -I /home/opam/.opam/5.1.1/lib/oUnit -I /home/opam/.opam/5.1.1/lib/ocaml/unix -I /home/opam/.opam/5.1.1/lib/ounit2 -I /home/opam/.opam/5.1.1/lib/ounit2/advanced -I /home/opam/.opam/5.1.1/lib/ppx_deriving/runtime -I /home/opam/.opam/5.1.1/lib/result -I /home/opam/.opam/5.1.1/lib/seq -I /home/opam/.opam/5.1.1/lib/stdlib-shims -I lib/.sqlgg.objs/byte -no-alias-deps -opaque -open Dune__exe -o src/.cli.eobjs/byte/dune__exe__Gen.cmo -c -impl src/gen.pp.ml)
File "src/gen.ml", line 25, characters 17-24:
25 | let output fmt = kprintf indent_endline fmt
^^^^^^^
Alert deprecated: Stdlib.Printf.kprintf
Use Printf.ksprintf instead.
File "src/gen.ml", line 27, characters 16-23:
27 | let print fmt = kprintf print_endline fmt
^^^^^^^
Alert deprecated: Stdlib.Printf.kprintf
Use Printf.ksprintf instead.
(cd _build/default && /home/opam/.opam/5.1.1/bin/ocamlc.opt -strict-sequence -strict-formats -short-paths -keep-locs -w +A@8-e-40-41-42-44-45-48-70 -g -bin-annot -I src/.cli.eobjs/byte -I /home/opam/.opam/5.1.1/lib/extlib -I /home/opam/.opam/5.1.1/lib/oUnit -I /home/opam/.opam/5.1.1/lib/ocaml/unix -I /home/opam/.opam/5.1.1/lib/ounit2 -I /home/opam/.opam/5.1.1/lib/ounit2/advanced -I /home/opam/.opam/5.1.1/lib/ppx_deriving/runtime -I /home/opam/.opam/5.1.1/lib/result -I /home/opam/.opam/5.1.1/lib/seq -I /home/opam/.opam/5.1.1/lib/stdlib-shims -I lib/.sqlgg.objs/byte -no-alias-deps -opaque -open Dune__exe -o src/.cli.eobjs/byte/dune__exe__Gen_cxx.cmo -c -impl src/gen_cxx.pp.ml)
File "src/gen_cxx.ml", line 30, characters 21-35:
30 | let comment () fmt = Printf.kprintf (indent_endline $ quote_comment_inline $ (^) "// ") fmt
^^^^^^^^^^^^^^
Alert deprecated: Stdlib.Printf.kprintf
Use Printf.ksprintf instead.
(cd _build/default && /home/opam/.opam/5.1.1/bin/ocamlc.opt -strict-sequence -strict-formats -short-paths -keep-locs -w +A@8-e-40-41-42-44-45-48-70 -g -bin-annot -I src/.cli.eobjs/byte -I /home/opam/.opam/5.1.1/lib/extlib -I /home/opam/.opam/5.1.1/lib/oUnit -I /home/opam/.opam/5.1.1/lib/ocaml/unix -I /home/opam/.opam/5.1.1/lib/ounit2 -I /home/opam/.opam/5.1.1/lib/ounit2/advanced -I /home/opam/.opam/5.1.1/lib/ppx_deriving/runtime -I /home/opam/.opam/5.1.1/lib/result -I /home/opam/.opam/5.1.1/lib/seq -I /home/opam/.opam/5.1.1/lib/stdlib-shims -I lib/.sqlgg.objs/byte -no-alias-deps -opaque -open Dune__exe -o src/.cli.eobjs/byte/dune__exe__Gen_caml.cmo -c -impl src/gen_caml.pp.ml)
File "src/gen_caml.ml", line 118, characters 21-35:
118 | let comment () fmt = Printf.kprintf (indent_endline $ make_comment) fmt
^^^^^^^^^^^^^^
Alert deprecated: Stdlib.Printf.kprintf
Use Printf.ksprintf instead.
(cd _build/default && /home/opam/.opam/5.1.1/bin/ocamlopt.opt -strict-sequence -strict-formats -short-paths -keep-locs -w +A@8-e-40-41-42-44-45-48-70 -g -I src/.cli.eobjs/byte -I src/.cli.eobjs/native -I /home/opam/.opam/5.1.1/lib/extlib -I /home/opam/.opam/5.1.1/lib/oUnit -I /home/opam/.opam/5.1.1/lib/ocaml/unix -I /home/opam/.opam/5.1.1/lib/ounit2 -I /home/opam/.opam/5.1.1/lib/ounit2/advanced -I /home/opam/.opam/5.1.1/lib/ppx_deriving/runtime -I /home/opam/.opam/5.1.1/lib/result -I /home/opam/.opam/5.1.1/lib/seq -I /home/opam/.opam/5.1.1/lib/stdlib-shims -I lib/.sqlgg.objs/byte -I lib/.sqlgg.objs/native -intf-suffix .ml -no-alias-deps -opaque -open Dune__exe -o src/.cli.eobjs/native/dune__exe__Gen.cmx -c -impl src/gen.pp.ml)
File "src/gen.ml", line 25, characters 17-24:
25 | let output fmt = kprintf indent_endline fmt
^^^^^^^
Alert deprecated: Stdlib.Printf.kprintf
Use Printf.ksprintf instead.
File "src/gen.ml", line 27, characters 16-23:
27 | let print fmt = kprintf print_endline fmt
^^^^^^^
Alert deprecated: Stdlib.Printf.kprintf
Use Printf.ksprintf instead.
(cd _build/default && /home/opam/.opam/5.1.1/bin/ocamlopt.opt -strict-sequence -strict-formats -short-paths -keep-locs -w +A@8-e-40-41-42-44-45-48-70 -g -I src/.cli.eobjs/byte -I src/.cli.eobjs/native -I /home/opam/.opam/5.1.1/lib/extlib -I /home/opam/.opam/5.1.1/lib/oUnit -I /home/opam/.opam/5.1.1/lib/ocaml/unix -I /home/opam/.opam/5.1.1/lib/ounit2 -I /home/opam/.opam/5.1.1/lib/ounit2/advanced -I /home/opam/.opam/5.1.1/lib/ppx_deriving/runtime -I /home/opam/.opam/5.1.1/lib/result -I /home/opam/.opam/5.1.1/lib/seq -I /home/opam/.opam/5.1.1/lib/stdlib-shims -I lib/.sqlgg.objs/byte -I lib/.sqlgg.objs/native -intf-suffix .ml -no-alias-deps -opaque -open Dune__exe -o src/.cli.eobjs/native/dune__exe__Gen_cxx.cmx -c -impl src/gen_cxx.pp.ml)
File "src/gen_cxx.ml", line 30, characters 21-35:
30 | let comment () fmt = Printf.kprintf (indent_endline $ quote_comment_inline $ (^) "// ") fmt
^^^^^^^^^^^^^^
Alert deprecated: Stdlib.Printf.kprintf
Use Printf.ksprintf instead.
(cd _build/default && /home/opam/.opam/5.1.1/bin/ocamlopt.opt -strict-sequence -strict-formats -short-paths -keep-locs -w +A@8-e-40-41-42-44-45-48-70 -g -I src/.cli.eobjs/byte -I src/.cli.eobjs/native -I /home/opam/.opam/5.1.1/lib/extlib -I /home/opam/.opam/5.1.1/lib/oUnit -I /home/opam/.opam/5.1.1/lib/ocaml/unix -I /home/opam/.opam/5.1.1/lib/ounit2 -I /home/opam/.opam/5.1.1/lib/ounit2/advanced -I /home/opam/.opam/5.1.1/lib/ppx_deriving/runtime -I /home/opam/.opam/5.1.1/lib/result -I /home/opam/.opam/5.1.1/lib/seq -I /home/opam/.opam/5.1.1/lib/stdlib-shims -I lib/.sqlgg.objs/byte -I lib/.sqlgg.objs/native -intf-suffix .ml -no-alias-deps -opaque -open Dune__exe -o src/.cli.eobjs/native/dune__exe__Gen_caml.cmx -c -impl src/gen_caml.pp.ml)
File "src/gen_caml.ml", line 118, characters 21-35:
118 | let comment () fmt = Printf.kprintf (indent_endline $ make_comment) fmt
^^^^^^^^^^^^^^
Alert deprecated: Stdlib.Printf.kprintf
Use Printf.ksprintf instead.
File "src/dune", line 25, characters 0-76:
25 | (rule
26 | (alias runtest)
27 | (deps ./cli.exe)
28 | (action
29 | (run ./cli.exe -test)))
(cd _build/default/src && ./cli.exe -test)
......................T.................................FFF
==============================================================================
Failure: main:9:coalesce doesn't infect null field woth nullability:1:SELECT COALESCE(field, NULL) AS field_not_null FROM tbl_test_coalesce
schema
expected: [{ name = "field_not_null"; domain = Int; extra = [] }]
but got: [{ name = "field_not_null"; domain = Int?; extra = [] }]
------------------------------------------------------------------------------
==============================================================================
Failure: main:9:coalesce doesn't infect null field woth nullability:0:CREATE TABLE tbl_test_coalesce ( field INT NOT NULL )
failed : Failure("table tbl_test_coalesce already exists")
Backtrace:
Raised at Stdlib.failwith in file "stdlib.ml", line 29, characters 17-33
Called from Sqlgg__Syntax.eval in file "lib/syntax.ml", line 409, characters 6-30
Called from Sqlgg__Syntax.parse in file "lib/syntax.ml", line 607, characters 25-54
Called from Dune__exe__Main.parse_one' in file "src/main.ml", line 13, characters 33-49
Called from Dune__exe__Main.parse_one in file "src/main.ml", line 35, characters 9-23
: CREATE TABLE tbl_test_coalesce ( field INT NOT NULL )
------------------------------------------------------------------------------
==============================================================================
Failure: main:8:coalesce knows first not null arg:1:SELECT COALESCE(field, 123, NULL, NULL, NUll) AS field_not_null FROM tbl_test_coalesce
schema
expected: [{ name = "field_not_null"; domain = Int; extra = [] }]
but got: [{ name = "field_not_null"; domain = Int?; extra = [] }]
------------------------------------------------------------------------------
Ran: 59 tests in: 0.07 seconds.
FAILED: Cases: 59 Tried: 59 Errors: 0 Failures: 3 Skip: 0 Todo: 1 Timeouts: 0.
Failed : CREATE TABLE tbl_test_coalesce ( field INT NOT NULL )
jail: /usr/bin/su -l opam -c cd '/src' && env OCAMLCI='true' CI='true' DEPS='base-bigarray.base base-domains.base base-nnp.base base-threads.base base-unix.base cppo.1.6.9 dune.3.15.0 extlib.1.7.9 menhir.20231231 menhirCST.20231231 menhirLib.20231231 menhirSdk.20231231 mybuild.6 ocaml.5.1.1 ocaml-base-compiler.5.1.1 ocaml-compiler-libs.v0.12.4 ocaml-config.3 ocaml-options-vanilla.1 ocamlbuild.0.14.3 ocamlfind.1.9.6 ounit.2.2.7 ounit2.2.2.7 ppx_derivers.1.2.1 ppx_deriving.5.2.1 ppxlib.0.32.0 result.1.5 seq.base sexplib0.v0.16.0 stdlib-shims.0.3.0' OPAMCOLOR='always' CLICOLOR_FORCE='1' '/usr/bin/env' 'bash' '-c' 'opam exec -- dune build @install @check @runtest && rm -rf _build': failed
"jail" "-c" "name=obuilder_34190_33909" "mount.devfs" "path=/obuilder/result/ebc0e12eadaac26428d844d81239658f48ec91278e63b52198f831e478f096e0/rootfs" "vnet" "exec.start=/sbin/ifconfig lo0 127.0.0.1/8" "command=/usr/bin/su" "-l" "opam" "-c" "cd '/src' && env OCAMLCI='true' CI='true' DEPS='base-bigarray.base base-domains.base base-nnp.base base-threads.base base-unix.base cppo.1.6.9 dune.3.15.0 extlib.1.7.9 menhir.20231231 menhirCST.20231231 menhirLib.20231231 menhirSdk.20231231 mybuild.6 ocaml.5.1.1 ocaml-base-compiler.5.1.1 ocaml-compiler-libs.v0.12.4 ocaml-config.3 ocaml-options-vanilla.1 ocamlbuild.0.14.3 ocamlfind.1.9.6 ounit.2.2.7 ounit2.2.2.7 ppx_derivers.1.2.1 ppx_deriving.5.2.1 ppxlib.0.32.0 result.1.5 seq.base sexplib0.v0.16.0 stdlib-shims.0.3.0' OPAMCOLOR='always' CLICOLOR_FORCE='1' '/usr/bin/env' 'bash' '-c' 'opam exec -- dune build @install @check @runtest && rm -rf _build'" failed with exit status 1
2024-04-05 10:08.21: Job failed: Failed: Build failed