Organisationstalex5ocaml-cibaa59c (master)(lint-fmt)

(lint-fmt)

Link Copied
Code Copied

Logs

2024-05-10 22:06.54: New job: test talex5/ocaml-ci https://github.com/talex5/ocaml-ci.git#refs/heads/master (baa59cdca24f5a279e1a93f6aff044ec82521607) (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/talex5/ocaml-ci.git" -b "master" && cd "ocaml-ci" && git reset --hard baa59cdc
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam@sha256:434b29677edb35b6cb3940408299d70ed7b10632b1122e5b92902d4e32e0b260
USER 1000:1000
RUN cd ~/opam-repository && (git cat-file -e 7b9230f4e0f16686158b9465bda04972358c4375 || git fetch origin master) && git reset -q --hard 7b9230f4e0f16686158b9465bda04972358c4375 && 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-10 22:06.54: Using cache hint "talex5/ocaml-ci-ocaml/opam@sha256:434b29677edb35b6cb3940408299d70ed7b10632b1122e5b92902d4e32e0b260-debian-12-4.06_opam-2.1-ocamlformat-7b9230f4e0f16686158b9465bda04972358c4375"
2024-05-10 22:06.54: 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 7b9230f4e0f16686158b9465bda04972358c4375 || git fetch origin master) && git reset -q --hard 7b9230f4e0f16686158b9465bda04972358c4375 && 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-10 22:06.54: Waiting for resource in pool OCluster
2024-05-11 12:12.32: Waiting for worker…
2024-05-11 12:17.54: Got resource from pool OCluster
Building on x86-bm-c1.sw.ocaml.org
All commits already cached
Submodule path 'ocurrent': checked out '0445ecbacf1875ab3d43a730b51e77b14395deee'
HEAD is now at baa59cd Merge pull request #158 from talex5/opam-vars
Synchronizing submodule url for 'ocurrent'
Cleared directory 'ocurrent'
Submodule 'ocurrent' (https://github.com/ocurrent/ocurrent.git) unregistered for path 'ocurrent'
Submodule 'ocurrent' (https://github.com/ocurrent/ocurrent.git) registered for path 'ocurrent'
Submodule path 'ocurrent': checked out '0445ecbacf1875ab3d43a730b51e77b14395deee'


(from ocaml/opam@sha256:434b29677edb35b6cb3940408299d70ed7b10632b1122e5b92902d4e32e0b260)
Unable to find image 'ocaml/opam@sha256:434b29677edb35b6cb3940408299d70ed7b10632b1122e5b92902d4e32e0b260' locally
docker.io/ocaml/opam@sha256:434b29677edb35b6cb3940408299d70ed7b10632b1122e5b92902d4e32e0b260: Pulling from ocaml/opam
Digest: sha256:434b29677edb35b6cb3940408299d70ed7b10632b1122e5b92902d4e32e0b260
Status: Downloaded newer image for ocaml/opam@sha256:434b29677edb35b6cb3940408299d70ed7b10632b1122e5b92902d4e32e0b260
2024-05-11 12:19.16 ---> saved as "892c338b589a62a59c59cff7a94a45d05cc552a424c9217d6aaf3ec3cf967845"


/: (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 7b9230f4e0f16686158b9465bda04972358c4375 || git fetch origin master) && git reset -q --hard 7b9230f4e0f16686158b9465bda04972358c4375 && git log --no-decorate -n1 --oneline && opam update -u"))
7b9230f4e0 Mark ocamlbuild.0.14.3 as not available on Windows


<><> 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-11 12:21.12 ---> saved as "266f8a82e90e9d027b6b9c0cc9d082e39927ecf9f4f00492bdbd0f35ba811c14"


/: (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.12.1
===== 3 to install =====


<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[dune.3.12.1] 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.12.1
Done.
# Run eval $(opam env) to update the current shell environment
2024-05-11 12:23.12 ---> saved as "61bcd023c0eb6ae7a96b3f6ae80d32532209e53bf94a5a2712751516a16282be"


/: (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.12.1 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
[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
[base.v0.12.0] downloaded from https://ocaml.janestreet.com/ocaml-core/v0.12/files/base-v0.12.0.tar.gz
[odoc.1.5.3] found in cache
[ppx_derivers.1.2.1] found in cache
[ocamlformat.0.12] downloaded from https://github.com/ocaml-ppx/ocamlformat/releases/download/0.12/ocamlformat-0.12.tbz
[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] found in cache
[uutf.1.0.3] found in cache


<><> 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.12.1
-> 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 uucp.14.0.0
-> installed stdio.v0.12.0
-> installed uuseg.14.0.0
-> installed ocamlformat.0.12
Done.
# Run eval $(opam env) to update the current shell environment
2024-05-11 12:26.01 ---> saved as "01c9ab86025922b3ee76f14cb40cbdc59346017db9e042425d5fb7bc87b451d9"


/src: (copy (src .) (dst /src/))
2024-05-11 12:26.02 ---> saved as "9c26c35788a47511a5a5cb92db3a10f8b7265b963e84f2fc51e38da7a998b518"


/src: (run (shell "opam exec -- dune build @fmt --ignore-promoted-rules || (echo \"dune build @fmt failed\"; exit 2)"))
 ocamlformat web-ui/.formatted/badges.ml (exit 1)
(cd _build/default && /home/opam/.opam/4.06/bin/ocamlformat --impl web-ui/badges.ml) > _build/default/web-ui/.formatted/badges.ml
ocamlformat: ignoring "web-ui/badges.ml" (syntax error)
File "web-ui/badges.ml", line 47, 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-11 12:26.05: Job failed: Failed: Build failed