Skip to content

test(ai-rate-limiting): add test for instance name containing dots#13316

Merged
nic-6443 merged 1 commit into
apache:masterfrom
nic-6443:fix/ai-rate-limiting-instance-name-with-dots
Apr 30, 2026
Merged

test(ai-rate-limiting): add test for instance name containing dots#13316
nic-6443 merged 1 commit into
apache:masterfrom
nic-6443:fix/ai-rate-limiting-instance-name-with-dots

Conversation

@nic-6443
Copy link
Copy Markdown
Member

Instance names with dots (e.g. model version + IP like Qwen3.5-397B-10.249.238.157) should be treated as constant keys by the rate limiting framework, not as ctx.var expressions.

The existing key_type = "constant" in transform_limit_conf() already handles this correctly. This test adds coverage for the scenario to prevent future regressions.

Instance names with dots (e.g. model version + IP like
'Qwen3.5-397B-10.249.238.157') should be treated as constant keys
by the rate limiting framework, not as ctx.var expressions.

This test verifies that the existing key_type='constant' setting
in transform_limit_conf() correctly handles such names.
Copilot AI review requested due to automatic review settings April 29, 2026 06:35
@dosubot dosubot Bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Apr 29, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds regression coverage ensuring AI instance names containing dots are handled as constant rate-limiting keys (and not misinterpreted as variable lookups).

Changes:

  • Adds a new route setup test using an ai-proxy-multi instance name containing dots.
  • Adds a follow-up request test intended to validate the dotted instance name doesn’t trigger ctx.var resolution.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread t/plugin/ai-rate-limiting.t
@nic-6443 nic-6443 merged commit 39a31b7 into apache:master Apr 30, 2026
25 of 27 checks passed
@nic-6443 nic-6443 deleted the fix/ai-rate-limiting-instance-name-with-dots branch April 30, 2026 03:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants