test: strengthen launch security and capacity gates

This commit is contained in:
Codex
2026-07-01 04:54:07 +08:00
parent 69b4d3b62d
commit 1eb5a13df7
13 changed files with 452 additions and 31 deletions

View File

@@ -82,6 +82,20 @@ const gateChecks = [
includeWrites: false,
},
},
{
id: 'performance.api-real-data-mixed',
label: 'Real-data API mixed read/write benchmark',
commandIncludes: 'perf:api:local',
summary: {
errors: 0,
errorRate: { lte: 0.001 },
p95Ms: { lte: 500 },
p99Ms: { lte: 1200 },
concurrency: { gte: 50 },
durationSeconds: { gte: 60 },
includeWrites: true,
},
},
{
id: 'api.integration',
label: 'API integration regression',
@@ -152,10 +166,12 @@ const gateChecks = [
commandIncludes: 'smoke:taro:h5:interaction',
summary: {
fail: 0,
pass: { gte: 10 },
pass: { gte: 26 },
'mockApi.keyRequests.answers': { gte: 1 },
'mockApi.keyRequests.favorites': { gte: 1 },
'mockApi.keyRequests.tenantResolve': { gte: 3 },
'mockApi.keyRequests.ordersCreated': { gte: 1 },
'mockApi.keyRequests.paymentsCreated': { gte: 1 },
'mockApi.keyRequests.orderStatus': { gte: 1 },
},
},
{
@@ -173,6 +189,12 @@ const gateChecks = [
commandIncludes: 'audit:runtime',
summary: { critical: 0, high: 0 },
},
{
id: 'security.repo-scan',
label: 'Repository static security scan',
commandIncludes: 'security:repo',
summary: { critical: 0, high: 0 },
},
{
id: 'security.codex-scan',
label: 'Codex Security scan',