feat: add guarded portal canary release
Memind CI / Test, build, and release guards (push) Failing after 2m14s

This commit is contained in:
john
2026-07-26 19:51:44 +08:00
parent 058d646b32
commit 286069449b
33 changed files with 2161 additions and 53 deletions
@@ -424,3 +424,25 @@ test('can disable relay bootstrap for backend-LLM-only isolated runs', async ()
assert.equal(setup.calls.some(([name]) => name === 'relay-bootstrap'), false);
assert.equal(setup.calls.some(([name]) => name === 'provider-sync'), true);
});
test('passive candidate runtime does not start MindSpace background jobs', async () => {
const setup = createSetup({
env: {
EXPERIENCE_PG_URL: 'postgres://experience',
MEMIND_RUNTIME_ROLE: 'candidate',
MEMIND_CANARY_PASSIVE_RUNTIME: '1',
},
});
const result = await bootstrapPortalAgentServices(setup.options);
await Promise.all([result.relayBootstrapTask, result.providerSyncTask]);
assert.equal(setup.calls.some(([name]) => name === 'start-background'), false);
assert.ok(
setup.calls.some(
([name, message]) =>
name === 'log'
&& message === 'Passive candidate runtime: MindSpace background jobs disabled',
),
);
});