File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -163,12 +163,19 @@ def is_known_server_issue(test: TestResult):
163
163
"Exceeded maximum number of inbound queries allowed for this instance" ,
164
164
),
165
165
("setup" , "GS instance is still unavailable at" ),
166
+ (
167
+ "call" ,
168
+ "Insufficient resource during interleaved execution" ,
169
+ ),
166
170
]
167
171
for phase , known_message in known_server_issues :
168
172
phase_info = getattr (test , phase )
169
173
# match messages via regex, as they might be printed in multiple lines / pretty formatted by typer etc.
170
- regex = ".*" .join (re .escape (word ) for word in known_message .split ())
171
- if re .search (regex , phase_info .longrepr ):
174
+ # regex pattern allows whitespace, punctuation, and box-drawing chars but not entire phrases.
175
+ regex = r"\s*[^\w]*\s*" .join (
176
+ re .escape (word ) for word in known_message .split ()
177
+ )
178
+ if re .search (regex , phase_info .longrepr , re .DOTALL ):
172
179
return True
173
180
return False
174
181
You can’t perform that action at this time.
0 commit comments