Skip to content

test(BA-5824): add unit tests for FixedQueryBuilder#11273

Merged
fregataa merged 1 commit into
mainfrom
test/BA-5824
May 11, 2026
Merged

test(BA-5824): add unit tests for FixedQueryBuilder#11273
fregataa merged 1 commit into
mainfrom
test/BA-5824

Conversation

@seedspirit
Copy link
Copy Markdown
Contributor

@seedspirit seedspirit commented Apr 24, 2026

Summary

Test plan

  • All new tests pass
  • pants check passes for affected packages

🤖 Generated with Claude Code

@seedspirit seedspirit marked this pull request as ready for review May 11, 2026 02:03
@seedspirit seedspirit requested review from a team and Copilot May 11, 2026 02:03
@seedspirit seedspirit changed the title test(BA-5824): add unit tests for FixedQueryBuilder and KernelMetricValuesByKernel test(BA-5824): add unit tests for FixedQueryBuilder May 11, 2026
Copy link
Copy Markdown
Contributor

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

This PR adds unit tests around the Prometheus query-building utilities in ai.backend.common.clients.prometheus, focusing on verifying metric type classification, query preset construction, and live-stat query label filtering.

Changes:

  • Add a new unit test module covering FixedQueryBuilder behavior (metric type classification, query rendering, live-stat presets, and _regex_union escaping).
  • Add a Towncrier news fragment documenting the test addition.

Reviewed changes

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

File Description
tests/unit/common/clients/prometheus/test_fixed_query_builder.py New unit tests for FixedQueryBuilder query construction and helper behavior.
changes/11273.test.md Towncrier fragment noting the addition of unit tests.

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

Comment thread changes/11273.test.md
@fregataa fregataa merged commit b055006 into main May 11, 2026
39 checks passed
@fregataa fregataa deleted the test/BA-5824 branch May 11, 2026 04:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 100~500 LoC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants