In parent T405596, we'd like to reduce / switch off Diffusion IO.
Looking at Phabricator pull logs for the last 30 days via https://phabricator.wikimedia.org/diffusion/pulllog/?repositories=PHID-REPO-hje5czxxz2myfpljuoul , netbox-exported-dns is regularly pulled from one single internal IP which belongs to the cloud-instances realm.
Codesearch points to itself: https://gerrit.wikimedia.org/r/plugins/gitiles/labs/codesearch/+/refs/heads/master/write_config.py includes the line
conf['repos']['netbox DNS'] = phab_repo('netbox-exported-dns')
That line should ideally be switched to using the canonical git repository instead of the mirror in Phabricator Diffusion, however, caveat, as pointed out by taavi on IRC:
<taavi> andre: fwiw there is no netbox-exported-dns repo in Gerrit, the phab repo is there to mirror from the netbox host as cloning it from there is suuuuper slow
Indeed URI configuration at https://phabricator.wikimedia.org/source/netbox-exported-dns/manage/uris/ states that Phabricator Diffusion mirrors from https://netbox-exports.wikimedia.org/dns.git
In Codesearch's write_config.py, entire phab_repo() should likely get removed as we do not host anything canonically on Phabricator Diffusion anymore.
May need a new, special-case netbox_exports_repo() code here. But performance (see above).