@@ -115,17 +115,21 @@ def update_latest(
115
115
new = s .get (tool , old )
116
116
status [os ] = new
117
117
if new > old :
118
+ # things got fixed or at least the status quo improved
118
119
changed = True
119
120
message += '🎉 {} on {}: {} → {} (cc {}, @rust-lang/infra).\n ' \
120
121
.format (tool , os , old , new , MAINTAINERS .get (tool ))
121
122
elif new < old :
123
+ # tests or builds are failing and were not failing before
122
124
changed = True
123
125
title = '💔 {} on {}: {} → {}' \
124
126
.format (tool , os , old , new )
125
127
message += '{} (cc {}, @rust-lang/infra).\n ' \
126
128
.format (title , MAINTAINERS .get (tool ))
127
- failures += title
128
- failures += '\n '
129
+ # only create issues for build failures. Other failures can be spurious
130
+ if new == 'build-fail' :
131
+ failures += title
132
+ failures += '\n '
129
133
130
134
if failures != '' :
131
135
issue (tool , MAINTAINERS .get (tool ), relevant_pr_number , relevant_pr_user , failures )
@@ -151,6 +155,7 @@ def update_latest(
151
155
save_message_to_path = sys .argv [3 ]
152
156
github_token = sys .argv [4 ]
153
157
158
+ # assume that PR authors are also owners of the repo where the branch lives
154
159
relevant_pr_match = re .search ('Auto merge of #([0-9]+) - ([^:]+)' , cur_commit_msg )
155
160
if relevant_pr_match :
156
161
number = relevant_pr_match .group (1 )
0 commit comments