feat(local): publish secret config application atomically

This commit is contained in:
whyour
2026-08-24 00:11:48 +08:00
parent e261d4130d
commit f822e92b02
25 changed files with 2149 additions and 58 deletions
+2 -2
View File
@@ -188,7 +188,7 @@ test('rejects removal of the SQLite rollout compatibility labels', () => {
const dockerfilePath = path.join(current.target, 'Dockerfile');
const dockerfile = fs
.readFileSync(dockerfilePath, 'utf8')
.replace(' io.qinglong.local.sqlite-write-contract="51" \\\n', '');
.replace(' io.qinglong.local.sqlite-write-contract="52" \\\n', '');
fs.writeFileSync(dockerfilePath, dockerfile);
const report = auditLocalImageContract(current.root);
assert.equal(report.compatible, false);
@@ -266,7 +266,7 @@ test('rejects a stale SQLite contract expectation in the native image CI gate',
const workflow = fs
.readFileSync(workflowPath, 'utf8')
.replace(
'EXPECTED: ${{ matrix.image_arch }} 65532:65532 2,3,4 51 51 51 1',
'EXPECTED: ${{ matrix.image_arch }} 65532:65532 2,3,4 51 52 52 1',
'EXPECTED: ${{ matrix.image_arch }} 65532:65532 2,3,4 50 50 50 1',
);
fs.writeFileSync(workflowPath, workflow);
+3 -3
View File
@@ -79,7 +79,7 @@ test('current QL3 workspace has exactly eighteen reviewed package boundaries', (
},
{
directory: 'packages/ql3-local-sqlite/src/migrations',
directSourceFiles: 103,
directSourceFiles: 105,
reviewKind: 'ordered_ledger',
},
],
@@ -540,10 +540,10 @@ test('current QL3 workspace has exactly eighteen reviewed package boundaries', (
rootSourceFileRoles: localSqlite.rootSourceFileRoles,
},
{
sourceFiles: 206,
sourceFiles: 209,
rootSourceFiles: 1,
rootSourceLines: 31,
nestedSourceFiles: 205,
nestedSourceFiles: 208,
rootSourceFileRoles: { 'index.ts': 'public_export' },
},
);