fix(configs/connectivity_tester): wire unmerge for self-deploy
Python package / build (3.12.3) (pull_request) Successful in 2m12s
Python package / build (3.13) (pull_request) Successful in 2m14s
Python package / build (3.14) (pull_request) Successful in 2m51s

Replace state=SharedStateHolderInMemory(unmerge=None) with a GitUnmerge(clone, dockerSwarmCheck)-backed state holder. Without this, desired_branches is always empty, and brencher's polling loop falls through to 'Empty branches set' on every cycle, so the stack only deploys when an operator PATCHes the environment through the UI. With the unmerge in place the swarm service's org.brencher.version label drives state.branches and the stack self-deploys on each polling cycle.
This commit is contained in:
2026-09-15 13:34:31 +02:00
parent db9b3b4cc4
commit 055b7e2015
+3 -2
View File
@@ -1,7 +1,7 @@
from enironment import Environment
from steps.checks import SimpleLog
from steps.docker import DockerComposeBuild, DockerSwarmCheck, DockerSwarmDeploy
from steps.git import GitClone, CheckoutMerged
from steps.git import GitClone, CheckoutMerged, GitUnmerge
from steps.shared_state import SharedStateHolderInMemory
clone = GitClone(remotes=[
@@ -13,7 +13,8 @@ dockerSwarmCheck = DockerSwarmCheck(
stack_name="connectivity_tester",
)
state = SharedStateHolderInMemory(unmerge=None)
unmerge = GitUnmerge(clone, dockerSwarmCheck)
state = SharedStateHolderInMemory(unmerge=unmerge)
checkoutMerged = CheckoutMerged(clone,
desired_branches=state,