Skip to content

fix: back to kv/v1 DTOs with RFC3339 string TTLs - #136

Open
rustatian wants to merge 2 commits into
masterfrom
revert/protos-v1
Open

fix: back to kv/v1 DTOs with RFC3339 string TTLs#136
rustatian wants to merge 2 commits into
masterfrom
revert/protos-v1

Conversation

@rustatian

Copy link
Copy Markdown
Member

RPC layer back on kv/v1 messages; TTLs travel as RFC3339 strings again, matching spiral/roadrunner-kv v4.

Part of the v1 proto revert (roadrunner-server/api#77, roadrunner-server/api-go#35): wire format back to what roadrunner-api-dto v1.14.1 and the released PHP packages speak. Pins api-go v6.0.0-beta.14. Tests temporarily pin sibling revert branches via pseudo-versions; they will be bumped to the new betas once tagged.

Copilot AI lite review requested due to automatic review settings August 12, 2026 19:54

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR reverts the KV RPC wire types back to kv/v1 DTOs and restores TTL transport as RFC3339 strings to match the v1 ecosystem expectations (spiral/roadrunner-kv v4 + released PHP packages), while bumping api-go to v6.0.0-beta.14.

Changes:

  • Switch RPC layer request/response/item types from api-go/kv/v2 to api-go/kv/v1.
  • Change TTL handling to pass RFC3339 timeout strings through on the wire (Item.Timeout) instead of converting to/from protobuf Duration.
  • Bump github.com/roadrunner-server/api-go/v6 dependency to v6.0.0-beta.14 (root + tests modules), and adjust protobuf requirement to indirect.

Reviewed changes

Copilot reviewed 4 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
rpc.go Replaces kv/v2 DTOs with kv/v1 and switches TTL wire format to RFC3339 strings.
tests/kv_plugin_test.go Updates RPC integration tests to call KV endpoints using kv/v1 request/response types.
go.mod Bumps api-go to v6.0.0-beta.14 and moves protobuf to indirect.
go.sum Updates checksums for the api-go version bump.
tests/go.mod Bumps api-go to v6.0.0-beta.14 in the tests module.
tests/go.sum Updates checksums for the tests module’s api-go version bump.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread rpc.go
@codecov

codecov Bot commented Aug 12, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 43.75000% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 56.48%. Comparing base (c4b3394) to head (5d27067).

Files with missing lines Patch % Lines
rpc.go 43.75% 9 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #136      +/-   ##
==========================================
+ Coverage   54.18%   56.48%   +2.29%     
==========================================
  Files           3        3              
  Lines         227      216      -11     
==========================================
- Hits          123      122       -1     
+ Misses         96       87       -9     
+ Partials        8        7       -1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@rustatian rustatian changed the title Back to kv/v1 DTOs with RFC3339 string TTLs fix: back to kv/v1 DTOs with RFC3339 string TTLs Aug 13, 2026
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.

2 participants