Skip to content

Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.

test(relay): study files run only when named [H5,H17]

Corey Olson4cc89f012fe4
diff --git a/test/relay-study-delta.test.js b/test/relay-study-delta.study.js
similarity index 91%
rename from test/relay-study-delta.test.js
rename to test/relay-study-delta.study.js
index f1c20442..0d93a9b2 100644
--- a/test/relay-study-delta.test.js
+++ b/test/relay-study-delta.study.js
@@ -1,4 +1,4 @@
-/** Measured change-based sync against whole checkpoints, for the private relay study [H5,H17]. */
+/** Change-based sync measured against whole checkpoints [H5,H17]. Run it explicitly: the default gate skips *.study.js. */
import assert from 'node:assert/strict';
import { createHash } from 'node:crypto';
import { readFileSync } from 'node:fs';
@@ -10,16 +10,12 @@ import { ENGINE_VERSION } from '../src/machine.js';
import { relayClientFixture } from './relay-client-fixture.js';
import { readRelay } from './relay-study-fixture.js';
-const STUDY = process.env.PULLBOARD_RELAY_STUDY === '1';
-
/** Sum the request or response bytes of transit rows that match one route. */
function bytes(rows, pick, side) {
return rows.filter(pick).reduce((sum, row) => sum + row[side].byteLength, 0);
}
-test('relay study measures one sealed move against its checkpoint at 10k and 50k events [H5,H17]', {
- timeout: 300_000, skip: !STUDY && 'a measurement: set PULLBOARD_RELAY_STUDY=1 to run it',
-}, async t => {
+test('relay study measures one sealed move against its checkpoint at 10k and 50k events [H5,H17]', { timeout: 300_000 }, async t => {
const box = await relayClientFixture(t);
await box.link();
const board = store.openBoard(join(box.root, '.git', 'pullboard', 'board.sqlite'));
diff --git a/test/relay-study-failure.test.js b/test/relay-study-failure.study.js
similarity index 92%
rename from test/relay-study-failure.test.js
rename to test/relay-study-failure.study.js
index c3fd44df..89ef5b92 100644
--- a/test/relay-study-failure.test.js
+++ b/test/relay-study-failure.study.js
@@ -6,9 +6,7 @@ import { test } from 'node:test';
import * as store from '../src/board.js';
import { relayClientFixture } from './relay-client-fixture.js';
-const SKIP = process.env.PULLBOARD_RELAY_STUDY !== '1' && 'a measurement: set PULLBOARD_RELAY_STUDY=1 to run it';
-
-test('relay study measures native reads and local moves across private transport failures [H5,H17]', { timeout: 300_000, skip: SKIP }, async t => {
+test('relay study measures native reads and local moves across private transport failures [H5,H17]', { timeout: 300_000 }, async t => {
for (const fault of ['down', 'slow-5s', '5xx', 'stale-engine']) {
const box = await relayClientFixture(t);
await box.link();
diff --git a/test/relay-study-moves.test.js b/test/relay-study-moves.study.js
similarity index 98%
rename from test/relay-study-moves.test.js
rename to test/relay-study-moves.study.js
index 43325601..a84f67ef 100644
--- a/test/relay-study-moves.test.js
+++ b/test/relay-study-moves.study.js
@@ -12,9 +12,7 @@ import { differences, readRelay } from './relay-study-fixture.js';
import { submitFixture } from './board-submit-fixture.js';
import { syntheticFlakeObservation } from './flake-observation-fixture.js';
-const SKIP = process.env.PULLBOARD_RELAY_STUDY !== '1' && 'a measurement: set PULLBOARD_RELAY_STUDY=1 to run it';
-
-test('relay study compares each exercised move effect through the real API2 reader [H5,H17]', { timeout: 180_000, skip: SKIP }, async t => {
+test('relay study compares each exercised move effect through the real API2 reader [H5,H17]', { timeout: 180_000 }, async t => {
const box = await relayClientFixture(t);
await box.link();
const board = store.openBoard(join(box.root, '.git', 'pullboard', 'board.sqlite'));
diff --git a/test/relay-study.test.js b/test/relay-study.study.js
similarity index 96%
rename from test/relay-study.test.js
rename to test/relay-study.study.js
index c4ff1f87..1de117dc 100644
--- a/test/relay-study.test.js
+++ b/test/relay-study.study.js
@@ -12,9 +12,7 @@ import { relaySnapshot } from '../src/relay-presentation.js';
import { relayClientFixture } from './relay-client-fixture.js';
import { differences, readRelay } from './relay-study-fixture.js';
-const SKIP = process.env.PULLBOARD_RELAY_STUDY !== '1' && 'a measurement: set PULLBOARD_RELAY_STUDY=1 to run it';
-
-test('relay study measures seeded native and API2 reader parity [H5,H17]', { timeout: 180_000, skip: SKIP }, async t => {
+test('relay study measures seeded native and API2 reader parity [H5,H17]', { timeout: 180_000 }, async t => {
const box = await relayClientFixture(t);
await box.link();
const board = store.openBoard(join(box.root, '.git', 'pullboard', 'board.sqlite'));
@@ -48,7 +46,7 @@ test('relay study measures seeded native and API2 reader parity [H5,H17]', { tim
assert.equal(full.length, 0, 'the measured relay restores every full presentation field');
});
-test('relay study measures 1k 10k and 50k native-event sync and private request saturation [H5,H17]', { timeout: 300_000, skip: SKIP }, async t => {
+test('relay study measures 1k 10k and 50k native-event sync and private request saturation [H5,H17]', { timeout: 300_000 }, async t => {
const box = await relayClientFixture(t);
await box.link();
const board = store.openBoard(join(box.root, '.git', 'pullboard', 'board.sqlite'));