Skip to content

Scope MCP documentation changes to repository checks - #1356

Merged
BYK merged 3 commits into
mainfrom
fix/skip-cli-for-mcp-docs
Oct 1, 2026
Merged

BYK merged 3 commits into
mainfrom
fix/skip-cli-for-mcp-docs

Conversation

@BYK

@BYK BYK commented Oct 1, 2026 •

Copy link
Copy Markdown
Member

Summary

  • keep every tracked repository-root file selecting all enabled workspaces
  • scope changes under the MCP repository docs/ tree to the root docs:check quality gate rather than selecting every workspace
  • retain transitive project selection when MCP code changes alongside docs

Root docs/ is not part of the deployed mcp.sentry.dev Worker assets. Wrangler serves packages/mcp-cloudflare/public and the Vite client instead. The MCP deployment workflow and production assets are unchanged.

Validation

  • reproduced the selector failure before the fix: docs-only changes selected all workspaces
  • test:ci-projects: 6 passed, including a check of every tracked root-level file
  • docs:check, check:generated, and repository lint passed after updating from main
  • merged Toolkit CLI cutover (Update CLI release paths for Toolkit #1354) into this branch to validate the combined tree; exact-head CI and Warden review are pending

@github-actions github-actions Bot added the risk: low PR risk score: low label Oct 1, 2026
@github-actions github-actions Bot added risk: medium PR risk score: medium and removed risk: low PR risk score: low labels Oct 1, 2026
@github-actions github-actions Bot added risk: low PR risk score: low risk: medium PR risk score: medium and removed risk: medium PR risk score: medium risk: low PR risk score: low labels Oct 1, 2026
@BYK
BYK merged commit 1b9e252 into main Oct 1, 2026
30 checks passed
@BYK
BYK deleted the fix/skip-cli-for-mcp-docs branch October 1, 2026 13:49
mr-danya pushed a commit to mr-danya/sentry-mcp that referenced this pull request Oct 6, 2026
…ntry#1356)

`sentry alert metrics create` and `sentry alert metrics edit` reject
dataset values that users reasonably expect to work — the singular forms
(`error`, `transaction`, …) and the dashboard-terminology names for the
error/transaction datasets (`error-events`, `transaction-like`). Those
aren't in `METRIC_DATASET_VALUES`, so they fail `validateMetricDataset`
with a `ValidationError`, even though they clearly map to a valid
canonical value.

(The already-canonical values `errors`, `transactions`, `sessions`,
`events`, `spans`, `metrics` pass validation today — they are not what
this PR fixes.)

This fix:
- Adds a `METRIC_DATASET_ALIASES` map and `normalizeMetricDataset`
helper in `packages/cli/src/commands/alert/mutation-utils.ts`, resolving
safe aliases to their canonical metric-alert value (`error` → `errors`,
`error-events` → `errors`, `transaction-like` → `transactions`, …).
- Only aliases that resolve to an already-valid metric-alert dataset are
included. Names that denote a **distinct** dataset in the metric-alert
path (`tracemetrics`, `metricsenhanced`, `eap`,
`events_analytics_platform`) are deliberately **not** aliased —
rewriting them onto `metrics`/`spans` would silently send the wrong
dataset with no validation error. Note the metric-alert canonical names
are the inverse of the dashboard/explore subsystem, where `tracemetrics`
is canonical and `metrics` is the alias.
- `validateMetricDataset` normalizes before checking, and
`create.ts`/`edit.ts` use the normalized value for both validation and
the API payload.
- Adds `normalizeMetricDataset` test coverage (alias resolution,
case-insensitivity, passthrough of unknown/distinct datasets) and
updates the `--dataset` help text to advertise the synonyms.

Fixes
[CLI-JG](https://sentry.sentry.io/issues/7351956900/?seerDrawer=true)

<sub>Comment `@sentry <feedback>` on this PR to have Autofix iterate on
the changes.</sub>

---------

Co-authored-by: sentry[bot] <39604003+sentry[bot]@users.noreply.github.com>
Co-authored-by: jared-outpost[bot] <jared-outpost[bot]@users.noreply.github.com>
mr-danya pushed a commit to mr-danya/sentry-mcp that referenced this pull request Oct 6, 2026
…ntry#1356)

`sentry alert metrics create` and `sentry alert metrics edit` reject
dataset values that users reasonably expect to work — the singular forms
(`error`, `transaction`, …) and the dashboard-terminology names for the
error/transaction datasets (`error-events`, `transaction-like`). Those
aren't in `METRIC_DATASET_VALUES`, so they fail `validateMetricDataset`
with a `ValidationError`, even though they clearly map to a valid
canonical value.

(The already-canonical values `errors`, `transactions`, `sessions`,
`events`, `spans`, `metrics` pass validation today — they are not what
this PR fixes.)

This fix:
- Adds a `METRIC_DATASET_ALIASES` map and `normalizeMetricDataset`
helper in `packages/cli/src/commands/alert/mutation-utils.ts`, resolving
safe aliases to their canonical metric-alert value (`error` → `errors`,
`error-events` → `errors`, `transaction-like` → `transactions`, …).
- Only aliases that resolve to an already-valid metric-alert dataset are
included. Names that denote a **distinct** dataset in the metric-alert
path (`tracemetrics`, `metricsenhanced`, `eap`,
`events_analytics_platform`) are deliberately **not** aliased —
rewriting them onto `metrics`/`spans` would silently send the wrong
dataset with no validation error. Note the metric-alert canonical names
are the inverse of the dashboard/explore subsystem, where `tracemetrics`
is canonical and `metrics` is the alias.
- `validateMetricDataset` normalizes before checking, and
`create.ts`/`edit.ts` use the normalized value for both validation and
the API payload.
- Adds `normalizeMetricDataset` test coverage (alias resolution,
case-insensitivity, passthrough of unknown/distinct datasets) and
updates the `--dataset` help text to advertise the synonyms.

Fixes
[CLI-JG](https://sentry.sentry.io/issues/7351956900/?seerDrawer=true)

<sub>Comment `@sentry <feedback>` on this PR to have Autofix iterate on
the changes.</sub>

---------

Co-authored-by: sentry[bot] <39604003+sentry[bot]@users.noreply.github.com>
Co-authored-by: jared-outpost[bot] <jared-outpost[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant