Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ This helps identify gaps in testing, review processes, or monitoring that can be

- [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
- [Release Gating Criteria](/sdk/getting-started/standards/review-ci#release-gating) — gates that may be expedited for critical patches

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Related resources:

#### 1. Triage within 2 business days

([Review SLAs](/sdk/getting-started/standards/review-ci#review-slas)). Every external PR **REQUIRES** a timely, substantive response.
([Review SLAs](/sdk/getting-started/standards/review-ci#code-review)). Every external PR **REQUIRES** a timely, substantive response.

#### 2. Check for a linked issue

Expand All @@ -55,16 +55,16 @@ Review it using the standard process ([Reviewing a PR](/sdk/getting-started/play

#### 6. When requesting changes

You **MUST** be specific, use LOGAF prefixes ([Review feedback conventions](/sdk/getting-started/standards/review-ci#review-feedback-conventions)), and explain *why* — so the contributor (or their AI tool) can address the feedback effectively.
You **MUST** be specific, use LOGAF prefixes ([Review feedback conventions](/sdk/getting-started/standards/review-ci#code-review)), and explain *why* — so the contributor (or their AI tool) can address the feedback effectively.

#### 7. Closing fast is kind

A 30-second close with a clear, respectful reason is better than a PR that sits open for weeks with no response. That respects everyone's time.

## Referenced Standards

- [Review SLAs](/sdk/getting-started/standards/review-ci#review-slas) — timely response requirements
- [Review feedback conventions](/sdk/getting-started/standards/review-ci#review-feedback-conventions) — LOGAF scale for feedback
- [Review SLAs](/sdk/getting-started/standards/review-ci#code-review) — timely response requirements
- [Review feedback conventions](/sdk/getting-started/standards/review-ci#code-review) — LOGAF scale for feedback
- [PR description quality](/sdk/getting-started/standards/code-submission#pr-description-quality) — linked issue requirement

---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ When green, mark the PR as ready for review.

#### 9. Assign 1–2 reviewers

If the PR touches public API, dependencies, or security-sensitive areas, you **MUST** assign an @sdk-seniors reviewer ([Required reviewers](/sdk/getting-started/standards/review-ci#required-reviewers)).
If the PR touches public API, dependencies, or security-sensitive areas, you **MUST** assign an @sdk-seniors reviewer ([Required reviewers](/sdk/getting-started/standards/review-ci#code-review)).

## Referenced Standards

Expand All @@ -87,7 +87,7 @@ If the PR touches public API, dependencies, or security-sensitive areas, you **M
- [Changelog entry](/sdk/getting-started/standards/code-submission#changelog-entry) — user-facing change documentation
- [One logical change per PR](/sdk/getting-started/standards/code-submission#one-logical-change-per-pr) — focused PR scope
- [Documentation-with-code](/sdk/getting-started/standards/repository-docs#documentation-with-code) — docs PR requirements
- [Required reviewers](/sdk/getting-started/standards/review-ci#required-reviewers) — @sdk-seniors review triggers
- [Required reviewers](/sdk/getting-started/standards/review-ci#code-review) — @sdk-seniors review triggers
- [Test requirements by change type](/sdk/getting-started/standards/code-quality#testing) — test coverage requirements

---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ You **SHOULD** use the [`sentry-skills:code-review`](https://github.com/getsentr

#### 4. Check for @sdk-seniors review triggers

([Required reviewers](/sdk/getting-started/standards/review-ci#required-reviewers)): public API changes, new dependencies, schema changes, security-sensitive code, new frameworks. If any apply and no @sdk-seniors reviewer is assigned, flag it.
([Required reviewers](/sdk/getting-started/standards/review-ci#code-review)): public API changes, new dependencies, schema changes, security-sensitive code, new frameworks. If any apply and no @sdk-seniors reviewer is assigned, flag it.

#### 5. Use LOGAF prefixes on all feedback

You **MUST** use LOGAF prefixes on all feedback ([Review feedback conventions](/sdk/getting-started/standards/review-ci#review-feedback-conventions)):
You **MUST** use LOGAF prefixes on all feedback ([Review feedback conventions](/sdk/getting-started/standards/review-ci#code-review)):
- `h:` (high) — must fix before merge. Bugs, security issues, breakage, data loss.
- `m:` (medium) — should fix. Design concerns, missing tests, unclear code.
- `l:` (low) — optional nit. Style preferences, minor suggestions.
Expand All @@ -78,9 +78,9 @@ You **MUST NOT** block for style preferences. The goal is risk reduction, not pe

## Referenced Standards

- [Review feedback conventions](/sdk/getting-started/standards/review-ci#review-feedback-conventions) — LOGAF scale and blocking criteria
- [Required reviewers](/sdk/getting-started/standards/review-ci#required-reviewers) — @sdk-seniors review triggers
- [Required CI checks baseline](/sdk/getting-started/standards/review-ci#required-ci-checks-baseline) — minimum CI requirements
- [Review feedback conventions](/sdk/getting-started/standards/review-ci#code-review) — LOGAF scale and blocking criteria
- [Required reviewers](/sdk/getting-started/standards/review-ci#code-review) — @sdk-seniors review triggers
- [Required CI checks baseline](/sdk/getting-started/standards/review-ci#required-ci-checks) — minimum CI requirements
- [Test requirements by change type](/sdk/getting-started/standards/code-quality#testing) — test coverage expectations
- [Test quality](/sdk/getting-started/standards/code-quality#testing) — meaningful assertion requirements
- [PR description quality](/sdk/getting-started/standards/code-submission#pr-description-quality) — description content requirements
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Public API, dependencies, schema changes, security-sensitive code, frameworks.

#### 5. Use LOGAF prefixes on feedback

([Review feedback conventions](/sdk/getting-started/standards/review-ci#review-feedback-conventions))
([Review feedback conventions](/sdk/getting-started/standards/review-ci#code-review))

#### 6. Approve when only `l:` items remain

Expand Down Expand Up @@ -91,7 +91,7 @@ You **SHOULD** use the [`sentry-skills:find-bugs`](https://github.com/getsentry/

## Referenced Standards

- [Review feedback conventions](/sdk/getting-started/standards/review-ci#review-feedback-conventions) — LOGAF scale and blocking criteria
- [Review feedback conventions](/sdk/getting-started/standards/review-ci#code-review) — LOGAF scale and blocking criteria
- [Test requirements by change type](/sdk/getting-started/standards/code-quality#testing) — test coverage expectations
- [Test quality](/sdk/getting-started/standards/code-quality#testing) — meaningful assertion requirements
- [AI attribution](/sdk/getting-started/standards/code-submission#ai-attribution) — Co-Authored-By footer requirement
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Related resources:

#### 1. Verify release gating criteria

You **MUST** verify all criteria pass ([Release gating criteria](/sdk/getting-started/standards/review-ci#release-gating-criteria)):
You **MUST** verify all criteria pass ([Release gating criteria](/sdk/getting-started/standards/review-ci#release-gating)):
- All required CI checks pass on the default branch
- No unresolved `h:` (high) review comments on merged PRs since last release
- Changelog is substantive (not empty or internal-only for a release with user-facing changes)
Expand Down Expand Up @@ -111,7 +111,7 @@ Common SDK-specific variations include:

## Referenced Standards

- [Release gating criteria](/sdk/getting-started/standards/review-ci#release-gating-criteria) — pre-release quality gates
- [Release gating criteria](/sdk/getting-started/standards/review-ci#release-gating) — pre-release quality gates
- [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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Related resources:

Create the repository in the `getsentry` organization. You **MUST** configure branch protection rules:
- Require CI checks to pass ([Required CI checks baseline](/sdk/getting-started/standards/review-ci#required-ci-checks))
- Require at least one approving review ([Required reviewers](/sdk/getting-started/standards/review-ci#required-reviewers))
- Require at least one approving review ([Required reviewers](/sdk/getting-started/standards/review-ci#code-review))

You **MUST** set up a `CODEOWNERS` file with team members to automatically request reviews.

Expand Down Expand Up @@ -109,7 +109,7 @@ If the tool cannot do this, the documentation needs work.
- [CONTRIBUTING.md](/sdk/getting-started/standards/repository-docs#repo-files) — contributor guidelines
- [PR template](/sdk/getting-started/standards/repository-docs#repo-files) — pull request template structure
- [AI context file maintenance](/sdk/getting-started/standards/repository-docs#ai-context) — maintaining AI-readable documentation
- [Required reviewers](/sdk/getting-started/standards/review-ci#required-reviewers) — review approval requirements
- [Required reviewers](/sdk/getting-started/standards/review-ci#code-review) — review approval requirements
- [Required CI checks baseline](/sdk/getting-started/standards/review-ci#required-ci-checks) — minimum CI pipeline requirements
- [Commit message format](/sdk/getting-started/standards/code-submission#commit-message-format) — conventional commit format
- [Linting and formatting in CI](/sdk/getting-started/standards/code-quality#linting-and-type-checking) — automated code style checks
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ For the ongoing release process after setup, see "Cutting a release" (wip).

- [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
- [Release gating criteria](/sdk/getting-started/standards/review-ci#release-gating) — Pre-release validation requirements
- [Rollback procedures](/sdk/getting-started/standards/coordination-maintenance#releases) — Emergency release rollback process

---
Expand Down
174 changes: 41 additions & 133 deletions develop-docs/sdk/getting-started/standards/review-ci.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Review and CI
spec_id: sdk/getting-started/standards/review-ci
spec_version: 1.1.0
spec_status: candidate
spec_status: stable
spec_platforms:
- all
spec_changelog:
Expand All @@ -19,181 +19,89 @@ sidebar_order: 4

<SpecMeta />

<SpecSection id="required-reviewers" status="candidate" since="1.0.0">
These standards cover how code gets reviewed and what CI must check before anything merges or ships. The goal: catch problems early, keep reviews useful, and make sure releases are safe.

## Required Reviewers
<SpecSection id="code-review" status="stable" since="1.0.0">

#### Rule
## Code review

Every PR **REQUIRES** at least one approving review.
@sdk-seniors review **REQUIRED** for:
### Who needs to review

- Public API ([Public API change approval gate](/sdk/getting-started/standards/api-architecture#public-api-change-approval-gate))
- New dependencies ([Dependency management](/sdk/getting-started/standards/code-quality#dependency-management))
- Security-sensitive code ([Security practices](/sdk/getting-started/standards/code-quality#security-practices))
- Schema changes
- Frameworks/architectural shifts.
External contributor PRs **REQUIRE** review from someone with area context.

#### Enforcement

- GitHub branch protection
- CODEOWNERS file

#### Suggested skill(s)

- [`sentry-skills:code-review`](https://github.com/getsentry/skills#available-skills)

#### Per-SDK override

<StatusBadge type="yes" /> CODEOWNERS and reviewer count are team-specific.

</SpecSection>

---

<SpecSection id="review-slas" status="candidate" since="1.0.0">

## Review SLAs

#### Rule

Internal PRs: first review within 1 business day.
External PRs: first response within 2 business days.

"First review" means substantive feedback, not just a reaction.

If an area has only a single reviewer or if that reviewer lacks capacity, the reviewer **MUST** proactively find coverage (another reviewer or AI assist). The PR author **SHOULD** also help identify an appropriate reviewer to avoid blocking the PR.

#### Enforcement

- Dashboard tracking
- Periodic reporting

#### Per-SDK override

<StatusBadge type="yes" /> Teams can set stricter SLAs. Baseline is universal.

</SpecSection>

---

<SpecSection id="review-feedback-conventions" status="candidate" since="1.0.0">

## Review Feedback Conventions
Every PR **REQUIRES** at least one approving review. Some changes need review from an [SDK Senior Engineer](https://github.com/orgs/getsentry/teams/sdk-seniors):

#### Rule

LOGAF scale:
- [Public API changes](/sdk/getting-started/standards/api-architecture#public-api-changes)
- [New dependencies](/sdk/getting-started/standards/code-quality#dependencies)
- [Security-sensitive code](/sdk/getting-started/standards/code-quality#security)
- Schema changes
- Frameworks or architectural shifts

- `h:` (high) — must fix (bugs, security, breakage, data loss)
- `m:` (medium) — should fix (design, missing tests, clarity)
- `l:` (low) — optional nit (style, minor suggestions)
PRs from external contributors need review from someone with context on the affected area.

Comments without a prefix are treated as `m:` (medium). A PR **MUST NOT** be merged if it has any unresolved `h:` comments.
### Turnaround time

#### Enforcement
Internal PRs should get a first substantive review within 1 business day. External PRs should get a first response within 2 business days. "First review" means real feedback, not just a reaction.

- Convention
If you're the sole reviewer for an area and don't have capacity, proactively find coverage — another reviewer or AI assist. PR authors should also help identify an appropriate reviewer to avoid blocking.

#### Suggested skill(s)
### Feedback conventions

- [`sentry-skills:iterate-pr`](https://github.com/getsentry/skills#available-skills) — triages by LOGAF level.
- [`sentry-skills:code-review`](https://github.com/getsentry/skills#available-skills) — uses LOGAF in feedback.
Use the LOGAF scale to signal the weight of your feedback:

#### Per-SDK override
- **`h:`** (high) — must fix: bugs, security issues, breakage, data loss
- **`m:`** (medium) — should fix: design, missing tests, clarity
- **`l:`** (low) — optional nit: style, minor suggestions

<StatusBadge type="no" />
Comments without a prefix are treated as medium. A PR **MUST NOT** merge with unresolved `h:` comments.

</SpecSection>

---

<SpecSection id="required-ci-checks" status="candidate" since="1.0.0">
<SpecSection id="required-ci-checks" status="stable" since="1.0.0">

## Required CI Checks Baseline
## CI checks

#### Rule

Every SDK repo **MUST** have as required status checks:
Every SDK repo **MUST** have these as required status checks:

1. Build
2. Lint ([Linting and formatting in CI](/sdk/getting-started/standards/code-quality#linting-and-formatting-in-ci))
3. Type check where applicable ([Type checking in CI](/sdk/getting-started/standards/code-quality#type-checking-in-ci))
2. Lint
3. Type check (where applicable)
4. Tests
Comment thread
stephanie-anderson marked this conversation as resolved.
Resolved
5. Commit message structure and content ([Commit message structure and content](/sdk/getting-started/standards/code-submission#commit-message-structure-and-content)).

Optional/**RECOMMENDED**:
5. Secret Scanning

- Size/Performance Check ([SDK size and performance budgets](/sdk/getting-started/standards/code-quality#size-performance-budgets))
- API Snapshot ([Public API change approval gate](/sdk/getting-started/standards/api-architecture#public-api-change-approval-gate))
- Changelog Check ([Changelog entry](/sdk/getting-started/standards/code-submission#changelog-entry))
- Secret Scanning ([Security practices](/sdk/getting-started/standards/code-quality#security-practices)).
These are also recommended but not yet required everywhere:

#### Enforcement
- Commit message validation
- Size and performance checks
- API snapshot diffs
- Changelog validation

- GitHub branch protection
</SpecSection>

#### Suggested skill(s)
---

- [`sentry-skills:claude-settings-audit`](https://github.com/getsentry/skills#available-skills)
<SpecSection id="warden" status="stable" since="1.1.0">

#### Per-SDK override
## Warden
Comment thread
stephanie-anderson marked this conversation as resolved.
Resolved

<StatusBadge type="no" /> Additional checks per SDK. Baseline is universal.
SDK repos **SHOULD** have [Warden](https://warden.sentry.dev/) configured in CI via the Warden GitHub Action. Warden runs AI-powered skills against PR diffs to enforce SDK-specific conventions that static linters can't express. Which skills are active varies by SDK.

</SpecSection>

---

<SpecSection id="release-gating-criteria" status="candidate" since="1.0.0">
<SpecSection id="release-gating" status="stable" since="1.0.0">

## Release Gating Criteria

#### Rule
## Release gating

A release **MUST NOT** ship if:

- Any required CI check fails
- Any `h:` comment remains unresolved on merged PRs since last release
- Any `h:` review comment remains unresolved on merged PRs since the last release
- The changelog is empty for user-facing changes
- Any known regression remains unresolved

#### Enforcement

- Release tooling checks
- Human judgment for regressions

See also: [Setting up release infrastructure playbook](/sdk/getting-started/playbooks/setup/setting-up-release-infrastructure) for initial release setup.

#### Per-SDK override

<StatusBadge type="no" /> Additional gates per SDK possible (e.g., beta/rc periods).

</SpecSection>

---

<SpecSection id="warden" status="candidate" since="1.1.0">

## Warden

#### Rule

SDK repos **SHOULD** have [Warden](https://warden.sentry.dev/) configured in CI via the Warden GitHub Action. Warden runs AI-powered skills against PR diffs to enforce SDK-specific conventions that static linters cannot express.

#### Enforcement

- GitHub Actions (Warden GitHub Action)
- Human review for follow-up on findings

#### Suggested skill(s)

- [`sentry-skills:warden-lint-judge`](https://github.com/getsentry/skills#available-skills) — converts findings into permanent lint rules.

#### Per-SDK override

<StatusBadge type="yes" /> Which Warden skills are active varies per SDK.
See [Setting up release infrastructure](/sdk/getting-started/playbooks/setup/setting-up-release-infrastructure) for initial release setup.

</SpecSection>

Expand Down
Loading