Open
Conversation
This was referenced Apr 3, 2026
608d4ce to
9a7b545
Compare
4fb8b99 to
9444733
Compare
9a7b545 to
49dfa6a
Compare
9444733 to
89f0b6b
Compare
Adds HandleSetLimit HTTP handler for setting per-service limits without direct store access, enabling standalone test server usage.
Standalone server and client binaries that test wire compatibility. The latest client verifies both legacy middleware chain (usage sync) and V2 fetch paths (FetchProjectInfo, FetchServiceLimit, FetchAccessKey). Includes CI workflow, helper scripts, and shared test config.
Tests that a client built against the last released version (v0.23.3) can still talk to the current server. Both clients now measure usage delta instead of absolute to support sequential runs.
89f0b6b to
ef06778
Compare
136ebb2 to
fa61b47
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Retro compatibility test suite
Adds a standalone server/client test harness that verifies wire compatibility across quotacontrol versions — ensuring older clients can still talk to the latest server.
What it does:
mock.NewServernow accepts optional*Options(external Redis, custom logger) — nil-safe, backward compatibleHandleSetLimitHTTP endpoint so test clients can set per-service limits without direct store accesstests/server/) using real Redistests/client/latest/) that tests:FetchKeyQuota→SpendUsage→ usage syncFetchProjectInfo,FetchServiceLimit,FetchAccessKey.github/workflows/retro.yml): starts server → runs client → stops servertests/common/Adding older client versions:
Create
tests/client/v0.XX/with its owngo.modpinned to an older release. The Makefileclient-runtarget can be parameterized withVERSION=v0.XX.Supersedes #138.
Stack:
quota-v2This stack is managed with sdf.