diff --git a/develop-docs/sdk/getting-started/playbooks/coordination/triaging.mdx b/develop-docs/sdk/getting-started/playbooks/coordination/triaging.mdx index 4599007ec9c39..218189d59d53c 100644 --- a/develop-docs/sdk/getting-started/playbooks/coordination/triaging.mdx +++ b/develop-docs/sdk/getting-started/playbooks/coordination/triaging.mdx @@ -27,7 +27,7 @@ Triage **SHOULD** prioritise acknowledgement and categorization over immediate f Triage **MAY** be bypassed if the issue was created by a team member. Related resources: -- [Triaging SLA](/sdk/getting-started/standards/coordination-maintenance#triaging-sla) — 2 business day first response requirement +- [Triaging SLA](/sdk/getting-started/standards/coordination-maintenance#issue-triage) — 2 business day first response requirement - [GitHub Saved Replies](/sdk/getting-started/templates/saved-replies) — team-approved response templates for common scenarios - [Handling an External Contributor PR](/sdk/getting-started/playbooks/development/handling-external-contributor-pr) — PR-specific triage workflow - [Handling a Regression](/sdk/getting-started/playbooks/development/handling-a-regression) — regression response process @@ -50,7 +50,7 @@ Items **MAY** arrive through any of these channels. Social media is out of scope Response time expectations vary by channel: -- **GitHub issues and PRs** — initial response **MUST** be within **2 business days** ([Triaging SLA](/sdk/getting-started/standards/coordination-maintenance#triaging-sla)) +- **GitHub issues and PRs** — initial response **MUST** be within **2 business days** ([Triaging SLA](/sdk/getting-started/standards/coordination-maintenance#issue-triage)) - **Slack and Discord** — response **SHOULD** be within a **few hours** during business hours The response **MUST** acknowledge receipt and set expectations — a clarifying question, next steps, or a likely outcome. The initial response does not imply acceptance, prioritisation, or commitment to work. @@ -90,13 +90,13 @@ Labels are applied automatically to reflect where action is required: When an issue carries **`Waiting for: Product Owner`**, treat it as an active obligation in the triage queue — respond, investigate, or escalate within the SLA window. Labels reset automatically on each state transition. -See also: [Waiting-for Labels](/sdk/getting-started/standards/coordination-maintenance#waiting-for-labels) +See also: [Waiting-for Labels](/sdk/getting-started/standards/coordination-maintenance#issue-triage) --- ## Referenced Standards -- [Triaging SLA](/sdk/getting-started/standards/coordination-maintenance#triaging-sla) — 2 business day first response baseline and enforcement +- [Triaging SLA](/sdk/getting-started/standards/coordination-maintenance#issue-triage) — 2 business day first response baseline and enforcement --- diff --git a/develop-docs/sdk/getting-started/playbooks/development/handling-a-regression.mdx b/develop-docs/sdk/getting-started/playbooks/development/handling-a-regression.mdx index 08948bf8c0021..af0a4e3530696 100644 --- a/develop-docs/sdk/getting-started/playbooks/development/handling-a-regression.mdx +++ b/develop-docs/sdk/getting-started/playbooks/development/handling-a-regression.mdx @@ -23,8 +23,8 @@ spec_changelog: This playbook guides SDK maintainers through handling regressions discovered after a release. It covers severity assessment, response options (patch release vs. rollback), communication protocols, and post-incident review. By following these steps, regressions will be resolved quickly with minimal user impact. Related resources: -- [Post-release monitoring](/sdk/getting-started/standards/coordination-maintenance#post-release-monitoring) — how regressions are detected -- [Rollback procedures](/sdk/getting-started/standards/coordination-maintenance#rollback-procedures) — emergency rollback process +- [Post-release monitoring](/sdk/getting-started/standards/coordination-maintenance#releases) — how regressions are detected +- [Rollback procedures](/sdk/getting-started/standards/coordination-maintenance#releases) — emergency rollback process - [Cutting a Release](/sdk/getting-started/playbooks/sdk-lifecycle/cutting-a-release) — standard release process (expedited for patches) --- @@ -50,7 +50,7 @@ You **MUST** take one of the following actions: **Option B: Yank the release** - If a clean revert isn't possible, yank the bad release from the package registry -- Follow the documented rollback procedure: [Rollback procedures](/sdk/getting-started/standards/coordination-maintenance#rollback-procedures) +- Follow the documented rollback procedure: [Rollback procedures](/sdk/getting-started/standards/coordination-maintenance#releases) #### 3. Communicate @@ -70,8 +70,8 @@ This helps identify gaps in testing, review processes, or monitoring that can be ## Referenced Standards -- [Post-release monitoring](/sdk/getting-started/standards/coordination-maintenance#post-release-monitoring) — monitoring that detects regressions -- [Rollback procedures](/sdk/getting-started/standards/coordination-maintenance#rollback-procedures) — emergency rollback process +- [Post-release monitoring](/sdk/getting-started/standards/coordination-maintenance#releases) — monitoring that detects regressions +- [Rollback procedures](/sdk/getting-started/standards/coordination-maintenance#releases) — emergency rollback process - [Release Gating Criteria](/sdk/getting-started/standards/review-ci#release-gating-criteria) — gates that may be expedited for critical patches --- diff --git a/develop-docs/sdk/getting-started/playbooks/sdk-lifecycle/cutting-a-release.mdx b/develop-docs/sdk/getting-started/playbooks/sdk-lifecycle/cutting-a-release.mdx index acd028111bf2f..42255503c471d 100644 --- a/develop-docs/sdk/getting-started/playbooks/sdk-lifecycle/cutting-a-release.mdx +++ b/develop-docs/sdk/getting-started/playbooks/sdk-lifecycle/cutting-a-release.mdx @@ -84,7 +84,7 @@ The artifact **MUST** be published and installable. Quick smoke test: install th #### 6. Post-release monitoring -You **MUST** follow post-release monitoring procedures ([Post-release monitoring](/sdk/getting-started/standards/coordination-maintenance#post-release-monitoring)): +You **MUST** follow post-release monitoring procedures ([Post-release monitoring](/sdk/getting-started/standards/coordination-maintenance#releases)): - Check SDK crash detection within 24 hours - Verify dogfooding (Sentry's own products) picks up the new version - Monitor the issue tracker for regression reports for 48 hours @@ -112,8 +112,8 @@ Common SDK-specific variations include: ## Referenced Standards - [Release gating criteria](/sdk/getting-started/standards/review-ci#release-gating-criteria) — pre-release quality gates -- [Post-release monitoring](/sdk/getting-started/standards/coordination-maintenance#post-release-monitoring) — monitoring requirements and timeline -- [Rollback procedures](/sdk/getting-started/standards/coordination-maintenance#rollback-procedures) — emergency rollback process +- [Post-release monitoring](/sdk/getting-started/standards/coordination-maintenance#releases) — monitoring requirements and timeline +- [Rollback procedures](/sdk/getting-started/standards/coordination-maintenance#releases) — emergency rollback process --- diff --git a/develop-docs/sdk/getting-started/playbooks/setup/setting-up-new-sdk-repo.mdx b/develop-docs/sdk/getting-started/playbooks/setup/setting-up-new-sdk-repo.mdx index 2cdcd3e6aa61b..67386e4b90408 100644 --- a/develop-docs/sdk/getting-started/playbooks/setup/setting-up-new-sdk-repo.mdx +++ b/develop-docs/sdk/getting-started/playbooks/setup/setting-up-new-sdk-repo.mdx @@ -86,7 +86,7 @@ You **MUST** configure release automation: #### 6. Rollback documentation -You **MUST** document rollback procedures ([Rollback procedures](/sdk/getting-started/standards/coordination-maintenance#rollback-procedures)): +You **MUST** document rollback procedures ([Rollback procedures](/sdk/getting-started/standards/coordination-maintenance#releases)): - Who can publish and yank releases (at least two people) - How to yank a release from the package registry - Backup contact if the primary publisher is unavailable @@ -115,7 +115,7 @@ If the tool cannot do this, the documentation needs work. - [Linting and formatting in CI](/sdk/getting-started/standards/code-quality#linting-formatting-ci) — automated code style checks - [Type checking in CI](/sdk/getting-started/standards/code-quality#type-checking-ci) — static type verification - [Security practices](/sdk/getting-started/standards/code-quality#security-practices) — secret scanning and security checks -- [Rollback procedures](/sdk/getting-started/standards/coordination-maintenance#rollback-procedures) — release rollback documentation +- [Rollback procedures](/sdk/getting-started/standards/coordination-maintenance#releases) — release rollback documentation --- diff --git a/develop-docs/sdk/getting-started/playbooks/setup/setting-up-release-infrastructure.mdx b/develop-docs/sdk/getting-started/playbooks/setup/setting-up-release-infrastructure.mdx index 67213ce13888f..b57e05790548e 100644 --- a/develop-docs/sdk/getting-started/playbooks/setup/setting-up-release-infrastructure.mdx +++ b/develop-docs/sdk/getting-started/playbooks/setup/setting-up-release-infrastructure.mdx @@ -127,10 +127,10 @@ For the ongoing release process after setup, see "Cutting a release" (wip). ## Referenced Standards -- [Version format](/sdk/getting-started/standards/release-versioning#version-format) — SemVer requirements +- [Version format](/sdk/getting-started/standards/release-versioning#versioning) — SemVer requirements - [Release tooling](/sdk/getting-started/standards/release-versioning#release-tooling) — Craft and publish setup - [Release gating criteria](/sdk/getting-started/standards/review-ci#release-gating-criteria) — Pre-release validation requirements -- [Rollback procedures](/sdk/getting-started/standards/coordination-maintenance#rollback-procedures) — Emergency release rollback process +- [Rollback procedures](/sdk/getting-started/standards/coordination-maintenance#releases) — Emergency release rollback process --- diff --git a/develop-docs/sdk/getting-started/standards/coordination-maintenance.mdx b/develop-docs/sdk/getting-started/standards/coordination-maintenance.mdx index a70cb2044f7cc..2eba9dc76f9db 100644 --- a/develop-docs/sdk/getting-started/standards/coordination-maintenance.mdx +++ b/develop-docs/sdk/getting-started/standards/coordination-maintenance.mdx @@ -2,7 +2,7 @@ title: Coordination and Maintenance spec_id: sdk/getting-started/standards/coordination-maintenance spec_version: 1.0.0 -spec_status: candidate +spec_status: stable spec_platforms: - all spec_changelog: @@ -16,184 +16,92 @@ sidebar_order: 7 - +These standards cover how SDK teams coordinate across repositories, respond to users, and keep things running after code ships. The common thread: don't let things fall through the cracks. -## Cross-SDK Coordination Protocol + -#### Rule +## Cross-SDK changes -Multi-SDK changes follow: +When a change affects multiple SDKs, follow this sequence: -1. Proposal (RFC/issue) -2. Cross-SDK Review (1 week minimum) -3. Sequencing Decision -4. Tracking as Linear Initiative -5. Coordinated communication +1. **Proposal** — RFC or issue describing the change +2. **Cross-SDK review** — at least 1 week for feedback +3. **Sequencing decision** — agree on rollout order +4. **Tracking** — set up as a Linear initiative +5. **Communication** — coordinate announcements -#### Enforcement - -- Human process -- Templates for Proposals - -See also: [Aligning Cross-SDK Changes](/sdk/getting-started/playbooks/coordination/aligning-cross-sdk-changes) — step-by-step playbook for coordinating a change across multiple SDKs. [Managing Linear Projects](/sdk/getting-started/playbooks/coordination/managing-linear-projects) — setting up and running each per-SDK project. - -#### Per-SDK override - - Timing varies. Process is universal. +See [Aligning Cross-SDK Changes](/sdk/getting-started/playbooks/coordination/aligning-cross-sdk-changes) for the step-by-step playbook and [Managing Linear Projects](/sdk/getting-started/playbooks/coordination/managing-linear-projects) for running per-SDK projects. --- - - -## Triaging SLA - -#### Rule + -All user-reported issues **MUST** receive substantive first response within 2 business days. -Substantive means acknowledging the problem, asking for reproduction steps, confirming it as a known issue, or explaining the resolution. +## Issue triage -#### Enforcement +All user-reported issues **MUST** get a substantive first response within 2 business days. "Substantive" means acknowledging the problem, asking for reproduction steps, confirming it as a known issue, or explaining the resolution — not just a thumbs-up emoji. -- Automated labeling -- Dashboard tracking +Issues on GitHub and Linear are automatically labeled to track where action is needed: -See also: [Triaging SDK Issues](/sdk/getting-started/playbooks/coordination/triaging) for the full triage workflow. +- **`Waiting for: Product Owner`** — the maintainer **MUST** respond within 2 business days. The SLA restarts each time this label becomes active. +- **`Waiting for: Community`** — the maintainer has responded and is waiting for a reply or reproduction from the reporter. No SLA while this label is active. -#### Per-SDK override +Labels are managed automatically and reset on state transitions. Both are removed when the issue is closed. - Stricter SLAs allowed. Baseline is universal. +See the [Triaging playbook](/sdk/getting-started/playbooks/coordination/triaging) for the full workflow. --- - - -## Waiting-for Labels - -#### Rule - -Issues on GitHub and Linear are automatically labeled to reflect where action is required: - -- **`Waiting for: Product Owner`** — the maintainer **MUST** respond within **2 business days**. This SLA restarts each time the label becomes active. -- **`Waiting for: Community`** — the maintainer has responded and is awaiting a reply, reproduction, or confirmation from the reporter or community. No SLA applies while this label is active. - -Labels are managed automatically and reset on each state transition. Both labels are removed when the issue is closed or resolved. + -#### Enforcement +## Platform and language version support -- Automated labeling via GitHub Actions and Linear automation +Supported versions should be documented in the README and docs. Dropping support for a platform or language version is a breaking change — it follows the [breaking change and deprecation process](/sdk/getting-started/standards/api-architecture#breaking-and-deprecation) and needs evidence: usage data, upstream EOL status, or maintenance burden. Announce it at least one minor release before the major that drops support. -See also: [Triaging playbook — Respond to label states](/sdk/getting-started/playbooks/coordination/triaging#respond-to-label-states) - -#### Per-SDK override - - Labels and SLA are universal. +Each SDK owns its version matrix. CI should test all supported versions. --- - - -## Platform/language version support policy - -#### Rule - -- Supported versions documented in README and docs -- Dropping support is a breaking change ([Breaking change process](/sdk/getting-started/standards/api-architecture#breaking-change-process)) following the deprecation lifecycle ([Deprecation lifecycle](/sdk/getting-started/standards/api-architecture#deprecation-lifecycle)) -- Requires evidence: usage data, upstream EOL, maintenance burden -- Announced at least one minor release before the major that drops - -#### Enforcement + -- CI matrix tests supported versions -- Human process for changes +## Post-release monitoring and regression handling -#### Per-SDK override - - Each SDK owns its matrix. Process for changing it is -universal. - - - ---- +### Monitoring - - -## Post-release monitoring - -#### Rule - -After each release: +After each release, watch for problems: - Monitor SDK crash detection -- Verify dogfooding picks up new version -- Watch issue tracker for 48h -- Patch critical regressions within 48h +- Verify dogfooding picks up the new version +- Watch the issue tracker for 48 hours +- Patch critical regressions within 48 hours -#### Enforcement +### Handling regressions -- Automated alerting -- Human monitoring +Every SDK **MUST** have a documented regression handling plan covering: -#### Per-SDK override +- How to yank or unpublish a release +- How to cut a revert release +- Who has permissions — at least two people per SDK must be able to publish and yank +- A communication template for notifying users - Tooling varies. Commitment and SLA are universal. +An annual regression handling drill is recommended. See [Setting up release infrastructure](/sdk/getting-started/playbooks/setup/setting-up-release-infrastructure) for initial setup. --- - - -## Rollback procedures - -#### Rule - -Every SDK **MUST** have documented rollback: - -- How to yank/unpublish -- How to cut revert release -- Who has permissions (plus backup) at least two people can publish/yank per SDK -- Communication template -- Annual drill **RECOMMENDED** - -#### Enforcement - -- Documentation exists -- Permissions verified - -See also: [Setting up release infrastructure playbook](/sdk/getting-started/playbooks/setup/setting-up-release-infrastructure) for initial release setup with appropriate permissions. - -#### Per-SDK override - - Per-registry mechanics. Requirement to have a plan is universal. - - - ---- - - - -## Decision Documentation - -#### Rule - -- **Before a decision**: reference or create a Linear or GitHub issue to anchor the discussion. -- **If a meeting occurs**: notes or a recording **MUST** be enabled; key decisions **MUST** be summarized and linked to the issue. -- **After a decision**: update the issue immediately; link supporting docs; assign action items with owners. -- Slack **MAY** be used for coordination. Outcomes **MUST** be moved to the system of record (Linear, GitHub, Develop Docs) before the thread is considered closed. - -#### Enforcement + -- Human process +## Documenting decisions -#### Per-SDK override +Decisions should be traceable. Before making one, reference or create a Linear or GitHub issue to anchor the discussion. If a meeting happens, enable notes or recording — key decisions **MUST** be summarized and linked to the issue afterward. - Applies universally. +Slack is fine for coordination, but outcomes **MUST** be moved to the system of record (Linear, GitHub, or Develop Docs) before the thread is considered closed. Update the issue immediately, link supporting docs, and assign action items with owners. diff --git a/develop-docs/sdk/getting-started/standards/release-versioning.mdx b/develop-docs/sdk/getting-started/standards/release-versioning.mdx index 64d57eb98dc74..e410f5e613fe4 100644 --- a/develop-docs/sdk/getting-started/standards/release-versioning.mdx +++ b/develop-docs/sdk/getting-started/standards/release-versioning.mdx @@ -2,7 +2,7 @@ title: Release and Versioning spec_id: sdk/getting-started/standards/release-versioning spec_version: 1.0.0 -spec_status: candidate +spec_status: stable spec_platforms: - all spec_changelog: @@ -16,11 +16,11 @@ sidebar_order: 99 - +These standards define how SDK versions are numbered and how releases are built and published. All SDKs use semantic versioning and shared release tooling to keep the process consistent. -## Version Format + -#### Rule +## Versioning All SDK versions **MUST** follow [semantic versioning (SemVer)](https://semver.org/): @@ -28,134 +28,39 @@ All SDK versions **MUST** follow [semantic versioning (SemVer)](https://semver.o ..(-)?(-)? ``` -Major, minor, and patch are **REQUIRED**. Pre-release and build identifiers are **OPTIONAL** and can be combined. +### Pre-release identifiers -#### Enforcement +Pre-release identifiers **MUST** be one of: `preview`, `pre`, `rc`, `dev`, `alpha`, `beta`, `unstable`, `a`, `b`. Arbitrary strings are not accepted — anything unrecognized (like `-foo` or `-canary.0`) will be treated as a stable release by the release tooling. -- [Craft](https://github.com/getsentry/craft) validates version format at release time. +Pre-releases don't receive a `latest` tag in package registries and are not inserted into the internal release-registry used by Sentry product, docs, and tooling. -#### Per-SDK override +Valid examples: `1.0.0-preview`, `1.0.0-alpha.0`, `1.0.0-beta.1`, `1.0.0-rc.20` - Format is universal. Language-specific conventions -around SemVer (if applicable) are allowed. +**Python note:** Python post-releases use a numeric-only suffix (e.g., `1.0.0-1`). Since this doesn't match any pre-release identifier, craft treats them as stable releases. - - ---- - - - -## Pre-Release Identifiers - -#### Rule - -Pre-release identifiers **MUST** be one of: `preview`, `pre`, `rc`, `dev`, `alpha`, `beta`, `unstable`, `a`, `b`. Arbitrary strings are not accepted. - -Pre-releases: - -- Do not receive a `latest` tag in package registries -- Are not inserted into the internal release-registry (used by Sentry product, docs, and tooling) - -Valid examples: - -``` -1.0.0-preview -1.0.0-alpha.0 -1.0.0-beta.1 -1.0.0-rc.20 -``` - -Invalid (treated as stable): - -``` -1.0.0-foo -1.0.0-canary.0 -``` +### Build identifiers -**Python post-releases:** Python has the concept of post-releases indicated by a numeric-only suffix (e.g., `1.0.0-1`). Since this doesn't match any valid pre-release identifier, craft treats post-releases as stable releases. - -#### Enforcement - -- Craft rejects unrecognized identifiers or treats them as stable releases. - -#### Per-SDK override - - +Build identifiers are optional and used for platform or architecture variants (e.g., `1.0.0+x86_64`). When combined with pre-release identifiers, the pre-release comes first: `1.0.0-rc.1+x86_64`. --- - - -## Build Identifiers - -#### Rule - -Build identifiers **MAY** be appended for platform or architecture variants. When combined with pre-release identifiers, the pre-release **MUST** come first. - -Valid examples: - -``` -1.0.0+x86_64 -1.0.0-rc.1+x86_64 -``` - -Invalid: - -``` -1.0.0+rc.1+x86_64 -1.0.0+x86_64-beta.0 -``` - -#### Enforcement - -- Craft validates format at release time. + -#### Per-SDK override +## Release tooling - Usage depends on whether the SDK publishes -platform-specific artifacts. - - - ---- - - - -## Release Tooling - -#### Rule - -SDKs **MUST** use [craft](https://github.com/getsentry/craft) for release preparation and [publish](https://github.com/getsentry/publish) for release approval. Every SDK repo **MUST** have: +SDKs **MUST** use [craft](https://github.com/getsentry/craft) for release preparation and [publish](https://github.com/getsentry/publish) for release approval. Every SDK repo needs: - `.craft.yml` — release configuration - `scripts/bump-version.sh` — version bump script invoked by craft - `.github/workflows/release.yml` — GitHub Actions workflow to trigger releases -See the [setting up release infrastructure](/sdk/getting-started/playbooks/setup/setting-up-release-infrastructure) playbook for setup instructions. - -#### Enforcement - -- Craft enforces configuration at release time. -- Publish requires approval label before artifacts are published. - -#### Per-SDK override - - Craft targets and bump-version logic are -SDK-specific. Toolchain is universal. - - - ---- - - +Craft targets and bump-version logic are SDK-specific, but the toolchain is the same everywhere. See the [setting up release infrastructure](/sdk/getting-started/playbooks/setup/setting-up-release-infrastructure) playbook for setup instructions. -## Merge Target +### Merge target -#### Rule - -By default, releases are merged to the repository's default branch (usually `main`). To override this, pass the `merge_target` input in the release workflow: +By default, releases merge to the repository's default branch (usually `main`). To override this, pass the `merge_target` input in the release workflow: ```yaml - name: Prepare release @@ -169,27 +74,9 @@ By default, releases are merged to the repository's default branch (usually `mai Add a corresponding `merge_target` input to the workflow's `workflow_dispatch.inputs` block. The same input is available in the [reusable workflow](https://craft.sentry.dev/github-actions/#option-1-reusable-workflow-recommended). -#### Enforcement - -- Craft handles branch targeting at release time. - -#### Per-SDK override - - Depends on branching strategy. - - - ---- - - - -## Multiple Craft Configs Per Repository - -#### Rule - -When a repository maintains multiple major versions (e.g., v7 and v8) with diverging publishing targets, it can opt into using the `.craft.yml` from the merge target branch instead of the default branch. +### Multiple craft configs -**Release preparation:** Add `craft_config_from_merge_target: true` when calling `getsentry/craft` in the release workflow: +When a repository maintains multiple major versions (e.g., v7 and v8) with diverging publishing targets, it can use the `.craft.yml` from the merge target branch instead of the default branch. Add `craft_config_from_merge_target: true` to the craft step: ```yaml - name: Prepare release @@ -198,9 +85,7 @@ When a repository maintains multiple major versions (e.g., v7 and v8) with diver craft_config_from_merge_target: true ``` -This input is also available in the [reusable workflow](https://craft.sentry.dev/github-actions/#option-1-reusable-workflow-recommended). - -**Publish configuration:** Register the branch in the `publish.yml` workflow in `getsentry/publish`: +For the publish side, register the branch in the `publish.yml` workflow in `getsentry/publish`: ```yaml - name: Set target repo checkout branch @@ -208,16 +93,9 @@ This input is also available in the [reusable workflow](https://craft.sentry.dev fromJSON(steps.inputs.outputs.result).repo == 'sentry-javascript' && fromJSON(steps.inputs.outputs.result).merge_target == 'v7' ``` -The registered branches **MUST** be protected in the target repository — disable direct pushing and require PR approvals before merging. - -#### Enforcement - -- Craft validates config from the specified branch. -- Publish workflow enforces branch protection requirement. - -#### Per-SDK override +The registered branches **MUST** be protected — disable direct pushing and require PR approvals before merging. - Only needed for repos maintaining multiple major versions. +Once a release is out, see [Post-release monitoring and regression handling](/sdk/getting-started/standards/coordination-maintenance#releases) for what to watch and how to respond.