feat: add guarded portal canary release
Memind CI / Test, build, and release guards (push) Failing after 2m14s
Memind CI / Test, build, and release guards (push) Failing after 2m14s
This commit is contained in:
@@ -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',
|
||||
),
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user