Skip to content

nexus-api: make KeyRepublisher optional, disable it in most tests#754

Draft
ok300 wants to merge 2 commits intopubky:mainfrom
ok300:ok300-watcher-test-optional-pkdns-republisher
Draft

nexus-api: make KeyRepublisher optional, disable it in most tests#754
ok300 wants to merge 2 commits intopubky:mainfrom
ok300:ok300-watcher-test-optional-pkdns-republisher

Conversation

@ok300
Copy link
Contributor

@ok300 ok300 commented Feb 27, 2026

Part of initializing and starting a NexusApi instance is KeyRepublisher::start, which includes a ~2 second blocking call to publish the Nexus PKDNS record.

Combined with the fact that tests are run with nextest, this means a process is started for every test, which spends the first ~2 seconds on publishing a record to the local DHT nodes.

Only 2-3 of the ~300 nexus-api tests need the Nexus PKDNS record.

This PR makes the KeyRepublisher optional and by default disabled in most tests.

@ok300
Copy link
Contributor Author

ok300 commented Feb 27, 2026

On CI, this reduces nexus-api test suite runtime from ~170s to ~30s.

@ok300 ok300 requested a review from aintnostressin February 27, 2026 19:55
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