fix: pin Aider binary for portal canary
Memind CI / Test, build, and release guards (push) Has been cancelled
Memind CI / Test, build, and release guards (push) Has been cancelled
This commit is contained in:
@@ -200,6 +200,9 @@ test('production canary keeps stable 8081 live and switches only after verified
|
||||
);
|
||||
assert.match(source, /MEMIND_CANARY_WECHAT_PAGE_DATA_AIDER_REVIEW_ENABLED/);
|
||||
assert.match(source, /MEMIND_CANARY_WECHAT_PAGE_DATA_AIDER_REVIEW_USER_IDS/);
|
||||
assert.match(source, /CANARY_AIDER_BIN="\/opt\/homebrew\/bin\/aider"/);
|
||||
assert.match(source, /test -x '\$\{CANARY_AIDER_BIN\}'/);
|
||||
assert.match(source, /MEMIND_CANARY_AIDER_BIN/);
|
||||
assert.match(source, /route-probe\?\$\{probe_query\}/);
|
||||
assert.match(source, /candidate_healthy/);
|
||||
assert.match(source, /MEMIND_CANARY_RELEASE_ID/);
|
||||
@@ -219,6 +222,7 @@ test('candidate runner overrides stable host MCP paths with container-visible pa
|
||||
|
||||
const stableRoot = path.join(tempRoot, 'stable');
|
||||
const fakeNode = path.join(tempRoot, 'node');
|
||||
const fakeAider = path.join(tempRoot, 'aider');
|
||||
await fs.mkdir(stableRoot);
|
||||
await fs.writeFile(
|
||||
path.join(stableRoot, '.env'),
|
||||
@@ -232,6 +236,7 @@ test('candidate runner overrides stable host MCP paths with container-visible pa
|
||||
'MEMIND_GOOSED_HOST_GATEWAY=wrong.invalid',
|
||||
'H5_WECHAT_MP_PAGE_DATA_AIDER_REVIEW_ENABLED=0',
|
||||
'H5_WECHAT_MP_PAGE_DATA_AIDER_REVIEW_USERS=wrong-user',
|
||||
'AIDER_BIN=/definitely/missing/aider',
|
||||
'',
|
||||
].join('\n'),
|
||||
);
|
||||
@@ -249,11 +254,13 @@ test('candidate runner overrides stable host MCP paths with container-visible pa
|
||||
'printf "deepseek_host=%s\\n" "${MEMIND_DEEPSEEK_NO_THINK_HOST-unset}"',
|
||||
'printf "page_data_review=%s\\n" "$H5_WECHAT_MP_PAGE_DATA_AIDER_REVIEW_ENABLED"',
|
||||
'printf "page_data_review_users=%s\\n" "$H5_WECHAT_MP_PAGE_DATA_AIDER_REVIEW_USERS"',
|
||||
'printf "aider_bin=%s\\n" "$AIDER_BIN"',
|
||||
'printf "entrypoint=%s\\n" "$1"',
|
||||
'',
|
||||
].join('\n'),
|
||||
{ mode: 0o755 },
|
||||
);
|
||||
await fs.writeFile(fakeAider, '#!/usr/bin/env bash\nexit 0\n', { mode: 0o755 });
|
||||
|
||||
const result = spawnSync(
|
||||
'bash',
|
||||
@@ -269,6 +276,7 @@ test('candidate runner overrides stable host MCP paths with container-visible pa
|
||||
MEMIND_CANARY_WECHAT_PAGE_DATA_AIDER_REVIEW_ENABLED: '1',
|
||||
MEMIND_CANARY_WECHAT_PAGE_DATA_AIDER_REVIEW_USER_IDS:
|
||||
'a70ff537-8908-486e-9b6c-042e07cc25db',
|
||||
MEMIND_CANARY_AIDER_BIN: fakeAider,
|
||||
NODE_BIN: fakeNode,
|
||||
},
|
||||
},
|
||||
@@ -291,6 +299,7 @@ test('candidate runner overrides stable host MCP paths with container-visible pa
|
||||
result.stdout,
|
||||
/^page_data_review_users=a70ff537-8908-486e-9b6c-042e07cc25db$/m,
|
||||
);
|
||||
assert.match(result.stdout, new RegExp(`^aider_bin=${fakeAider}$`, 'm'));
|
||||
assert.match(result.stdout, new RegExp(`^entrypoint=${ROOT}/server\\.mjs$`, 'm'));
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user