Skip to content

Search: make ComputeExcludedRepos aware of dependency search

Administrator requested to merge cc/dependency-exclude into main

Created by: camdencheek

When dependency search was added, the ComputeExcludedRepos job was not updated to reflect the new repo search type, so the statistics returned by ComputeExcludedRepos were incorrect. This makes the exclusion computation step behave the same as the resolution step by adding dependency resolution to the job.

I think it's probably safe to just disable excluded repo computation for dependency search since I don't think package repos will ever be marked as forks or archived. However, right now, dependency search still excludes forks and archived repos by default, so I implemented the fix such that it follows exactly what dependency search does (whether or not it matters).

Test plan

Manually tested that dependency search does not show skipped repo stats.

Merge request reports

Loading