fix(ci): prove load origin readiness before measured traffic - #63
fix(ci): prove load origin readiness before measured traffic#63seonghobae wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthrough
ChangesCI 준비 상태 확인
Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: ⚪ Minimal · up to The CI load contract now waits for the upstream fixture before measuring gateway traffic, preventing startup-race 502s without changing application behavior or load thresholds. No merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@coderabbitai review Please review exact head |
🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
base='18fb38b1ba70c4bf222642ef347f3d57a98379a2'
head='190cd6aebc0b82b01f04b01ff095a741f831a0c8'
echo '== Commit ancestry and changed files =='
git merge-base --is-ancestor "$base" "$head" && echo "base-is-ancestor-of-head=true"
git diff --name-status "$base" "$head"
echo
echo '== Exact diff =='
git diff --find-renames --find-copies --no-ext-diff --unified=80 "$base" "$head" -- .github/workflows/ci.yml
echo
echo '== Workflow outline and load-related sections at head =='
ast-grep outline .github/workflows/ci.yml --items all || true
rg -n -C 12 -e 'upstream_fixture|fixture-ready|livez|k6|load-contract|trap|set -e' .github/workflows/ci.yml
echo
echo '== Locate and inspect fixture and load-test definitions =='
fd -a -t f . tests/load | sort
for f in $(fd -a -t f . tests/load | sort); do
echo
echo "== $f =="
case "$f" in
*.py|*.js|*.json|*.yaml|*.yml|*.toml|*.sh)
cat -n "$f"
;;
esac
doneLength of output: 19319
No findings.
|
|
@coderabbitai review Please review exact head |
🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
base='18fb38b1ba70c4bf222642ef347f3d57a98379a2'
head='190cd6aebc0b82b01f04b01ff095a741f831a0c8'
git cat-file -e "${base}^{commit}"
git cat-file -e "${head}^{commit}"
echo '== ancestry and changed paths =='
git merge-base --is-ancestor "$base" "$head"
git diff --name-status "$base" "$head"
echo
echo '== exact workflow diff =='
git diff --no-ext-diff --unified=120 "$base" "$head" -- .github/workflows/ci.yml
echo
echo '== workflow symbols =='
ast-grep outline .github/workflows/ci.yml --items all || true
echo
echo '== relevant workflow sections at head =='
rg -n -C 30 --fixed-strings \
-e 'set -euo pipefail' \
-e 'upstream_fixture.py' \
-e 'fixture-ready' \
-e '/livez' \
-e 'k6 run' \
-e 'load-contract' \
-e 'trap ' \
.github/workflows/ci.yml
echo
echo '== fixture and k6 source locations =='
fd -a -t f . tests/load | sort
echo
echo '== fixture route implementation =='
rg -n -C 25 -P 'fixture-ready|BaseHTTPRequestHandler|do_GET|serve_forever|18081' tests/load
echo
echo '== measured load contract =='
rg -n -C 25 -P 'vus|iterations|checks|http_req_failed|http_req_duration|load-contract|http\.batch|http\.get|/load-contract' tests/loadLength of output: 24090
No findings.
This review is static analysis of the exact Git objects. It is not hosted-CI evidence and is not formal approval credit. The exact head must still complete its required CI gates. ✅ Action performedReview finished.
|
Refs #58.
Executed root cause
Prior #62 exact
d4a54d8d1337797c3763c3d915c674cdf483db1cexposed a real load-contract correctness RED: 5 first-second gateway 502s from PingoraUpstream ConnectRefusedto127.0.0.1:18081, followed by 395 successful requests. The unchanged sample was 400 requests / 4 VUs and p95 stayed below 20 ms, so the defect was origin-fixture startup admission rather than latency or supplier semantics.Minimal causal repair
This branch is exact
190cd6aebc0b82b01f04b01ff095a741f831a0c8, ordinary child of #56 exact18fb38b1ba70c4bf222642ef347f3d57a98379a2, and changes only.github/workflows/ci.yml(+14/-0). Before gateway/livezadmission and k6, the workflow proves the test-only origin is directly reachable at127.0.0.1:18081/fixture-readyand fails immediately if the fixture process exits. The probe does not traverse or warm the measured gateway/load-contractroute.The measured gateway route, exact candidate, 400 requests, 4 VUs, zero-failure thresholds, p95
<20 ms, Rust/Pingora source, dependency graph, compiler, and runtime policy remain unchanged.Original exact GREEN
CI
34027297080is terminal GREEN on unchanged exact head for test/load/OCI, and Supply Chain34027296921is terminal GREEN. Immutable artifact9988273511, digestsha256:64500c71061e2df4a42693952fca72cdef5eac4df979b26bff3209722cf4276a, records 400/400 HTTP-200 checks and 400/400 body-identity checks, checks rate1,http_req_failedrate0, andhttp_req_duration p(95)=0.64378865 ms.Fresh CodeRabbit review covered exact
18fb38b1...190cd6ae, selected only.github/workflows/ci.yml, and reported no actionable comments / minimal risk. This is technical review evidence, not an independentAPPROVEDreview.Verified complete succession — closure authority
The valid #63 delta was non-destructively adopted into #62 by exact two-parent merge
389801461e28f422c166fb0918a2805d7085d05a. Exact ancestry now proves #63 head190cd6ae...is the merge base/ancestor of successor #62 (ahead 20 / behind 0), and compare190cd6ae...38980146contains only the two supplier-characterization files;.github/workflows/ci.ymlhas no later divergence. Conversely compare prior #62d4a54d8d...38980146contains exactly the +14/-0 workflow delta from this PR. The successor tree therefore carries this PR's complete valid workflow delta without force-push, destructive rebase, or partial cherry-pick.Successor #62 exact
38980146...has now completed its own fresh hosted validation: CI34030105237is terminal GREEN fortest 101477936704,oci-runtime 101477936789, andload-contract 101477936942; Supply Chain34030105222/candidate-evidence 101477936825is terminal GREEN through committed dependency audit, exact image, SPDX SBOM, image scan, exact-source binding, and evidence upload. The exact successor load artifact9988970232, digestsha256:781ee31569f536b3fdaef29c5c2740bbe8bd47d1fb6b0bb451fff790a50e7dc7, records 400/400 HTTP-200 and 400/400 body-identity checks, checks rate1,http_req_failedrate0, andhttp_req_duration p(95)=1.5580363 msunder the unchanged 400-request / 4-VU contract.This PR is therefore closed only as verified complete succession into #62. No valid delta/test/fixture/contract/evidence is discarded. It is not treated as merged, and closure gives no supplier-fix, protected-main, release, canary, cutover, or legacy-removal credit.