mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-12 19:44:48 +01:00
test: memory-pipeline E2E seeds transcript consent (W4 consent-first default)
This commit is contained in:
1 parent
1b154a832a
commit
6f20d61caa
1 file changed
+9
@@ -87,7 +87,16 @@ function setupFixture(home: string): { gstackHome: string; counts: Record<string
|
||||
};
|
||||
}
|
||||
|
||||
function seedTranscriptConsent(gstackHome: string | undefined): void {
|
||||
if (!gstackHome) return;
|
||||
mkdirSync(gstackHome, { recursive: true });
|
||||
const config = join(gstackHome, "config.yaml");
|
||||
const current = existsSync(config) ? readFileSync(config, "utf-8") : "";
|
||||
if (!/^transcript_ingest_mode:/m.test(current)) writeFileSync(config, `${current}transcript_ingest_mode: recent\n`);
|
||||
}
|
||||
|
||||
function runBun(script: string, args: string[], env: Record<string, string>): { stdout: string; stderr: string; exitCode: number } {
|
||||
seedTranscriptConsent(env.GSTACK_HOME);
|
||||
const r = spawnSync("bun", [script, ...args], {
|
||||
encoding: "utf-8",
|
||||
timeout: 60000,
|
||||
|
||||
Reference in new issue
Block a user