Merge pull request '修复人格按需部署的验收冲突' (#23) from codex/persona-on-demand-lifecycle-20260807 into main
This commit is contained in:
commit
eecf6b44dc
2 changed files with 4 additions and 18 deletions
|
|
@ -88,24 +88,6 @@ systemctl disable "${handshakes[@]}" >/dev/null 2>&1 || true
|
|||
systemctl stop zhuyuan-persona-team-session.target "${handshakes[@]}" \
|
||||
>/dev/null 2>&1 || true
|
||||
systemctl daemon-reload
|
||||
systemctl start "${handshakes[@]}"
|
||||
|
||||
for port in 3932 3933 3934; do
|
||||
ready=0
|
||||
for _attempt in $(seq 1 30); do
|
||||
if test "$(
|
||||
curl -fsS "http://127.0.0.1:${port}/health" 2>/dev/null |
|
||||
jq -r .ok 2>/dev/null
|
||||
)" = true; then
|
||||
ready=1
|
||||
break
|
||||
fi
|
||||
sleep 1
|
||||
done
|
||||
test "${ready}" = 1
|
||||
done
|
||||
|
||||
systemctl stop "${handshakes[@]}"
|
||||
for unit in "${handshakes[@]}"; do
|
||||
test "$(systemctl is-active "${unit}" || true)" != active
|
||||
test "$(systemctl is-enabled "${unit}" || true)" != enabled
|
||||
|
|
|
|||
|
|
@ -254,6 +254,10 @@ test("daily dispatcher unit is hardened and restricted to exact persona reposito
|
|||
deployScript,
|
||||
/systemctl start zhuyuan-persona-fifth-domain-daily\.service/u,
|
||||
);
|
||||
assert.doesNotMatch(
|
||||
deployScript,
|
||||
/systemctl start "\$\{handshakes\[@\]\}"/u,
|
||||
);
|
||||
assert.match(
|
||||
deployScript,
|
||||
/guanghu\.persona-on-demand-lifecycle-receipt\/v1/u,
|
||||
|
|
|
|||
Loading…
Reference in a new issue