fix: exclude infrastructure probes from API throttling
All checks were successful
CI/CD Pipeline / Quality Gate (pull_request) Successful in 49s
CI/CD Pipeline / Build and Push Images (pull_request) Successful in 1s
CI/CD Pipeline / Internal Notify (pull_request) Successful in 1s
CI/CD Pipeline / Deploy Dev via Compose (pull_request) Successful in 1s
CI/CD Pipeline / Quality Gate (push) Successful in 49s
CI/CD Pipeline / Build and Push Images (push) Successful in 0s
CI/CD Pipeline / Internal Notify (push) Successful in 1s
CI/CD Pipeline / Deploy Dev via Compose (push) Successful in 1s

This commit was merged in pull request #41.
This commit is contained in:
Aleksandr Meshchryakov
2026-09-16 09:39:56 +02:00
parent 66fcacc45c
commit fe1e5f79bd
7 changed files with 169 additions and 210 deletions

View File

@@ -0,0 +1,26 @@
from pathlib import Path
import yaml
WORKFLOWS = Path(__file__).resolve().parents[1] / ".gitea" / "workflows"
def test_workflows_do_not_deploy_to_center():
assert not (WORKFLOWS / "deploy-customer-main.yml").exists()
for path in WORKFLOWS.glob("*.y*ml"):
workflow = yaml.safe_load(path.read_text())
assert "deploy_customer_main" not in workflow["jobs"]
content = path.read_text()
for forbidden in ("CUSTOMER_DEPLOY_", "10.0.10.174", "/ecos/release-service"):
assert forbidden not in content, (path.name, forbidden)
def test_ci_does_not_prune_shared_runner_resources():
for path in WORKFLOWS.glob("*.y*ml"):
content = path.read_text()
for command in (
"docker system prune",
"docker builder prune",
"docker buildx prune",
):
assert command not in content, (path.name, command)