fix: enable WeChat Page Data review in canary
Memind CI / Test, build, and release guards (push) Has been cancelled

This commit is contained in:
john
2026-07-28 00:38:18 +08:00
parent 6070ec209a
commit 1e91195853
3 changed files with 28 additions and 0 deletions
+18
View File
@@ -194,6 +194,12 @@ test('production canary keeps stable 8081 live and switches only after verified
assert.doesNotMatch(source, /edge_ssh \/bin\/bash <<EDGE_SWITCH/);
assert.match(source, /CANARY_USERNAMES="john"/);
assert.match(source, /CANARY_WECHAT_USER_IDS="wx_ul610et8"/);
assert.match(
source,
/CANARY_WECHAT_PAGE_DATA_AIDER_REVIEW_USER_IDS="a70ff537-8908-486e-9b6c-042e07cc25db"/,
);
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, /route-probe\?\$\{probe_query\}/);
assert.match(source, /candidate_healthy/);
assert.match(source, /MEMIND_CANARY_RELEASE_ID/);
@@ -224,6 +230,8 @@ test('candidate runner overrides stable host MCP paths with container-visible pa
'MEMIND_DEEPSEEK_NO_THINK_BASE_URL=http://wrong.invalid/v1',
'MEMIND_DEEPSEEK_NO_THINK_HOST=wrong.invalid',
'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',
'',
].join('\n'),
);
@@ -239,6 +247,8 @@ test('candidate runner overrides stable host MCP paths with container-visible pa
'printf "deepseek_gateway=%s\\n" "$MEMIND_GOOSED_HOST_GATEWAY"',
'printf "deepseek_base=%s\\n" "${MEMIND_DEEPSEEK_NO_THINK_BASE_URL-unset}"',
'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 "entrypoint=%s\\n" "$1"',
'',
].join('\n'),
@@ -256,6 +266,9 @@ test('candidate runner overrides stable host MCP paths with container-visible pa
MEMIND_CANARY_STABLE_ROOT: stableRoot,
MEMIND_CANARY_RELEASE_ID: 'test-release',
MEMIND_CANARY_CANDIDATE_PORT: '65534',
MEMIND_CANARY_WECHAT_PAGE_DATA_AIDER_REVIEW_ENABLED: '1',
MEMIND_CANARY_WECHAT_PAGE_DATA_AIDER_REVIEW_USER_IDS:
'a70ff537-8908-486e-9b6c-042e07cc25db',
NODE_BIN: fakeNode,
},
},
@@ -273,6 +286,11 @@ test('candidate runner overrides stable host MCP paths with container-visible pa
assert.match(result.stdout, /^deepseek_gateway=host\.docker\.internal$/m);
assert.match(result.stdout, /^deepseek_base=unset$/m);
assert.match(result.stdout, /^deepseek_host=unset$/m);
assert.match(result.stdout, /^page_data_review=1$/m);
assert.match(
result.stdout,
/^page_data_review_users=a70ff537-8908-486e-9b6c-042e07cc25db$/m,
);
assert.match(result.stdout, new RegExp(`^entrypoint=${ROOT}/server\\.mjs$`, 'm'));
});