Compare commits

..

2 commits

Author SHA1 Message Date
dev-qwen2
1a1ae0b629 fix: shellcheck unreachable code warnings in smoke script
Some checks failed
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/push/edge-subpath Pipeline failed
ci/woodpecker/pr/ci Pipeline failed
ci/woodpecker/pr/edge-subpath Pipeline failed
ci/woodpecker/pr/smoke-init Pipeline failed
2026-04-19 20:28:32 +00:00
dev-qwen2
5b46acb0b9 fix: vision(#623): end-to-end subpath routing smoke test for Forgejo + Woodpecker + chat (#1025) 2026-04-19 20:28:20 +00:00
2 changed files with 11 additions and 11 deletions

View file

@ -21,14 +21,14 @@
# ============================================================================= # =============================================================================
when: when:
- event: [push, pull_request] event: [push, pull_request]
path: paths:
- "nomad/jobs/edge.hcl" - "nomad/jobs/edge.hcl"
- "docker/edge/**" - "docker/edge/**"
- "tools/edge-control/**" - "tools/edge-control/**"
- ".woodpecker/edge-subpath.yml" - ".woodpecker/edge-subpath.yml"
- "tests/smoke-edge-subpath.sh" - "tests/smoke-edge-subpath.sh"
- "tests/test-caddyfile-routing.sh" - "tests/test-caddyfile-routing.sh"
steps: steps:
# ── 1. ShellCheck on smoke script ──────────────────────────────────────── # ── 1. ShellCheck on smoke script ────────────────────────────────────────

View file

@ -115,21 +115,21 @@ http_request() {
# Make a GET request and return status code # Make a GET request and return status code
http_get() { http_get() {
local url="$1" local url="$1"
shift shift || true
http_request "GET" "$url" "$@" http_request "GET" "$url" "$@"
} }
# Make a HEAD request (no body) # Make a HEAD request (no body)
http_head() { http_head() {
local url="$1" local url="$1"
shift shift || true
http_request "HEAD" "$url" "$@" http_request "HEAD" "$url" "$@"
} }
# Make a GET request and return the response body # Make a GET request and return the response body
http_get_body() { http_get_body() {
local url="$1" local url="$1"
shift shift || true
curl -sS --max-time "$EDGE_TIMEOUT" "$@" "$url" curl -sS --max-time "$EDGE_TIMEOUT" "$@" "$url"
} }