Skip to content
Source
Sign inSign up
pingdotgg/t3code

perf(server): narrow watched reads and release settlement transactions #21628

Openjuliusmarmingewants to merge 1 commit intossh-relay-remote-14/shell-transport fromssh-relay-remote-14/background-readsopened View on GitHub

Showing 3 changed files with 73 additions and 4 deletions (loading 2).

x
0 of 3 viewed, 3 left
73 additions and 4 deletionsapps/server/src/orchestration-v2/ProjectionSettlement.test.tsModified
View file
@@ -364,11 +364,23 @@
stack: null,
});
​
+const pullRequestWatch = {
+ startedAt: DateTime.formatIso(old),
+ headSha: null,
+ failedChecks: [],
+ passed: false,
+ passedChecks: [],
+ remarksThrough: DateTime.formatIso(old),
+ remarkIds: [],
+ conflicting: false,
+ wakes: 0,
+};
+​
it.effect.each([
["sql", layerSql],
["memory", ProjectionStore.layerMemory],
] as const)(
- "%s: lists only active threads with pull request links, oldest first",
+ "%s: lists active threads with pull request links, optionally watched, oldest first",
([, testLayer]) =>
Effect.gen(function* () {
const store = yield* ProjectionStore.ProjectionStoreV2;
@@ -376,16 +388,24 @@
yield* createThread("empty-links", { pullRequests: [] });
yield* createThread("archived-link", {
archivedAt: old,