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:
parent
7df275b378
commit
4ba43f2b75
@ -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;
|
||||
|
||||
2
static/dist/main.min.js
vendored
2
static/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user