Skip to content

Commit 2826ab1

Browse files
committed
Merge remote-tracking branch 'origin/master' into silo-mode-test-decorators
2 parents ad070d9 + 9e38023 commit 2826ab1

File tree

234 files changed

+12202
-4214
lines changed

Some content is hidden

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

234 files changed

+12202
-4214
lines changed

.agents/skills/design-system/SKILL.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ import {Container} from '@sentry/scraps/layout';
5151

5252
// ❌ Don't create styled components
5353
const Component = styled('div')`
54-
padding: ${space(2)};
54+
padding: ${p => p.theme.space.md};
5555
border: 1px solid ${p => p.theme.tokens.border.primary};
5656
`;
5757

@@ -119,7 +119,7 @@ import {Grid} from '@sentry/scraps/layout';
119119
const Component = styled('div')`
120120
display: grid;
121121
grid-template-columns: repeat(3, 1fr);
122-
gap: ${space(2)};
122+
gap: ${p => p.theme.space.md};
123123
`;
124124

125125
// ✅ Use Grid primitive
@@ -147,7 +147,7 @@ import {Stack} from '@sentry/scraps/layout';
147147
const Component = styled('div')`
148148
display: flex;
149149
flex-direction: column;
150-
gap: ${space(2)};
150+
gap: ${p => p.theme.space.md};
151151
`;
152152

153153
// ✅ Use Stack primitive (automatically column direction)
@@ -204,7 +204,7 @@ import {Text} from '@sentry/scraps/text';
204204
// ❌ Don't create styled text components
205205
const Label = styled('span')`
206206
color: ${p => p.theme.tokens.content.secondary};
207-
font-size: ${p => p.theme.fontSizes.small};
207+
font-size: ${p => p.theme.font.size.sm};
208208
`;
209209

210210
// ❌ Don't use raw elements
@@ -242,7 +242,7 @@ import {Heading} from '@sentry/scraps/text';
242242

243243
// ❌ Don't style heading elements
244244
const Title = styled('h2')`
245-
font-size: ${p => p.theme.fontSize.md};
245+
font-size: ${p => p.theme.font.size.md};
246246
font-weight: bold;
247247
`;
248248

@@ -401,7 +401,7 @@ Container supports `margin` props but they are deprecated. Use `gap` on parent c
401401
```tsx
402402
// ❌ Don't use margin between children
403403
const Child = styled('div')`
404-
margin-right: ${p => p.theme.spacing.lg};
404+
margin-right: ${p => p.theme.space.lg};
405405
`;
406406

407407
// ✅ Use gap on parent container
@@ -421,7 +421,7 @@ const Component = styled('div')`
421421
display: flex;
422422
flex-direction: column;
423423
color: ${p => p.theme.tokens.content.secondary};
424-
font-size: ${p => p.theme.fontSize.lg};
424+
font-size: ${p => p.theme.font.size.lg};
425425
`;
426426

427427
// ✅ Split into layout and typography primitives

.github/CODEOWNERS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ pnpm-lock.yaml @getsentry/owners-js-de
221221
/src/sentry/organizations/ @getsentry/hybrid-cloud
222222
/tests/sentry/hybridcloud/ @getsentry/hybrid-cloud
223223
/tests/sentry/silo/ @getsentry/hybrid-cloud
224+
/tests/sentry/models/test_projectkeymapping.py @getsentry/hybrid-cloud
224225
/.agents/skills/hybrid-cloud-* @getsentry/hybrid-cloud
225226
## End of Hybrid Cloud
226227

@@ -570,7 +571,9 @@ tests/sentry/api/endpoints/test_organization_attribute_mappings.py @get
570571
/src/sentry/dynamic_sampling/ @getsentry/telemetry-experience
571572
/tests/sentry/dynamic_sampling/ @getsentry/telemetry-experience
572573
/src/sentry/release_health/metrics_sessions_v2.py @getsentry/telemetry-experience
574+
/src/sentry/release_health/eap_sessions_rollout.py @getsentry/telemetry-experience
573575
/tests/sentry/release_health/test_metrics_sessions_v2.py @getsentry/telemetry-experience
576+
/tests/sentry/release_health/test_eap_sessions_rollout.py @getsentry/telemetry-experience
574577
/src/sentry/utils/platform_categories.py @getsentry/telemetry-experience
575578
/src/sentry/sentry_metrics/querying/ @getsentry/telemetry-experience
576579
/tests/sentry/sentry_metrics/querying/ @getsentry/telemetry-experience
@@ -793,6 +796,8 @@ tests/sentry/api/endpoints/test_organization_attribute_mappings.py @get
793796
/src/sentry/preprod/ @getsentry/emerge-tools
794797
/static/app/views/preprod/ @getsentry/emerge-tools
795798
/tests/sentry/preprod/ @getsentry/emerge-tools
799+
/static/app/components/events/eventInsightDiff.tsx @getsentry/emerge-tools
800+
/bin/preprod/ @getsentry/emerge-tools
796801
# End of preprod
797802

798803
## Frontend Platform (keep last as we want highest specificity)
@@ -858,6 +863,7 @@ tests/sentry/api/endpoints/test_organization_attribute_mappings.py @get
858863
/tests/sentry/integrations/vsts/ @getsentry/ecosystem @getsentry/scm
859864
/tests/sentry/integrations/vsts_extension/ @getsentry/ecosystem @getsentry/scm
860865
/tests/sentry/integrations/perforce/ @getsentry/ecosystem @getsentry/scm
866+
/tests/sentry/scm/ @getsentry/scm
861867
## End of SCM
862868

863869
# End of Coding Workflows

.github/codeowners-coverage-baseline.txt

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@ bin/load-integration-data
4646
bin/load-mocks
4747
bin/merge-catalogs
4848
bin/model-dependency-graphviz
49-
bin/preprod/test_pr_details
50-
bin/preprod/trigger_pr_comment
51-
bin/preprod/trigger_size_status_check
52-
bin/preprod/trigger_snapshot_status_check
5349
bin/run-model-tests
5450
bin/save-integration-data
5551
bin/send_metrics.py
@@ -1507,6 +1503,8 @@ static/gsAdmin/components/addGiftBudgetAction.tsx
15071503
static/gsAdmin/components/addGiftEventsAction.spec.tsx
15081504
static/gsAdmin/components/addGiftEventsAction.tsx
15091505
static/gsAdmin/components/addOrRemoveOrgModal.tsx
1506+
static/gsAdmin/components/addToStartupProgramAction.spec.tsx
1507+
static/gsAdmin/components/addToStartupProgramAction.tsx
15101508
static/gsAdmin/components/adminConfirmationModal.spec.tsx
15111509
static/gsAdmin/components/adminConfirmationModal.tsx
15121510
static/gsAdmin/components/beacons/beaconCheckins.tsx
@@ -2328,20 +2326,6 @@ tests/sentry/runner/commands/test_run.py
23282326
tests/sentry/runner/commands/unsetsync.yaml
23292327
tests/sentry/runner/commands/valid_patch.yaml
23302328
tests/sentry/runner/test_initializer.py
2331-
tests/sentry/scm/endpoints/test_scm_rpc.py
2332-
tests/sentry/scm/integration/test_github_provider_integration.py
2333-
tests/sentry/scm/integration/test_helpers_integration.py
2334-
tests/sentry/scm/integration/test_ipc_integration.py
2335-
tests/sentry/scm/integration/test_scm_actions_integration.py
2336-
tests/sentry/scm/test_fixtures.py
2337-
tests/sentry/scm/unit/private/test_ipc.py
2338-
tests/sentry/scm/unit/test_github_provider.py
2339-
tests/sentry/scm/unit/test_gitlab_provider.py
2340-
tests/sentry/scm/unit/test_helpers.py
2341-
tests/sentry/scm/unit/test_scm_actions.py
2342-
tests/sentry/scm/unit/test_scm_utils.py
2343-
tests/sentry/scm/unit/test_stream.py
2344-
tests/sentry/scm/unit/test_stream_producer.py
23452329
tests/sentry/security/__init__.py
23462330
tests/sentry/security/test_csp.py
23472331
tests/sentry/security/test_utils.py

.github/workflows/frontend-snapshots.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969

7070
- name: Install sentry-cli
7171
if: ${{ !cancelled() }}
72-
run: curl -sL https://sentry.io/get-cli/ | SENTRY_CLI_VERSION=3.3.3 sh
72+
run: curl -sL https://sentry.io/get-cli/ | SENTRY_CLI_VERSION=3.3.4 sh
7373

7474
- name: Upload snapshots
7575
id: upload

bin/preprod/upload_snapshots

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#!/bin/bash
2+
set -euo pipefail
3+
4+
SENTRY_URL="http://127.0.0.1:8000"
5+
AUTH_TOKEN="${AUTH_TOKEN:?AUTH_TOKEN environment variable is required}"
6+
ORG_SLUG="sentry"
7+
PROJECT_SLUG="internal"
8+
APP_ID="test-app"
9+
10+
BEFORE_DIR="${BEFORE_DIR:-$HOME/Downloads/base_snapshots_export_small}"
11+
AFTER_DIR="${AFTER_DIR:-$HOME/Downloads/head_snapshots_export_small}"
12+
13+
TOP_ARGS=(
14+
--auth-token "$AUTH_TOKEN"
15+
--url "$SENTRY_URL"
16+
)
17+
18+
SUB_ARGS=(
19+
-o "$ORG_SLUG"
20+
-p "$PROJECT_SLUG"
21+
--app-id "$APP_ID"
22+
--no-git-metadata
23+
--vcs-provider github
24+
--head-repo-name "testing-repo"
25+
)
26+
27+
echo "=== Uploading: Baseline (main) ==="
28+
sentry-cli "${TOP_ARGS[@]}" build snapshots "$BEFORE_DIR" \
29+
"${SUB_ARGS[@]}" \
30+
--head-sha "1111111111111111111111111111111111111111" \
31+
--head-ref main
32+
33+
echo ""
34+
echo "=== Uploading: PR Branch (testing-branch) ==="
35+
sentry-cli "${TOP_ARGS[@]}" build snapshots "$AFTER_DIR" \
36+
"${SUB_ARGS[@]}" \
37+
--head-sha "2222222222222222222222222222222222222222" \
38+
--base-sha "1111111111111111111111111111111111111111" \
39+
--base-repo-name "testing-repo" \
40+
--head-ref "testing-branch" \
41+
--base-ref main \
42+
--pr-number 1

migrations_lockfile.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ replays: 0007_organizationmember_replay_access
3131

3232
seer: 0005_delete_seerorganizationsettings
3333

34-
sentry: 1056_add_explorer_autofix_fields
34+
sentry: 1057_drop_legacy_alert_rule_tables
3535

3636
social_auth: 0003_social_auth_json_field
3737

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ dependencies = [
8686
"sentry-forked-email-reply-parser>=0.5.12.post1",
8787
"sentry-kafka-schemas>=2.1.27",
8888
"sentry-ophio>=1.1.3",
89-
"sentry-protos>=0.8.7",
89+
"sentry-protos>=0.8.8",
9090
"sentry-redis-tools>=0.5.0",
9191
"sentry-relay>=0.9.25",
9292
"sentry-sdk[http2]>=2.47.0",

setup.cfg

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,6 @@ sentry =
8888
# All other linting (E, W, F, B, LOG, I) is handled by ruff.
8989
# See [tool.ruff] in pyproject.toml for the main linting configuration.
9090
select = S
91-
# S016 is temporarily disabled until the ThreadPoolExecutor migration is complete.
92-
extend-ignore = S016
9391
per-file-ignores =
9492
# these scripts must have minimal dependencies so opt out of the usual sentry rules
9593
.github/*: S

src/sentry/api/bases/organization_events.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -831,6 +831,7 @@ def get_additional_queries(self, request: Request) -> AdditionalQueries:
831831
span=request.GET.getlist("spanQuery"),
832832
log=request.GET.getlist("logQuery"),
833833
metric=request.GET.getlist("metricQuery"),
834+
occurrences=request.GET.getlist("occurrencesQuery"),
834835
)
835836

836837

src/sentry/api/endpoints/organization_ai_conversations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ def _build_enrichment_query(
365365
) -> TableQuery:
366366
return TableQuery(
367367
name="enrichment",
368-
query_string=f"gen_ai.conversation.id:[{','.join(conversation_ids)}]",
368+
query_string=f"gen_ai.conversation.id:[{','.join(conversation_ids)}] has:gen_ai.operation.type",
369369
selected_columns=[
370370
"gen_ai.conversation.id",
371371
"gen_ai.operation.type",

0 commit comments

Comments
 (0)