upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/git/protocol.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2025-11-26 10:23:47 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2025-11-26 10:23:47 +0000
commit158d3f0722e731f2b534951069c322c5cbb5a721 (patch)
tree6170dcbc978f795ec52a7c6a832671db13ff33f1 /src/git/protocol.rs
parenta6edb42dfc653b6826b59b7f296e0d0c4ee74557 (diff)
feat(fixtures): reuse prerequisite fixtures in production mode
Fixtures now reuse their prerequisites in Shared (production) mode, significantly reducing events published to production relays: Before: Each fixture created its own prerequisite events - ValidRepo: 1 event - RepoWithIssue: 2 events (repo + issue) - RepoWithComment: 3 events (repo + issue + comment) - RepoState: 2 events (repo + state) After: Fixtures share prerequisites via caching - ValidRepo: 1 event - RepoWithIssue: 1 new event (issue), reuses cached repo - RepoWithComment: 1 new event (comment), reuses cached repo+issue - RepoState: 1 new event (state), reuses cached repo Total for all 4 fixtures: 8 events → 4 events (50% reduction) In CI/Isolated mode, each test still gets fresh fixtures for test isolation - behavior unchanged. Implemented via get_or_create_repo() and get_or_create_issue() helpers that handle mode-aware caching without async recursion.
Diffstat (limited to 'src/git/protocol.rs')
0 files changed, 0 insertions, 0 deletions