@@ -112,7 +112,7 @@ def test_sql_failure_is_not_a_timing(self):
112112 hotspots .run (["sh" , "-c" , "echo 'error' >&2" ])
113113
114114 def test_main_measures_only_remaining_workloads_for_all_arms (self ):
115- self .assertEqual (len (list ((hotspots .TEST_DIR / 'performance-hotspot-corpus' ).glob ('*.json' ))), 7 )
115+ self .assertEqual (len (list ((hotspots .TEST_DIR / 'performance-hotspot-corpus' ).glob ('*.json' ))), 5 )
116116
117117 with tempfile .TemporaryDirectory () as directory :
118118 result = Path (directory ) / "results.tsv"
@@ -159,10 +159,10 @@ def test_main_measures_only_remaining_workloads_for_all_arms(self):
159159 self .assertIn ("Add Column With Default" , report .getvalue ())
160160 self .assertEqual (report .getvalue ().count ("### " ), 4 )
161161 self .assertNotIn ("### Integer Keys" , report .getvalue ())
162- self .assertTrue (all (len (call .args [2 ]) == 7 for call in measure_retained .call_args_list ))
163- self .assertEqual (len (result .read_text ().splitlines ()), 8 )
162+ self .assertTrue (all (len (call .args [2 ]) == 5 for call in measure_retained .call_args_list ))
163+ self .assertEqual (len (result .read_text ().splitlines ()), 6 )
164164 self .assertIn ('add_column\t add_column_default\t 100000\t 100000\n ' , result .read_text ())
165- self .assertEqual (len (raw .read_text ().splitlines ()), 17 )
165+ self .assertEqual (len (raw .read_text ().splitlines ()), 13 )
166166
167167 def test_medians_raw_samples_and_stock_report (self ):
168168 with tempfile .TemporaryDirectory () as directory :
@@ -254,7 +254,7 @@ def test_retired_corpus_categories_and_shared_fixtures(self):
254254 Path (directory ), hotspots .TEST_DIR / 'performance-hotspot-seeds' )
255255 counts = {category : 0 for category in ('wide_rows' , 'narrow_rows' , 'zero_row_updates' ,
256256 'in_transaction_mutations' , 'integer_keys' ,
257- 'bulk_deletes' , 'small_cache' )}
257+ 'bulk_deletes' , 'small_cache' , 'wide_fetches' )}
258258 for name , bundle , databases in fixtures :
259259 category = hotspots .section_of (name )
260260 counts [category ] += 1
@@ -274,13 +274,13 @@ def test_retired_corpus_categories_and_shared_fixtures(self):
274274 self .assertTrue (bundle ['expected' ].startswith ('0|' ))
275275 self .assertEqual (counts , {'wide_rows' : 12 , 'narrow_rows' : 5 , 'zero_row_updates' : 2 ,
276276 'in_transaction_mutations' : 4 , 'integer_keys' : 2 ,
277- 'bulk_deletes' : 1 , 'small_cache' : 3 })
278- self .assertEqual (sql .call_count , 30 )
277+ 'bulk_deletes' : 1 , 'small_cache' : 3 , 'wide_fetches' : 2 })
278+ self .assertEqual (sql .call_count , 33 )
279279 grouped = {}
280280 for name , bundle , databases in fixtures :
281281 previous = grouped .setdefault (bundle ['setup_sql' ], databases )
282282 self .assertEqual (databases , previous )
283- self .assertEqual (len (grouped ), 13 )
283+ self .assertEqual (len (grouped ), 14 )
284284
285285 def test_retained_gate_measures_fixed_batches (self ):
286286 bundle = json .loads ((hotspots .TEST_DIR / 'performance-hotspot-seeds/narrow_rows_point_pk.json' ).read_text ())
@@ -335,7 +335,7 @@ def test_discovered_sections_are_reported_and_gated(self):
335335
336336 def test_remaining_issue_themes_are_reported_and_gated (self ):
337337 expected = {
338- 'wide_fetches' : {3251 , 3252 , 3253 },
338+ 'wide_fetches' : {3253 },
339339 'small_cache' : {3265 },
340340 'after_deletes' : {3258 , 3270 , 3271 },
341341 }
0 commit comments