Skip to content

test(runtime): harden Redis recovery and upgrade matrices (v0.1.25.57) - #248

Merged
amavashev merged 2 commits into
mainfrom
agent/redis-failure-upgrade-matrix-247
Jul 14, 2026
Merged

amavashev merged 2 commits into
mainfrom
agent/redis-failure-upgrade-matrix-247

Conversation

@amavashev

Copy link
Copy Markdown
Collaborator

Summary

  • add a deterministic lost-successful-response retry matrix for reserve, commit, release, direct event, dry-run, and decide
  • prove byte-identical status/body replay, exactly-once ledger/evidence/runtime-event side effects, stable identifiers, TTL/index consistency, and unchanged 409 mismatch behavior
  • consolidate supported legacy Redis shapes behind LegacyRedisFixtures and a parameterized rolling-upgrade matrix
  • pin pre-snapshot lifecycle fast bodies, legacy event backfill, the former dry-run namespace, pre-index reservation backfill, and intentional missing-body failure behavior
  • bump the service and production Compose pins to 0.1.25.57; document the test-only [benchmark-skip] release

Why

The server already had strong individual idempotency, Redis-pause, and compatibility tests, but the guarantees were scattered. This PR makes the complete lost-response and rolling-upgrade contract executable in the existing Redis 7 integration CI job without adding production code, an old server binary, packet-timing sleeps, or a chaos-platform dependency.

Compatibility and impact

No production Java/Lua, protocol schema, HTTP behavior, Redis key layout, or request-path performance changes. The compatibility tests run only the current server against explicitly downgraded/frozen Redis storage shapes. The existing dedicated-Redis pause test remains the transport-outage check.

Validation

  • mvn -B verify -Pintegration-tests -Dtest=!*BenchmarkTest -Dsurefire.failIfNoSpecifiedTests=false -Dcontract.spec.url=file:///D:/apps/java/GitHub/cycles-protocol/cycles-protocol-v0.yaml
  • 1,206 tests: 31 model, 575 data, 600 API; zero failures/errors/skips
  • protocol operation coverage: 11/11
  • JaCoCo line coverage: 95.14% data, 95.56% API
  • focused lost-response matrix: 6/6 with contract validation
  • focused rolling-upgrade matrix: 10/10 with contract validation
  • git diff --check

[benchmark-skip] Test/documentation-only release; production hot paths are unchanged.

Closes #247

@amavashev
amavashev marked this pull request as ready for review July 14, 2026 19:28
@amavashev
amavashev merged commit ad1a6b7 into main Jul 14, 2026
8 checks passed
@amavashev
amavashev deleted the agent/redis-failure-upgrade-matrix-247 branch July 14, 2026 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Harden CI with Redis failure-injection and rolling-upgrade matrices

1 participant