File tree Expand file tree Collapse file tree 3 files changed +24
-3
lines changed Expand file tree Collapse file tree 3 files changed +24
-3
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "problemMatcher" : [
3
+ {
4
+ "__comment_owner" : " internal continuous integration errors" ,
5
+ "owner" : " internal" ,
6
+ "pattern" : [
7
+ {
8
+ "__comment_regexp1" : " [CI ERROR] Build is not finished on TuxSuite's side!" ,
9
+ "regexp" : " ^\\ [CI (WARNING|ERROR)\\ ]\\ s+(.*)$" ,
10
+ "severity" : 1 ,
11
+ "message" : 2
12
+ }
13
+ ]
14
+ }
15
+ ]
16
+ }
Original file line number Diff line number Diff line change @@ -58,7 +58,12 @@ def verify_build():
58
58
retries = 0
59
59
max_retries = 9
60
60
while retries < max_retries :
61
- if build ["tuxbuild_status" ] == "complete" :
61
+ # build never started
62
+ if (build_status := build ['tuxbuild_status' ]) == 'error' :
63
+ print_red (f"msg from tuxsuite: { build ['status_message' ]} " )
64
+ sys .exit (1 )
65
+ # build is finished
66
+ elif build_status == "complete" :
62
67
break
63
68
64
69
if retries :
Original file line number Diff line number Diff line change @@ -290,12 +290,12 @@ def update_repository_variable(
290
290
291
291
292
292
def print_red (msg ):
293
- print (f"\033 [91m{ msg } \033 [0m" , file = sys .stderr )
293
+ print (f"\033 [91m[CI ERROR] { msg } \033 [0m" , file = sys .stderr )
294
294
sys .stderr .flush ()
295
295
296
296
297
297
def print_yellow (msg ):
298
- print (f"\033 [93m{ msg } \033 [0m" , file = sys .stdout )
298
+ print (f"\033 [93m[CI WARNING] { msg } \033 [0m" , file = sys .stdout )
299
299
sys .stdout .flush ()
300
300
301
301
You can’t perform that action at this time.
0 commit comments