From 8255f30ae1016ab726c41855280f3003b7c203ac Mon Sep 17 00:00:00 2001 From: Alpha DIALLO Date: Mon, 13 Nov 2023 15:48:53 +0100 Subject: [PATCH] Skip x86-32 job with conf-capnproto This is related to this issue https://github.com/mirage/capnp-rpc/issues/273. This will be solved when a new version of capnproto with this fix https://github.com/capnproto/capnproto/pull/1830, is release and published on debian. --- lib/pipeline.ml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/lib/pipeline.ml b/lib/pipeline.ml index f7e3cd89..6fac92ce 100644 --- a/lib/pipeline.ml +++ b/lib/pipeline.ml @@ -89,6 +89,23 @@ let docker_specs ~analysis = ~analysis (`Lint `Fmt) :: Spec.opam_monorepo builds | `Opam_build selections -> + let selections = + (* TODO: This filter will be removed when a new version of debian in which capnproto has this fix "https://github.com/capnproto/capnproto/pull/1830". + * Related to this issue "https://github.com/mirage/capnp-rpc/issues/273" *) + List.filter + (fun s -> + not + (Variant.arch s.Selection.variant == `I386 + && Variant.arch s.Selection.variant == `Aarch32 + && List.find_opt + (fun pkg -> + Astring.String.cut ~sep:"." pkg + |> Option.map fst + |> Option.equal String.equal (Some "conf-capnproto")) + s.Selection.packages + |> Option.is_some)) + selections + in (* For lower-bound, take only the lowest version of OCaml that has a solution *) let selections = let lower_bound, other =