You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .cursor/rules/github-workflow.mdc
+158Lines changed: 158 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -132,3 +132,161 @@ For reusable workflows (workflow_call), use descriptive names that indicate thei
132
132
- Ensure names remain meaningful when viewed in GitHub's status check UI
133
133
- Test names in the GitHub PR interface before committing changes
134
134
- For lint workflows, use simple "Lint" job name since the tool is already specified in the workflow name
135
+
136
+
---
137
+
138
+
## GitHub Actions Concurrency Strategy
139
+
140
+
### Overview
141
+
142
+
This document outlines the concurrency configuration strategy for all GitHub Actions workflows in the Sentry Cocoa repository. The strategy optimizes CI resource usage while ensuring critical runs (like main branch pushes) are never interrupted.
143
+
144
+
### Core Principles
145
+
146
+
#### 1. Resource Optimization
147
+
- **Cancel outdated PR runs** - When new commits are pushed to a PR, cancel the previous workflow run since only the latest commit matters for merge decisions
148
+
- **Protect critical runs** - Never cancel workflows running on main branch, release branches, or scheduled runs as these are essential for maintaining baseline quality and release integrity
149
+
- **Per-branch grouping** - Use `github.ref` for consistent concurrency grouping across all branch types
150
+
151
+
#### 2. Consistent Patterns
152
+
All workflows follow standardized concurrency patterns based on their trigger types and criticality.
0 commit comments