From ebae3c6e27470121c918df40717ad1ee2a593a03 Mon Sep 17 00:00:00 2001 From: Nubenetes Bot Date: Fri, 19 Jun 2026 10:36:33 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20cap=20license=20change=20detection=20at?= =?UTF-8?q?=20MAX=5FREPOS=5FDEFAULT=20(200)=20=E2=80=94=20was=20unbounded?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit detect_license_changes() iterated all repos with gh_license set, causing hundreds/thousands of GitHub API calls. Apply the same 200-repo cap as the activity enrichment module to keep total enrichment under ~3 min. Co-Authored-By: Claude Sonnet 4.6 --- src/enrichment.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/enrichment.py b/src/enrichment.py index 6672e072..e70c8013 100644 --- a/src/enrichment.py +++ b/src/enrichment.py @@ -306,6 +306,7 @@ async def detect_license_changes(inventory: Dict) -> List[Dict]: log_event("[License] No repos with stored licenses to check") return [] + candidates = candidates[:MAX_REPOS_DEFAULT] # cap to same limit as activity enrichment log_event(f"[License] Checking {len(candidates)} repos for license changes") changes: List[Dict] = []