Skip to content

[CP-stable]fix(tool): remove redundant --enable-experiment=record-use flag - #192318

Merged
auto-submit[bot] merged 1 commit into
flutter:flutter-3.47-candidate.0from
flutteractionsbot:cp-stable-89b263df72ec03445b7e7e9f76f8f12628530188
Sep 9, 2026
Merged

auto-submit[bot] merged 1 commit into
flutter:flutter-3.47-candidate.0from
flutteractionsbot:cp-stable-89b263df72ec03445b7e7e9f76f8f12628530188

Conversation

@flutteractionsbot

@flutteractionsbot flutteractionsbot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

This pull request is created by automatic cherry pick workflow
Please fill in the form below, and a flutter domain expert will evaluate this cherry pick request.

Issue Link:

#190465

Impact Description:

In Dart 3.7 (shipped in Flutter 3.47), record-use was enabled by default. Passing --enable-experiment=record-use emitted a non-fatal warning on stderr. Because flutter_tools evaluated if (stderr.isNotEmpty) result = 'failure', this non-fatal compiler warning caused dry runs to bypass stdout findings parsing and omit E00–E17 package incompatibility telemetry keys.

Changelog Description:

#190465 When running WebAssembly dry-run builds on Web, remove redundant experiment flag warning that dropped telemetry error findings.

Workaround:

Is there a workaround for this issue?

None. Telemetry payload parameters were dropped internally by the CLI tool.

Risk:

What is the risk level of this cherry-pick?

  • Low
  • Medium
  • High

Test Coverage:

Are you confident that your fix is well-tested by automated tests?

  • Yes
  • No

Validation Steps:

What are the steps to validate that this fix works?

  1. Run flutter build web --no-wasm-dry-run vs dry-run mode on a project with legacy web dependencies (dart:html or package:js).
  2. Verify Event.flutterWasmDryRunPackage emits result: "findings" and attaches E... error keys without stderr warning spam.

…ter#190475)

When compiling web targets (dart2js and dart2wasm) or running dry runs
with the record-use feature flag enabled, flutter_tools explicitly
passed --enable-experiment=record-use to the compiler. Since record-use
is enabled by default in recent Dart SDKs, passing this flag caused
warning spam during standard compilation and dry runs.

* Remove --enable-experiment=record-use from Dart2JSTarget and
Dart2WasmTarget in web.dart.
* Remove expected flag from test commands in web_test.dart and
web_dry_run_test.dart.

Fixes flutter#190465
@flutteractionsbot flutteractionsbot added the cp: review Cherry-picks in the review queue label Sep 4, 2026
@flutteractionsbot

Copy link
Copy Markdown
Contributor Author

@kevmoo please fill out the PR description above, afterwards the release team will review this request.

@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label Sep 4, 2026
@flutter-dashboard

Copy link
Copy Markdown

This pull request was opened from and to a release candidate branch. This should only be done as part of the official Flutter release process. If you are attempting to make a regular contribution to the Flutter project, please close this PR and follow the instructions at Tree Hygiene for detailed instructions on contributing to Flutter.

Reviewers: Use caution before merging pull requests to release branches. Ensure the proper procedure has been followed.

@github-actions github-actions Bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Sep 4, 2026

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request removes the '--enable-experiment=record-use' compiler flag from both Dart2JSTarget and Dart2WasmTarget build targets when record-use is enabled. Corresponding test expectations in web_dry_run_test.dart and web_test.dart have been updated to match this change. There are no review comments, and I have no feedback to provide.

@kevmoo
kevmoo requested a review from mdebbar September 9, 2026 03:52
@walley892 walley892 added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 9, 2026
@auto-submit auto-submit Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Sep 9, 2026
@auto-submit

auto-submit Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

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

@walley892

Copy link
Copy Markdown
Contributor

@bkonyi, could you look into the test errors please?

@kevmoo

kevmoo commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

@walley892 @bkonyi – I think I kicked the right bits and we're good to go!

@kevmoo kevmoo added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 9, 2026
@auto-submit
auto-submit Bot merged commit 5743177 into flutter:flutter-3.47-candidate.0 Sep 9, 2026
15 checks passed
@flutteractionsbot
flutteractionsbot deleted the cp-stable-89b263df72ec03445b7e7e9f76f8f12628530188 branch September 9, 2026 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App CICD Run CI/CD cp: review Cherry-picks in the review queue tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants