Skip to content

Conversation

@kevmoo
Copy link
Contributor

@kevmoo kevmoo commented May 7, 2024

At the moment, we ALWAYS compile JS with Wasm. The CLI flags should be clear on this!

@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact "@test-exemption-reviewer" in the #hackers channel in Chat (don't just cc them here, they won't see it! Use Discord!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

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

@github-actions github-actions bot added the tool Affects the "flutter" command-line tool. See also t: labels. label May 7, 2024
@kevmoo kevmoo requested a review from eyebrowsoffire May 7, 2024 22:19
@kevmoo kevmoo added team-web Owned by Web platform team e: wasm Issues related to the wasm build of Flutter Web. labels May 7, 2024
Copy link
Contributor

@christopherfujino christopherfujino left a comment

Choose a reason for hiding this comment

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

LGTM

@matanlurey
Copy link
Contributor

test-exempt: This only updates package:args --help.

I could only find 1 example of any test in flutter_tools that asserts the contents of flutter * --help, and see this is a net-positive contribution to the codebase, so LGTM.

@kevmoo kevmoo added the autosubmit Merge PR when tree becomes green via auto submit App label May 7, 2024
@Hixie
Copy link
Contributor

Hixie commented May 7, 2024

There are a variety of tests that check the help text, the main one is in general.shard/args_test.dart. Help text is not one of the items listed on our wiki for reasons a patch could be test exempt.

@ditman
Copy link
Member

ditman commented May 8, 2024

@Hixie I checked this branch out to see if I could add a new test, but it seems the args_test.dart is automatically picking all the commands + options and testing them against a set of rules for validity?

I can see several instances of the wasm parameter being tested amongst others, for example:

Command "test", parameters: branch-coverage, concurrency, coverage, coverage-package, coverage-path, dart-define, dart-define-from-file, dds, dds-port, device-user, disable-dds, disable-service-auth-codes, enable-experiment, enable-impeller, enable-vmservice, exclude-tags, experimental-faster-testing, fatal-warnings, file-reporter, flavor, frontend-server-starter-path, help, ipv6, machine, merge-coverage, name, null-assertions, plain-name, platform, pub, reporter, run-skipped, serve-observatory, shard-index, sound-null-safety, start-paused, tags, test-assets, test-randomize-ordering-seed, timeout, total-shards, track-widget-creation, update-goldens, wasm, web-renderer

(This looks to be already tested, but this PR didn't need to modify any test file for tests to run. I don't think we have any place with "expected option values" (just an idea), so this could be very well reverted without having to touch (m)any tests, of course).

@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label May 8, 2024
@auto-submit
Copy link
Contributor

auto-submit bot commented May 8, 2024

auto label is removed for flutter/flutter/147944, due to - The status or check suite Google testing has failed. Please fix the issues identified (or deflake) before re-applying this label.

@Hixie
Copy link
Contributor

Hixie commented May 8, 2024

The way I usually land PRs like this is to find something that isn't tested yet, and test that. That way the test coverage gets better, and we have fewer regressions later. So for example, we could test that newlines in help text aren't preceded by spaces, or that all the FlutterOptions.kWebWasmFlag options have the same help text (including any future ones), or that FlutterOptions.kWebWasmFlag has the value we expect (so we don't accidentally break everyone by changing that constant), or that the option is in the right place in the list relative to other ones (maybe coming up with a standard order that we can apply uniformly), etc.

@kevmoo kevmoo marked this pull request as draft May 8, 2024 16:21
@flutter-dashboard
Copy link

This pull request has been changed to a draft. The currently pending flutter-gold status will not be able to resolve until a new commit is pushed or the change is marked ready for review again.

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.

@kevmoo kevmoo marked this pull request as ready for review May 8, 2024 20:59
@kevmoo kevmoo added the autosubmit Merge PR when tree becomes green via auto submit App label May 8, 2024
@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label May 8, 2024
@auto-submit
Copy link
Contributor

auto-submit bot commented May 8, 2024

auto label is removed for flutter/flutter/147944, due to - The status or check suite Windows tool_integration_tests_4_6 has failed. Please fix the issues identified (or deflake) before re-applying this label.

@kevmoo kevmoo added the autosubmit Merge PR when tree becomes green via auto submit App label May 8, 2024
@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label May 8, 2024
@auto-submit
Copy link
Contributor

auto-submit bot commented May 8, 2024

auto label is removed for flutter/flutter/147944, due to - The status or check suite Windows build_tests_2_7 has failed. Please fix the issues identified (or deflake) before re-applying this label.

@kevmoo kevmoo added the autosubmit Merge PR when tree becomes green via auto submit App label May 9, 2024
@auto-submit auto-submit bot merged commit 4e81abe into master May 9, 2024
@auto-submit auto-submit bot deleted the as_well_as_js branch May 9, 2024 01:33
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 9, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 9, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 9, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 9, 2024
bparrishMines pushed a commit to flutter/packages that referenced this pull request May 10, 2024
flutter/flutter@00f4066...2bfb1b0

2024-05-09 [email protected] Bump flutter_lints to 4.0
(flutter/flutter#148020)
2024-05-09 [email protected] Add Badge example
(flutter/flutter#148053)
2024-05-09 [email protected] Fix ExpandIcon color when
ExpansionPanel.canTapOnHeader true (#147097) (flutter/flutter#147098)
2024-05-09 [email protected] Roll Flutter Engine from
c2e874fdc164 to c0fd3386d018 (1 revision) (flutter/flutter#148040)
2024-05-09 [email protected] Roll Flutter Engine from
fe08238f5a52 to c2e874fdc164 (1 revision) (flutter/flutter#148038)
2024-05-09 [email protected] Roll Flutter Engine from
69f2d9610a18 to fe08238f5a52 (1 revision) (flutter/flutter#148034)
2024-05-09 [email protected]
Roll pub packages (flutter/flutter#148011)
2024-05-09 [email protected] Roll Flutter Engine from
bd58d2b2d655 to 69f2d9610a18 (7 revisions) (flutter/flutter#148030)
2024-05-09 [email protected] [web] Update wasm CLI details
to be clear JavaScript is ALSO compiled (flutter/flutter#147944)

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],[email protected],[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
TecHaxter pushed a commit to TecHaxter/flutter_packages that referenced this pull request May 22, 2024
flutter/flutter@00f4066...2bfb1b0

2024-05-09 [email protected] Bump flutter_lints to 4.0
(flutter/flutter#148020)
2024-05-09 [email protected] Add Badge example
(flutter/flutter#148053)
2024-05-09 [email protected] Fix ExpandIcon color when
ExpansionPanel.canTapOnHeader true (#147097) (flutter/flutter#147098)
2024-05-09 [email protected] Roll Flutter Engine from
c2e874fdc164 to c0fd3386d018 (1 revision) (flutter/flutter#148040)
2024-05-09 [email protected] Roll Flutter Engine from
fe08238f5a52 to c2e874fdc164 (1 revision) (flutter/flutter#148038)
2024-05-09 [email protected] Roll Flutter Engine from
69f2d9610a18 to fe08238f5a52 (1 revision) (flutter/flutter#148034)
2024-05-09 [email protected]
Roll pub packages (flutter/flutter#148011)
2024-05-09 [email protected] Roll Flutter Engine from
bd58d2b2d655 to 69f2d9610a18 (7 revisions) (flutter/flutter#148030)
2024-05-09 [email protected] [web] Update wasm CLI details
to be clear JavaScript is ALSO compiled (flutter/flutter#147944)

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],[email protected],[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 6, 2024
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 e: wasm Issues related to the wasm build of Flutter Web. team-web Owned by Web platform team tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants