chore(cleanup): R-b R1 — Voyage's own stats, events and OTel export removed
Removes Voyage's measurement, statistics and export apparatus (decision 189; condition 175 met in step 1) and the R-a leftovers: lib/stats/, lib/exporters/, the otel-export and post-bash-stats hooks, yardstick, end-state and comparison gates, synthesis-measure, gold-scorer, docs/observability.md, examples/observability/, docs/T1-cc26-delegated-orchestration.md and their tests and fixtures. The six command stats phases and the /trekexecute main-merge event blocks go; intent-approval --stamp no longer emits brief-approved. README and docs point to Claude Code's own OpenTelemetry. Files removed: 52. Files edited: 37. npm test: 2930 tests (2928 pass / 0 fail / 2 skipped) before, 2600 tests (2598 pass / 0 fail / 2 skipped) after. removed-surfaces group R1 green. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
92010d20de
commit
21480e8627
89 changed files with 94 additions and 10290 deletions
|
|
@ -1,59 +0,0 @@
|
|||
// SC #16 — skip-if-no-docker compose-config validation.
|
||||
// First test in tests/integration/ — establishes the skip-on-missing-tool
|
||||
// pattern voyage uses for environment-dependent integration tests.
|
||||
|
||||
import { test } from 'node:test';
|
||||
import { strict as assert } from 'node:assert';
|
||||
import { execFileSync, spawnSync } from 'node:child_process';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import { dirname, resolve } from 'node:path';
|
||||
|
||||
const __dirname = dirname(fileURLToPath(import.meta.url));
|
||||
const REPO_ROOT = resolve(__dirname, '../..');
|
||||
const COMPOSE_FILE = resolve(REPO_ROOT, 'examples/observability/docker-compose.yml');
|
||||
|
||||
const dockerAvailable = (() => {
|
||||
try {
|
||||
execFileSync('docker', ['info'], { stdio: 'ignore' });
|
||||
return true;
|
||||
} catch {
|
||||
return false;
|
||||
}
|
||||
})();
|
||||
|
||||
test(
|
||||
'compose config parses and contains expected services',
|
||||
{ skip: !dockerAvailable && 'Docker not installed' },
|
||||
() => {
|
||||
const r = spawnSync(
|
||||
'docker',
|
||||
['compose', '-f', COMPOSE_FILE, 'config'],
|
||||
{ encoding: 'utf8' },
|
||||
);
|
||||
assert.equal(r.status, 0, `docker compose config exited ${r.status}: ${r.stderr}`);
|
||||
assert.match(r.stdout, /otel-collector/, 'otel-collector service missing');
|
||||
assert.match(r.stdout, /prometheus/, 'prometheus service missing');
|
||||
assert.match(r.stdout, /grafana/, 'grafana service missing');
|
||||
assert.match(r.stdout, /node-exporter/, 'node-exporter service missing');
|
||||
},
|
||||
);
|
||||
|
||||
test(
|
||||
'compose config pins required image versions',
|
||||
{ skip: !dockerAvailable && 'Docker not installed' },
|
||||
() => {
|
||||
const r = spawnSync(
|
||||
'docker',
|
||||
['compose', '-f', COMPOSE_FILE, 'config'],
|
||||
{ encoding: 'utf8' },
|
||||
);
|
||||
assert.equal(r.status, 0);
|
||||
assert.match(r.stdout, /prom\/prometheus:v3\.0\.1/, 'prometheus pin missing');
|
||||
assert.match(r.stdout, /grafana\/grafana:11\.4\.0/, 'grafana pin missing');
|
||||
assert.match(
|
||||
r.stdout,
|
||||
/otel\/opentelemetry-collector-contrib:0\.115\.0/,
|
||||
'otel-collector pin missing',
|
||||
);
|
||||
},
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue