Skip to content

Conversation

@srujzs
Copy link
Contributor

@srujzs srujzs commented Apr 29, 2025

The bootstrap script utilizes a DDC utility function that maps paths to their module name in order for the stack traces to show the Dart paths and not the JS paths. This gets utilized in some stack tracing functionalities like StackTrace.current. We should test that the mapping is correct and we expect the correct stack traces.

These tests should be run with the DDC library bundle format as well, so refactors them into shared code.

Pre-launch Checklist

  • I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
  • I read the [Tree Hygiene] wiki page, which explains my responsibilities.
  • I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement].
  • I signed the [CLA].
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is [test-exempt].
  • I followed the [breaking change policy] and added [Data Driven Fixes] where supported.
  • All existing and new tests are passing.

Once we have the CL to emit inlined source maps for the DDC library bundle format landed, we can fork this test and run it with that format as well.

The bootstrap script utilizes a DDC utility function that
maps paths to their module name in order for the stack traces
to show the Dart paths and not the JS paths. This gets utilized
in some stack tracing functionalities like StackTrace.current.
We should test that the mapping is correct and we expect the
correct stack traces.
@srujzs srujzs requested a review from nshahan April 29, 2025 21:43
@github-actions github-actions bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Apr 29, 2025
Copy link
Contributor

@nshahan nshahan left a comment

Choose a reason for hiding this comment

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

LGTM with one question about the stack frames.

@srujzs
Copy link
Contributor Author

srujzs commented May 1, 2025

I updated the test to use a regex to check for the SDK stack frame so we know we're getting a Dart file and not a JS file (as get current appears in both stack traces).

@srujzs srujzs changed the title Add test for stack trace mapping Add test for stack trace mapping and test expression eval tests using DDC library bundle format May 9, 2025
@srujzs srujzs added the autosubmit Merge PR when tree becomes green via auto submit App label May 9, 2025
@flutter-dashboard
Copy link

Golden file changes have been found for this pull request. Click here to view and triage (e.g. because this is an intentional change).

If you are still iterating on this change and are not ready to resolve the images on the Flutter Gold dashboard, consider marking this PR as a draft pull request above. You will still be able to view image results on the dashboard, commenting will be silenced, and the check will not try to resolve itself until marked ready for review.

For more guidance, visit Writing a golden file test for package:flutter.

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

Changes reported for pull request #168017 at sha c0baa3e

@flutter-dashboard flutter-dashboard bot added the will affect goldens Changes to golden files label May 9, 2025
@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label May 9, 2025
@auto-submit
Copy link
Contributor

auto-submit bot commented May 9, 2025

autosubmit label was removed for flutter/flutter/168017, because - The status or check suite Google testing has failed. Please fix the issues identified (or deflake) before re-applying this label.

@srujzs srujzs added the autosubmit Merge PR when tree becomes green via auto submit App label May 9, 2025
@auto-submit auto-submit bot added this pull request to the merge queue May 12, 2025
Merged via the queue into flutter:master with commit 2871340 May 12, 2025
141 checks passed
@flutter-dashboard flutter-dashboard bot removed the autosubmit Merge PR when tree becomes green via auto submit App label May 12, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 13, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 13, 2025
auto-submit bot pushed a commit to flutter/packages that referenced this pull request May 13, 2025
flutter/flutter@54de32d...336a7ec

2025-05-13 [email protected] Add assert for index parameter in IndexedStack. (flutter/flutter#167757)
2025-05-13 [email protected] Fixed Android Lint Errors (flutter/flutter#168613)
2025-05-13 [email protected] Tab bar theme and dialog theme documentation cleanup (flutter/flutter#168724)
2025-05-13 [email protected] Roll Fuchsia Linux SDK from 6vjKe0bfYDVaECqBL... to 6J81agNhuK4q255Jj... (flutter/flutter#168712)
2025-05-12 [email protected] Make the barrier panel on the Material Drawer non-dismissible (flutter/flutter#164810)
2025-05-12 [email protected] Roll ICU from c9fb4b3a6fb5 to b929596baebf (5 revisions) (flutter/flutter#168691)
2025-05-12 [email protected] Fix DropdownButtonFormField icon not vertically centered (flutter/flutter#163205)
2025-05-12 [email protected] Android home/end keyboard shortcut support (flutter/flutter#168184)
2025-05-12 [email protected] Update `TESTOWNERS` for Android PV tests (flutter/flutter#168694)
2025-05-12 [email protected] Roll Dart SDK from 0bea6379f654 to 645d04a7a964 (14 revisions) (flutter/flutter#168679)
2025-05-12 [email protected] [Impeller] libImpeller: Allow setting text decorations. (flutter/flutter#168408)
2025-05-12 [email protected] Error when trying to use old HC mode when HCPP is enabled (flutter/flutter#168027)
2025-05-12 [email protected] Nav bar back label is not clipped mid-transition (flutter/flutter#168194)
2025-05-12 [email protected] Add test for stack trace mapping and test expression eval tests using DDC library bundle format (flutter/flutter#168017)
2025-05-12 [email protected] Remove CupertinoSliverNavigationBar background box when large title is extended (flutter/flutter#168407)
2025-05-12 [email protected] Label platform view modes using the unified naming scheme (flutter/flutter#168670)
2025-05-12 [email protected] Roll Packages from 7814fab to 6a28ad9 (2 revisions) (flutter/flutter#168669)
2025-05-12 [email protected] Update `Engine-artifacts.md` to reflect the new `engine.version` verifier (flutter/flutter#168413)
2025-05-12 [email protected] Roll Skia from 9f9e1f37917e to c97451da059f (1 revision) (flutter/flutter#168671)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages
Please CC [email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
FMorschel pushed a commit to FMorschel/packages that referenced this pull request Jun 9, 2025
…r#9246)

flutter/flutter@54de32d...336a7ec

2025-05-13 [email protected] Add assert for index parameter in IndexedStack. (flutter/flutter#167757)
2025-05-13 [email protected] Fixed Android Lint Errors (flutter/flutter#168613)
2025-05-13 [email protected] Tab bar theme and dialog theme documentation cleanup (flutter/flutter#168724)
2025-05-13 [email protected] Roll Fuchsia Linux SDK from 6vjKe0bfYDVaECqBL... to 6J81agNhuK4q255Jj... (flutter/flutter#168712)
2025-05-12 [email protected] Make the barrier panel on the Material Drawer non-dismissible (flutter/flutter#164810)
2025-05-12 [email protected] Roll ICU from c9fb4b3a6fb5 to b929596baebf (5 revisions) (flutter/flutter#168691)
2025-05-12 [email protected] Fix DropdownButtonFormField icon not vertically centered (flutter/flutter#163205)
2025-05-12 [email protected] Android home/end keyboard shortcut support (flutter/flutter#168184)
2025-05-12 [email protected] Update `TESTOWNERS` for Android PV tests (flutter/flutter#168694)
2025-05-12 [email protected] Roll Dart SDK from 0bea6379f654 to 645d04a7a964 (14 revisions) (flutter/flutter#168679)
2025-05-12 [email protected] [Impeller] libImpeller: Allow setting text decorations. (flutter/flutter#168408)
2025-05-12 [email protected] Error when trying to use old HC mode when HCPP is enabled (flutter/flutter#168027)
2025-05-12 [email protected] Nav bar back label is not clipped mid-transition (flutter/flutter#168194)
2025-05-12 [email protected] Add test for stack trace mapping and test expression eval tests using DDC library bundle format (flutter/flutter#168017)
2025-05-12 [email protected] Remove CupertinoSliverNavigationBar background box when large title is extended (flutter/flutter#168407)
2025-05-12 [email protected] Label platform view modes using the unified naming scheme (flutter/flutter#168670)
2025-05-12 [email protected] Roll Packages from 7814fab to 6a28ad9 (2 revisions) (flutter/flutter#168669)
2025-05-12 [email protected] Update `Engine-artifacts.md` to reflect the new `engine.version` verifier (flutter/flutter#168413)
2025-05-12 [email protected] Roll Skia from 9f9e1f37917e to c97451da059f (1 revision) (flutter/flutter#168671)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages
Please CC [email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Ortes pushed a commit to Ortes/packages that referenced this pull request Jun 25, 2025
…r#9246)

flutter/flutter@54de32d...336a7ec

2025-05-13 [email protected] Add assert for index parameter in IndexedStack. (flutter/flutter#167757)
2025-05-13 [email protected] Fixed Android Lint Errors (flutter/flutter#168613)
2025-05-13 [email protected] Tab bar theme and dialog theme documentation cleanup (flutter/flutter#168724)
2025-05-13 [email protected] Roll Fuchsia Linux SDK from 6vjKe0bfYDVaECqBL... to 6J81agNhuK4q255Jj... (flutter/flutter#168712)
2025-05-12 [email protected] Make the barrier panel on the Material Drawer non-dismissible (flutter/flutter#164810)
2025-05-12 [email protected] Roll ICU from c9fb4b3a6fb5 to b929596baebf (5 revisions) (flutter/flutter#168691)
2025-05-12 [email protected] Fix DropdownButtonFormField icon not vertically centered (flutter/flutter#163205)
2025-05-12 [email protected] Android home/end keyboard shortcut support (flutter/flutter#168184)
2025-05-12 [email protected] Update `TESTOWNERS` for Android PV tests (flutter/flutter#168694)
2025-05-12 [email protected] Roll Dart SDK from 0bea6379f654 to 645d04a7a964 (14 revisions) (flutter/flutter#168679)
2025-05-12 [email protected] [Impeller] libImpeller: Allow setting text decorations. (flutter/flutter#168408)
2025-05-12 [email protected] Error when trying to use old HC mode when HCPP is enabled (flutter/flutter#168027)
2025-05-12 [email protected] Nav bar back label is not clipped mid-transition (flutter/flutter#168194)
2025-05-12 [email protected] Add test for stack trace mapping and test expression eval tests using DDC library bundle format (flutter/flutter#168017)
2025-05-12 [email protected] Remove CupertinoSliverNavigationBar background box when large title is extended (flutter/flutter#168407)
2025-05-12 [email protected] Label platform view modes using the unified naming scheme (flutter/flutter#168670)
2025-05-12 [email protected] Roll Packages from 7814fab to 6a28ad9 (2 revisions) (flutter/flutter#168669)
2025-05-12 [email protected] Update `Engine-artifacts.md` to reflect the new `engine.version` verifier (flutter/flutter#168413)
2025-05-12 [email protected] Roll Skia from 9f9e1f37917e to c97451da059f (1 revision) (flutter/flutter#168671)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages
Please CC [email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 14, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 14, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 15, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 15, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tool Affects the "flutter" command-line tool. See also t: labels. will affect goldens Changes to golden files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants