纳入 Pingora realpath canary 启停门禁

将 realpath canary 启停烟测纳入 Pingora release readiness 默认门禁

补齐 readiness plan 对 realpath canary toggle 的自检

修正生产健康巡检测试夹具的 worker 实例模拟

同步 Pingora realpath canary 运维文档和项目共享记忆
This commit is contained in:
2026-06-18 15:07:43 +08:00
parent 0cc2a79c7b
commit e79cc5bd09
7 changed files with 31 additions and 4 deletions
@@ -94,6 +94,7 @@ function main() {
assertDefaultPlanIncludesPingoraCutoverEvidenceVerifySmoke();
assertDefaultPlanIncludesPingoraCutoverEvidenceAuditSmoke();
assertDefaultPlanIncludesCanaryAccessLogParitySmoke();
assertDefaultPlanIncludesRealpathCanaryToggleSmoke();
assertDefaultPlanIncludesPingoraProductionReleaseBuildSmoke();
assertReleaseRuntimeOnlyPlanUsesCurrentReleaseScripts();
assertReleaseRuntimeOnlyPlanIncludesDirectRehearsalStatus();
@@ -366,6 +367,22 @@ function assertDefaultPlanIncludesCanaryAccessLogParitySmoke() {
);
}
function assertDefaultPlanIncludesRealpathCanaryToggleSmoke() {
const plan = readPlan(['--dry-run-plan']);
const step = findStep(plan, 'Pingora realpath canary 启停烟测');
if (!step) {
failures.push(
'默认 release readiness 计划必须包含 Pingora realpath canary 启停烟测。',
);
return;
}
assertIncludes(
step.args,
'check:pingora-realpath-canary-toggle',
'Pingora realpath canary 启停烟测必须调用 check:pingora-realpath-canary-toggle。',
);
}
function assertDefaultPlanIncludesProductionApiReleaseSmoke() {
const plan = readPlan(['--dry-run-plan']);
const step = findStep(plan, 'API release build 烟测');
@@ -1601,6 +1601,11 @@ function buildSteps(config) {
command: 'npm',
args: ['run', 'check:pingora-canary-access-log-parity'],
},
{
name: 'Pingora realpath canary 启停烟测',
command: 'npm',
args: ['run', 'check:pingora-realpath-canary-toggle'],
},
{
name: 'Pingora canary live 参数护栏',
command: 'node',
@@ -306,6 +306,10 @@ async function prepareFixture(name) {
[
'#!/usr/bin/env bash',
`printf 'systemctl %s\\n' "$*" >> ${shellQuote(commandsLog)}`,
'if [[ "$1" == "list-units" && "$2" == "genarrative-external-generation-worker@*.service" ]]; then',
' echo "genarrative-external-generation-worker@1.service loaded active running Genarrative external generation worker 1"',
' exit 0',
'fi',
'echo active',
'exit 0',
'',