fix: complete durable workspace runtime config handoff
This commit is contained in:
@@ -101,7 +101,8 @@ async function fixture(workspaceSource = filesystemWorkspace) {
|
||||
writeFileSync(path, contents, { mode: 0o600 });
|
||||
chmodSync(path, 0o600);
|
||||
}
|
||||
mkdirSync(dataRoot);
|
||||
mkdirSync(dataRoot, { mode: 0o700 });
|
||||
chmodSync(dataRoot, 0o700);
|
||||
const registryConfig: WorkspaceRegistryConfig = {
|
||||
root: registryRoot,
|
||||
remoteUrl: remote,
|
||||
@@ -138,7 +139,7 @@ function runnerFor(f: Awaited<ReturnType<typeof fixture>>): ThtRunner {
|
||||
harnessDir,
|
||||
configPath: "config/tht.yaml",
|
||||
dataRoot: f.dataRoot,
|
||||
runtimeSnapshotRoot: join(f.registryConfig.root, "snapshots", "runtime"),
|
||||
runtimeSnapshotRoot: join(f.registryConfig.root, "snapshots"),
|
||||
secretRoots: f.registryConfig.secretRoots,
|
||||
} as any);
|
||||
}
|
||||
@@ -162,7 +163,7 @@ test("real schema-v3 registry revision loads through ThtRunner and the harness c
|
||||
expect(existsSync(join(
|
||||
f.dataRoot, "sessions", "psd-clinical", "sessions", created.id, "session_manifest.yaml",
|
||||
))).toBe(true);
|
||||
expect(readdirSync(join(f.registryConfig.root, "snapshots", "runtime"))).toEqual([]);
|
||||
expect(readdirSync(join(f.registryConfig.root, "snapshots"))).toContain(f.revision.commit);
|
||||
});
|
||||
|
||||
test("separate runtime leases hand off byte-identical revision Evidence configs accepted by tht", async () => {
|
||||
@@ -215,7 +216,7 @@ test("separate runtime leases hand off byte-identical revision Evidence configs
|
||||
expect(existsSync(first.path)).toBe(true);
|
||||
expect(existsSync(second.path)).toBe(true);
|
||||
second.release();
|
||||
expect(existsSync(second.path)).toBe(false);
|
||||
expect(existsSync(second.path)).toBe(true);
|
||||
} finally {
|
||||
first.release();
|
||||
second.release();
|
||||
|
||||
Reference in New Issue
Block a user