@gate-forge/cli 0.18.1 → 0.18.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +51 -0
- package/README.md +34 -0
- package/dist/ci-witnessed-template.d.ts.map +1 -1
- package/dist/ci-witnessed-template.js +2 -0
- package/dist/ci-witnessed-template.js.map +1 -1
- package/dist/commands/test-gates.d.ts.map +1 -1
- package/dist/commands/test-gates.js +26 -1
- package/dist/commands/test-gates.js.map +1 -1
- package/dist/progress.d.ts +5 -0
- package/dist/progress.d.ts.map +1 -1
- package/dist/progress.js +33 -1
- package/dist/progress.js.map +1 -1
- package/dist/state-artifacts.d.ts.map +1 -1
- package/dist/state-artifacts.js +1 -0
- package/dist/state-artifacts.js.map +1 -1
- package/dist/state.d.ts +25 -5
- package/dist/state.d.ts.map +1 -1
- package/dist/state.js +39 -6
- package/dist/state.js.map +1 -1
- package/dist/supervisor-timing.d.ts +23 -0
- package/dist/supervisor-timing.d.ts.map +1 -0
- package/dist/supervisor-timing.js +22 -0
- package/dist/supervisor-timing.js.map +1 -0
- package/guides/QUICKSTART.md +5 -5
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,57 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 0.18.2
|
|
6
|
+
|
|
7
|
+
- **Session open runs the observe-declared resource snapshots
|
|
8
|
+
concurrently.** Session open used to pay the sum of every
|
|
9
|
+
observe-declared resource's adapter `list()` time before the runner
|
|
10
|
+
saw a session (4 × 1.5 s resources opened in ~6 s). The snapshots
|
|
11
|
+
now run via `Promise.all` over the sorted resource ids and are
|
|
12
|
+
inserted into the stored per-session map in that same sorted order,
|
|
13
|
+
so what is stored is unchanged and only the wall clock moves — open
|
|
14
|
+
takes about the slowest single snapshot (~1.6 s in the new
|
|
15
|
+
concurrency test), error snapshots still arrive exactly as before
|
|
16
|
+
(`snapshotObserveResource` never throws), and the open still waits
|
|
17
|
+
at least one resource list so the before-state exists before the
|
|
18
|
+
test acts.
|
|
19
|
+
|
|
20
|
+
- **Failures are classified infra vs test.** Every error the fixture
|
|
21
|
+
throws because Gateforge itself could not provide its machinery
|
|
22
|
+
starts with the stable `[gateforge:infra] ` marker (also recognized
|
|
23
|
+
behind Playwright's `Error: ` name prefix); the finish line becomes
|
|
24
|
+
`run finished — P passed, F failed (I infra, T test), S skipped …`,
|
|
25
|
+
the drain's supervisor failures print `test-gates: infra: <count>
|
|
26
|
+
<kind>` lines next to the observe notes, and failures.json is
|
|
27
|
+
schemaVersion 2 with a per-failure `kind`. An infra failure still
|
|
28
|
+
fails its test and still blocks — this is reporting, not a pass/fail
|
|
29
|
+
change.
|
|
30
|
+
|
|
31
|
+
- **Near-budget supervisor timing.** Every supervisor→witness call is
|
|
32
|
+
timed per path (count, max, calls ≥ 80 % of their timeout) at the
|
|
33
|
+
drain's `stop()`; `test-gates` prints one warning line per path with
|
|
34
|
+
a near-budget call (`test-gates: warning: /sessions/open slowest 4.6
|
|
35
|
+
s of 5 s budget (3 calls ≥ 80 %)`) next to the infra lines and
|
|
36
|
+
always writes `supervisor-timing.json` to the state dir, so a
|
|
37
|
+
timing smell is visible before the 5 s budget is actually hit.
|
|
38
|
+
|
|
39
|
+
- **Stress e2e through the real CLI, and the orphaned-session fix.**
|
|
40
|
+
New `packages/cli/test/supervisor-stress-e2e.test.ts` drives
|
|
41
|
+
`test-gates` end to end with 2 workers and an environment-delayed
|
|
42
|
+
observe adapter: all-pass with a timing summary at 300 ms, and an
|
|
43
|
+
over-budget run whose failure is counted as infra with the marker in
|
|
44
|
+
failures.json. Under-budget-case review exposed a real regression:
|
|
45
|
+
a session was resolvable before its before-state existed, so the
|
|
46
|
+
session is now registered immediately with a readiness gate — an
|
|
47
|
+
identical re-open awaits the same session, `/sessions/resolve`
|
|
48
|
+
answers 404 until the before-snapshots are stored, and close/release
|
|
49
|
+
await the gate.
|
|
50
|
+
|
|
51
|
+
- **Docs: "Reading a red witnessed run".** New
|
|
52
|
+
`packages/cli/README.md` section covering infra vs test failure
|
|
53
|
+
kinds, the split finish line, failures.json `kind`, the
|
|
54
|
+
`test-gates: infra:` lines and the near-budget timing warnings.
|
|
55
|
+
|
|
5
56
|
## 0.18.1
|
|
6
57
|
|
|
7
58
|
- **Fixed: a slow observe finalize no longer delays the next test's
|
package/README.md
CHANGED
|
@@ -95,6 +95,40 @@ Global flags: `--help`, `--version`. Exit codes per architecture contract 4:
|
|
|
95
95
|
run), `2` config/usage error. `tests diagnose` has its own advisory contract
|
|
96
96
|
(0/1/2 above).
|
|
97
97
|
|
|
98
|
+
## Reading a red witnessed run
|
|
99
|
+
|
|
100
|
+
The progress stream ends with one finish line before grading:
|
|
101
|
+
|
|
102
|
+
gateforge: run finished — 8 passed, 2 failed (1 infra, 1 test), 0 skipped in 1m32s; grading…
|
|
103
|
+
|
|
104
|
+
`test` counts failures of the app under test. `infra` counts failures where
|
|
105
|
+
Gateforge's own machinery could not provide what the test needed: the fixture
|
|
106
|
+
throws every such error with the stable marker `[gateforge:infra] `
|
|
107
|
+
(`INFRA_FAILURE_MARKER`, `packages/pack-playwright/src/fixture/fixture.ts`;
|
|
108
|
+
`packages/cli/src/progress.ts` classifies the failure's first line, allowing
|
|
109
|
+
the `Error: ` name prefix Playwright's error serialization adds). Both kinds
|
|
110
|
+
fail the test and block the gate identically — the split only names whose
|
|
111
|
+
trouble it is.
|
|
112
|
+
|
|
113
|
+
When the progress stream is on, `.gateforge/test-gates/failures.json`
|
|
114
|
+
(`schemaVersion: 2`) records every failed test with its credential-guarded
|
|
115
|
+
`message`, short stack frames and its `kind: "infra" | "test"` — the screened
|
|
116
|
+
alternative to a runner log CI keeps private.
|
|
117
|
+
|
|
118
|
+
Two more stderr line groups appear beside the observe notes after the run:
|
|
119
|
+
|
|
120
|
+
- `test-gates: infra: <count> <kind>` — supervisor-side trouble the drain
|
|
121
|
+
could only warn about (kinds `session-close`, `lifecycle-event`,
|
|
122
|
+
`persistence-intent`, `outcome-chain`, `test-event-observer`).
|
|
123
|
+
Diagnostics; the gate's pass/fail rules are unchanged.
|
|
124
|
+
- `test-gates: warning: <path> slowest <n> s of <budget> s budget (<k> calls ≥ 80 %)`
|
|
125
|
+
— one line per witness API path with a call that took at least 80 % of its
|
|
126
|
+
timeout (5 s by default), sorted by path, so budget pressure is visible
|
|
127
|
+
before a call actually exceeds its deadline. The per-path tally (`count`,
|
|
128
|
+
`maxMs`, `nearBudget`, `budgetMs`) is always written to
|
|
129
|
+
`.gateforge/test-gates/supervisor-timing.json`; both witnessed CI templates
|
|
130
|
+
upload it beside `failures.json`.
|
|
131
|
+
|
|
98
132
|
## Proof paths
|
|
99
133
|
|
|
100
134
|
- **Overlay (default).** New thin tests in `tests/e2e/gateforge/` using
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ci-witnessed-template.d.ts","sourceRoot":"","sources":["../src/ci-witnessed-template.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAKlC,sDAAsD;AACtD,eAAO,MAAM,oBAAoB,wBAAwB,CAAC;AAC1D,4DAA4D;AAC5D,eAAO,MAAM,oBAAoB,cAAc,CAAC;AAChD,gEAAgE;AAChE,eAAO,MAAM,qBAAqB,uCAAuC,CAAC;AAC1E,wEAAwE;AACxE,eAAO,MAAM,qBAAqB,8CAA8C,CAAC;AAiDjF;;;;;;;;GAQG;AACH,wBAAgB,6BAA6B,IAAI,MAAM,
|
|
1
|
+
{"version":3,"file":"ci-witnessed-template.d.ts","sourceRoot":"","sources":["../src/ci-witnessed-template.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAKlC,sDAAsD;AACtD,eAAO,MAAM,oBAAoB,wBAAwB,CAAC;AAC1D,4DAA4D;AAC5D,eAAO,MAAM,oBAAoB,cAAc,CAAC;AAChD,gEAAgE;AAChE,eAAO,MAAM,qBAAqB,uCAAuC,CAAC;AAC1E,wEAAwE;AACxE,eAAO,MAAM,qBAAqB,8CAA8C,CAAC;AAiDjF;;;;;;;;GAQG;AACH,wBAAgB,6BAA6B,IAAI,MAAM,CA4CtD;AAED;;;;;;;;;GASG;AACH,wBAAgB,6BAA6B,IAAI,MAAM,CA2EtD;AA0DD;;;;;;;;;;GAUG;AACH,wBAAgB,wBAAwB,CAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,QAAQ,GAAG,QAAQ,GAAG,IAAI,CAOpF"}
|
|
@@ -118,6 +118,7 @@ ${ciScriptBlock(WITNESSED_VERDICT_SCRIPT)}
|
|
|
118
118
|
- .gateforge/test-gates/receipt.json
|
|
119
119
|
- .gateforge/test-gates/execution-result.json
|
|
120
120
|
- .gateforge/test-gates/failures.json
|
|
121
|
+
- .gateforge/test-gates/supervisor-timing.json
|
|
121
122
|
expire_in: 90 days
|
|
122
123
|
rules:
|
|
123
124
|
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
|
@@ -205,6 +206,7 @@ jobs:
|
|
|
205
206
|
.gateforge/test-gates/receipt.json
|
|
206
207
|
.gateforge/test-gates/execution-result.json
|
|
207
208
|
.gateforge/test-gates/failures.json
|
|
209
|
+
.gateforge/test-gates/supervisor-timing.json
|
|
208
210
|
if-no-files-found: warn
|
|
209
211
|
retention-days: 90
|
|
210
212
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ci-witnessed-template.js","sourceRoot":"","sources":["../src/ci-witnessed-template.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAE1C,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE/C,sDAAsD;AACtD,MAAM,CAAC,MAAM,oBAAoB,GAAG,qBAAqB,CAAC;AAC1D,4DAA4D;AAC5D,MAAM,CAAC,MAAM,oBAAoB,GAAG,WAAW,CAAC;AAChD,gEAAgE;AAChE,MAAM,CAAC,MAAM,qBAAqB,GAAG,oCAAoC,CAAC;AAC1E,wEAAwE;AACxE,MAAM,CAAC,MAAM,qBAAqB,GAAG,2CAA2C,CAAC;AAEjF;;;;;;;;GAQG;AACH,MAAM,oBAAoB,GAAsB;IAC9C,SAAS;IACT,uEAAuE;IACvE,qEAAqE;IACrE,mEAAmE;IACnE,0DAA0D;IAC1D,oEAAoE;IACpE,gEAAgE;IAChE,sEAAsE;IACtE,kEAAkE;IAClE,uDAAuD;IACvD,yCAAyC;IACzC,kEAAkE;IAClE,IAAI;IACJ,mEAAmE;IACnE,qEAAqE;IACrE,4CAA4C;IAC5C,sDAAsD;IACtD,gBAAgB;IAChB,MAAM;IACN,iBAAiB;IACjB,IAAI;CACL,CAAC;AAEF;;;GAGG;AACH,MAAM,wBAAwB,GAAsB;IAClD,mDAAmD;IACnD,ohBAAohB;IACphB,MAAM;IACN,gFAAgF;IAChF,gBAAgB;IAChB,IAAI;IACJ,oBAAoB;CACrB,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,UAAU,6BAA6B;IAC3C,OAAO,4BAA4B,OAAO;;;;;;;;;;;;;EAa1C,oBAAoB;;;;0BAII,OAAO;;;;;;;;EAQ/B,aAAa,CAAC,iBAAiB,CAAC;;EAEhC,aAAa,CAAC,oBAAoB,CAAC;;EAEnC,aAAa,CAAC,wBAAwB,CAAC
|
|
1
|
+
{"version":3,"file":"ci-witnessed-template.js","sourceRoot":"","sources":["../src/ci-witnessed-template.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EA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AAC;QACzF,OAAO;IACT,CAAC;IACD,cAAc,CAAC,EAAE,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,EAAE,qBAAqB,CAAC,EAAE,6BAA6B,EAAE,CAAC,CAAC;IACzF,mBAAmB,CAAC,EAAE,CAAC,CAAC;AAC1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-gates.d.ts","sourceRoot":"","sources":["../../src/commands/test-gates.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AACH,OAAO,EAAoB,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAMzE,OAAO,EA4BL,KAAK,eAAe,EAEpB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,eAAe,EAEpB,KAAK,WAAW,EAGhB,KAAK,iBAAiB,EAKtB,KAAK,SAAS,EAcd,KAAK,gBAAgB,EACrB,KAAK,UAAU,EAGf,KAAK,WAAW,EAKhB,KAAK,QAAQ,EAGd,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"test-gates.d.ts","sourceRoot":"","sources":["../../src/commands/test-gates.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AACH,OAAO,EAAoB,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAMzE,OAAO,EA4BL,KAAK,eAAe,EAEpB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,eAAe,EAEpB,KAAK,WAAW,EAGhB,KAAK,iBAAiB,EAKtB,KAAK,SAAS,EAcd,KAAK,gBAAgB,EACrB,KAAK,UAAU,EAGf,KAAK,WAAW,EAKhB,KAAK,QAAQ,EAGd,MAAM,kBAAkB,CAAC;AAyD1B,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AA2CnC,OAAO,EAOL,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H,wBAAgB,0BAA0B,CACxC,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,EACb,eAAe,EAAE,eAAe,GAAG,IAAI,EACvC,QAAQ,EAAE,SAAS,iBAAiB,EAAE,GACrC,MAAM,CAgDR;AAkID;;;;;;;;;;;;GAYG;AACH,wBAAsB,kBAAkB,CAAC,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE;IAAE,KAAK,EAAE,YAAY,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAiB/F"}
|
|
@@ -98,7 +98,8 @@ import { hostLoadFailureNotices, startHostLoadSampler } from '../host-load.js';
|
|
|
98
98
|
import { captureServiceLogs, runHarnessSetup, runHarnessTeardown, } from '../run-reliability.js';
|
|
99
99
|
import { pruneRunHistory, recordRunHistory } from '../history.js';
|
|
100
100
|
import { ProgressStream, resolveProgressTarget } from '../progress.js';
|
|
101
|
-
import { writeRunScopeView, writeStateFile, writeTestFailures } from '../state.js';
|
|
101
|
+
import { writeRunScopeView, writeStateFile, writeSupervisorTiming, writeTestFailures } from '../state.js';
|
|
102
|
+
import { supervisorTimingWarningLines } from '../supervisor-timing.js';
|
|
102
103
|
import { keepFailureArtifacts } from '../failure-artifacts.js';
|
|
103
104
|
import { expandSerialSelection } from '../serial-expansion.js';
|
|
104
105
|
export const TEST_GATES_USAGE = 'usage: gateforge test-gates [--changed] [--scope full|changed] [--suite <command>] [--out <dir>] ' +
|
|
@@ -4114,6 +4115,10 @@ async function runSupervisedTestGatesInner(io, options, declaredRunnerEnvNames)
|
|
|
4114
4115
|
let sessionTrace = null;
|
|
4115
4116
|
let lifecycleConflicts = [];
|
|
4116
4117
|
let intentFailures = [];
|
|
4118
|
+
// The drain client's per-path call timing (plan
|
|
4119
|
+
// 20261021_0030_gf_infra_visibility, P3): captured in the `finally`
|
|
4120
|
+
// below, then warned about and written to the state dir.
|
|
4121
|
+
let supervisorTiming = [];
|
|
4117
4122
|
// The live attestation envelope (step 8 below) — fetched in the
|
|
4118
4123
|
// `finally` while the spawned witness still serves, persisted as the
|
|
4119
4124
|
// durable fallback, then the witness is stopped. `null` until then.
|
|
@@ -4230,6 +4235,7 @@ async function runSupervisedTestGatesInner(io, options, declaredRunnerEnvNames)
|
|
|
4230
4235
|
const drained = await drain.stop();
|
|
4231
4236
|
lifecycleConflicts = drained.conflicts;
|
|
4232
4237
|
intentFailures = drained.intentFailures;
|
|
4238
|
+
supervisorTiming = drained.supervisorTiming;
|
|
4233
4239
|
// Observe finalize notes are diagnostics (missing traffic,
|
|
4234
4240
|
// ambiguity, adapter trouble) — the obligations stay blocking
|
|
4235
4241
|
// through verdicts, which is the honest outcome. Surfaced on
|
|
@@ -4238,6 +4244,25 @@ async function runSupervisedTestGatesInner(io, options, declaredRunnerEnvNames)
|
|
|
4238
4244
|
for (const note of drained.observeNotes) {
|
|
4239
4245
|
writeLine(io.stderr, `test-gates: ${note}`);
|
|
4240
4246
|
}
|
|
4247
|
+
// Supervisor-side infra trouble the drain could only warn about
|
|
4248
|
+
// (plan 20261021_0030_gf_infra_visibility, P2 item 4): printed next
|
|
4249
|
+
// to the observe notes so an operator sees machinery trouble that
|
|
4250
|
+
// reaches no other returned array. Diagnostics, never run-fatal
|
|
4251
|
+
// here — the gate's own fail-closed rules are untouched.
|
|
4252
|
+
for (const infraEvent of drained.infraEvents) {
|
|
4253
|
+
writeLine(io.stderr, `test-gates: infra: ${String(infraEvent.count)} ${infraEvent.kind}`);
|
|
4254
|
+
}
|
|
4255
|
+
// Near-budget supervisor→witness timing (plan
|
|
4256
|
+
// 20261021_0030_gf_infra_visibility, P3): one warning per witness
|
|
4257
|
+
// API path that took ≥ 80 % of its timeout, printed next to the
|
|
4258
|
+
// infra lines so budget pressure is visible BEFORE a call actually
|
|
4259
|
+
// exceeds its deadline, plus the always-on state document. Timing
|
|
4260
|
+
// is always on (the host-load sampler above stays opt-in);
|
|
4261
|
+
// reporting only — no pass/fail rule changes.
|
|
4262
|
+
for (const line of supervisorTimingWarningLines(supervisorTiming)) {
|
|
4263
|
+
writeLine(io.stderr, `test-gates: ${line}`);
|
|
4264
|
+
}
|
|
4265
|
+
writeSupervisorTiming(stateDir, manifest.runId, supervisorTiming);
|
|
4241
4266
|
try {
|
|
4242
4267
|
const trace = await supervisor.executionTrace();
|
|
4243
4268
|
sessionTrace = trace === null ? null : trace.tests;
|