Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

mz-release-signoff

БесплатноЗапускает вложенные скриптыНе проверен

Verify a release candidate on the Grafana dashboards and sign off in #release. Trigger: "verify the release", "sign off on the release", "release…

MaterializeIncот MaterializeInc★ 6 417 звёзд на GitHub

Об этом скилле

Verify a release candidate by comparing metrics across the release boundary, then report the outcome.

The release bot posts a request in the #release Slack channel naming the version and linking one dashboard per area. Each area is verified by that area's team. This skill covers the shared method plus per-area metric references.

Prerequisites

This workflow needs the Grafana MCP server against grafana.dev.materialize.com. Verify it answers before starting:

mcp__grafana__list_datasources with type "prometheus"

Reading the bot request also needs the Slack MCP server, but a user-pasted dashboard link or version string is enough to proceed without it.

Read the panel instructions, then apply this skill

Two dashboards carry their own Signing off on Releases text panel, and they say different things. Read both at the start of every run, because they are maintained separately from this skill:

mcp__grafana__get_dashboard_property
  uid: f248986d-81c6-42a6-817b-00cd7759d808     # compute
  jsonPath: $.panels[?(@.type=="text")].options.content

mcp__grafana__get_dashboard_property
  uid: e6dc7745-7d35-4968-a23d-689883a984bb     # storage-overview
  jsonPath: $.panels[?(@.type=="text")].options.content

If a panel and this skill disagree, the panel wins on what to inspect and this skill wins on how to measure it. Report the disagreement so one of them gets fixed.

Every dashboard names its variables differently

This is the single most common source of a wasted query. There is no shared convention.

Dashboard Environment variable Others
compute-overview namespace version, organization, cluster_id, replica_id, worker_id, collection_id
storage-overview env cluster, replica, object_id, pod
storage-upsert-sources namespace pod, source
persist env pod
environmentd-health env pod
release-health organization, an organization id, not a namespace mz_cluster, version
networking namespace pod, tenant

The release bot sets both var-namespace and var-env on every link for this reason.

Step 1: Establish the version and the boundaries

Every judgement in this workflow is a before/after comparison, so the upgrade times must be pinned first. Ask Prometheus which version each environment runs over the past 10 days:

count by (mz_version) (group by (namespace, mz_version)
    (max_over_time(v2_mz_compute_cluster_status{mz_version!~".*-dev.*"}[6h])))

Run it as a range query with a 6h step. The -dev exclusion drops personal development environments, which run arbitrary old builds and only add noise. The max_over_time window matches the step for the reason given under Step 2, and it also changes how a transition reads: an environment that upgrades mid-bucket is counted under both versions, so the counts in that one bucket sum to more than the fleet. That is the boundary bucket announcing itself, not an error.

Two facts come out of this. The release under test is the highest vX.Y.0-rc.N present, and the boundary per stack is the step where the previous version disappears and it appears. Expect two boundaries for the same release, because a later rc usually supersedes an earlier one, and both are the new release for sign-off purposes.

A second, sharper boundary marker is the process count doubling. Zero-downtime upgrades run the old and new generation side by side, so any per-pod series count roughly doubles for one bucket:

count(avg_over_time(container_memory_working_set_bytes{pod=~".*cluster-.*-replica-.*", container="clusterd"}[6h]))

Use those doubling buckets as the boundary, and exclude them from both the before and after samples. They contain two full fleets and will corrupt any sum.

Step 2: Choose the namespace set

The dashboards' version variable does not filter panels directly. It narrows the organization variable, which narrows namespace, and the panels filter on namespace. Setting version to the new release therefore means "the environments that run the new release now", and the panels then show those same environments on both sides of the boundary. Reproduce that selection explicitly rather than relying on the variable chain.

Production and staging need different selectors. In production only the canary environments run a release candidate, and they share the plain released version with every customer environment for part of the week, so a version-based filter loses them. Derive their namespaces once and pin them by name:

group by (namespace, mz_context_org_name)
    (max_over_time(v2_mz_compute_cluster_status{mz_version=~"<new release>.*"}[<analysis window>]))

This derivation is a one-shot whose output is pinned for the rest of the run, so there is no step to match and the lookback spans the analysis window instead, which makes the list independent of any single 6h st

Полный SKILL.md на GitHub

Установить mz-release-signoff в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/adapter.mdreferences/compute.mdreferences/persist.mdreferences/reference-dashboards.mdreferences/sources-and-sinks.mdscripts/build-range-query.pyscripts/catalog_diff.pyscripts/catalog_diff_test.pyscripts/lint_metrics.pyscripts/lint_metrics_test.pyscripts/metrics-allowlist.txtscripts/panel-metrics.py

FAQ

Что делает скилл mz-release-signoff?

Verify a release candidate on the Grafana dashboards and sign off in #release. Trigger: "verify the release", "sign off on the release", "release verification", "check the canary", "does this release look healthy", a pasted grafana.dev.materialize.com dashboard link, or a release-bot "please verify the vX.Y.Z" request. Also when asked to compare metrics across a release boundary.

Как установить скилл mz-release-signoff?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл mz-release-signoff запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить mz-release-signoff с