Use extension content hashes in dependent test fixtures

This commit is contained in:
2026-11-12 12:28:52 +00:00
parent b4b2fbe33e
commit e7674f89d7
10 changed files with 27 additions and 30 deletions
+3 -3
View File
@@ -56,7 +56,7 @@ const call=async(tool:string,args:any)=>{
return result;
};
const submit=async(id:number)=>{
const {Started}=await import(`file:///run/sausage/extensions/${await fs.read('/src/sausage/.git/sausage-last-good')}/extensions/messages/addresses.ts`);
const {Started}=await import(`file:///run/sausage/extensions/${loader.state().good}/extensions/messages/addresses.ts`);
await harness.commit(async(tx:any)=>{(await tx.doc(Started,id)).by=root.id},context);
const child=await harness.conversation(id,context);
await(await child.submit({type:'input',content:`CALL ${JSON.stringify({tool:'workspace',args:{action:'submit',divergence:'None'}})}`},context)).wait(context);
@@ -65,7 +65,7 @@ const submit=async(id:number)=>{
return JSON.parse(result.content.filter((part:any)=>part.type==='text').map((part:any)=>part.text).join(''));
};
const children=async()=>{
const {Subagents}=await import(`file:///run/sausage/extensions/${await fs.read('/src/sausage/.git/sausage-last-good')}/extensions/subagents/api.ts`);
const {Subagents}=await import(`file:///run/sausage/extensions/${loader.state().good}/extensions/subagents/api.ts`);
return Object.values((await harness.snapshot(Subagents,root.id,context)).agents) as any[];
};
const waitQueue=async()=>{
@@ -78,7 +78,7 @@ const waitQueue=async()=>{
};
const reports=async(id:number)=>(await(await harness.conversation(id,context)).context(context)).entries.filter((entry:any)=>entry.kind==='workspaces.lander-report');
const notes=async()=>{
const {Messages}=await import(`file:///run/sausage/extensions/${await fs.read('/src/sausage/.git/sausage-last-good')}/extensions/messages/api.ts`);
const {Messages}=await import(`file:///run/sausage/extensions/${loader.state().good}/extensions/messages/api.ts`);
const deadline=Date.now()+30000;
for(;;) {
const notes=((await harness.snapshot(Messages,root.id,context)).messages as any[]).filter(message=>message.text.startsWith('[lander] Submission')&&message.text.includes(' landed as '));