Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wip: v9 #2659

Draft
wants to merge 46 commits into
base: main
Choose a base branch
from
Draft

wip: v9 #2659

wants to merge 46 commits into from

Conversation

vaind
Copy link
Collaborator

@vaind vaind commented Feb 5, 2025

This will be merged (without squashing) back to main when ready and we want to do a release.

#skip-changelog

@vaind vaind added the Blocked label Feb 5, 2025
@vaind vaind added this to the 9.0.0 milestone Feb 5, 2025
Copy link
Contributor

github-actions bot commented Feb 5, 2025

🚨 Detected changes in high risk code 🚨

High-risk code has higher potential to break the SDK and may be hard to test. To prevent severe bugs, apply the rollout process for releasing such changes and be extra careful when changing and reviewing these files:

  • flutter/lib/src/screenshot/recorder.dart

Copy link

codecov bot commented Feb 5, 2025

Codecov Report

Attention: Patch coverage is 68.88889% with 84 lines in your changes missing coverage. Please review.

Project coverage is 88.62%. Comparing base (95ebf3f) to head (dd80448).

Files with missing lines Patch % Lines
...r/lib/src/native/java/android_replay_recorder.dart 1.38% 71 Missing ⚠️
dart/lib/src/constants.dart 0.00% 4 Missing ⚠️
dart/lib/src/hint.dart 0.00% 3 Missing ⚠️
dart/lib/src/platform/_io_platform.dart 72.72% 3 Missing ⚠️
dart/lib/src/sentry_options.dart 80.00% 1 Missing ⚠️
...nt_processor/flutter_enricher_event_processor.dart 80.00% 1 Missing ⚠️
flutter/lib/src/sentry_flutter.dart 90.90% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2659      +/-   ##
==========================================
- Coverage   88.94%   88.62%   -0.33%     
==========================================
  Files         263      263              
  Lines        8926     8761     -165     
==========================================
- Hits         7939     7764     -175     
- Misses        987      997      +10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

github-actions bot commented Feb 5, 2025

Android Performance metrics 🚀

  Plain With Sentry Diff
Startup time 481.70 ms 549.76 ms 68.06 ms
Size 6.44 MiB 7.56 MiB 1.11 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
333903e 332.76 ms 406.86 ms 74.10 ms
3a16179 471.61 ms 513.45 ms 41.83 ms
8e133ad 360.08 ms 402.82 ms 42.74 ms
84bc635 395.57 ms 464.23 ms 68.66 ms
94757e3 480.21 ms 515.28 ms 35.07 ms
eb1a7c1 332.98 ms 381.55 ms 48.57 ms
891efac 378.00 ms 461.20 ms 83.20 ms
633cf2e 289.36 ms 340.38 ms 51.02 ms
ec4c9da 476.70 ms 514.04 ms 37.34 ms
d7dc4e5 472.08 ms 527.98 ms 55.90 ms

App size

Revision Plain With Sentry Diff
333903e 6.06 MiB 7.10 MiB 1.04 MiB
3a16179 6.52 MiB 7.61 MiB 1.08 MiB
8e133ad 6.06 MiB 7.03 MiB 990.29 KiB
84bc635 6.34 MiB 7.28 MiB 968.41 KiB
94757e3 6.49 MiB 7.57 MiB 1.08 MiB
eb1a7c1 5.94 MiB 6.92 MiB 1005.76 KiB
891efac 6.27 MiB 7.20 MiB 958.73 KiB
633cf2e 5.94 MiB 6.92 MiB 1001.53 KiB
ec4c9da 6.52 MiB 7.59 MiB 1.06 MiB
d7dc4e5 6.46 MiB 7.48 MiB 1.02 MiB

Previous results on branch: v9

Startup times

Revision Plain With Sentry Diff
3e1c2c9 468.75 ms 522.04 ms 53.29 ms
1fa8baa 451.78 ms 533.84 ms 82.06 ms
ce53819 430.39 ms 540.88 ms 110.49 ms
245c0d3 476.40 ms 577.98 ms 101.57 ms
9fa06c0 450.91 ms 582.10 ms 131.19 ms
342e82b 431.96 ms 532.56 ms 100.60 ms
c42f951 456.10 ms 578.76 ms 122.66 ms
9e7630d 426.10 ms 454.96 ms 28.86 ms
0f8bd48 435.88 ms 531.14 ms 95.27 ms
bb29ef9 433.86 ms 506.36 ms 72.50 ms

App size

Revision Plain With Sentry Diff
3e1c2c9 6.46 MiB 7.48 MiB 1.03 MiB
1fa8baa 6.46 MiB 7.61 MiB 1.15 MiB
ce53819 6.46 MiB 7.48 MiB 1.03 MiB
245c0d3 6.46 MiB 7.61 MiB 1.15 MiB
9fa06c0 6.46 MiB 7.61 MiB 1.15 MiB
342e82b 6.44 MiB 7.56 MiB 1.11 MiB
c42f951 6.46 MiB 7.48 MiB 1.02 MiB
9e7630d 6.49 MiB 7.56 MiB 1.07 MiB
0f8bd48 6.46 MiB 7.61 MiB 1.15 MiB
bb29ef9 6.46 MiB 7.61 MiB 1.15 MiB

Copy link
Contributor

github-actions bot commented Feb 5, 2025

iOS Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1253.30 ms 1270.87 ms 17.57 ms
Size 8.43 MiB 9.98 MiB 1.55 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
8a7f528 1232.57 ms 1249.82 ms 17.24 ms
d8f5abb 1237.73 ms 1259.13 ms 21.39 ms
daa1b33 1224.41 ms 1244.59 ms 20.18 ms
a80fbd1 1258.06 ms 1273.44 ms 15.38 ms
ad69abc 1259.00 ms 1261.60 ms 2.60 ms
a2ec542 1258.33 ms 1267.20 ms 8.88 ms
a22e451 1248.37 ms 1270.55 ms 22.19 ms
061fed2 1232.08 ms 1255.17 ms 23.08 ms
9e3070e 1255.71 ms 1270.57 ms 14.85 ms
6a40d32 1253.50 ms 1266.49 ms 12.99 ms

App size

Revision Plain With Sentry Diff
8a7f528 8.10 MiB 9.16 MiB 1.06 MiB
d8f5abb 8.33 MiB 9.40 MiB 1.07 MiB
daa1b33 8.28 MiB 9.34 MiB 1.05 MiB
a80fbd1 8.42 MiB 9.89 MiB 1.46 MiB
ad69abc 8.10 MiB 9.08 MiB 1004.37 KiB
a2ec542 8.10 MiB 9.14 MiB 1.05 MiB
a22e451 8.42 MiB 9.89 MiB 1.47 MiB
061fed2 8.38 MiB 9.71 MiB 1.34 MiB
9e3070e 8.42 MiB 9.91 MiB 1.49 MiB
6a40d32 8.29 MiB 9.37 MiB 1.08 MiB

Previous results on branch: v9

Startup times

Revision Plain With Sentry Diff
7c468df 1256.13 ms 1273.92 ms 17.79 ms
8043355 1229.21 ms 1245.43 ms 16.22 ms
9fa06c0 1245.50 ms 1273.55 ms 28.05 ms
ce53819 1257.65 ms 1270.98 ms 13.33 ms
7f8043c 1252.16 ms 1265.42 ms 13.25 ms
c42f951 1244.28 ms 1261.11 ms 16.83 ms
a685eaf 1246.61 ms 1275.92 ms 29.30 ms
1fa8baa 1246.75 ms 1266.64 ms 19.89 ms
98d6f2d 1240.77 ms 1255.84 ms 15.07 ms
0f8bd48 1252.27 ms 1273.90 ms 21.63 ms

App size

Revision Plain With Sentry Diff
7c468df 8.42 MiB 9.91 MiB 1.49 MiB
8043355 8.42 MiB 9.91 MiB 1.48 MiB
9fa06c0 8.42 MiB 9.91 MiB 1.49 MiB
ce53819 8.42 MiB 9.91 MiB 1.48 MiB
7f8043c 8.43 MiB 9.97 MiB 1.54 MiB
c42f951 8.42 MiB 9.91 MiB 1.49 MiB
a685eaf 8.42 MiB 9.91 MiB 1.49 MiB
1fa8baa 8.42 MiB 9.97 MiB 1.54 MiB
98d6f2d 8.42 MiB 9.91 MiB 1.48 MiB
0f8bd48 8.42 MiB 9.97 MiB 1.55 MiB

github-actions bot and others added 22 commits February 5, 2025 11:25
* chore: update flutter/scripts/update-android.sh to 8.1.0

* Update CHANGELOG.md

---------

Co-authored-by: GitHub <[email protected]>
Co-authored-by: Ivan Dlugos <[email protected]>
* remove manual TTID

* update CHANGELOG

* remove assertion

* use SentryTraceOrigins.autoUiTimeToDisplay as origin
* remove

* remove rest of user segment

* update CHANGELOG

* fix analyze
* remove

* remove unused code

* update CHANGELOG
* remove dartLogger and make noOpLogger internal

* update comment

* update CHANGELOG

* remove ignores
* add JNI and use in replay.onScreenshotRecorded

* exlude bindings from coverage

* use jni bitmap

* move all native to android_replay_recorder

* android screenshot isolate

* cleanup

* use persistent isolate

* update replay native tests

* update high-risk-code list

* remove print()

* remove package:file dependency

* JNI benchmark

* ktlint format

* fixup ci

* fixup

* fix web tests

* dart format

* try to fix ci

* try to fix ci

* chore: exclude binding from coverage

* comments

* chore: changelog

* move uint8list creation to separate isolate

* Update CHANGELOG.md

Co-authored-by: Giancarlo Buenaflor <[email protected]>

---------

Co-authored-by: Giancarlo Buenaflor <[email protected]>
* remove dart:html usage and used package:web instead

* update CHANGELOG and remove publish validation

* remove publish validation from ci

* update web_example dep

* update

* remove more conditionals
* remove enableTracing

* remove ignore

* update CHANGELOG

* add test

* format

* update test
github-actions bot and others added 22 commits February 13, 2025 16:49
* chore: update flutter/scripts/update-android.sh to 8.2.0

* update min version in ci

* raise min android api to 21

---------

Co-authored-by: GitHub <[email protected]>
Co-authored-by: GIancarlo Buenaflor <[email protected]>
* load js by default

* fix test

* update CHANGELOG

* maybe fix integration test

* remove enableSentryJs

* fix test
* remove old user feedback api

* update

* update changelog

* fix mock

* update

* update
…ueryExecutor` (#2679)

* temp

* update

* update

* update docs

* update

* Update sentry.dart

* update CHANGELOG

* update

* fist tests

* formatting

* fix analyze

* fix analyze

* formatting and change integration name from  to

* improve ensureOpen instrumentation

* fix hub not using hubadapter as fallback

* update parent span

* use stack to handle parent span

* formatting

* formatting

* fix analyze

* add disabled tracing test

* unused code

* temp

* update

* add test

* remove spotlight

* cleanup test file

* add select query test:

* removing stack in finally block
# Conflicts:
#	drift/lib/src/sentry_query_executor.dart
#	drift/lib/src/sentry_span_helper.dart
#	drift/test/sentry_database_test.dart
#	flutter/example/lib/main.dart
* fix tests

* re-enable test
* Remove workaround for Platform.executable

* add // ignore: deprecated_member_use
# Conflicts:
#	flutter/lib/src/renderer/html_renderer.dart
#	flutter/test/mocks.mocks.dart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants