forked from wangziqi/gongxue-base
chore: gate production postgres tuning and taro handoff
This commit is contained in:
@@ -130,6 +130,17 @@ assert.ok(
|
||||
'migration profile mismatch should be reported as a blocker',
|
||||
);
|
||||
|
||||
const missingPostgresTuning = runGate(tempDir => {
|
||||
const evidence = createEvidence(tempDir);
|
||||
evidence.checks = evidence.checks.filter(item => item.id !== 'postgres.tuning-evidence');
|
||||
return evidence;
|
||||
});
|
||||
assert.notEqual(missingPostgresTuning.status, 0, 'missing PostgreSQL tuning evidence should fail launch gate');
|
||||
assert.ok(
|
||||
missingPostgresTuning.payload.checks?.some(item => item.id === 'check.postgres.tuning-evidence' && item.status === 'blocker'),
|
||||
'missing PostgreSQL tuning evidence should be reported as a blocker',
|
||||
);
|
||||
|
||||
const slowBenchmark = runGate(tempDir => {
|
||||
const evidence = createEvidence(tempDir);
|
||||
const item = evidence.checks.find(check => check.id === 'performance.api-real-data-read');
|
||||
|
||||
Reference in New Issue
Block a user