Skip to content

Commit ae84f55

Browse files
committed
test(client): register the #28841 dry-run parity pin in the envelope caller census
objectql-echo-column-twice.test.ts calls analytics.query three times on the real AnalyticsService (receiver service, NOT_SDK). The #13079 census counts every such site: add its ledger row, move the service-site and NOT_SDK counts 11 -> 14, and declare the file as an input of the client test task (cross-package-test-inputs roster and turbo.json), as its two sibling echo pins are. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 348838c commit ae84f55

3 files changed

Lines changed: 22 additions & 4 deletions

File tree

‎packages/client/src/envelope-caller-census.test.ts‎

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,12 @@ const LEDGER: readonly LedgerRow[] = [
525525
method: 'analytics.query', receiver: 'service', count: 2, verdict: 'NOT_SDK',
526526
why: 'the real AnalyticsService that AnalyticsServicePlugin registers over an ObjectQL engine with the driver\'s data doors spied, called directly (no HTTP, no dispatcher envelope) to read whether the ObjectQL face\'s answer carries an echoed `sql`, and its rows',
527527
},
528+
// ── [#28841] the /analytics/sql dry run vs the query for one column asked twice: producer reads only ──
529+
{
530+
file: 'packages/services/service-analytics/src/__tests__/objectql-echo-column-twice.test.ts',
531+
method: 'analytics.query', receiver: 'service', count: 3, verdict: 'NOT_SDK',
532+
why: 'the real AnalyticsService that AnalyticsServicePlugin registers over a live engine, called directly (no HTTP, no dispatcher envelope) to compare the query\'s refusal with the dry run\'s, and to read the `sql` and rows the query serves',
533+
},
528534
{
529535
file: 'packages/client/src/analytics-automation-json-erasure.test.ts',
530536
method: 'analytics.meta', receiver: 'sdk', count: 2, verdict: 'PAYLOAD_DEPENDENT',
@@ -761,12 +767,16 @@ describe('#13079 §2 — positive controls on the matcher itself', () => {
761767
// [#21647] A fifth, two sites: the bucket echo's enumeration pin calls
762768
// the same plugin-registered AnalyticsService, over an engine with the
763769
// driver's data doors spied, to read whether the answer carries `sql`.
764-
expect(service.length, literalNote()).toBe(11);
770+
// [#28841] A sixth, three sites: the dry-run parity pin calls the same
771+
// plugin-registered AnalyticsService to compare the query's refusal
772+
// and served `sql` with `generateSql`'s.
773+
expect(service.length, literalNote()).toBe(14);
765774
expect([...new Set(service.map((s) => s.file))].sort()).toEqual([
766775
'packages/client/src/analytics-automation-json-erasure.test.ts',
767776
'packages/drivers/driver-memory/src/memory-exists-non-boolean-refusal.test.ts',
768777
'packages/rest/src/analytics-nested-relation-filter.test.ts',
769778
'packages/services/service-analytics/src/__tests__/objectql-echo-bucket-enumeration.test.ts',
779+
'packages/services/service-analytics/src/__tests__/objectql-echo-column-twice.test.ts',
770780
'packages/services/service-analytics/src/__tests__/objectql-echo-date-bucket.test.ts',
771781
]);
772782
expect(service.every((s) => s.method === 'analytics.query')).toBe(true);
@@ -814,12 +824,13 @@ describe('#13079 §3 — every call site is classified', () => {
814824
expect(production, literalNote()).toEqual([]);
815825
});
816826

817-
it('records the split: 18 payload pins, 10 result-insensitive, 11 not-SDK', () => {
827+
it('records the split: 18 payload pins, 10 result-insensitive, 14 not-SDK', () => {
818828
expect(verdictTotal('PAYLOAD_DEPENDENT')).toBe(18);
819829
expect(verdictTotal('RESULT_INSENSITIVE')).toBe(10);
820830
// [#21441] 8 -> 9: the date-bucket echo pin's producer call (§2).
821831
// [#21647] 9 -> 11: the bucket echo enumeration's two producer calls (§2).
822-
expect(verdictTotal('NOT_SDK')).toBe(11);
832+
// [#28841] 11 -> 14: the dry-run parity pin's three producer calls (§2).
833+
expect(verdictTotal('NOT_SDK')).toBe(14);
823834
// The three above are LEDGER sums and cannot move on a census reading;
824835
// this one is census-derived, so it carries the note. [#13874]
825836
expect(sdkSites.length, literalNote()).toBe(28);

‎scripts/cross-package-test-inputs.mjs‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -855,6 +855,12 @@ export const CROSS_PACKAGE_TEST_INPUTS = {
855855
// (receiver `service`). A call added to or removed from that file moves
856856
// the census verdict, so a change to it has to re-run this suite.
857857
'packages/services/service-analytics/src/__tests__/objectql-echo-bucket-enumeration.test.ts',
858+
// [#28841] Declared by name for the same reason: the census LEDGER
859+
// carries a NOT_SDK row for service-analytics' dry-run parity pin, which
860+
// calls `analytics.query(` three times on the real AnalyticsService
861+
// (receiver `service`). A call added to or removed from that file moves
862+
// the census verdict, so a change to it has to re-run this suite.
863+
'packages/services/service-analytics/src/__tests__/objectql-echo-column-twice.test.ts',
858864
],
859865
heldBy: {
860866
// `scripts/**` is rostered TODAY through the census's own

‎turbo.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,8 @@
342342
"$TURBO_ROOT$/packages/rest/src/analytics-nested-relation-filter.test.ts",
343343
"$TURBO_ROOT$/packages/drivers/driver-memory/src/memory-exists-non-boolean-refusal.test.ts",
344344
"$TURBO_ROOT$/packages/services/service-analytics/src/__tests__/objectql-echo-date-bucket.test.ts",
345-
"$TURBO_ROOT$/packages/services/service-analytics/src/__tests__/objectql-echo-bucket-enumeration.test.ts"
345+
"$TURBO_ROOT$/packages/services/service-analytics/src/__tests__/objectql-echo-bucket-enumeration.test.ts",
346+
"$TURBO_ROOT$/packages/services/service-analytics/src/__tests__/objectql-echo-column-twice.test.ts"
346347
]
347348
},
348349
"@objectstack/lint#test": {

0 commit comments

Comments
 (0)