File tree Expand file tree Collapse file tree 3 files changed +16
-7
lines changed Expand file tree Collapse file tree 3 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ def __init__(
20
20
# Override the Github self-hosted runner name if different from
21
21
# os-arch-nickname
22
22
github_runner_name : str | None ,
23
+ include_in_all : bool = True ,
23
24
):
24
25
self .nickname = nickname
25
26
self .os = os
@@ -30,6 +31,7 @@ def __init__(
30
31
if github_runner_name is None :
31
32
github_runner_name = self .name
32
33
self .github_runner_name = github_runner_name
34
+ self .include_in_all = include_in_all
33
35
34
36
@property
35
37
def name (self ) -> str :
@@ -54,6 +56,7 @@ def get_runners() -> list[Runner]:
54
56
section .get ("available" , True ),
55
57
section .get ("env" , {}),
56
58
section .get ("github_runner_name" ),
59
+ section .get ("include_in_all" , True ),
57
60
)
58
61
)
59
62
Original file line number Diff line number Diff line change @@ -147,9 +147,15 @@ def generate__benchmark(src: Any) -> Any:
147
147
runner_template ["steps" ].insert (0 , setup_environment )
148
148
149
149
runner_template ["runs-on" ].append (runner .github_runner_name )
150
- runner_template ["if" ] = (
151
- f"${{{{ (inputs.machine == '{ runner .name } ' || inputs.machine == 'all') }}}}"
152
- )
150
+
151
+ machine_clauses = [
152
+ f"inputs.machine == '{ runner .name } '" ,
153
+ "inputs.machine == '__really_all'" ,
154
+ ]
155
+ if runner .include_in_all :
156
+ machine_clauses .append ("inputs.machine == 'all'" )
157
+ runner_template ["if" ] = f"${{{{ ({ ' || ' .join (machine_clauses )} ) }}}}"
158
+
153
159
dst ["jobs" ][f"benchmark-{ runner .name } " ] = runner_template
154
160
155
161
add_flag_env (dst ["jobs" ])
Original file line number Diff line number Diff line change 34
34
with :
35
35
fork : python
36
36
ref : ${{ needs.determine_head.outputs.commit }}
37
- machine : all
37
+ machine : __really_all
38
38
benchmarks : all_and_excluded
39
39
pgo : true
40
40
tier2 : false
46
46
with :
47
47
fork : python
48
48
ref : ${{ needs.determine_head.outputs.commit }}
49
- machine : all
49
+ machine : __really_all
50
50
benchmarks : all_and_excluded
51
51
pgo : true
52
52
tier2 : false
59
59
with :
60
60
fork : python
61
61
ref : ${{ needs.determine_head.outputs.commit }}
62
- machine : all
62
+ machine : __really_all
63
63
benchmarks : all_and_excluded
64
64
pgo : true
65
65
tier2 : false
73
73
with :
74
74
fork : python
75
75
ref : ${{ needs.determine_head.outputs.commit }}
76
- machine : all
76
+ machine : __really_all
77
77
benchmarks : all_and_excluded
78
78
pgo : true
79
79
tier2 : false
You can’t perform that action at this time.
0 commit comments