forked from wangziqi/gongxue-base
test: strengthen launch security and capacity gates
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user