fix(runner): add token-safe 110 drain registration guard
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Failing after 2m23s
CD Pipeline / build-and-deploy (push) Has been skipped
CD Pipeline / post-deploy-checks (push) Has been skipped

This commit is contained in:
ogt
2026-07-02 11:01:49 +08:00
parent dfe0a018c8
commit f426610d83
8 changed files with 519 additions and 10 deletions

View File

@@ -371,12 +371,16 @@ def test_non110_runner_keepalive_sources_stay_on_controlled_runtime_profile() ->
expected_sources = [
"ops/runner/check-awoooi-non110-runner-readiness.sh)",
"ops/runner/install-awoooi-non110-runner-user-service.sh)",
"ops/runner/register-awoooi-110-controlled-cd-lane-drain.sh)",
"ops/runner/test_check_awoooi_non110_runner_readiness.py)",
"ops/runner/test_install_awoooi_non110_runner_user_service.py)",
"ops/runner/test_register_awoooi_110_controlled_cd_lane_drain.py)",
"../../ops/runner/check-awoooi-non110-runner-readiness.sh",
"../../ops/runner/install-awoooi-non110-runner-user-service.sh",
"../../ops/runner/register-awoooi-110-controlled-cd-lane-drain.sh",
"../../ops/runner/test_check_awoooi_non110_runner_readiness.py",
"../../ops/runner/test_install_awoooi_non110_runner_user_service.py",
"../../ops/runner/test_register_awoooi_110_controlled_cd_lane_drain.py",
]
for source in expected_sources:
assert source in text
@@ -755,7 +759,9 @@ def test_post_start_recovery_verifiers_stay_on_controlled_runtime_profile() -> N
"ops/reboot-recovery/full-stack-cold-start-baseline.yml)",
"ops/runner/awoooi-cd-lane-drain.service)",
"ops/runner/check-awoooi-110-controlled-cd-lane-readiness.sh)",
"ops/runner/register-awoooi-110-controlled-cd-lane-drain.sh)",
"ops/runner/test_check_awoooi_110_controlled_cd_lane_readiness.py)",
"ops/runner/test_register_awoooi_110_controlled_cd_lane_drain.py)",
"scripts/backup/gitea-repo-bundle-backup.sh)",
"scripts/ops/backup-health-textfile-exporter.py)",
"scripts/ops/docker-disk-pressure-retention-cleanup.py)",
@@ -795,6 +801,7 @@ def test_post_start_recovery_verifiers_stay_on_controlled_runtime_profile() -> N
"../../ops/monitoring/alerts.yml",
"../../ops/reboot-recovery/full-stack-cold-start-baseline.yml",
"../../ops/runner/check-awoooi-110-controlled-cd-lane-readiness.sh",
"../../ops/runner/register-awoooi-110-controlled-cd-lane-drain.sh",
"../../scripts/reboot-recovery/deploy-to-110.sh",
"../../scripts/reboot-recovery/enforce-110-runner-failclosed.sh",
"../../scripts/reboot-recovery/recover-110-control-path-and-harbor-local.sh",
@@ -823,6 +830,7 @@ def test_post_start_recovery_verifiers_stay_on_controlled_runtime_profile() -> N
"../../scripts/reboot-recovery/tests/test_recover_110_control_path_and_harbor_local.py",
"../../scripts/reboot-recovery/tests/test_momo_source_arrival_gate.py",
"../../ops/runner/test_check_awoooi_110_controlled_cd_lane_readiness.py",
"../../ops/runner/test_register_awoooi_110_controlled_cd_lane_drain.py",
]
for source in expected_sources:
assert source in text