From fa8585e33cd135aefd1d9070808379c4e54d9f62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=97=D0=B0=D1=80=D1=83=D0=B1=D0=B8=D0=BD=20=D0=A4=D0=B8?= =?UTF-8?q?=D0=BB=D0=B8=D0=BF=D0=BF?= <289370046+zarubinphil@users.noreply.github.com> Date: Tue, 23 Jun 2026 12:21:38 +0300 Subject: [PATCH] Make release check CI self-contained --- .github/workflows/release-check.yml | 2 +- scripts/mnemazine-release-check.mjs | 35 ++++++++++++++++++++++++++++- 2 files changed, 35 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-check.yml b/.github/workflows/release-check.yml index 4d0cef3..5e8ce14 100644 --- a/.github/workflows/release-check.yml +++ b/.github/workflows/release-check.yml @@ -31,6 +31,6 @@ jobs: npm --version python3 --version - name: Run post-run report smoke - run: npm run postrun -- --run-id ci-postrun --since-days 30 --quiet + run: npm run postrun -- --run-id ci-postrun --since-days 30 --reports "$RUNNER_TEMP/mnemazine-postrun" --quiet - name: Run release gate (syntax, demo smoke, public scan, bilingual README parity) run: npm run release-check diff --git a/scripts/mnemazine-release-check.mjs b/scripts/mnemazine-release-check.mjs index 0bf3127..b0fe308 100644 --- a/scripts/mnemazine-release-check.mjs +++ b/scripts/mnemazine-release-check.mjs @@ -142,10 +142,43 @@ async function demoSmoke() { async function qualityAndPublicChecks() { await must('demo vault quality', 'npm', ['run', 'quality', '--', '--vault', 'demo/vault']) await reportQualityGateSmoke() - await must('complete gate smoke', 'npm', ['run', 'complete']) + await completeGateSmoke() await must('public release scan', 'npm', ['run', 'public-check']) } +async function completeGateSmoke() { + const temp = await fs.mkdtemp(path.join(os.tmpdir(), 'mnemazine-complete-gate-')) + const inbox = path.join(temp, 'inbox') + const reports = path.join(temp, 'reports') + const state = path.join(temp, 'state') + await fs.mkdir(inbox, { recursive: true }) + await fs.mkdir(reports, { recursive: true }) + await fs.mkdir(state, { recursive: true }) + await fs.writeFile(path.join(reports, 'complete-smoke.html'), [ + '', + '
', + '

Синтезированные знания

', + '

Синтез

Проверенная идея после обработки.

', + '

Источники

', + 'source a', + 'source b', + 'source c
', + '

Где применить

В пайплайне.

', + '

Проверка и риск

Проверить источники.

', + '

Следующее действие

Запустить gate.

', + '
' + ].join(''), 'utf8') + await fs.writeFile(path.join(state, 'last-action-brief.md'), '# Complete Gate Smoke\n\n- Next action: keep release gate green.\n', 'utf8') + await must('complete gate smoke', process.execPath, ['scripts/mnemazine-complete-check.mjs'], { + env: { + MNEMAZINE_VAULT: path.join(ROOT, 'demo/vault'), + MNEMAZINE_INBOX: inbox, + MNEMAZINE_REPORTS: reports, + MNEMAZINE_STATE: state + } + }) +} + async function reportQualityGateSmoke() { const temp = await fs.mkdtemp(path.join(os.tmpdir(), 'mnemazine-report-gate-')) const raw = path.join(temp, 'raw.html')