fix(runner): route harbor repair through non110 lane
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 33s
CD Pipeline / post-deploy-checks (push) Has been cancelled
CD Pipeline / build-and-deploy (push) Has been cancelled
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 33s
CD Pipeline / post-deploy-checks (push) Has been cancelled
CD Pipeline / build-and-deploy (push) Has been cancelled
This commit is contained in:
@@ -115,15 +115,22 @@ def test_harbor_110_local_repair_workflow_is_dispatch_only_and_bounded() -> None
|
||||
assert "push:" not in text
|
||||
assert "pull_request:" not in text
|
||||
assert "pull_request_target:" not in text
|
||||
assert "runs-on: awoooi-host" in text
|
||||
assert "runs-on: awoooi-non110-host" in text
|
||||
assert "runs-on: awoooi-host" not in text
|
||||
assert "guard-gitea-runner-pressure.py --root ." in text
|
||||
assert "recover-110-control-path-and-harbor-local.sh" in text
|
||||
assert "--check" in text
|
||||
assert "--apply-all" in text
|
||||
assert "sudo -n env" in text
|
||||
assert "AWOOOI_110_SSH_TARGET" in text
|
||||
assert "BatchMode=yes" in text
|
||||
assert "ConnectTimeout=8" in text
|
||||
assert "operation_boundary_remote_ssh_bounded=true" in text
|
||||
assert "harbor_110_remote_control_channel_unavailable" in text
|
||||
assert "harbor_110_remote_repair_check_start=1" in text
|
||||
assert "harbor_110_remote_repair_apply_all_start=1" in text
|
||||
assert "GITHUB_EVENT_NAME" in text
|
||||
assert "harbor_110_local_repair_skipped=already_ready" in text
|
||||
assert "harbor_110_remote_repair_skipped=already_ready" in text
|
||||
assert "192.168.0.110" in text
|
||||
assert "http://127.0.0.1:5000/v2/" in text
|
||||
assert "https://registry.wooo.work/v2/" in text
|
||||
@@ -564,6 +571,25 @@ def test_controlled_runtime_skips_b5_before_docker_socket_use() -> None:
|
||||
assert controlled_gate < exit_zero < docker_socket
|
||||
|
||||
|
||||
def test_b5_full_profile_fails_fast_when_docker_socket_or_db_network_is_unready() -> None:
|
||||
text = _workflow_text()
|
||||
b5_block = text.split("- name: Integration Tests (B5", 1)[1]
|
||||
b5_block = b5_block.split("- name: Clean Test Workspace Artifacts", 1)[0]
|
||||
|
||||
assert "set -euo pipefail" in b5_block
|
||||
assert "docker info >/dev/null 2>&1" in b5_block
|
||||
assert "BLOCKER b5_docker_socket_unavailable" in b5_block
|
||||
assert "B5_DB_READY=0" in b5_block
|
||||
assert "BLOCKER b5_pg_test_container_not_ready" in b5_block
|
||||
assert "--user 0:0" in b5_block
|
||||
assert b5_block.index("docker info >/dev/null 2>&1") < b5_block.index(
|
||||
"docker run -d --name pg-test-b5"
|
||||
)
|
||||
assert b5_block.index("BLOCKER b5_pg_test_container_not_ready") < b5_block.index(
|
||||
"/opt/api-venv/bin/pytest tests/integration/test_b5_core_flows.py"
|
||||
)
|
||||
|
||||
|
||||
def test_controlled_runtime_pytest_paths_exist() -> None:
|
||||
text = _workflow_text()
|
||||
block = text.split("PYTHONFAULTHANDLER=1 python3.11 -m pytest", 1)[1]
|
||||
|
||||
Reference in New Issue
Block a user