gowalk-cicd 1.0.225 → 1.0.227
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -237,6 +237,7 @@ runs:
|
|
|
237
237
|
"${{ github.action_path }}/select_certbot_account.sh" \
|
|
238
238
|
"${{ github.action_path }}/ensure_certificate.sh" \
|
|
239
239
|
"${{ github.action_path }}/configure_vhost.py" \
|
|
240
|
+
"${{ github.action_path }}/publish_ingress.py" \
|
|
240
241
|
"${{ github.action_path }}/edge_inputs.py" \
|
|
241
242
|
"${{ github.action_path }}/runtime_env.py" \
|
|
242
243
|
"${{ github.action_path }}/runtime_env_parse.py" \
|
|
@@ -82,16 +82,25 @@ def healthy(url, sha="", *, headers=None, fetch=request, sleep=time.sleep, probe
|
|
|
82
82
|
raise ValueError("backend_public_health_failed")
|
|
83
83
|
|
|
84
84
|
|
|
85
|
-
def origin_refusal(url, headers, probe, fetch):
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
85
|
+
def origin_refusal(url, headers, probe, fetch, sleep=time.sleep):
|
|
86
|
+
# `systemctl reload nginx` returns before the new workers serve: 2.5-2.7 s on a 420-vhost host (2026-11-20).
|
|
87
|
+
# Until then the old workers answer a first deploy's name with a failed handshake, so the refusal is
|
|
88
|
+
# awaited on healthy()'s schedule. Only an observed 403 passes; the last observation is the one reported.
|
|
89
|
+
for attempt in range(1, 16):
|
|
90
|
+
try:
|
|
91
|
+
code, status, _body = fetch(url, headers=headers)
|
|
92
|
+
except (OSError, ValueError, subprocess.SubprocessError):
|
|
93
|
+
if attempt == 15:
|
|
94
|
+
report(probe, "request_failed", attempt=15)
|
|
95
|
+
raise
|
|
96
|
+
else:
|
|
97
|
+
if code == 0 and status == 403:
|
|
98
|
+
return
|
|
99
|
+
if attempt == 15:
|
|
100
|
+
report(probe, "request_failed" if code != 0 else "http_refused",
|
|
101
|
+
curl_exit=code, http_status=status, attempt=15)
|
|
102
|
+
raise ValueError("backend_origin_ingress_unverified")
|
|
103
|
+
sleep(2)
|
|
95
104
|
|
|
96
105
|
|
|
97
106
|
def verify(config, app, domain, health, *, nginx_dir=NGINX_DIR, fetch=request, sleep=time.sleep):
|
|
@@ -107,7 +116,7 @@ def verify(config, app, domain, health, *, nginx_dir=NGINX_DIR, fetch=request, s
|
|
|
107
116
|
if value["ingress_required"] == "true":
|
|
108
117
|
for probe, headers in (("origin_missing_token", None),
|
|
109
118
|
("origin_invalid_token", {TOKEN_HEADER: "invalid-backend-ingress-token"})):
|
|
110
|
-
origin_refusal(origin_url, headers, probe, fetch)
|
|
119
|
+
origin_refusal(origin_url, headers, probe, fetch, sleep)
|
|
111
120
|
healthy(origin_url, value["expected_build_sha"], headers={TOKEN_HEADER: value["ingress_token"]},
|
|
112
121
|
fetch=fetch, sleep=sleep, probe="origin_authorized")
|
|
113
122
|
try:
|
package/docs/BACKEND_EDGE.md
CHANGED
|
@@ -67,6 +67,8 @@ build_missing and build_mismatch. No URL, response body, build identity, header,
|
|
|
67
67
|
exception text or subprocess output enters the annotation. Curl exit is an observed integer from
|
|
68
68
|
-255 to 255, HTTP status from 100 to 599 and attempt from 1 to 15; other values become `none`.
|
|
69
69
|
An exhausted health check emits only its final attempt's facts, clearing any previous observations.
|
|
70
|
+
The two origin refusal probes wait on the same schedule (15 attempts, 2 s apart) for a 403: a vhost reload
|
|
71
|
+
returns before nginx's new workers serve a first deploy's name, and the old workers fail its handshake.
|
|
70
72
|
These facts identify the failed probe, not a unique cause or permission to retry or bypass it.
|
|
71
73
|
Missing-token and invalid-token checks remain single requests requiring completed 403 responses.
|
|
72
74
|
Healthy-origin, retained-legacy and public checks retain 15 attempts with two seconds between them,
|