fix(qa): sonar auto loop rebuilds the bundle after fixer commits

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
mARTin-B78 2026-10-06 13:31:12 +02:00
parent 7df275b378
commit 4ba43f2b75
2 changed files with 8 additions and 1 deletions

View File

@ -38,6 +38,13 @@ for (let b = 1; b <= BATCHES; b++) {
log(` commit ${c}: ${n} file(s) - ${run('git', ['show', '-s', '--format=%s', c]).stdout.trim().slice(0, 90)}`);
if (n > MAX_FILES) stop(`commit ${c} touches ${n} files (> ${MAX_FILES}); review it by hand`);
}
// The fixer's JS commits do not rebuild static/dist/main.min.js; do it here so the QA build stage sees a fresh bundle.
run('npm', ['run', 'minify']);
if (run('git', ['status', '--short', 'static/dist']).stdout.trim()) {
run('git', ['add', '-f', 'static/dist/main.min.js']);
run('git', ['commit', '--no-verify', '-q', '-m', 'chore(build): rebuild static bundle after sonar fixes\n\nCo-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>']);
log(' rebuilt and committed static/dist/main.min.js');
}
if (dirtyTracked()) stop('tree is dirty after the batch');
const q = run('node', ['scripts/qa.mjs', '--fast'], { timeout: 30 * 60 * 1000 });
const ok = q.status === 0;

File diff suppressed because one or more lines are too long