fix(ci): restore ql3 multi-profile gates

This commit is contained in:
whyour
2026-08-22 13:44:19 +08:00
parent f1cca9a3ed
commit c8ad5ea368
17 changed files with 320 additions and 111 deletions
@@ -6,7 +6,7 @@ const {
auditPostgresHaEvidence,
} = require('../../scripts/ql3-postgres-ha-evidence-audit.cjs');
function fixture() {
function fixture(architecture = 'arm64') {
const gates = { passed: true };
for (let index = 0; index < 100; index += 1) gates[`gate${index}`] = true;
return {
@@ -16,7 +16,7 @@ function fixture() {
image: 'postgres:18',
imageId: `sha256:${'a'.repeat(64)}`,
repoDigests: [`postgres@sha256:${'b'.repeat(64)}`],
architecture: 'arm64',
architecture,
version: '18.4',
versionNumber: 180004,
},
@@ -85,6 +85,7 @@ test('accepts complete PostgreSQL HA evidence', () => {
compatible: true,
findings: [],
});
assert.equal(auditPostgresHaEvidence(fixture('amd64')).compatible, true);
});
test('rejects false gates, promotion drift and hidden private material', () => {