chore: 固化上线自测门禁
This commit is contained in:
parent
76bcbffcfe
commit
6d4c319a0a
@ -88,7 +88,9 @@ export function buildWorkstreamCloseout(input: WorkstreamCloseoutInput = {}): Re
|
|||||||
const ktWorkflowUpdated = input.ktWorkflowUpdated === true;
|
const ktWorkflowUpdated = input.ktWorkflowUpdated === true;
|
||||||
const missingItems = [
|
const missingItems = [
|
||||||
title ? '' : '填写本轮大方向名称或目标。',
|
title ? '' : '填写本轮大方向名称或目标。',
|
||||||
verificationEvidence.length > 0 ? '' : '补充测试或 smoke 验证证据;只有计划不算闭环完成。',
|
verificationEvidence.length > 0
|
||||||
|
? ''
|
||||||
|
: '补充测试或 smoke 验证证据;上线功能必须包含线上自测证据,只有计划或 Jenkins/K8s 成功不算闭环完成。',
|
||||||
docSyncEvidence.length > 0 ? '' : '补充文档同步证据;无需更新时也要显式写明原因。',
|
docSyncEvidence.length > 0 ? '' : '补充文档同步证据;无需更新时也要显式写明原因。',
|
||||||
cleanupOk ? '' : '补充历史产物清理证据;至少包含 cleanup-history dry-run deleted=0 或结构化 cleanupFinalDeleted=0。',
|
cleanupOk ? '' : '补充历史产物清理证据;至少包含 cleanup-history dry-run deleted=0 或结构化 cleanupFinalDeleted=0。',
|
||||||
reviewEvidence.length > 0 ? '' : '补充 KT 全局 review 证据。',
|
reviewEvidence.length > 0 ? '' : '补充 KT 全局 review 证据。',
|
||||||
@ -109,7 +111,11 @@ export function buildWorkstreamCloseout(input: WorkstreamCloseoutInput = {}): Re
|
|||||||
canReportComplete: missingItems.length === 0,
|
canReportComplete: missingItems.length === 0,
|
||||||
closeoutOrder: [
|
closeoutOrder: [
|
||||||
buildPhase('development', title ? [title] : [], '写清本轮完成的开发目标。'),
|
buildPhase('development', title ? [title] : [], '写清本轮完成的开发目标。'),
|
||||||
buildPhase('test/smoke verification', verificationEvidence, '补一条可复验的验证证据。'),
|
buildPhase(
|
||||||
|
'test/smoke verification',
|
||||||
|
verificationEvidence,
|
||||||
|
'补一条可复验的验证证据;上线功能必须补线上自测证据。',
|
||||||
|
),
|
||||||
buildPhase('documentation sync', docSyncEvidence, '补充 kt_change_doc_sync 证据或无需更新说明。'),
|
buildPhase('documentation sync', docSyncEvidence, '补充 kt_change_doc_sync 证据或无需更新说明。'),
|
||||||
{
|
{
|
||||||
evidence: [
|
evidence: [
|
||||||
|
|||||||
@ -33,6 +33,12 @@ export function buildVerificationPlan(input: VerificationPlanInput): Verificatio
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (changeType === 'deploy') {
|
||||||
|
notes.push(
|
||||||
|
'上线功能必须在 Jenkins/K8s 成功后补对应线上自测证据;只有构建成功、镜像更新或 Pod Running 不能标记功能完成。',
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
typecheck &&
|
typecheck &&
|
||||||
['api', 'frontend', 'general', 'mcp', 'page', 'refactor', 'style'].includes(changeType)
|
['api', 'frontend', 'general', 'mcp', 'page', 'refactor', 'style'].includes(changeType)
|
||||||
@ -49,6 +55,9 @@ export function buildVerificationPlan(input: VerificationPlanInput): Verificatio
|
|||||||
if (['api', 'backend'].includes(changeType)) {
|
if (['api', 'backend'].includes(changeType)) {
|
||||||
notes.push('接口改动需要本地启动或复用本地服务,真实调用对应接口一次。');
|
notes.push('接口改动需要本地启动或复用本地服务,真实调用对应接口一次。');
|
||||||
}
|
}
|
||||||
|
if (changeType === 'deploy') {
|
||||||
|
notes.push('API 上线后至少执行一个对应线上接口或业务链路 smoke。');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (project.alias === 'playground' && scripts['build-preview'] && changeType === 'deploy') {
|
if (project.alias === 'playground' && scripts['build-preview'] && changeType === 'deploy') {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user