This commit is contained in:
2026-09-02 20:14:47 +08:00
parent fa9a98f078
commit e4ee999098
2 changed files with 28 additions and 10 deletions
@@ -37,13 +37,17 @@ test('coordinator jobs present their own deployment environment as the default c
assert.match(coordinatorPipeline, /downstreamJobPrefixForJob\(env\.JOB_BASE_NAME\)/)
})
test('AUTO keeps its own baseline and retries only previously failed services', () => {
test('AUTO advances interrupted baselines and retries only their selected services', () => {
assert.match(coordinatorPipeline, /def parseAutoBuildState\(/)
assert.match(coordinatorPipeline, /def previousAutoBuildState\(/)
assert.match(coordinatorPipeline, /previousAutoBuildState\(currentBuild\.previousBuild, serviceModules\)/)
assert.match(coordinatorPipeline, /state\.startsWith\('PENDING'\)/)
assert.match(coordinatorPipeline, /failedServices\.addAll\(selected\.split\(','\)/)
assert.match(coordinatorPipeline, /git rev-parse HEAD\^/)
assert.match(coordinatorPipeline, /selected\.addAll\(retryServices\)/)
assert.match(coordinatorPipeline, /AUTO \$\{env\.IMAGE_TAG\} \| PENDING/)
assert.match(coordinatorPipeline, /AUTO \$\{env\.IMAGE_TAG\} \| RESULTS/)
assert.doesNotMatch(coordinatorPipeline, /GIT_PREVIOUS_SUCCESSFUL_COMMIT/)
assert.doesNotMatch(coordinatorPipeline, /commonChanged \? serviceModules/)
})