@@ -213,7 +213,7 @@ def can_skip_libm_ci(self) -> bool:
213213
214214 return False
215215
216- def make_workflow_output (self ) -> str :
216+ def emit_workflow_output (self ):
217217 """Create a JSON object a list items for each type's changed files, if any
218218 did change, and the routines that were affected by the change.
219219 """
@@ -233,7 +233,7 @@ def make_workflow_output(self) -> str:
233233 eprint ("Skipping all extensive tests" )
234234
235235 changed = self .changed_routines ()
236- extensive_matrix = []
236+ matrix = []
237237 total_to_test = 0
238238
239239 # Figure out which extensive tests need to run
@@ -248,14 +248,14 @@ def make_workflow_output(self) -> str:
248248 "to_test" : "," .join (ty_to_test ),
249249 }
250250
251- extensive_matrix .append (item )
251+ matrix .append (item )
252252
253- ret = {
254- "extensive_matrix" : extensive_matrix ,
255- "can_skip_libm_ci" : str ( self . can_skip_libm_ci ()). lower (),
256- }
257- output = json . dumps ( ret , separators = ( "," , ":" ) )
258- eprint (f"output: { output } " )
253+ ext_matrix = json . dumps ({ "extensive_matrix" : matrix }, separators = ( "," , ":" ))
254+ can_skip = str ( self . can_skip_libm_ci ()). lower ()
255+ print ( f"extensive_matrix= { ext_matrix } " )
256+ print ( f"can_skip_libm_ci= { can_skip } " )
257+ eprint ( f"extensive_matrix= { ext_matrix } " )
258+ eprint (f"can_skip_libm_ci= { can_skip } " )
259259 eprint (f"total extensive tests: { total_to_test } " )
260260
261261 if error_on_many_tests and total_to_test > MANY_EXTENSIVE_THRESHOLD :
@@ -265,8 +265,6 @@ def make_workflow_output(self) -> str:
265265 )
266266 exit (1 )
267267
268- return output
269-
270268
271269def locate_baseline (flags : list [str ]) -> None :
272270 """Find the most recent baseline from CI, download it if specified.
@@ -421,8 +419,7 @@ def main():
421419 match sys .argv [1 :]:
422420 case ["generate-matrix" ]:
423421 ctx = Context ()
424- output = ctx .make_workflow_output ()
425- print (f"matrix={ output } " )
422+ ctx .emit_workflow_output ()
426423 case ["locate-baseline" , * flags ]:
427424 locate_baseline (flags )
428425 case ["check-regressions" , * args ]:
0 commit comments