Skip to content

Commit 7c07bbd

Browse files
committed
increase AllAlignedImages timeout
1 parent 635a557 commit 7c07bbd

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/test/test_query_performance.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -720,8 +720,14 @@ def test_13_dataset_template_queries(self):
720720
if success and result:
721721
count = result.get('count', 0)
722722
print(f" └─ Found {count} aligned images" + (", returned 10" if count > 10 else ""))
723-
# Observed ~3.6s on CI cold cache; THRESHOLD_MEDIUM (3s) was too tight.
724-
self.assertLess(duration, self.THRESHOLD_SLOW, "AllAlignedImages exceeded threshold")
723+
# AllAlignedImages computes the full aligned-image set for the template
724+
# (~398MB for a major template), which exceeds the 10MB result-cache cap,
725+
# so it is never cached and is recomputed live on every call — observed
726+
# ~120-155s on CI, even on the writable warming run (the limit=10 above
727+
# doesn't help: the cache layer computes the full result before slicing).
728+
# Allow a cold-realistic budget until the result size is reduced so it
729+
# can cache; see get_all_aligned_images.
730+
self.assertLess(duration, 240.0, "AllAlignedImages exceeded threshold")
725731

726732
# AlignedDatasets - All datasets aligned to template
727733
# Warm up cache with full results

0 commit comments

Comments
 (0)