Organisationsocaml-ppxocaml-syntax-shims38a6dd (master)(lint-fmt)

(lint-fmt)

Link Copied
Code Copied

Logs

2024-05-17 11:46.43: New job: test ocaml-ppx/ocaml-syntax-shims https://github.com/ocaml-ppx/ocaml-syntax-shims.git#refs/heads/master (38a6dd23543d9c4c3678fc6741962832fd539877) (linux-x86_64:(lint-fmt))
Base: ocaml/opam@sha256:434b29677edb35b6cb3940408299d70ed7b10632b1122e5b92902d4e32e0b260
ocamlformat version: version 0.12 (from opam)


To reproduce locally:


git clone --recursive "https://github.com/ocaml-ppx/ocaml-syntax-shims.git" -b "master" && cd "ocaml-syntax-shims" && git reset --hard 38a6dd23
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam@sha256:434b29677edb35b6cb3940408299d70ed7b10632b1122e5b92902d4e32e0b260
USER 1000:1000
RUN cd ~/opam-repository && (git cat-file -e 2275b400535e884d216047a092e70705139c9e41 || git fetch origin master) && git reset -q --hard 2275b400535e884d216047a092e70705139c9e41 && git log --no-decorate -n1 --oneline && opam update -u
RUN opam depext -i dune
WORKDIR /src
RUN opam depext -i ocamlformat=0.12
COPY --chown=1000:1000 . /src/
RUN opam exec -- dune build @fmt --ignore-promoted-rules || (echo "dune build @fmt failed"; exit 2)


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


2024-05-17 11:46.43: Using cache hint "ocaml-ppx/ocaml-syntax-shims-ocaml/opam@sha256:434b29677edb35b6cb3940408299d70ed7b10632b1122e5b92902d4e32e0b260-debian-12-4.06_opam-2.1-ocamlformat-2275b400535e884d216047a092e70705139c9e41"
2024-05-17 11:46.43: Using OBuilder spec:
((from ocaml/opam@sha256:434b29677edb35b6cb3940408299d70ed7b10632b1122e5b92902d4e32e0b260)
 (user (uid 1000) (gid 1000))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell "cd ~/opam-repository && (git cat-file -e 2275b400535e884d216047a092e70705139c9e41 || git fetch origin master) && git reset -q --hard 2275b400535e884d216047a092e70705139c9e41 && git log --no-decorate -n1 --oneline && opam update -u"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell "opam depext -i dune"))
 (workdir /src)
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell "opam depext -i ocamlformat=0.12"))
 (copy (src .) (dst /src/))
 (run (shell "opam exec -- dune build @fmt --ignore-promoted-rules || (echo \"dune build @fmt failed\"; exit 2)"))
)


2024-05-17 11:46.43: Waiting for resource in pool OCluster
2024-05-17 13:10.58: Waiting for worker…
2024-05-17 13:11.44: Got resource from pool OCluster
Building on asteria.caelum.ci.dev
All commits already cached
HEAD is now at 38a6dd2 update changelog


(from ocaml/opam@sha256:434b29677edb35b6cb3940408299d70ed7b10632b1122e5b92902d4e32e0b260)
2024-05-17 13:32.56 ---> using "892c338b589a62a59c59cff7a94a45d05cc552a424c9217d6aaf3ec3cf967845" from cache


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


/: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
        (network host)
        (shell "cd ~/opam-repository && (git cat-file -e 2275b400535e884d216047a092e70705139c9e41 || git fetch origin master) && git reset -q --hard 2275b400535e884d216047a092e70705139c9e41 && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
 * branch                  master     -> FETCH_HEAD
   d4fc3679e9..ec28f29e7d  master     -> origin/master
2275b40053 @dra27 maintains ocaml-secondary-compiler


<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from file:///home/opam/opam-repository
default (at file:///home/opam/opam-repository): 
    [INFO] opam 2.1 includes many performance improvements over 2.0; please consider upgrading (https://opam.ocaml.org/doc/Install.html)


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-17 13:32.56 ---> using "28c5edee80922e42b33e4503d2f6058b94cc9183e50792185b2a2185c29ad386" from cache


/: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
        (network host)
        (shell "opam depext -i dune"))
# Detecting depexts using vars: arch=x86_64, os=linux, os-distribution=debian, os-family=debian
# No extra OS packages requirements found.
# All required OS packages found.
# Now letting opam install the packages
The following actions will be performed:
  - install ocamlfind           1.9.6  [required by ocamlfind-secondary]
  - install ocamlfind-secondary 1.9.6  [required by dune]
  - install dune                3.15.2
===== 3 to install =====


<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[dune.3.15.2] found in cache
[ocamlfind.1.9.6] found in cache
[ocamlfind-secondary.1.9.6] found in cache


<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed ocamlfind.1.9.6
-> installed ocamlfind-secondary.1.9.6
-> installed dune.3.15.2
Done.
# Run eval $(opam env) to update the current shell environment
2024-05-17 13:32.56 ---> using "42c7f3d2eb22a3e3ed9ca25726451f7a970cfaf583789966d101fda4bbc8fad6" from cache


/: (workdir /src)


/src: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
           (network host)
           (shell "opam depext -i ocamlformat=0.12"))
# Detecting depexts using vars: arch=x86_64, os=linux, os-distribution=debian, os-family=debian
# No extra OS packages requirements found.
# All required OS packages found.
# Now letting opam install the packages
The following actions will be performed:
  - install   ocamlbuild              0.14.3          [required by fpath, uuseg]
  - install   cmdliner                1.0.4           [required by ocamlformat]
  - downgrade dune                    3.15.2 to 2.9.3 [required by ocamlformat]
  - install   topkg                   1.0.7           [required by fpath, uuseg]
  - install   sexplib0                v0.12.0         [required by base]
  - install   seq                     0.3.1           [required by tyxml]
  - install   result                  1.5             [required by ocaml-migrate-parsetree, odoc]
  - install   ppx_derivers            1.2.1           [required by ocaml-migrate-parsetree]
  - install   cppo                    1.6.9           [required by odoc]
  - install   uutf                    1.0.3           [required by ocamlformat]
  - install   astring                 0.8.5           [required by fpath, odoc]
  - install   base                    v0.12.0         [required by ocamlformat]
  - install   re                      1.11.0          [required by ocamlformat]
  - install   ocaml-migrate-parsetree 1.8.0           [required by ocamlformat]
  - install   uucp                    14.0.0          [required by uuseg]
  - install   fpath                   0.7.3           [required by ocamlformat]
  - install   stdio                   v0.12.0         [required by ocamlformat]
  - install   tyxml                   4.6.0           [required by odoc]
  - install   uuseg                   14.0.0          [required by ocamlformat]
  - install   odoc                    1.5.3           [required by ocamlformat]
  - install   ocamlformat             0.12
===== 20 to install | 1 to downgrade =====


<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[astring.0.8.5] found in cache
[base.v0.12.0] found in cache
[cmdliner.1.0.4] found in cache
[cppo.1.6.9] found in cache
[dune.2.9.3] found in cache
[fpath.0.7.3] found in cache
[ocaml-migrate-parsetree.1.8.0] found in cache
[ocamlbuild.0.14.3] found in cache
[odoc.1.5.3] found in cache
[ppx_derivers.1.2.1] found in cache
[re.1.11.0] found in cache
[result.1.5] found in cache
[seq.0.3.1] found in cache
[sexplib0.v0.12.0] found in cache
[stdio.v0.12.0] found in cache
[topkg.1.0.7] found in cache
[tyxml.4.6.0] found in cache
[uucp.14.0.0] found in cache
[uuseg.14.0.0] downloaded from https://erratique.ch/software/uuseg/releases/uuseg-14.0.0.tbz
[uutf.1.0.3] found in cache
[ocamlformat.0.12] downloaded from https://github.com/ocaml-ppx/ocamlformat/releases/download/0.12/ocamlformat-0.12.tbz


<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed cmdliner.1.0.4
-> installed ocamlbuild.0.14.3
-> installed topkg.1.0.7
-> installed uutf.1.0.3
-> installed astring.0.8.5
-> removed   dune.3.15.2
-> installed dune.2.9.3
-> installed fpath.0.7.3
-> installed ppx_derivers.1.2.1
-> installed result.1.5
-> installed seq.0.3.1
-> installed sexplib0.v0.12.0
-> installed cppo.1.6.9
-> installed re.1.11.0
-> installed tyxml.4.6.0
-> installed ocaml-migrate-parsetree.1.8.0
-> installed base.v0.12.0
-> installed odoc.1.5.3
-> installed stdio.v0.12.0
-> installed uucp.14.0.0
-> installed uuseg.14.0.0
-> installed ocamlformat.0.12
Done.
# Run eval $(opam env) to update the current shell environment
2024-05-17 13:32.56 ---> using "92c6da3ac69f3e80bc37ec9f3a00d61cb7d45fadcdd4c8224337ae83dd50f854" from cache


/src: (copy (src .) (dst /src/))
2024-05-17 13:32.56 ---> saved as "150f7a4d9e3c6e729c61cc026eba4a028111360d3c22edf3bfbad84100bae90c"


/src: (run (shell "opam exec -- dune build @fmt --ignore-promoted-rules || (echo \"dune build @fmt failed\"; exit 2)"))
 ocamlformat test/.formatted/test.ml (exit 1)
(cd _build/default && /home/opam/.opam/4.06/bin/ocamlformat --impl test/test.ml) > _build/default/test/.formatted/test.ml
ocamlformat: ignoring "test/test.ml" (syntax error)
File "test/test.ml", line 1, characters 6-9:
Error: Syntax error: operator expected.
dune build @fmt failed
"/usr/bin/env" "bash" "-c" "opam exec -- dune build @fmt --ignore-promoted-rules || (echo "dune build @fmt failed"; exit 2)" failed with exit status 2
2024-05-17 13:32.57: Job failed: Failed: Build failed