Skip to content

fix(validate): skip azure-mariadb/sql/postgres (validator meterName mismatch)#66

Merged
sofq merged 1 commit intomainfrom
fix/validate-skip-azure-db
May 5, 2026
Merged

fix(validate): skip azure-mariadb/sql/postgres (validator meterName mismatch)#66
sofq merged 1 commit intomainfrom
fix/validate-skip-azure-db

Conversation

@sofq
Copy link
Copy Markdown
Owner

@sofq sofq commented May 5, 2026

Summary

  • Adds `azure-mariadb`, `azure-sql`, `azure-postgres` to `SKIP_REVALIDATION`.
  • Root cause is a validator bug, not a catalog bug: `pipeline/validate/azure.py:_filter_for_sample` builds a filter `meterName eq '{resource_name}'` for general Azure shards, but the Retail API exposes Azure DB pricing with `meterName="vCore"` and disambiguates via `productName` + `skuName`. Our `resource_name` (e.g. `"Gen5 2 vCore"`, `"GP_Gen5_2"`) never matches that meterName.
  • Verified against the public Retail API for Azure DB services. Result: 14-19/20 sampled SKUs report `missing_upstream` and the 1-5 incidental matches are unrelated line items.
  • Closes Catalog drift in azure-postgres #56, Catalog drift in azure-sql #58, Catalog drift in azure-mariadb #60.

Why skip rather than fix the matcher now

The proper fix is per-shard filter strategies in `pipeline/validate/azure.py` (similar to the existing App Service / AKS handlers, matching by `productName` + `skuName`). That's a follow-up; this PR stops the daily false-positive drift issues.

Not addressed

Test plan

  • `uv run pytest pipeline/tests/test_validate_driver.py` — 7/7 green.

The Azure validator filters upstream by `meterName eq '{resource_name}'`
(pipeline/validate/azure.py:_filter_for_sample), but the Retail API
exposes Azure DB pricing with `meterName="vCore"` and disambiguates via
productName + skuName. Our resource_name (e.g. "Gen5 2 vCore",
"GP_Gen5_2") never matches the upstream meterName, producing 14-19/20
`missing_upstream` and any "found" matches are unrelated line items.

Verified against the public Retail API for service "Azure Database for
MariaDB" / "SQL Database" / "Azure Database for PostgreSQL".

Add to SKIP_REVALIDATION until the Azure validator gains per-shard
product/sku-name matching like it has for App Service / AKS.

Closes #56, #58, #60.
@sofq sofq merged commit b72e8a2 into main May 5, 2026
20 checks passed
@sofq sofq deleted the fix/validate-skip-azure-db branch May 5, 2026 08:39
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.

Catalog drift in azure-postgres

1 participant