Skip to content

test(scale): preserve route evidence for concurrent reload failures - #173

Merged
RentnerKev merged 1 commit into
mainfrom
codex/diagnose-caddy-reload-failures
Oct 4, 2026
Merged

RentnerKev merged 1 commit into
mainfrom
codex/diagnose-caddy-reload-failures

Conversation

@RentnerKev

@RentnerKev RentnerKev commented Oct 4, 2026 •

Copy link
Copy Markdown
Member

Concurrent scale traffic filtered proxy routes before assigning their diagnostic index. A transport reset consequently lost the original route identity, and an invalid status or backend could fail without freezing that response's evidence. Preserve the original route index and record assertion failures before propagating the original error.

This is a diagnostic improvement for #171. It leaves Caddy, client connection reuse, workload bounds, response assertions, and transport failures unchanged. #171 remains unresolved; this PR must not close it.

Validation: 28 focused tests, 1,050 web unit tests, script typecheck, both Oxlint modes, and Oxfmt passed. Eight optional Valkey integration tests were skipped locally. Rust checks also passed during the investigation.

The isolated upstream-version investigation found resets with unchanged Caddy and stable process identity:

Caddy Fresh Bun requests Connection resets Acknowledged reloads
2.11.3 8,300 13 50
2.11.4 8,244 11 50
2.11.6 8,304 8 50

The request scripts did not retry failures. These sequential measurements establish reproduction, not comparable failure rates. A container-local control also reproduced resets without Windows published-port forwarding. Earlier full 100-host scale runs both passed and failed, so a passing run alone does not establish a fix.

The pinned CrowdSec module requires at least Caddy 2.11.3. Its upstream Linux listener implementation is unchanged through 2.11.6, and 2.11.3 also failed the rollback test. No Caddy source modification or unproven version downgrade is included.

Summary by CodeRabbit

  • Bug Fixes
    • Improved traffic checks during concurrent scaling updates. Unexpected response statuses or backend routing are now reported as failures, while transport errors are surfaced without retrying. This helps identify traffic issues during scale changes.

@RentnerKev RentnerKev added bug Something isn't working area: runtime Caddy and privileged controller runtime behavior. area: ci Continuous integration and GitHub automation. labels Oct 4, 2026
@coderabbitai

coderabbitai Bot commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Configuration used: Repository: RentnerKev/RentnerProxy/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: fc0c9eaa-18d2-4124-86e9-31beeb749d18
📥 Commits

Reviewing files that changed from the base of the PR and between 01c5311 and c9b1889.

📒 Files selected for processing (3)
  • scripts/runtime-scale/run.ts
  • scripts/runtime-scale/traffic.ts
  • web/src/tests/tooling/scripts/runtime-scale-traffic.test.ts
 ____________________________________________________________________
< Sometimes, I feel like a code reviewer in a world of copy-pasters. >
 --------------------------------------------------------------------
  \
   \   (\__/)
       (•ㅅ•)
       /   づ
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@RentnerKev
RentnerKev merged commit c9b1889 into main Oct 4, 2026
24 of 26 checks passed
@RentnerKev
RentnerKev deleted the codex/diagnose-caddy-reload-failures branch October 4, 2026 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ci Continuous integration and GitHub automation. area: runtime Caddy and privileged controller runtime behavior. bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant