Skip to content

Commit fab1bc9

Browse files
authored
Merge branch 'master' into DominikB2014/add-cache-item-size-to-metrics
2 parents b295347 + b50875c commit fab1bc9

File tree

261 files changed

+5407
-3418
lines changed

Some content is hidden

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

261 files changed

+5407
-3418
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: 'Collect Test Data'
2+
description: 'Collects test data and uploads it to our internal test data collection service.'
3+
4+
inputs:
5+
artifact_path:
6+
description: 'Path to test data output artifact to upload to our internal test data collection service'
7+
required: true
8+
gcs_bucket:
9+
description: 'The GCS bucket to upload the test data to'
10+
required: true
11+
gcp_project_id:
12+
description: 'The GCP project ID to use for uploading the test data'
13+
required: true
14+
workload_identity_provider:
15+
description: 'The workload identity provider to use for uploading the test data'
16+
required: true
17+
service_account_email:
18+
description: 'The service account email to use for uploading the test data'
19+
required: true
20+
matrix_instance_number:
21+
description: 'The instance number of the matrix job'
22+
required: false
23+
24+
runs:
25+
using: 'composite'
26+
steps:
27+
- name: Collect test data
28+
uses: getsentry/action-collect-test-data@c0a2fd3f79d3867e2c8b486ccb1c4bf925477742 # v0.3.0
29+
with:
30+
path: ${{ inputs.artifact_path }}
31+
gcs_path: ${{ inputs.gcs_bucket }}/pytest/${{ github.repository }}/${{ github.workflow }}/${{ github.job }}${{ inputs.matrix_instance_number != '' && '/instance' || '' }}${{ inputs.matrix_instance_number != '' && inputs.matrix_instance_number || '' }}/${{ github.repository_id }}/${{ github.run_id }}/${{ github.run_attempt }}
32+
gcp_project_id: ${{ inputs.gcp_project_id }}
33+
workload_identity_provider: ${{ inputs.workload_identity_provider }}
34+
service_account_email: ${{ inputs.service_account_email }}
35+
continue-on-error: true

.github/workflows/acceptance.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ jobs:
4646
name: acceptance
4747
runs-on: ubuntu-22.04
4848
timeout-minutes: 30
49+
permissions:
50+
contents: read
51+
id-token: write
4952
strategy:
5053
# This helps not having to run multiple jobs because one fails, thus, reducing resource usage
5154
# and reducing the risk that one of many runs would turn red again (read: intermittent tests)
@@ -113,6 +116,17 @@ jobs:
113116
- name: Run acceptance tests (#${{ steps.setup.outputs.matrix-instance-number }} of ${{ steps.setup.outputs.matrix-instance-total }})
114117
run: make run-acceptance
115118

119+
- name: Collect test data
120+
uses: ./.github/actions/collect-test-data
121+
if: ${{ !cancelled() && needs.files-changed.outputs.backend_all == 'true' }}
122+
with:
123+
artifact_path: .artifacts/pytest.acceptance.json
124+
gcs_bucket: ${{ secrets.COLLECT_TEST_DATA_GCS_BUCKET }}
125+
gcp_project_id: ${{ secrets.COLLECT_TEST_DATA_GCP_PROJECT_ID }}
126+
workload_identity_provider: ${{ secrets.SENTRY_GCP_DEV_WORKLOAD_IDENTITY_POOL }}
127+
service_account_email: ${{ secrets.COLLECT_TEST_DATA_SERVICE_ACCOUNT_EMAIL }}
128+
matrix_instance_number: ${{ steps.setup.outputs.matrix-instance-number }}
129+
116130
# This job runs when FE or BE changes happen, however, we only upload coverage data for
117131
# BE changes since it conflicts with codecov's carry forward functionality
118132
# Upload coverage data even if running the tests step fails since

.github/workflows/backend.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ jobs:
6767
name: backend test
6868
runs-on: ubuntu-22.04
6969
timeout-minutes: 60
70+
permissions:
71+
contents: read
72+
id-token: write
7073
strategy:
7174
# This helps not having to run multiple jobs because one fails, thus, reducing resource usage
7275
# and reducing the risk that one of many runs would turn red again (read: intermittent tests)
@@ -106,6 +109,17 @@ jobs:
106109
run: |
107110
make test-python-ci
108111
112+
- name: Collect test data
113+
uses: ./.github/actions/collect-test-data
114+
if: ${{ !cancelled() }}
115+
with:
116+
artifact_path: .artifacts/pytest.json
117+
gcs_bucket: ${{ secrets.COLLECT_TEST_DATA_GCS_BUCKET }}
118+
gcp_project_id: ${{ secrets.COLLECT_TEST_DATA_GCP_PROJECT_ID }}
119+
workload_identity_provider: ${{ secrets.SENTRY_GCP_DEV_WORKLOAD_IDENTITY_POOL }}
120+
service_account_email: ${{ secrets.COLLECT_TEST_DATA_SERVICE_ACCOUNT_EMAIL }}
121+
matrix_instance_number: ${{ steps.setup.outputs.matrix-instance-number }}
122+
109123
# Upload coverage data even if running the tests step fails since
110124
# it reduces large coverage fluctuations
111125
- name: Handle artifacts
@@ -245,6 +259,9 @@ jobs:
245259
name: monolith-dbs test
246260
runs-on: ubuntu-22.04
247261
timeout-minutes: 20
262+
permissions:
263+
contents: read
264+
id-token: write
248265
steps:
249266
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
250267
with:
@@ -260,6 +277,16 @@ jobs:
260277
run: |
261278
make test-monolith-dbs
262279
280+
- name: Collect test data
281+
uses: ./.github/actions/collect-test-data
282+
if: ${{ !cancelled() }}
283+
with:
284+
artifact_path: .artifacts/pytest.monolith-dbs.json
285+
gcs_bucket: ${{ secrets.COLLECT_TEST_DATA_GCS_BUCKET }}
286+
gcp_project_id: ${{ secrets.COLLECT_TEST_DATA_GCP_PROJECT_ID }}
287+
workload_identity_provider: ${{ secrets.SENTRY_GCP_DEV_WORKLOAD_IDENTITY_POOL }}
288+
service_account_email: ${{ secrets.COLLECT_TEST_DATA_SERVICE_ACCOUNT_EMAIL }}
289+
263290
# Upload coverage data even if running the tests step fails since
264291
# it reduces large coverage fluctuations
265292
- name: Handle artifacts

CHANGES

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,35 @@
1+
24.4.0
2+
------
3+
4+
### Various fixes & improvements
5+
6+
- Revert "ref(stories): Collapse `app` root (#68939)" (13dcc607) by @getsentry-bot
7+
- feat(ui): Add `actor` to delegating Avatar component (#68933) by @evanpurkhiser
8+
- ref(ui): Consolidate TeamBadge (#68927) by @evanpurkhiser
9+
- ref(stories): Improve types on TreeMapping (#68940) by @evanpurkhiser
10+
- ref(stories): Collapse `app` root (#68939) by @evanpurkhiser
11+
- feat(perf): Use `@sentry/status-page-list` for domain status link (#68899) by @gggritso
12+
- deps(ui): Update react-router to latest v3, create-react-class (#68926) by @scttcper
13+
- fix(trace): fix drawer bg color (#68934) by @JonasBa
14+
- feat(issue-details): Revise Context UI behind feature flag (#68081) by @leeandher
15+
- Revert "feat(replay): Persist has-viewed state to the server when replays are seen (#68743)" (ad312261) by @getsentry-bot
16+
- feat(perf): Bump "Requests" module from "Alpha" to "Beta" (#68930) by @gggritso
17+
- feat(perf): Adjust HTTP sample table column widths (#68901) by @gggritso
18+
- chore(self-hosted): 24.3.0 release tests (#67091) by @hubertdeng123
19+
- deps(ui): Remove react-test-renderer (#68929) by @scttcper
20+
- fix(trace): fix text overlaps (#68928) by @JonasBa
21+
- fix(replay): Fix canvas replays when seeking without actively playing (#68646) by @billyvg
22+
- fix(perf): Link Response module domains to a specific project (#68905) by @gggritso
23+
- chore(issues): Remove legacy browser flag from BE (#67717) by @leeandher
24+
- ref(uI): Cleanup unused ts-ignore after update (#68924) by @scttcper
25+
- fix(replay): Fixes type error if same param is in url (#68851) by @c298lee
26+
- fix(bug): logging bug (#68919) by @ykamo001
27+
- fix(crons): Update slug in quotas when deleting monitors (#68917) by @evanpurkhiser
28+
- chore(relocation): Add server-side Sentry capture logging (#68906) by @azaslavsky
29+
- feat(replays): Delete videos on replay delete request (#68463) by @cmanallen
30+
31+
_Plus 1311 more_
32+
133
24.3.0
234
------
335

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ fetch-release-registry:
9191

9292
run-acceptance:
9393
@echo "--> Running acceptance tests"
94-
pytest tests/acceptance --cov . --cov-report="xml:.artifacts/acceptance.coverage.xml" --json-report --json-report-file=".artifact/pytest.acceptance.json" --json-report-omit=log
94+
pytest tests/acceptance --cov . --cov-report="xml:.artifacts/acceptance.coverage.xml" --json-report --json-report-file=".artifacts/pytest.acceptance.json" --json-report-omit=log
9595
@echo ""
9696

9797
test-cli: create-db

fixtures/backup/model_dependencies/detailed.json

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1748,11 +1748,6 @@
17481748
"kind": "FlexibleForeignKey",
17491749
"model": "sentry.docintegration",
17501750
"nullable": false
1751-
},
1752-
"file_id": {
1753-
"kind": "ImplicitForeignKey",
1754-
"model": "sentry.file",
1755-
"nullable": true
17561751
}
17571752
},
17581753
"model": "sentry.docintegrationavatar",
@@ -1766,9 +1761,6 @@
17661761
[
17671762
"control_file_id"
17681763
],
1769-
[
1770-
"file_id"
1771-
],
17721764
[
17731765
"ident"
17741766
]
@@ -5538,11 +5530,6 @@
55385530
"model": "sentry.controlfile",
55395531
"nullable": true
55405532
},
5541-
"file_id": {
5542-
"kind": "ImplicitForeignKey",
5543-
"model": "sentry.file",
5544-
"nullable": true
5545-
},
55465533
"sentry_app": {
55475534
"kind": "FlexibleForeignKey",
55485535
"model": "sentry.sentryapp",
@@ -5560,9 +5547,6 @@
55605547
[
55615548
"control_file_id"
55625549
],
5563-
[
5564-
"file_id"
5565-
],
55665550
[
55675551
"ident"
55685552
]
@@ -5986,11 +5970,6 @@
59865970
"model": "sentry.controlfile",
59875971
"nullable": true
59885972
},
5989-
"file_id": {
5990-
"kind": "ImplicitForeignKey",
5991-
"model": "sentry.file",
5992-
"nullable": true
5993-
},
59945973
"user": {
59955974
"kind": "FlexibleForeignKey",
59965975
"model": "sentry.user",
@@ -6008,9 +5987,6 @@
60085987
[
60095988
"control_file_id"
60105989
],
6011-
[
6012-
"file_id"
6013-
],
60145990
[
60155991
"ident"
60165992
],

fixtures/backup/model_dependencies/flat.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,7 @@
240240
"sentry.docintegration": [],
241241
"sentry.docintegrationavatar": [
242242
"sentry.controlfile",
243-
"sentry.docintegration",
244-
"sentry.file"
243+
"sentry.docintegration"
245244
],
246245
"sentry.email": [],
247246
"sentry.environment": [
@@ -763,7 +762,6 @@
763762
],
764763
"sentry.sentryappavatar": [
765764
"sentry.controlfile",
766-
"sentry.file",
767765
"sentry.sentryapp"
768766
],
769767
"sentry.sentryappcomponent": [
@@ -823,7 +821,6 @@
823821
"sentry.user": [],
824822
"sentry.useravatar": [
825823
"sentry.controlfile",
826-
"sentry.file",
827824
"sentry.user"
828825
],
829826
"sentry.useremail": [

fixtures/backup/model_dependencies/sorted.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"sentry.controltombstone",
1515
"sentry.deletedorganization",
1616
"sentry.docintegration",
17+
"sentry.docintegrationavatar",
1718
"sentry.fileblob",
1819
"sentry.identityprovider",
1920
"sentry.integration",
@@ -51,6 +52,7 @@
5152
"sentry.team",
5253
"sentry.teamreplica",
5354
"sentry.user",
55+
"sentry.useravatar",
5456
"sentry.userip",
5557
"sentry.useroption",
5658
"sentry.userpermission",
@@ -92,7 +94,6 @@
9294
"sentry.eventattachment",
9395
"sentry.environment",
9496
"sentry.email",
95-
"sentry.docintegrationavatar",
9697
"sentry.distribution",
9798
"sentry.discoversavedquery",
9899
"sentry.deploy",
@@ -124,7 +125,6 @@
124125
"feedback.feedback",
125126
"sentry.userreport",
126127
"sentry.useremail",
127-
"sentry.useravatar",
128128
"sentry.teamkeytransaction",
129129
"sentry.snubaquery",
130130
"sentry.sentryapp",

fixtures/backup/model_dependencies/truncate.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"sentry_controltombstone",
1515
"sentry_deletedorganization",
1616
"sentry_docintegration",
17+
"sentry_docintegrationavatar",
1718
"sentry_fileblob",
1819
"sentry_identityprovider",
1920
"sentry_integration",
@@ -51,6 +52,7 @@
5152
"sentry_team",
5253
"sentry_teamreplica",
5354
"auth_user",
55+
"sentry_useravatar",
5456
"sentry_userip",
5557
"sentry_useroption",
5658
"sentry_userpermission",
@@ -92,7 +94,6 @@
9294
"sentry_eventattachment",
9395
"sentry_environment",
9496
"sentry_email",
95-
"sentry_docintegrationavatar",
9697
"sentry_distribution",
9798
"sentry_discoversavedquery",
9899
"sentry_deploy",
@@ -124,7 +125,6 @@
124125
"feedback_feedback",
125126
"sentry_userreport",
126127
"sentry_useremail",
127-
"sentry_useravatar",
128128
"sentry_performanceteamkeytransaction",
129129
"sentry_snubaquery",
130130
"sentry_sentryapp",

fixtures/js-stubs/monitor.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import {
55
ScheduleType,
66
} from 'sentry/views/monitors/types';
77

8+
import {ActorFixture} from './actor';
89
import {ProjectFixture} from './project';
9-
import {UserFixture} from './user';
1010

1111
export function MonitorFixture(params: Partial<Monitor> = {}): Monitor {
1212
return {
@@ -16,7 +16,7 @@ export function MonitorFixture(params: Partial<Monitor> = {}): Monitor {
1616
project: ProjectFixture(),
1717
slug: 'my-monitor',
1818
status: 'active',
19-
owner: `user:${UserFixture().id}`,
19+
owner: ActorFixture(),
2020
type: MonitorType.CRON_JOB,
2121
config: {
2222
checkin_margin: 5,

migrations_lockfile.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ feedback: 0004_index_together
99
hybridcloud: 0016_add_control_cacheversion
1010
nodestore: 0002_nodestore_no_dictfield
1111
replays: 0004_index_together
12-
sentry: 0696_remove_monitor_owner_actor_id
12+
sentry: 0698_remove_file_id_from_control_avatars
1313
social_auth: 0002_default_auto_field

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
"@sentry/node": "^7.109.0",
6363
"@sentry/react": "^7.109.0",
6464
"@sentry/release-parser": "^1.3.1",
65+
"@sentry/status-page-list": "^0.0.1",
6566
"@sentry/types": "^7.109.0",
6667
"@sentry/utils": "^7.109.0",
6768
"@spotlightjs/spotlight": "^1.2.13",
@@ -86,7 +87,7 @@
8687
"@types/react-lazyload": "3.2.3",
8788
"@types/react-grid-layout": "^1.3.2",
8889
"@types/react-mentions": "4.1.6",
89-
"@types/react-router": "^3.0.22",
90+
"@types/react-router": "^3.0.28",
9091
"@types/react-select": "4.0.18",
9192
"@types/react-sparklines": "^1.7.2",
9293
"@types/react-virtualized": "^9.21.22",
@@ -157,7 +158,7 @@
157158
"react-lazyload": "^3.2.1",
158159
"react-mentions": "4.4.2",
159160
"react-popper": "^2.3.0",
160-
"react-router": "3.2.0",
161+
"react-router": "3.2.6",
161162
"react-select": "4.3.1",
162163
"react-sparklines": "1.7.0",
163164
"react-virtualized": "^9.22.5",
@@ -203,7 +204,6 @@
203204
"jest-sentry-environment": "3.0.0",
204205
"postcss-styled-syntax": "0.6.4",
205206
"react-refresh": "0.14.0",
206-
"react-test-renderer": "18.2.0",
207207
"stylelint": "16.2.1",
208208
"stylelint-config-recommended": "^14.0.0",
209209
"terser": "5.27.0",

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,7 @@ disable_error_code = [
589589
[[tool.mypy.overrides]]
590590
module = [
591591
"sentry.api.endpoints.issues.*",
592+
"sentry.api.helpers.source_map_helper",
592593
"sentry.buffer.base",
593594
"sentry.buffer.redis",
594595
"sentry.eventstore.reprocessing.redis",

0 commit comments

Comments
 (0)