Skip to content

[framework] Remove no-shuffle tags and clean up leaked test state - #191499

Draft
bkonyi wants to merge 2 commits into
flutter:masterfrom
bkonyi:investigation/issue-85160
Draft

[framework] Remove no-shuffle tags and clean up leaked test state#191499
bkonyi wants to merge 2 commits into
flutter:masterfrom
bkonyi:investigation/issue-85160

Conversation

@bkonyi

@bkonyi bkonyi commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Remove no-shuffle tag declarations and usages across the repository, and fix test state leaks and platform dependencies in Material tests.

Changes

  1. State Leak & Platform Dependencies Fixed:
    • scrollbar_test.dart: Added pointer removal (removePointer()) and gesture release (up()) to prevent active pointer persistence across shuffled test runs. Wrapped scrollbar paint tests in explicit Theme contexts and updated paint count expectations to match each target platform.
  2. no-shuffle Tag Removals:
    • Removed no-shuffle tags from dropdown_test.dart, progress_indicator_test.dart, scrollbar_test.dart, text_field_test.dart, overall_experience_test.dart, and gen_defaults_test.dart.
  3. Configuration Cleanup:
    • Removed no-shuffle tag declarations from packages/flutter/dart_test.yaml and packages/flutter_tools/dart_test.yaml.
    • Deleted obsolete dart_test.yaml files containing only no-shuffle (dev/tools/gen_defaults/dart_test.yaml, packages/flutter_driver/dart_test.yaml, packages/flutter_test/dart_test.yaml).

Fixes #85160

Pre-launch Checklist

bkonyi added 2 commits August 21, 2026 18:01
Remove the `no-shuffle` tag and associated TODO comments from:
- `packages/flutter/test/material/dropdown_test.dart`
- `packages/flutter/test/material/progress_indicator_test.dart`
- `packages/flutter/test/material/scrollbar_test.dart`

Fix test order dependency and state leakage in `scrollbar_test.dart`:
- Clean up active mouse pointers in hover tests using `removePointer()`.
- Release gestures and pointers in drag tests.
- Provide explicit `Theme` contexts and platform-specific painter assertions in `Scrollbar` painting tests to prevent host-platform fallback theme leakage.

Fixes flutter#85160
Remove the `no-shuffle` tag declarations from `dart_test.yaml` configurations
and delete obsolete `dart_test.yaml` files that only contained `no-shuffle`.
Also remove the remaining `no-shuffle` tags from `text_field_test.dart`,
`overall_experience_test.dart`, and `gen_defaults_test.dart`.

Fixes flutter#85160
@bkonyi bkonyi added the CICD Run CI/CD label Aug 21, 2026
@github-actions

Copy link
Copy Markdown

This pull request contains changes to Material or Cupertino, which are currently frozen in this repository.

Changes should be made in material_ui and/or cupertino_ui in the flutter/packages repository.

Please refer to #188444 for instructions.

@github-actions github-actions Bot added a: tests "flutter test", flutter_test, or one of our tests a: text input Entering text in a text field or keyboard related problems tool Affects the "flutter" command-line tool. See also t: labels. framework flutter/packages/flutter repository. See also f: labels. p: material_ui material_ui package in flutter/packages f: scrolling Viewports, list views, slivers, etc. labels Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: tests "flutter test", flutter_test, or one of our tests a: text input Entering text in a text field or keyboard related problems CICD Run CI/CD f: scrolling Viewports, list views, slivers, etc. framework flutter/packages/flutter repository. See also f: labels. p: material_ui material_ui package in flutter/packages tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove no-shuffle tags from all framework tests

1 participant