Build:
  1. 2
  2. 1
  3. 0
2024-10-16 21:17.30: New job: Build using linux-arm64 in
                                []
2024-10-16 21:17.30: Will push staging image to ocurrent/opam-staging:alpine-3.20-ocaml-5.4-flambda-arm64

Dockerfile:

# syntax=docker/dockerfile:1

FROM ocurrent/opam-staging@sha256:5d8cb385a171ed293f6d44d2fbc60be3613276b0521e0cba08de07de30ca4422
RUN opam repo add beta git+https://github.com/ocaml/ocaml-beta-repository --set-default
ENV OPAMYES="1" OPAMCONFIRMLEVEL="unsafe-yes" OPAMERRLOGLEN="0" OPAMPRECISETRACKING="1"
USER root
RUN apk update && apk upgrade
RUN apk add zstd
USER opam
RUN opam switch create 5.4 --packages=ocaml-variants.5.4.0+trunk,ocaml-options-only-flambda
RUN opam pin add -k version ocaml-variants 5.4.0+trunk
RUN opam install -y opam-depext
ENTRYPOINT [ "opam", "exec", "--" ]
CMD bash
COPY --link [ "Dockerfile", "/Dockerfile.ocaml" ]


2024-10-16 21:17.30: Using cache hint "5.4.0+flambda-arm64-ocurrent/opam-staging@sha256:5d8cb385a171ed293f6d44d2fbc60be3613276b0521e0cba08de07de30ca4422"
2024-10-16 21:17.30: Waiting for resource in pool OCluster
2024-10-16 21:17.30: Waiting for worker…
2024-10-16 23:05.18: Got resource from pool OCluster
Building on ocaml-2.osuosl.ci.dev
WARNING: experimental flag squash is removed with BuildKit. You should squash inside build using a multi-stage Dockerfile for efficiency.
#0 building with "default" instance using docker driver

#1 [internal] load build definition from Dockerfile
#1 ...

#2 [internal] load .dockerignore
#2 ...

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile:
#1 transferring dockerfile: 685B done
#1 DONE 30.5s

#2 [internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 31.7s

#3 resolve image config for docker.io/docker/dockerfile:1
#3 DONE 1.5s

#4 docker-image://docker.io/docker/dockerfile:1@sha256:865e5dd094beca432e8c0a1d5e1c465db5f998dca4e439981029b3b81fb39ed5
#4 CACHED

#5 [internal] load metadata for docker.io/ocurrent/opam-staging@sha256:5d8cb385a171ed293f6d44d2fbc60be3613276b0521e0cba08de07de30ca4422
#5 DONE 3.5s

#6 [1/8] FROM docker.io/ocurrent/opam-staging@sha256:5d8cb385a171ed293f6d44d2fbc60be3613276b0521e0cba08de07de30ca4422
#6 DONE 0.0s

#7 [internal] load build context
#7 ...

#8 [3/8] RUN apk update && apk upgrade
#8 CACHED

#9 [2/8] RUN opam repo add beta git+https://github.com/ocaml/ocaml-beta-repository --set-default
#9 CACHED

#10 [4/8] RUN apk add zstd
#10 CACHED

#11 [5/8] RUN opam switch create 5.4 --packages=ocaml-variants.5.4.0+trunk,ocaml-options-only-flambda
#11 ...

#7 [internal] load build context
#7 transferring context: 685B done
#7 DONE 8.1s

#11 [5/8] RUN opam switch create 5.4 --packages=ocaml-variants.5.4.0+trunk,ocaml-options-only-flambda
#11 20.51 
#11 20.51 <><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
#11 25.96 [ocaml-variants.5.4.0+trunk] downloaded from https://github.com/ocaml/ocaml/archive/trunk.tar.gz
#11 118.5 Switch initialisation failed: clean up? ('n' will leave the switch partially installed) [Y/n] y
#11 118.5 [ERROR] The sources of the following couldn't be obtained, aborting:
#11 118.5           - ocaml-config.3: Curl failed
#11 118.5 
#11 ERROR: process "/bin/sh -c opam switch create 5.4 --packages=ocaml-variants.5.4.0+trunk,ocaml-options-only-flambda" did not complete successfully: exit code: 40
------
 > [5/8] RUN opam switch create 5.4 --packages=ocaml-variants.5.4.0+trunk,ocaml-options-only-flambda:
20.51 
20.51 <><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
25.96 [ocaml-variants.5.4.0+trunk] downloaded from https://github.com/ocaml/ocaml/archive/trunk.tar.gz
118.5 Switch initialisation failed: clean up? ('n' will leave the switch partially installed) [Y/n] y
118.5 [ERROR] The sources of the following couldn't be obtained, aborting:
118.5           - ocaml-config.3: Curl failed
118.5 
------

 1 warning found (use --debug to expand):
 - JSONArgsRecommended: JSON arguments recommended for CMD to prevent unintended behavior related to OS signals (line 14)
Dockerfile:10
--------------------
   8 |     RUN apk add zstd
   9 |     USER opam
  10 | >>> RUN opam switch create 5.4 --packages=ocaml-variants.5.4.0+trunk,ocaml-options-only-flambda
  11 |     RUN opam pin add -k version ocaml-variants 5.4.0+trunk
  12 |     RUN opam install -y opam-depext
--------------------
ERROR: failed to solve: process "/bin/sh -c opam switch create 5.4 --packages=ocaml-variants.5.4.0+trunk,ocaml-options-only-flambda" did not complete successfully: exit code: 40
docker-build failed with exit-code 1
2024-10-16 23:08.14: Job failed: Failed: Build failed
2024-10-16 23:08.14: Log analysis:
2024-10-16 23:08.14: >>> The sources of the following couldn't be obtained, aborting:
#11 118.5           - ocaml-config.3: Curl failed (score = 50)
2024-10-16 23:08.14: >>> The sources of the following couldn't be obtained, aborting:
118.5           - ocaml-config.3: Curl failed (score = 50)
2024-10-16 23:08.14: Source download failed for ocaml-config.3: Curl failed