Skip to content

test(dart): Accept beta wasm function name#3898

Merged
buenaflor merged 1 commit into
mainfrom
test/dart2wasm-function-name
Jul 16, 2026
Merged

test(dart): Accept beta wasm function name#3898
buenaflor merged 1 commit into
mainfrom
test/dart2wasm-function-name

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

📜 Description

Accept M.testCaptureException as a valid Dart2Wasm function name in the browser exception test.

💡 Motivation and Context

Dart beta now emits this mangled function name on Ubuntu for the Dart2Wasm Chrome test. Stack parsing remains correct; only the expected function-name variants had drifted.

Failing job: https://github.com/getsentry/sentry-dart/actions/runs/29490834029/job/87596299757

💚 How did you test it?

  • git diff --check
  • The Dart SDK is unavailable in this environment, so the Chrome/Dart2Wasm test is left to CI.

📝 Checklist

  • I reviewed submitted code
  • I added tests to verify changes
  • No new PII added or SDK only sends newly added PII if sendDefaultPii is enabled
  • I updated the docs if needed
  • All tests passing
  • Public API changes reviewed by another Mobile SDK team member or implemented according to the develop docs spec
  • No breaking changes

🔮 Next steps

Confirm the Ubuntu beta Dart2Wasm job passes in CI.

Requested by Gino Buenaflor via Junior.

--

View Junior Session

Co-Authored-By: junior <[email protected]>
Co-Authored-By: Gino Buenaflor <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

Semver Impact of This PR

None (no version bump detected)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


Fixes

  • (flutter) Prevent StateError when delayed frames list is empty by muhammadkamel in #3876

Dependencies

Deps

  • chore(deps): update Android SDK to v8.49.0 by github-actions in #3895
  • chore(deps): update Native SDK to v0.15.3 by github-actions in #3862
  • chore(deps): update Cocoa SDK to v8.58.4 by github-actions in #3864
  • chore(deps): update Android SDK to v8.48.0 by github-actions in #3873

Internal Changes

  • (dart) Accept beta wasm function name by sentry-junior[bot] in #3898

🤖 This preview updates automatically when you update the PR.

@codecov

codecov Bot commented Jul 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.36%. Comparing base (63144ef) to head (526e4de).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3898      +/-   ##
==========================================
- Coverage   87.46%   87.36%   -0.11%     
==========================================
  Files         338      338              
  Lines       12282    12282              
==========================================
- Hits        10743    10730      -13     
- Misses       1539     1552      +13     
Flag Coverage Δ
sentry 87.48% <ø> (ø)
sentry_dio 97.73% <ø> (ø)
sentry_drift 93.57% <ø> (ø)
sentry_file 65.29% <ø> (ø)
sentry_firebase_remote_config 100.00% <ø> (ø)
sentry_flutter 91.12% <ø> (-0.37%) ⬇️
sentry_grpc 99.09% <ø> (ø)
sentry_hive 77.48% <ø> (ø)
sentry_isar 74.37% <ø> (ø)
sentry_link 21.50% <ø> (ø)
sentry_logging 97.01% <ø> (ø)
sentry_sqflite 88.81% <ø> (ø)
sentry_supabase 97.27% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@buenaflor
buenaflor marked this pull request as ready for review July 16, 2026 12:07
Copilot AI review requested due to automatic review settings July 16, 2026 12:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Dart core SDK browser exception test helper to accept an additional Dart2Wasm mangled function name variant (M.testCaptureException) emitted by Dart beta on Ubuntu, keeping the test stable while preserving stack parsing expectations.

Changes:

  • Extends the accepted topFrame['function'] variants for the web/Dart2Wasm Chrome test to include M.testCaptureException.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions

Copy link
Copy Markdown
Contributor

iOS Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1266.54 ms 1264.78 ms -1.76 ms
Size 5.83 MiB 6.28 MiB 460.44 KiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
4481076 1256.48 ms 1266.64 ms 10.17 ms
944b773 1252.82 ms 1254.08 ms 1.27 ms
7b21e8b 1256.79 ms 1267.12 ms 10.33 ms
6ba4675 1223.12 ms 1238.17 ms 15.04 ms
cc4e375 1253.06 ms 1263.81 ms 10.75 ms
54acf91 1257.65 ms 1277.96 ms 20.31 ms
79f6b41 1269.33 ms 1279.71 ms 10.38 ms
ea06d23 1254.02 ms 1252.60 ms -1.42 ms
d2356d0 1257.04 ms 1257.94 ms 0.89 ms
e90cf93 1235.94 ms 1246.40 ms 10.46 ms

App size

Revision Plain With Sentry Diff
4481076 7.86 MiB 9.44 MiB 1.58 MiB
944b773 5.53 MiB 6.00 MiB 479.98 KiB
7b21e8b 5.53 MiB 6.00 MiB 479.96 KiB
6ba4675 7.86 MiB 9.44 MiB 1.58 MiB
cc4e375 7.86 MiB 9.44 MiB 1.58 MiB
54acf91 20.70 MiB 22.46 MiB 1.75 MiB
79f6b41 7.86 MiB 9.44 MiB 1.58 MiB
ea06d23 5.53 MiB 5.96 MiB 443.26 KiB
d2356d0 5.66 MiB 6.09 MiB 448.38 KiB
e90cf93 5.73 MiB 6.18 MiB 463.52 KiB

@buenaflor
buenaflor merged commit 65ec450 into main Jul 16, 2026
163 of 164 checks passed
@buenaflor
buenaflor deleted the test/dart2wasm-function-name branch July 16, 2026 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants