test: cover CCM anomaly v2, ai-evals drift, and schema sync regressions - #540
Closed
cursor[bot] wants to merge 2 commits into
Closed
test: cover CCM anomaly v2, ai-evals drift, and schema sync regressions#540cursor[bot] wants to merge 2 commits into
cursor[bot] wants to merge 2 commits into
Conversation
Add regression tests for production changes merged alongside the DeployGoogleAgentRuntimeRevision schema sync: - anomalyListExtract projection for v2 array responses - cost_anomaly v2 bodyBuilder (time filters, ordering, zero thresholds) - cost_anomaly_drilldown pathBuilder and skipCompact dispatch - ai-evals control-plane alignment (dimension, thumbs_up, metric_set_id) Co-authored-by: Rohan Gupta <thisrohangupta@users.noreply.github.com>
|
|
Collaborator
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.
Description
Adds regression tests for recently merged production changes that lacked focused coverage:
Risky behavior now covered
CCM cost anomaly v2 API (PR Anomaly tools - Drilldown and upgrade to v2 APIs #533)
anomalyListExtractmaps v2{ data: [...] }array responses to{ items, total }without envelope leakagecost_anomalylistbodyBuilderdefaults, explicit time range, ordering, andmin_amount: 0(!= nullguard)cost_anomaly_drilldownpathBuilderroutes details vs time-series endpoints__skipCompactmarker survivalAI Evals control-plane alignment (PR fix(ai-evals): correct toolset drift against control-plane API #529)
eval_metriccreate requiresdimensioneval_annotationcreate/update exposethumbs_uponline_evalevaluate usesmetric_set_id+judge_llm_connector_ref(not deprecatedmetric_ids)metric_set_idreaches the API bodyDeployGoogleAgentRuntimeRevision schema sync (PR chore: auto-sync harness schemas #534) — already on branch
harness_schemaresolvesDeployGoogleAgentRuntimeRevisionStepNodeTest files added/updated
tests/registry/ccm-anomaly.test.ts(new)tests/registry/ccm-extractors.test.tstests/registry/ai-evals.test.tstests/schemas/schema-bundle-contract.test.tstests/tools/harness-schema-tool.test.tsWhy these tests materially reduce regression risk
metric_ids/dimensioncontracts regressType of Change
Checklist
pnpm testpasses (targeted suites)pnpm typecheckpassespnpm buildpassespnpm standards:checkpassespnpm docs:checkpasses