Skip to content

Commit c6d394e

Browse files
authored
Remove experimental tag from macOS and FreeBSD (#949)
* Remove experimental tag from macOS and FreeBSD
1 parent 047de92 commit c6d394e

File tree

2 files changed

+4
-25
lines changed

2 files changed

+4
-25
lines changed

lib/build_info.ml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,9 @@ let of_label label = { label; variant = None }
1212
If it is experimental we allow those builds to fail without failing the
1313
overall build for a commit. *)
1414
let experimental_variant s =
15-
if
16-
Astring.String.(
17-
is_prefix ~affix:Variant.lower_bound_label s.label
18-
|| is_prefix ~affix:Variant.opam_label s.label)
19-
then true
20-
else
21-
match s.variant with
22-
| None -> false
23-
| Some v ->
24-
Astring.String.equal "freebsd" (Variant.distro v)
25-
|| Astring.String.equal "macos-homebrew" (Variant.distro v)
15+
Astring.String.(
16+
is_prefix ~affix:Variant.lower_bound_label s.label
17+
|| is_prefix ~affix:Variant.opam_label s.label)
2618

2719
(** Like [experimental_variant], but takes strings for when a [build_info]
2820
record is unavailable.
@@ -32,6 +24,4 @@ let experimental_variant s =
3224
let experimental_variant_str s =
3325
Astring.String.(
3426
is_prefix ~affix:Variant.lower_bound_label s
35-
|| is_prefix ~affix:Variant.opam_label s
36-
|| is_prefix ~affix:"freebsd" s
37-
|| is_prefix ~affix:"macos-homebrew" s)
27+
|| is_prefix ~affix:Variant.opam_label s)

test/service/test_pipeline.ml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -92,17 +92,6 @@ let test_experimental () =
9292
[
9393
(true, of_label Variant.lower_bound_label);
9494
(false, of_label Variant.doc_label);
95-
( true,
96-
{
97-
label = "";
98-
variant =
99-
Some (variant "macos-homebrew" Ocaml_version.Releases.v5_0);
100-
} );
101-
( true,
102-
{
103-
label = "";
104-
variant = Some (variant "freebsd" Ocaml_version.Releases.v5_1);
105-
} );
10695
( false,
10796
{
10897
label = "";

0 commit comments

Comments
 (0)