feat(ql3): capture stopped reconciliation bundles

This commit is contained in:
whyour
2026-08-21 16:52:22 +08:00
parent a789c4a4d6
commit c341a92a18
16 changed files with 2837 additions and 33 deletions
@@ -0,0 +1,32 @@
#!/usr/bin/env node
const { spawnSync } = require('node:child_process');
const path = require('node:path');
const root = path.resolve(__dirname, '..');
const build = spawnSync(
'pnpm',
['--filter', '@qinglong/local-owner-cli', 'build'],
{ cwd: root, encoding: 'utf8', stdio: 'inherit' },
);
if (build.status !== 0) process.exit(build.status ?? 1);
const test = spawnSync(
process.execPath,
[
'--test',
'--test-name-pattern',
'real stopped Docker target',
path.join(
root,
'packages/ql3-local-owner-cli/test/reconciliationCapturePrepare.test.cjs',
),
],
{
cwd: root,
encoding: 'utf8',
stdio: 'inherit',
env: { ...process.env, QL3_RECONCILIATION_DOCKER_GATE: '1' },
},
);
process.exit(test.status ?? 1);