Skip to content

Commit b905c57

Browse files
committed
test(plugin-audit): declare the measured budget of the two parent-gate integration files
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibz25B8NfvsjxU1ttwC
1 parent f267df4 commit b905c57

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

‎packages/plugins/plugin-audit/src/comment-parent-pair.integration.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license.
2+
// test-budget: 40 — spawns the real producer once per single-cause fixture: three in-process kernel boots on a real SQL driver, the first seeding 2,600 comments on 260 docs through the real writers to sit past the 2,000-row window the comment gate replaced; slowest CI reading 28.07 s (run 40204927516, refresh PR #25960's window (hourly runs 40200279306 to 40272142430)) x 1.25, rounded up; read before this file seeded its comments ten to a doc and paid its first boot at module scope
23

34
/**
45
* [ADR-0139 E7] The comment-thread read gate on the LEAF path, over

‎packages/plugins/plugin-audit/src/parent-record-read-leaf.integration.test.ts‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license.
2+
// test-budget: 50 — spawns the real producer once per single-cause fixture: two in-process kernel boots on a real SQL driver, the first seeding 2,600 records through the real CRUD mirror (each pays its activity row and its ledger row) to sit past the 2,000-row window the leaf gate replaced; slowest CI reading 35.78 s (run 40204927516, refresh PR #25960's window (hourly runs 40200279306 to 40272142430)) x 1.25, rounded up; read before this file reused its at-rest reads and paid its first boot at module scope
23

34
/**
45
* [ADR-0139 E5] The parent-record read gates on the LEAF path, through a real
@@ -210,10 +211,10 @@ describe('[ADR-0139 E5] the parent-record read gates on the leaf path', () => {
210211
/**
211212
* [#23181] Every row of an object at rest, as the system reads it — read once
212213
* and reused. No case in this describe writes after `beforeAll`, so each such
213-
* read answered the same rows: the cases made about sixty of them, over tables
214-
* of 2,600 to 7,000 rows. Each reuse counts the object first and re-reads on a
215-
* moved count, so a case that adds or removes rows is never judged against an
216-
* older ground truth.
214+
* read answered the same rows: the cases made nearly seventy of them, most
215+
* over tables of thousands of rows. Each reuse counts the object first and
216+
* re-reads on a moved count, so a case that adds or removes rows is never
217+
* judged against an older ground truth.
217218
*/
218219
const atRestCache = new Map<string, { count: number; rows: Row[] }>();
219220
const atRestOf = async (object: string): Promise<Row[]> => {

0 commit comments

Comments
 (0)