perf(server): idle status polls and PR sweeps start fewer git processes #16272
Mergedt3dotgg(GitHub profile, opens in a new tab)merged 2 commits into
main fromrefs/pull/16272/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
juliusmarminge added labelsmacroscope-review
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
- apps/server/src/vcs/VcsDriverRegistry.ts line 124OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -111,5 +118,7 @@111118 return yield* detectWithDriver("git", git, input.cwd);112119 });113120114- const detectionCache = yield* Cache.makeWith<string, VcsDriverHandle | null, VcsError>(115- (key) => detectResolvedKind(parseDetectionCacheKey(key)),121+ // What `detect` re-checks on every cache hit, using stats instead of git.122+ const readDiskState = (cwd: string, repository: VcsRepositoryIdentity) =>123+ Effect.all({124+ cwdHasGitEntry: fileSystem.exists(path.join(cwd, ".git")),
t3dotgg(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
macroscopeapp[bot](GitHub profile, opens in a new tab) reviewed