You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 77e6bad
Browse filesBrowse the repository at this point in the historyBrowse files
test(service-knowledge): give the multi-node sync-state cases measured timeouts
The rebuild-through-node-A case boots four kernels over one file, seeds
three records, runs two rebuilds and restarts both nodes inside vitest's
default 5000 ms; under the merge queue's full-suite load it timed out.
Each multi-node case in the file now carries an explicit budget of 20x
its worst locally measured duration under doubled suite load. No case
is skipped and no assertion or waitFor changes.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP
Copy file name to clipboardExpand all lines: packages/services/service-knowledge/src/__tests__/sync-state.test.ts
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -317,6 +317,7 @@ async function seedArticles(n: Node): Promise<Row[]> {
317
317
}
318
318
319
319
describe('one record per source, the same on every node',()=>{
320
+
// Four kernel boots over one file, three seeded syncs, two rebuilds: 1.28 s worst measured under doubled suite load, x20 headroom.
320
321
it('a rebuild through node A reads identically on node B while it runs and after it ends — an index already current included — and after both restart',async()=>{
321
322
constfile=freshFile();
322
323
conststore=makeStore();
@@ -375,8 +376,9 @@ describe('one record per source, the same on every node', () => {
expect(after.build?.message).toContain('stopped before it ended');
395
-
});
397
+
},16_000);
396
398
399
+
// Three kernel boots over one file, three seeded syncs, a rebuild: 0.81 s worst measured under doubled suite load, x20 headroom.
397
400
it("over a cluster lock: a boot leaves a build whose lease another node holds; once its lease runs out the next boot or the next lease holder closes it interrupted",async()=>{
398
401
constfile=freshFile();
399
402
conststore=makeStore();
@@ -414,8 +417,9 @@ describe('one record per source, the same on every node', () => {
0 commit comments