Skip to content

Revert: Balance web_canvaskit_tests and web_skwasm_tests subshards by duration - #196580

Merged
gaaclarke merged 1 commit into
flutter:masterfrom
flutteractionsbot:revert-196260-1794627396
Nov 14, 2026
Merged

gaaclarke merged 1 commit into
flutter:masterfrom
flutteractionsbot:revert-196260-1794627396

Conversation

@flutteractionsbot

Copy link
Copy Markdown
Contributor

Reverts: Balance web_canvaskit_tests and web_skwasm_tests subshards by duration

Initiated by: @gaaclarke

Reason for reverting: Mac_arm64 framework_tests_misc https://ci.chromium.org/ui/p/flutter/builders/prod/Mac_arm64%20framework_tests_misc/15738/overview

Original PR Author: @jmagman

Reviewed By: @mdebbar

The original PR description is provided below:

The web unit test shards split files by count after a fixed-seed shuffle. In the latest prod run the eight canvaskit shards took 12.7 to 24.0 minutes of tests. Split by measured duration instead, like #195628 and #195863 did for the tool shards.

Durations are in web_test_durations.json, regenerated by update_web_test_durations from LUCI ResultDB. _runFlutterWebTest now reports to ResultDB so that data will exist in the future. But because it's never been uploaded, the checked-in numbers are measured from the reporter output of one run on my machine, not from what's running in CI (it should be regenerated after a few runs in CI).

The flutter_web_plugins and flutter_driver tests are part of the partition instead of an extra on the last shard. Refactored the shared Buildbucket/ResultDB code to test_durations.dart.

A test in framework_tests_misc fails when the JSON and the tree disagree (and actually it did fail when I rebased this PR!)

00:00 +0 -1: test/web_test_durations_test.dart: canvaskit lists exactly the web unit test files [E]
  Not in "canvaskit" of dev/bots/web_test_durations.json:
    packages/flutter/test/widgets/ime_insets_animation_layout_test.dart
  
  Either run:
    dart dev/bots/update_web_test_durations.dart
  or edit dev/bots/web_test_durations.json by hand with the test file's wall time in seconds.
  package:matcher                         fail
  test/web_test_durations_test.dart 78:9  main.<fn>

8 canvaskit shards should be a balanced 16.6 minutes each instead of 12.7 to 24.0, two skwasm shards should be balanced to 10.2.

Part of #146003 and #174961

Pre-launch Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

If this change needs to override an active code freeze, provide a comment explaining why. The code freeze workflow can be overridden by code reviewers. See pinned issues for any active code freezes with guidance.

Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

@github-actions github-actions Bot added the team-web Owned by Web platform team label Nov 14, 2026
@gaaclarke gaaclarke added emergency Jump the queue; land PR in front of all others; only use for emergencies and removed team-web Owned by Web platform team labels Nov 14, 2026
@flutter-dashboard

Copy link
Copy Markdown

Detected the emergency label.

If you add the autosubmit label, the bot will wait until all presubmits pass but ignore the tree status, allowing fixes for tree breakages while still validating that they don't break any existing presubmits.

The "Merge" button is also unlocked. To bypass presubmits as well as the tree status, press the GitHub "Add to Merge Queue".

@gaaclarke
gaaclarke enabled auto-merge November 14, 2026 03:37
@gaaclarke
gaaclarke added this pull request to the merge queue Nov 14, 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 simplifies the web unit testing infrastructure by removing the weight-based subsharding mechanism that relied on historical test durations. Web unit tests are now shuffled with a constant seed and subsharded using index-based subsharding. As a result, the tracking of web test durations, the update script, and the shared test durations helper file have been removed, with the tool duration updater updated to inline its required helper functions. There are no review comments to evaluate, and I have no additional feedback to provide.

Merged via the queue into flutter:master with commit e8ac49a Nov 14, 2026
22 of 25 checks passed
@flutteractionsbot
flutteractionsbot deleted the revert-196260-1794627396 branch November 14, 2026 04:19
auto-submit Bot pushed a commit to flutter/packages that referenced this pull request Nov 16, 2026
flutter/flutter@1b95854...d8bd864

2026-11-16 [email protected] Roll Skia from f2790b0ea630 to 118eaff3deb4 (8 revisions) (flutter/flutter#196661)
2026-11-16 [email protected] [native_assets] Keep a dylib's install name in flutter test when its path does not fit (flutter/flutter#194802)
2026-11-16 [email protected] Reland "[android]: prewarms shaders when the context is created" (flutter/flutter#196579)
2026-11-16 [email protected] [flutter_tools] Bound Browser.close in Chromium.close (flutter/flutter#196211)
2026-11-16 [email protected] Roll Skia from e8ff7a4187ec to f2790b0ea630 (13 revisions) (flutter/flutter#196652)
2026-11-14 [email protected] Revert: Balance web_canvaskit_tests and web_skwasm_tests subshards by duration (flutter/flutter#196580)
2026-11-14 [email protected] Revert: Reland "[android]: prewarms shaders when the context is created" (flutter/flutter#196575)
2026-11-14 [email protected] [flutter_tools] Guard ExtensionManager initialization against concurrent disposal (flutter/flutter#196459)
2026-11-14 [email protected] [ImpellerC] Escape spaces in depfile paths (flutter/flutter#196555)
2026-11-14 [email protected] Reland "[android]: prewarms shaders when the context is created" (flutter/flutter#196549)
2026-11-14 [email protected] Balance web_canvaskit_tests and web_skwasm_tests subshards by duration (flutter/flutter#196260)
2026-11-13 [email protected] Safely return null on malformed stack trace line in StackFrame.fromStackTraceLine (flutter/flutter#194673)
2026-11-13 [email protected] Clarify that super.dispose() must be called synchronously (flutter/flutter#193416)
2026-11-13 [email protected] Consolidate exit-code parameters on runCommand with ExpectedExit (flutter/flutter#196479)
2026-11-13 [email protected] Support multi-view apps in widget test binding (flutter/flutter#194480)
2026-11-13 [email protected] Document using a ListView inside a Column (flutter/flutter#195145)
2026-11-13 [email protected] Add didChangeAlwaysUse24HourFormat to WidgetsBinding and update MediaQuery (flutter/flutter#196117)
2026-11-13 [email protected] Build local engine wasm configs on 32-core Linux bots (flutter/flutter#196284)
2026-11-13 [email protected] [Android] Fix Hybrid Composition resize deadlock (flutter/flutter#196255)
2026-11-13 [email protected] Roll Skia from 11f46cfe8838 to e8ff7a4187ec (9 revisions) (flutter/flutter#196557)
2026-11-13 [email protected] [Impeller] Fix SurfaceContextVK submission tracking and double HostBuffer reset (flutter/flutter#196064)
2026-11-13 [email protected] Manual roll Packages from 14f9933 to 015df97 (5 revisions) (flutter/flutter#196558)
2026-11-13 [email protected] Remove routes_transition_test from widgets (flutter/flutter#186620)
2026-11-13 [email protected] [flutter_tools] Replace TargetPlatform.simpleName with cpuArch (flutter/flutter#196264)
2026-11-13 [email protected] Add a deferred platform-view-created path to the shell and use it on Android (flutter/flutter#196342)
2026-11-13 [email protected] Optimize RenderSliverVariedExtentList and introduce protected itemExtentOf API in RenderSliverFixedExtentBoxAdaptor (flutter/flutter#192384)
2026-11-13 [email protected] Revert: [android]: prewarms shaders when the context is created (flutter/flutter#196468)

If this roll has caused a breakage, revert this CL and set the roller
to dry run mode using the controls here:
https://autoroll.skia.org/r/flutter-packages
Please CC [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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD emergency Jump the queue; land PR in front of all others; only use for emergencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants