feat(ql3): add local run log retention

This commit is contained in:
whyour
2026-08-12 02:57:43 +08:00
parent 308aa75d89
commit 2bfa8ca279
50 changed files with 2752 additions and 85 deletions
+2 -2
View File
@@ -128,7 +128,7 @@ test('rejects retaining npm bin links, debug maps or declarations in the product
const dockerfile = fs
.readFileSync(dockerfilePath, 'utf8')
.replace(
'RUN rm -rf node_modules/.bin \\\n' +
'RUN rm -rf node_modules/.bin \\\n' +
' && node /tmp/ql3-prune-runtime-artifact.cjs node_modules/@qinglong \\\n' +
' @qinglong/local-application \\\n' +
' @qinglong/local-application/process \\\n' +
@@ -156,7 +156,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="43" \\\n', '');
.replace(' io.qinglong.local.sqlite-write-contract="44" \\\n', '');
fs.writeFileSync(dockerfilePath, dockerfile);
const report = auditLocalImageContract(current.root);
assert.equal(report.compatible, false);
+7 -7
View File
@@ -79,7 +79,7 @@ test('current QL3 workspace has exactly eighteen reviewed package boundaries', (
},
{
directory: 'packages/ql3-local-sqlite/src/migrations',
directSourceFiles: 87,
directSourceFiles: 89,
reviewKind: 'ordered_ledger',
},
],
@@ -146,10 +146,10 @@ test('current QL3 workspace has exactly eighteen reviewed package boundaries', (
{
path: 'packages/ql3-local-execution',
name: '@qinglong/local-execution',
sourceFiles: 21,
sourceFiles: 22,
rootSourceFiles: 0,
rootSourceLines: 0,
nestedSourceFiles: 21,
nestedSourceFiles: 22,
rootSourceFileHardCap: 0,
rootSourceLineHardCap: 0,
rootSourceFileRoles: {},
@@ -299,10 +299,10 @@ test('current QL3 workspace has exactly eighteen reviewed package boundaries', (
rootSourceFileRoles: runtimeCore.rootSourceFileRoles,
},
{
sourceFiles: 149,
sourceFiles: 150,
rootSourceFiles: 1,
rootSourceLines: 160,
nestedSourceFiles: 148,
nestedSourceFiles: 149,
rootSourceFileRoles: { 'index.ts': 'public_export' },
},
);
@@ -540,10 +540,10 @@ test('current QL3 workspace has exactly eighteen reviewed package boundaries', (
rootSourceFileRoles: localSqlite.rootSourceFileRoles,
},
{
sourceFiles: 173,
sourceFiles: 176,
rootSourceFiles: 1,
rootSourceLines: 31,
nestedSourceFiles: 172,
nestedSourceFiles: 175,
rootSourceFileRoles: { 'index.ts': 'public_export' },
},
);
@@ -107,7 +107,7 @@ function sessionFixture(overrides = {}) {
target: {
rolloutId,
snapshot: {
contractVersion: 43,
contractVersion: 44,
sha256: 'a'.repeat(64),
bytes: 4_000_000,
pageCount: 1000,
+1 -1
View File
@@ -552,7 +552,7 @@ test('imports a different-boot Compose collection storage candidate without wide
maximumResumeWriteAmplificationPermille: 50_000,
});
const targetSnapshot = {
contractVersion: 43,
contractVersion: 44,
sha256: 'a'.repeat(64),
bytes: 4_000_000,
pageCount: 1000,