perf(ci): release coordinator builder executor

This commit is contained in:
2026-08-22 18:01:10 +08:00
parent d3e16bf29f
commit 52b673b878
2 changed files with 12 additions and 5 deletions
@@ -5,9 +5,12 @@ import test from 'node:test'
const pipeline = (await readFile(new URL('../Jenkinsfile', import.meta.url), 'utf8'))
.replaceAll('\r\n', '\n')
test('coordinator runs only on the shared Java builder pool', () => {
test('coordinator releases its builder while waiting for downstream jobs', () => {
assert.match(pipeline, /pipeline \{[\s\S]*?agent none/)
assert.match(pipeline, /stage\('确定构建范围'\) \{[\s\S]*?agent \{ label 'java-builder' \}/)
assert.match(pipeline, /agent \{ label 'java-builder' \}/)
assert.doesNotMatch(pipeline, /agent any/)
assert.doesNotMatch(pipeline, /post \{\s*always \{ cleanWs[\s\S]*?\}\s*\}\s*\}\s*$/)
})
test('AUTO detects database migrations without expanding them to all services', () => {