Skip to content

Commit ee21ef7

Browse files
authored
test(miner): rename gittensory-miner/ams prose to loopover-miner/ams (#5874)
Rebrand cutover cleanup: update describe()/it() titles, mkdtempSync tmpdir prefixes, and comments across 26 test/unit files to use the current loopover-miner/loopover-ams naming. Also fixes a stale "gittensory-miner benchmark" banner string in benchmark.mjs and a check-miner-package.test.ts fixture filename that no longer matched the real package-name prefix it was meant to test.
1 parent 4ad4995 commit ee21ef7

27 files changed

Lines changed: 58 additions & 58 deletions

packages/loopover-miner/scripts/benchmark.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export function runLocalStoreBenchmark(options = {}) {
114114

115115
/** Render benchmark results as a stable, greppable text report (no locale-dependent number formatting). */
116116
export function formatBenchmarkReport(results) {
117-
const lines = ["gittensory-miner benchmark", ""];
117+
const lines = ["loopover-miner benchmark", ""];
118118
for (const result of results) {
119119
lines.push(
120120
`${result.name}: median ${result.medianMs.toFixed(2)}ms over ${result.iterations} runs, ` +

test/unit/check-miner-package.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ describe("check-miner-package script", () => {
4040
CHECK_MINER_PACK_TEST_FILES: JSON.stringify([
4141
"package.json",
4242
"bin/loopover-miner.js",
43-
"bin/gittensory-miner-backdoor.js",
43+
"bin/loopover-miner-backdoor.js",
4444
"lib/cli.js",
4545
]),
4646
CHECK_MINER_PACK_TEST_CONTENT: "console.log('not secret');",
4747
});
4848
expect(result.status).toBe(1);
49-
expect(result.out).toContain("Unexpected file in miner package: bin/gittensory-miner-backdoor.js");
49+
expect(result.out).toContain("Unexpected file in miner package: bin/loopover-miner-backdoor.js");
5050
});
5151

5252
it("REGRESSION (#3704 caused main to go red, fixed by flattening lib/ instead of widening this allowlist): rejects a lib module nested one level under a subdirectory", () => {

test/unit/coding-agent-miner.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ describe("lint-guarded edit wrapper (#4276)", () => {
660660
]);
661661
});
662662

663-
it("guardChangedFiles reports a node --check syntax error in a gittensory-miner JS file", async () => {
663+
it("guardChangedFiles reports a node --check syntax error in a loopover-miner JS file", async () => {
664664
const { spawn } = recordingSpawn({
665665
"node --check packages/loopover-miner/lib/cli.js": {
666666
code: 1,

test/unit/mcp-miner-prompts.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ async function connectTestClient() {
2222
const mcpServer = new LoopoverMcp(createTestEnv()).createServer();
2323
const [clientTransport, serverTransport] = InMemoryTransport.createLinkedPair();
2424
await mcpServer.connect(serverTransport);
25-
const client = new Client({ name: "gittensory-miner-test", version: "0.1.0" }, { capabilities: {} });
25+
const client = new Client({ name: "loopover-miner-test", version: "0.1.0" }, { capabilities: {} });
2626
await client.connect(clientTransport);
2727
return { client, mcpServer };
2828
}

test/unit/miner-ams-policy.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ afterEach(() => {
1717
});
1818

1919
function tempRoot() {
20-
const root = mkdtempSync(join(tmpdir(), "gittensory-miner-ams-policy-"));
20+
const root = mkdtempSync(join(tmpdir(), "loopover-miner-ams-policy-"));
2121
roots.push(root);
2222
return root;
2323
}

test/unit/miner-attempt-log.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const roots: string[] = [];
2121
const logs: Array<{ close(): void }> = [];
2222

2323
function tempAttemptLog() {
24-
const root = mkdtempSync(join(tmpdir(), "gittensory-miner-attempt-log-"));
24+
const root = mkdtempSync(join(tmpdir(), "loopover-miner-attempt-log-"));
2525
roots.push(root);
2626
const log = initAttemptLog(join(root, "nested", "attempt-log.sqlite3"));
2727
logs.push(log);
@@ -41,7 +41,7 @@ afterEach(() => {
4141
for (const root of roots.splice(0)) rmSync(root, { recursive: true, force: true });
4242
});
4343

44-
describe("gittensory-miner attempt log (#4294)", () => {
44+
describe("loopover-miner attempt log (#4294)", () => {
4545
it("resolves the DB path from env override, miner config dir, XDG config, then the home default", () => {
4646
expect(resolveAttemptLogDbPath({ LOOPOVER_MINER_ATTEMPT_LOG_DB: "/custom/a.sqlite3" })).toBe(
4747
"/custom/a.sqlite3",
@@ -211,7 +211,7 @@ describe("gittensory-miner attempt log (#4294)", () => {
211211
});
212212

213213
it("uses the default singleton helpers and closes cleanly", () => {
214-
const root = mkdtempSync(join(tmpdir(), "gittensory-miner-attempt-log-default-"));
214+
const root = mkdtempSync(join(tmpdir(), "loopover-miner-attempt-log-default-"));
215215
roots.push(root);
216216
const previousConfigDir = process.env.LOOPOVER_MINER_CONFIG_DIR;
217217
process.env.LOOPOVER_MINER_CONFIG_DIR = root;
@@ -252,7 +252,7 @@ describe("gittensory-miner attempt log (#4294)", () => {
252252
});
253253

254254
it("migrates a pre-#5185 on-disk file missing provider/cost_usd/tokens_used columns", () => {
255-
const root = mkdtempSync(join(tmpdir(), "gittensory-miner-attempt-log-migrate-"));
255+
const root = mkdtempSync(join(tmpdir(), "loopover-miner-attempt-log-migrate-"));
256256
roots.push(root);
257257
const dbPath = join(root, "attempt-log.sqlite3");
258258
const raw = new DatabaseSync(dbPath);
@@ -294,7 +294,7 @@ describe("gittensory-miner attempt log (#4294)", () => {
294294
});
295295

296296
it("re-opening an already-migrated file is a no-op: no duplicate/failing ALTER TABLE", () => {
297-
const root = mkdtempSync(join(tmpdir(), "gittensory-miner-attempt-log-reopen-"));
297+
const root = mkdtempSync(join(tmpdir(), "loopover-miner-attempt-log-reopen-"));
298298
roots.push(root);
299299
const dbPath = join(root, "attempt-log.sqlite3");
300300

test/unit/miner-attempt-runner.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ const roots: string[] = [];
2727
const closers: Array<{ close(): void }> = [];
2828

2929
function tempEventLedger() {
30-
const root = mkdtempSync(join(tmpdir(), "gittensory-miner-attempt-runner-events-"));
30+
const root = mkdtempSync(join(tmpdir(), "loopover-miner-attempt-runner-events-"));
3131
roots.push(root);
3232
const ledger = initEventLedger(join(root, "db.sqlite3"));
3333
closers.push(ledger);
3434
return ledger;
3535
}
3636

3737
function tempGovernorLedger() {
38-
const root = mkdtempSync(join(tmpdir(), "gittensory-miner-attempt-runner-governor-"));
38+
const root = mkdtempSync(join(tmpdir(), "loopover-miner-attempt-runner-governor-"));
3939
roots.push(root);
4040
const ledger = initGovernorLedger(join(root, "governor-ledger.sqlite3"));
4141
closers.push(ledger);
@@ -45,7 +45,7 @@ function tempGovernorLedger() {
4545
// Isolated per test: without this, evaluateGovernorChokepointGatePersisted's own default-store fallback
4646
// would open the REAL ~/.config/loopover-miner/governor-state.sqlite3 on whatever machine runs these tests.
4747
function tempGovernorState() {
48-
const root = mkdtempSync(join(tmpdir(), "gittensory-miner-attempt-runner-governor-state-"));
48+
const root = mkdtempSync(join(tmpdir(), "loopover-miner-attempt-runner-governor-state-"));
4949
roots.push(root);
5050
const state = openGovernorState(join(root, "governor-state.sqlite3"));
5151
closers.push(state);
@@ -280,7 +280,7 @@ describe("runMinerAttempt (#2337) — the real create->review->gate->submit pipe
280280
});
281281

282282
it("falls back to the real default governor-ledger append when governorLedgerAppend is omitted", async () => {
283-
const root = mkdtempSync(join(tmpdir(), "gittensory-miner-attempt-runner-default-governor-"));
283+
const root = mkdtempSync(join(tmpdir(), "loopover-miner-attempt-runner-default-governor-"));
284284
roots.push(root);
285285
vi.stubEnv("LOOPOVER_MINER_GOVERNOR_LEDGER_DB", join(root, "default-governor.sqlite3"));
286286
const deps = baseDeps();
@@ -293,7 +293,7 @@ describe("runMinerAttempt (#2337) — the real create->review->gate->submit pipe
293293
});
294294

295295
it("falls back to the real default governor-state store when governorState is omitted", async () => {
296-
const root = mkdtempSync(join(tmpdir(), "gittensory-miner-attempt-runner-default-governor-state-"));
296+
const root = mkdtempSync(join(tmpdir(), "loopover-miner-attempt-runner-default-governor-state-"));
297297
roots.push(root);
298298
vi.stubEnv("LOOPOVER_MINER_GOVERNOR_STATE_DB", join(root, "default-governor-state.sqlite3"));
299299
const deps = baseDeps();
@@ -413,7 +413,7 @@ describe("runMinerAttempt — real self-plagiarism wiring into the chokepoint (#
413413
it("reads the real default governor-state store when no governorState dep is supplied (production path)", async () => {
414414
// deps omit governorState, so BOTH the chokepoint's own default-store fallback AND this module's late
415415
// augmentation read the same env-pointed store; a matching prior submission there throttles.
416-
const root = mkdtempSync(join(tmpdir(), "gittensory-miner-attempt-runner-default-gs-"));
416+
const root = mkdtempSync(join(tmpdir(), "loopover-miner-attempt-runner-default-gs-"));
417417
roots.push(root);
418418
vi.stubEnv("LOOPOVER_MINER_GOVERNOR_STATE_DB", join(root, "governor-state.sqlite3"));
419419
recordOwnSubmission({

test/unit/miner-attempt-worktree.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ describe("createRealWorktreeExec (#5132)", () => {
5757

5858
describe("prepareAttemptWorktree / cleanupAttemptWorktree (#5132)", () => {
5959
it("REGRESSION: worktreePath is a real, checked-out git repo on a real branch, not an empty directory", async () => {
60-
const root = tempRoot("gittensory-miner-attempt-worktree-");
60+
const root = tempRoot("loopover-miner-attempt-worktree-");
6161
const originPath = initOriginRepo(root);
6262
const cloneBaseDir = join(root, "cache");
6363

@@ -75,7 +75,7 @@ describe("prepareAttemptWorktree / cleanupAttemptWorktree (#5132)", () => {
7575
});
7676

7777
it("removes a succeeded attempt's worktree but retains a failed one's, per the engine's own retention policy", async () => {
78-
const root = tempRoot("gittensory-miner-attempt-worktree-cleanup-");
78+
const root = tempRoot("loopover-miner-attempt-worktree-cleanup-");
7979
const originPath = initOriginRepo(root);
8080
const cloneBaseDir = join(root, "cache");
8181

@@ -93,7 +93,7 @@ describe("prepareAttemptWorktree / cleanupAttemptWorktree (#5132)", () => {
9393
});
9494

9595
it("returns ok:false when the base clone cannot be prepared, without attempting git worktree add", async () => {
96-
const root = tempRoot("gittensory-miner-attempt-worktree-clonefail-");
96+
const root = tempRoot("loopover-miner-attempt-worktree-clonefail-");
9797
const cloneBaseDir = join(root, "cache");
9898
const execSpy = vi.fn();
9999

@@ -111,7 +111,7 @@ describe("prepareAttemptWorktree / cleanupAttemptWorktree (#5132)", () => {
111111
});
112112

113113
it("returns ok:false with git's real stderr when git worktree add fails (e.g. an unknown base branch)", async () => {
114-
const root = tempRoot("gittensory-miner-attempt-worktree-addfail-");
114+
const root = tempRoot("loopover-miner-attempt-worktree-addfail-");
115115
const originPath = initOriginRepo(root);
116116
const cloneBaseDir = join(root, "cache");
117117

test/unit/miner-backup-restore-scripts.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { afterEach, describe, expect, it } from "vitest";
1313
const tmpRoots: string[] = [];
1414

1515
function tmpRoot(): string {
16-
const dir = mkdtempSync(join(tmpdir(), "gittensory-miner-backup-"));
16+
const dir = mkdtempSync(join(tmpdir(), "loopover-miner-backup-"));
1717
tmpRoots.push(dir);
1818
return dir;
1919
}

test/unit/miner-benchmark-script.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
runRankingBenchmark,
1010
} from "../../packages/loopover-miner/scripts/benchmark.mjs";
1111

12-
describe("gittensory-miner benchmark script (#4845)", () => {
12+
describe("loopover-miner benchmark script (#4845)", () => {
1313
it("REGRESSION: synthetic candidate generation is byte-for-byte deterministic across calls", () => {
1414
expect(buildSyntheticCandidates(50)).toEqual(buildSyntheticCandidates(50));
1515
});
@@ -63,7 +63,7 @@ describe("gittensory-miner benchmark script (#4845)", () => {
6363
]),
6464
).toBe(
6565
[
66-
"gittensory-miner benchmark",
66+
"loopover-miner benchmark",
6767
"",
6868
"discovery-fanout-ranking: median 12.35ms over 5 runs, 40502 ops/sec (n=500)",
6969
"local-store-read-write: median 8.00ms over 5 runs, 125000 ops/sec (n=1000)",
@@ -77,7 +77,7 @@ describe("gittensory-miner benchmark script (#4845)", () => {
7777
encoding: "utf8",
7878
});
7979
expect(result.status).toBe(0);
80-
expect(result.stdout).toContain("gittensory-miner benchmark");
80+
expect(result.stdout).toContain("loopover-miner benchmark");
8181
expect(result.stdout).toContain("discovery-fanout-ranking:");
8282
expect(result.stdout).toContain("local-store-read-write:");
8383
});

0 commit comments

Comments
 (0)