Skip to content

Remove webDevFS tests for the AMD module system - #193028

Merged
auto-submit[bot] merged 1 commit into
flutter:masterfrom
nshahan:test-cleanup
Sep 21, 2026
Merged

auto-submit[bot] merged 1 commit into
flutter:masterfrom
nshahan:test-cleanup

Conversation

@nshahan

@nshahan nshahan commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

AMD modules are no longer supported by flutter tools, DDC library bundles are now the only supported option.

The Github UI is not showing this diff well. Locally in VSCode it is easier to see only the changes and ignore the whitespace diffs.

devfs_web_test.dart and devfs_web_ddc_modules.dart were initially copies of each other to cover all the same test cases with the two module formats. Over time they drifted apart.

This change was created by:

  1. Copying the contents of dev_web_ddc_modules_test.dart into
    devfs_web_test.dart.
  2. Reverting the diffs that deleted test cases.
  3. Applying similar style changes and refactors that had previously been
    only applied in devfs_web_ddc_modules_test.dart in the reverted diff sections.
  4. Migrating the reverted diff sections use to DDC library bundles.
  5. Deleting dev_web_ddc_modules_test.dart.

This ensures the remaining file contains the combination of all test cases that appeared in the diverging files.

Issue: #142060

Pre-launch Checklist

AMD modules are no longer supported by flutter tools, DDC library
bundles are now the only supported option.

devfs_web_test.dart and devfs_web_ddc_modules.dart were initially copies
of each other to cover all the same test cases with the two module
formats. Over time they drifted apart.

This change was created by:
1) Copying the contents of dev_web_ddc_modules_test.dart into
   devfs_web_test.dart.
2) Reverting the diffs that deleted test cases.
3) Applying similar style changes and refactors that had previously been
   only applied in devfs_web_ddc_modules.dart in the reverted diff sections.
4) Migrating the reverted diff sections use to DDC library bundles.

This should ensure the remaining file contains the combination of all
test cases that appeared in the diverging files.
@github-actions github-actions Bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Sep 18, 2026
@nshahan nshahan added the CICD Run CI/CD label Sep 18, 2026
@nshahan
nshahan marked this pull request as ready for review September 18, 2026 22:49
@nshahan
nshahan requested a review from bkonyi September 18, 2026 22:49

@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 deletes the Dart test file that previously verified the functionality of the WebAssetServer, ReleaseAssetServer, and WebDevFS. I have no feedback to provide as there are no review comments.

@Shawn-Yu-Dev

Copy link
Copy Markdown
Contributor

The files-changed count looks large (+1576 / -2878), but most of that is deleting devfs_web_ddc_modules_test.dart and merging into devfs_web_test.dart, plus a lot of whitespace. That does not automatically mean production-logic risk, but the two files had already drifted, so the merge is easy to get wrong.

Please confirm:

  1. Every unique case from both files is still in devfs_web_test.dart. The description says some cases were deleted over time and then restored — easy to drop one.
  2. No AMD / require.js assumptions remain (webPrecompiledAmdSdk, AMD asset paths, require.js bootstrap, etc.). Remaining asserts should only cover the DDC library-bundle path.
  3. GitHub hides these as “large diffs” (especially on mobile). Reviewing with whitespace ignored (git diff -w) is more reliable than the default UI.

Not blocking on line count alone — just want confirmation the merged suite is the union of the old cases, not an accidental subset.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants