Skip to content

Commit f4dbaf9

Browse files
authored
Merge branch 'master' into scttcper/release-created
2 parents 1fa3c4f + 469d66c commit f4dbaf9

File tree

2,281 files changed

+63400
-44667
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,281 files changed

+63400
-44667
lines changed

.cursor/rules/README.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Cursor Rules Configuration
2+
3+
This directory contains `.mdc` (Markdown with Cursor directives) files that configure context-aware loading of AGENTS.md files in Cursor's AI assistant.
4+
5+
## How It Works
6+
7+
When you edit a file, Cursor automatically loads the relevant AGENTS.md based on glob patterns:
8+
9+
| File Type | Loaded Guide | Glob Pattern |
10+
| -------------- | ------------------ | --------------------------------------- |
11+
| Backend Python | `src/AGENTS.md` | `src/**/*.py` (excluding tests) |
12+
| Test files | `tests/AGENTS.md` | `tests/**/*.py`, `src/**/tests/**/*.py` |
13+
| Frontend | `static/AGENTS.md` | `static/**/*.{ts,tsx,js,jsx,css,scss}` |
14+
| All files | `AGENTS.md` | Always loaded |
15+
16+
## Files
17+
18+
- **`general.mdc`** - Always loads root `AGENTS.md` for general Sentry context
19+
- **`backend.mdc`** - Loads backend patterns for Python files in `src/`
20+
- **`tests.mdc`** - Loads testing patterns for test files
21+
- **`frontend.mdc`** - Loads frontend patterns for TypeScript/JavaScript/CSS files
22+
23+
## Benefits
24+
25+
- **Token efficient**: Only relevant context is loaded
26+
- **Better AI responses**: Targeted guidance for the current task
27+
- **Maintainable**: Content lives in AGENTS.md files, rules just reference them
28+
29+
## Adding New Rules
30+
31+
To add a new context-specific rule:
32+
33+
1. Create a new `.mdc` file in this directory
34+
2. Add YAML frontmatter with `globs:` or `alwaysApply:`
35+
3. Reference the appropriate AGENTS.md file with `@file:`
36+
37+
Example:
38+
39+
```markdown
40+
---
41+
globs:
42+
- 'migrations/**/*.py'
43+
---
44+
45+
@file:migrations/AGENTS.md
46+
```
47+
48+
## Documentation
49+
50+
For more information, see:
51+
52+
- [Cursor Context Rules Documentation](https://docs.cursor.com/en/context/rules)
53+
- Root `AGENTS.md` - "Context-Aware Loading" section

.cursor/rules/backend.mdc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
globs:
3+
- 'src/**/*.py'
4+
- '!src/**/tests/**'
5+
---
6+
7+
@file:src/AGENTS.md

.cursor/rules/frontend.mdc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
globs:
3+
- 'static/**/*.{ts,tsx,js,jsx}'
4+
- 'static/**/*.{css,scss}'
5+
---
6+
7+
@file:static/AGENTS.md

.cursor/rules/general.mdc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
alwaysApply: true
3+
---
4+
5+
@file:AGENTS.md

.cursor/rules/tests.mdc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
globs:
3+
- 'tests/**/*.py'
4+
- 'src/**/tests/**/*.py'
5+
---
6+
7+
@file:tests/AGENTS.md

.github/CODEOWNERS

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -703,16 +703,18 @@ pnpm-lock.yaml @getsentry/owners-js-de
703703
## End of Frontend Platform
704704

705705
# Prevent
706-
/src/sentry/prevent/ @getsentry/prevent
707-
/src/sentry/overwatch/ @getsentry/prevent
708-
/src/sentry/overwatch_webhooks/ @getsentry/prevent
709-
/static/app/components/prevent/ @getsentry/prevent
710-
/static/app/views/prevent/ @getsentry/prevent
711-
/static/app/views/nav/secondary/sections/prevent/ @getsentry/prevent
706+
/src/sentry/prevent/ @getsentry/coding-workflows
707+
/src/sentry/overwatch/ @getsentry/coding-workflows
708+
/src/sentry/overwatch_webhooks/ @getsentry/coding-workflows
709+
/static/app/components/prevent/ @getsentry/coding-workflows
710+
/static/app/views/prevent/ @getsentry/coding-workflows
711+
/static/app/views/nav/secondary/sections/prevent/ @getsentry/coding-workflows
712712
# End of Prevent
713713

714714
# Coding Workflows
715-
/src/sentry/integrations/api/endpoints/organization_repository_settings.py @getsentry/coding-workflows
715+
/src/sentry/integrations/api/endpoints/organization_repository_settings.py @getsentry/coding-workflows
716+
/src/sentry/seer/code_review/ @getsentry/coding-workflows
717+
/tests/sentry/seer/code_review/ @getsentry/coding-workflows
716718
# End of Coding Workflows
717719

718720
# Conduit

.github/actions/artifacts/action.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

.github/actions/artifacts/do_upload.py

Lines changed: 0 additions & 106 deletions
This file was deleted.

.github/actions/artifacts/download_codecov_cli.py

Lines changed: 0 additions & 44 deletions
This file was deleted.

.github/actions/setup-sentry/action.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ runs:
5050
### pytest configuration ###
5151
echo "PY_COLORS=1" >> "$GITHUB_ENV"
5252
echo "PYTEST_ADDOPTS=--reruns=5 --durations=10 --fail-slow=60s" >> $GITHUB_ENV
53-
echo "COVERAGE_CORE=sysmon" >> "$GITHUB_ENV"
5453
5554
### pytest-sentry configuration ###
5655
if [ "$GITHUB_REPOSITORY" = "getsentry/sentry" ]; then
@@ -81,6 +80,15 @@ runs:
8180
echo "TOTAL_TEST_GROUPS=$MATRIX_INSTANCE_TOTAL" >> $GITHUB_ENV
8281
fi
8382
83+
- name: Clear Python cache
84+
shell: bash --noprofile --norc -eo pipefail -ux {0}
85+
env:
86+
WORKDIR: ${{ inputs.workdir }}
87+
run: |
88+
cd "$WORKDIR"
89+
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
90+
find . -type f -name "*.pyc" -delete 2>/dev/null || true
91+
8492
- uses: astral-sh/setup-uv@884ad927a57e558e7a70b92f2bccf9198a4be546 # v6
8593
with:
8694
version: '0.8.2'

0 commit comments

Comments
 (0)