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-4.14_opam-2.1)
Base: freebsd-ocaml-4.14
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-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 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-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.4.14.2 ocaml-base-compiler.4.14.2 ocaml-compiler-libs.v0.12.4 ocaml-config.2 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-4.14-freebsd-4.14_opam-2.1-3c756b985a20f4e454e53c7310a2b111"
2024-04-05 08:11.19: 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 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-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.4.14.2 ocaml-base-compiler.4.14.2 ocaml-compiler-libs.v0.12.4 ocaml-config.2 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 10:00.21: Got resource from pool OCluster
Building on spring
All commits already cached
HEAD is now at a8f666f add coalesce tests
(from freebsd-ocaml-4.14)
2024-04-05 09:56.22 ---> 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-04-05 09:56.22 ---> 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-04-05 09:56.23 ---> 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-04-05 09:56.23 ---> using "fa8577a82f6c8311031f5ac9ddbcefef5d36d0876493f17a1dc5aa96593235c6" from cache
/src: (workdir /src)
/src: (run (shell "sudo chown opam /src"))
2024-04-05 09:56.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 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
- 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-04-05 09:56.24 ---> using "9110f4bc0cec669535e443cdb127421586ce8a1561700f2e611e6a89c6eae6f0" from cache
/src: (copy (src sqlgg.opam) (dst ./))
2024-04-05 09:56.26 ---> saved as "be7c4934638d3fdbb045184658e8c06a64affd268ac0d9d998b15663e3fa26e4"
/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:56.35 ---> saved as "70c65a0ce89dc9c4ce50506f89f873a2cb4af9d07cb257afd331d85405eb38d0"
/src: (env DEPS "base-bigarray.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.4.14.2 ocaml-base-compiler.4.14.2 ocaml-compiler-libs.v0.12.4 ocaml-config.2 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 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 10 + 9 = 19 vertices
2024-04-05 09:58.43 ---> saved as "1939b2738f7fbb9dca1400586cbe0a92cdf270a23c3d345aed0d7d7cce1a39ff"
/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 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 ocamlbuild.0.14.3
∗ installed ocamlfind.1.9.6
∗ installed mybuild.6
∗ installed dune.3.15.0
∗ installed menhirLib.20231231
∗ installed menhirCST.20231231
∗ installed cppo.1.6.9
∗ installed stdlib-shims.0.3.0
∗ installed ppx_derivers.1.2.1
∗ installed result.1.5
∗ installed menhirSdk.20231231
∗ installed extlib.1.7.9
∗ installed sexplib0.v0.16.0
∗ installed ounit2.2.2.7
∗ installed ounit.2.2.7
∗ installed ocaml-compiler-libs.v0.12.4
∗ installed menhir.20231231
∗ installed ppxlib.0.32.0
∗ installed ppx_deriving.5.2.1
Done.
2024-04-05 10:06.51 ---> saved as "df52b387838b583669e4b24cfc478a0c74bfd0cb6e59720a464545806e77d38c"
/src: (copy (src .) (dst /src))
2024-04-05 10:06.56 ---> saved as "06cc2f8157617a0e5908bad4a7302150467275c79ca69e8943e78c79d84cb870"
/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/4.14.2/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.
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.10 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-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.4.14.2 ocaml-base-compiler.4.14.2 ocaml-compiler-libs.v0.12.4 ocaml-config.2 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_33928" "mount.devfs" "path=/obuilder/result/450ff4990c7b91aee20c1f10622d73c4eb3d41ddcd87ea0068c35b9cc1fec546/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-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.4.14.2 ocaml-base-compiler.4.14.2 ocaml-compiler-libs.v0.12.4 ocaml-config.2 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:11.18: Job failed: Failed: Build failed