File tree Expand file tree Collapse file tree 6 files changed +60
-7
lines changed Expand file tree Collapse file tree 6 files changed +60
-7
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,14 @@ inputs:
47
47
GITHUB_TOKEN :
48
48
description : GitHub token
49
49
required : true
50
-
50
+ disable-monitor :
51
+ description : |
52
+ [Experimental] Disable utilization monitoring for tests.
53
+ Currently, by default we disable the monitor job and only look for specific tests,
54
+ since we are investigating the behaviour of the monitor script with different tests.
55
+ required : false
56
+ type : boolean
57
+ default : true
51
58
# env:
52
59
# GIT_DEFAULT_BRANCH: ${{ inputs.default_branch }}
53
60
@@ -115,6 +122,7 @@ runs:
115
122
116
123
- name : Start monitoring script
117
124
id : monitor-script
125
+ if : ${{ !inputs.disable-monitor }}
118
126
shell : bash
119
127
continue-on-error : true
120
128
run : |
@@ -289,7 +297,7 @@ runs:
289
297
cat test/**/*_toprint.log || true
290
298
291
299
- name : Stop monitoring script
292
- if : always() && steps.monitor-script.outputs.monitor-script-pid
300
+ if : ${{ always() && steps.monitor-script.outputs.monitor-script-pid }}
293
301
shell : bash
294
302
continue-on-error : true
295
303
env :
Original file line number Diff line number Diff line change 47
47
required : false
48
48
type : string
49
49
default : " "
50
+ disable-monitor :
51
+ description : |
52
+ [Experimental] Disable utilization monitoring for tests.
53
+ Currently, by default we disable the monitor job and only look for specific tests,
54
+ since we are investigating the behaviour of the monitor script with different tests.
55
+ required : false
56
+ type : boolean
57
+ default : true
50
58
secrets :
51
59
HUGGING_FACE_HUB_TOKEN :
52
60
required : false
@@ -145,6 +153,7 @@ jobs:
145
153
146
154
- name : Start monitoring script
147
155
id : monitor-script
156
+ if : ${{ !inputs.disable-monitor }}
148
157
shell : bash
149
158
continue-on-error : true
150
159
run : |
@@ -328,7 +337,7 @@ jobs:
328
337
cat test/**/*_toprint.log || true
329
338
330
339
- name : Stop monitoring script
331
- if : always() && steps.monitor-script.outputs.monitor-script-pid
340
+ if : ${{ always() && steps.monitor-script.outputs.monitor-script-pid }}
332
341
shell : bash
333
342
continue-on-error : true
334
343
env :
Original file line number Diff line number Diff line change 30
30
default : 270
31
31
description : |
32
32
Set the maximum (in minutes) how long the workflow should take to finish
33
+ disable-monitor :
34
+ description : |
35
+ [Experimental] Disable utilization monitoring for tests.
36
+ Currently, by default we disable the monitor job and only look for specific tests,
37
+ since we are investigating the behaviour of the monitor script with different tests.
38
+ required : false
39
+ type : boolean
40
+ default : true
33
41
34
42
jobs :
35
43
test :
@@ -101,6 +109,7 @@ jobs:
101
109
102
110
- name : Start monitoring script
103
111
id : monitor-script
112
+ if : ${{ !inputs.disable-monitor }}
104
113
continue-on-error : true
105
114
run : |
106
115
${CONDA_RUN} python3 -m tools.stats.monitor > usage_log.txt 2>&1 &
@@ -200,7 +209,7 @@ jobs:
200
209
cat test/**/*_toprint.log || true
201
210
202
211
- name : Stop monitoring script
203
- if : always() && ${{ steps.monitor-script.outputs.monitor-script-pid }}
212
+ if : ${{ always() && steps.monitor-script.outputs.monitor-script-pid }}
204
213
continue-on-error : true
205
214
env :
206
215
MONITOR_SCRIPT_PID : ${{ steps.monitor-script.outputs.monitor-script-pid }}
Original file line number Diff line number Diff line change 38
38
default : " "
39
39
description : |
40
40
List of tests to include (empty string implies default list)
41
+ disable-monitor :
42
+ description : |
43
+ [Experimental] Disable utilization monitoring for tests.
44
+ Currently, by default we disable the monitor job and only look for specific tests,
45
+ since we are investigating the behaviour of the monitor script with different tests.
46
+ required : false
47
+ type : boolean
48
+ default : true
41
49
42
50
env :
43
51
GIT_DEFAULT_BRANCH : ${{ github.event.repository.default_branch }}
91
99
92
100
- name : Start monitoring script
93
101
id : monitor-script
102
+ if : ${{ !inputs.disable-monitor }}
94
103
shell : bash
95
104
continue-on-error : true
96
105
run : |
@@ -247,7 +256,7 @@ jobs:
247
256
cat test/**/*_toprint.log || true
248
257
249
258
- name : Stop monitoring script
250
- if : always() && steps.monitor-script.outputs.monitor-script-pid
259
+ if : ${{ always() && steps.monitor-script.outputs.monitor-script-pid }}
251
260
shell : bash
252
261
continue-on-error : true
253
262
env :
Original file line number Diff line number Diff line change 28
28
default : 240
29
29
description : |
30
30
Set the maximum (in minutes) how long the workflow should take to finish
31
+ disable-monitor :
32
+ description : |
33
+ [Experimental] Disable utilization monitoring for tests.
34
+ Currently, by default we disable the monitor job and only look for specific tests,
35
+ since we are investigating the behaviour of the monitor script with different tests.
36
+ required : false
37
+ type : boolean
38
+ default : true
31
39
32
40
env :
33
41
GIT_DEFAULT_BRANCH : ${{ github.event.repository.default_branch }}
@@ -101,6 +109,7 @@ jobs:
101
109
- name : Start monitoring script
102
110
id : monitor-script
103
111
shell : bash
112
+ if : ${{ !inputs.disable-monitor }}
104
113
continue-on-error : true
105
114
run : |
106
115
# Windows conda doesn't have python3 binary, only python, but it's python3
@@ -213,7 +222,7 @@ jobs:
213
222
cat test/**/*_toprint.log || true
214
223
215
224
- name : Stop monitoring script
216
- if : always() && steps.monitor-script.outputs.monitor-script-pid
225
+ if : ${{ always() && steps.monitor-script.outputs.monitor-script-pid }}
217
226
shell : bash
218
227
continue-on-error : true
219
228
env :
Original file line number Diff line number Diff line change 38
38
default : " "
39
39
description : |
40
40
List of tests to include (empty string implies default list)
41
+ disable-monitor :
42
+ description : |
43
+ [Experimental] Disable utilization monitoring for tests.
44
+ Currently, by default we disable the monitor job and only look for specific tests,
45
+ since we are investigating the behaviour of the monitor script with different tests.
46
+ required : false
47
+ type : boolean
48
+ default : true
41
49
42
50
env :
43
51
GIT_DEFAULT_BRANCH : ${{ github.event.repository.default_branch }}
83
91
84
92
- name : Start monitoring script
85
93
id : monitor-script
94
+ if : ${{ !inputs.disable-monitor }}
86
95
shell : bash
87
96
continue-on-error : true
88
97
run : |
@@ -242,7 +251,7 @@ jobs:
242
251
cat test/**/*_toprint.log || true
243
252
244
253
- name : Stop monitoring script
245
- if : always() && steps.monitor-script.outputs.monitor-script-pid
254
+ if : ${{ always() && steps.monitor-script.outputs.monitor-script-pid }}
246
255
shell : bash
247
256
continue-on-error : true
248
257
env :
You can’t perform that action at this time.
0 commit comments