refactor: hard-fork GSD -> MSD (Make Software Done)
Mechanical rename produced by scripts/msd-rename.cjs: gsd/Gsd/GSD -> msd/Msd/MSD across contents and paths, upstream package/repo coordinates -> @golem15/msd-core and golem15com/msd-core. Deep links into upstream history, sibling upstream packages, the GSD-2 import feature, CHANGELOG.md and .changeset/ are kept as-is. Hand edits on top: MSD block-letter banner and logos, LICENSE copyright line, package/plugin identity, regenerated lockfile, install-tree fixtures, derived registries and benchmark baseline; migration checksum baseline re-locked (MSD keeps its own install state, so no install had applied the old sums); sort-order and regex-escaped expectations in tests adjusted.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
/**
|
||||
* Tests for scripts/benchmark-compact-content.cjs (Phase 4, #4404). Follows
|
||||
* `.gsd/phase/enhance-4404-token-benchmark/50-test-matrix.md` row by row.
|
||||
* `.msd/phase/enhance-4404-token-benchmark/50-test-matrix.md` row by row.
|
||||
*
|
||||
* 80/20 risk zone per that matrix: the "never fails CI" property and the
|
||||
* offline/determinism proof are the highest-value tests here — a benchmark
|
||||
@@ -49,7 +49,7 @@ describe('discovery', () => {
|
||||
});
|
||||
|
||||
test('a split with an empty detail file: off equals on, 0% reduction, no NaN/Infinity', () => {
|
||||
const tmp = createTempDir('gsd-bench-discovery-');
|
||||
const tmp = createTempDir('msd-bench-discovery-');
|
||||
try {
|
||||
const workflowsDir = path.join(tmp, 'workflows');
|
||||
fs.mkdirSync(path.join(workflowsDir, 'only', 'detail'), { recursive: true });
|
||||
@@ -68,7 +68,7 @@ describe('discovery', () => {
|
||||
});
|
||||
|
||||
test('zero registered splits at all: discovery returns [], aggregate reports an explicit 0/0 state', () => {
|
||||
const tmp = createTempDir('gsd-bench-discovery-empty-');
|
||||
const tmp = createTempDir('msd-bench-discovery-empty-');
|
||||
try {
|
||||
const workflowsDir = path.join(tmp, 'workflows');
|
||||
fs.mkdirSync(workflowsDir, { recursive: true });
|
||||
@@ -211,7 +211,7 @@ describe('determinism', () => {
|
||||
test('a genuine read error on a discovered source file throws loud, never silently dropped from the aggregate', () => {
|
||||
const realFs = require('node:fs');
|
||||
const originalReadFileSync = realFs.readFileSync;
|
||||
const targetPath = path.join(ROOT, 'gsd-core', 'workflows', 'plan-phase.md');
|
||||
const targetPath = path.join(ROOT, 'msd-core', 'workflows', 'plan-phase.md');
|
||||
// Method-monkeypatching, not chmod: deterministic cross-platform IO-failure
|
||||
// injection per this repo's own documented preference (chmod 000 is a
|
||||
// no-op under root/CI and on Windows). Restored in `finally` regardless of
|
||||
@@ -236,7 +236,7 @@ describe('determinism', () => {
|
||||
|
||||
describe('offline proof', () => {
|
||||
test('the deny-network preload is not a no-op: a network-touching probe throws under it', () => {
|
||||
const tmp = createTempDir('gsd-bench-offline-');
|
||||
const tmp = createTempDir('msd-bench-offline-');
|
||||
try {
|
||||
const probePath = path.join(tmp, 'dns-probe.cjs');
|
||||
fs.writeFileSync(probePath, "require('node:dns').lookup('example.com', () => {});\n");
|
||||
@@ -305,7 +305,7 @@ describe('proxy-tokenizer labeling', () => {
|
||||
const output = benchmark.formatDriftReport('/nonexistent-path-not-used', unlabeled);
|
||||
// formatDriftReport treats a read failure as "no baseline found"; to test
|
||||
// the label check specifically we call it via a real temp file instead.
|
||||
const tmp = createTempDir('gsd-bench-label-');
|
||||
const tmp = createTempDir('msd-bench-label-');
|
||||
try {
|
||||
const baselinePath = path.join(tmp, 'baseline.json');
|
||||
fs.writeFileSync(baselinePath, JSON.stringify(unlabeled, null, 2));
|
||||
@@ -329,7 +329,7 @@ describe('never-fails-CI', () => {
|
||||
});
|
||||
|
||||
test('--check against a baseline that differs by one token still exits 0, printing the diff', () => {
|
||||
const tmp = createTempDir('gsd-bench-drift-');
|
||||
const tmp = createTempDir('msd-bench-drift-');
|
||||
try {
|
||||
const committed = JSON.parse(fs.readFileSync(BASELINE_PATH, 'utf8'));
|
||||
const wrong = JSON.parse(JSON.stringify(committed));
|
||||
@@ -348,7 +348,7 @@ describe('never-fails-CI', () => {
|
||||
});
|
||||
|
||||
test('--check against a wholly missing baseline file still exits 0, reported as fully drifted', () => {
|
||||
const tmp = createTempDir('gsd-bench-missing-');
|
||||
const tmp = createTempDir('msd-bench-missing-');
|
||||
try {
|
||||
const missingPath = path.join(tmp, 'does-not-exist.json');
|
||||
const result = runBenchmark(['--check', `--baseline-path=${missingPath}`]);
|
||||
@@ -360,7 +360,7 @@ describe('never-fails-CI', () => {
|
||||
});
|
||||
|
||||
test('running --check twice against the same drifted baseline reports the same drift both times (idempotent)', () => {
|
||||
const tmp = createTempDir('gsd-bench-idempotent-');
|
||||
const tmp = createTempDir('msd-bench-idempotent-');
|
||||
try {
|
||||
const committed = JSON.parse(fs.readFileSync(BASELINE_PATH, 'utf8'));
|
||||
const wrong = JSON.parse(JSON.stringify(committed));
|
||||
@@ -385,7 +385,7 @@ describe('never-fails-CI', () => {
|
||||
// in scripts/benchmark-compact-content.cjs makes exactly this distinction.
|
||||
// Re-verified here via subprocess (module require cache in the discovery
|
||||
// describe-block above already covers the in-process shape).
|
||||
const tmp = createTempDir('gsd-bench-ioerror-');
|
||||
const tmp = createTempDir('msd-bench-ioerror-');
|
||||
try {
|
||||
const workflowsDir = path.join(tmp, 'workflows');
|
||||
fs.mkdirSync(path.join(workflowsDir, 'broken', 'detail'), { recursive: true });
|
||||
|
||||
Reference in New Issue
Block a user