Skip to content

Skip excluded files early in schedule handler candidate filter#2275

Merged
hiroshinishio merged 1 commit intomainfrom
wes
Feb 19, 2026
Merged

Skip excluded files early in schedule handler candidate filter#2275
hiroshinishio merged 1 commit intomainfrom
wes

Conversation

@hiroshinishio
Copy link
Collaborator

Summary

  • The schedule handler's candidate-adding loop only checked for 100% coverage but never checked is_excluded_from_testing, causing 12,000+ already-excluded files to be added as candidates on every run
  • For SPIDERPLUS-web (30+ scheduler runs), 12,530 of 12,597 files are already excluded in the DB, but every run still iterated through all of them as candidates before the evaluation loop filtered them out
  • Now excluded files are skipped in the filter loop, reducing candidates from ~12,000 to ~67

Social Media Post (GitAuto)

Our schedule handler was iterating through 12,000 files on every run for a large repo - even though 12,530 of 12,597 were already marked "excluded" in the database. The exclusion check was in the wrong loop. Moved it earlier. Candidates dropped from 12,000 to 67.

Social Media Post (Wes)

Debugging why a scheduled Lambda took 5 minutes just to pick one file. Turns out the filter loop checked coverage percentages but not the exclusion flag. 12,530 files were already excluded in the DB - the code just never asked. Two lines, 12,000 fewer iterations.

The candidate-adding loop only checked for 100% coverage but not
is_excluded_from_testing, causing 12,000+ already-excluded files to be
added as candidates on every run. This wasted ~5 minutes iterating
through them in the evaluation loop. Now excluded files are filtered
out upfront, reducing candidates from ~12,000 to ~67 for repos like
SPIDERPLUS-web.
@hiroshinishio hiroshinishio self-assigned this Feb 19, 2026
@hiroshinishio hiroshinishio merged commit f27cbfd into main Feb 19, 2026
1 check passed
@hiroshinishio hiroshinishio deleted the wes branch February 19, 2026 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant