hostinstall harness: the two R-1167 behaviour cases SKIP out loud where there is no curl (the CI runner; CI 2106/2108 red)

This commit is contained in:
2026-10-19 21:30:33 +02:00
parent 15f7428871
commit 5d0dfeac5f
2 changed files with 15 additions and 6 deletions
+3 -1
View File
@@ -26,7 +26,9 @@ credential (`resolve_git_creds`, which now reads the status instead of `curl -f`
before (the brief said „as it already does"; it did not) — the HU lines are new. Harness cases (static + behaviour: the
REAL `resolve_git_creds` + `die_live_box` extracted from the script, against a local fake hub on 127.0.0.1): every call
maps 409; 409 → the EN + HU sentence, never „hub status 409"; 200 → the git user is still read. Red-proved on a
mutated copy (the 409 arm removed → both 409 cases FAIL with „hub status 409").
mutated copy (the 409 arm removed → both 409 cases FAIL with „hub status 409"). **Fix the same night:** the CI runner has
no curl, so the two behaviour cases failed there (CI 2106, 2108); without curl they now SKIP out loud (the static case
runs everywhere; the pre-push hook, with curl, runs all three) — checked both ways, with and without curl on PATH.
## 2026-10-19 — the website's git-syncs read Gitea in-cluster and retry forever (`manifests/webpage.yaml`, gate 6)
+12 -5
View File
@@ -330,7 +330,12 @@ r1167_run() { # <hub status> → $out/$rc of resolve_git_creds against the fake
kill "$pid" 2>/dev/null || true; wait "$pid" 2>/dev/null || true
[[ -n "$port" ]]
}
if ! grep -q '^resolve_git_creds() {' "$r1167_fns" || ! grep -q '^die_live_box() {' "$r1167_fns"; then
if ! command -v curl >/dev/null 2>&1; then
# The CI runner carries python3 and git and nothing else (no curl): the installer's own HTTP calls cannot run there.
# The static case above still runs everywhere; the pre-push hook (with curl) runs these two.
verdict SKIP "R-1167 live-box 409 is worded (EN + HU)" "no curl on this machine — the installer's HTTP calls cannot run"
verdict SKIP "R-1167 a 200 still reads the git credential" "no curl on this machine"
elif ! grep -q '^resolve_git_creds() {' "$r1167_fns" || ! grep -q '^die_live_box() {' "$r1167_fns"; then
verdict FAIL "R-1167 live-box 409 is worded (EN + HU)" "could not extract resolve_git_creds/die_live_box from the script"
elif ! r1167_run 409; then
verdict SKIP "R-1167 live-box 409 is worded (EN + HU)" "the local fake hub did not start"
@@ -339,10 +344,12 @@ elif [[ $rc -ne 0 && "$out" == *"The operator deletes the old host on the hub fi
else
verdict FAIL "R-1167 live-box 409 is worded (EN + HU)" "rc=$rc; got: $(echo "$out" | tr '\n' ' ' | cut -c1-200)"
fi
if r1167_run 200 && [[ $rc -eq 0 && "$out" == *"GIT_USER=felhom-ci"* ]]; then
verdict PASS "R-1167 a 200 still reads the git credential"
else
verdict FAIL "R-1167 a 200 still reads the git credential" "rc=$rc; got: $(echo "$out" | tr '\n' ' ' | cut -c1-200)"
if command -v curl >/dev/null 2>&1; then
if r1167_run 200 && [[ $rc -eq 0 && "$out" == *"GIT_USER=felhom-ci"* ]]; then
verdict PASS "R-1167 a 200 still reads the git credential"
else
verdict FAIL "R-1167 a 200 still reads the git credential" "rc=$rc; got: $(echo "$out" | tr '\n' ' ' | cut -c1-200)"
fi
fi
# GL6-F4 (v1.11.3): the producer steps token/enroll/grows must run UNCONDITIONALLY (not behind