Sitelet https://github.com/flutter/flutter/pull/192663
Skip to content

fix(web): hide --web-content-hash until content hashing is complete - #192663

Merged
auto-submit[bot] merged 2 commits into
flutter:masterfrom
kevmoo:hide-web-content-hash
Sep 14, 2026
Merged

auto-submit[bot] merged 2 commits into
flutter:masterfrom
kevmoo:hide-web-content-hash

Conversation

@kevmoo

@kevmoo kevmoo commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

--web-content-hash currently hashes only the compiled entrypoints
(#191914). Static assets (#191915), the service worker precache manifest
(#191916), and deferred loading parts (#191917) are all still unhashed, so
a build with the flag enabled can continue to serve stale cached content.
Advertising the flag now sets an expectation the implementation does not
yet meet.

The flag has not shipped in any release. It landed on master in #190153 on
2026-09-10, after the flutter-3.48-candidate.0 fork, so hiding it costs
nothing today. It also avoids committing to the flag's boolean shape before
the remaining phases show whether granularity is needed.

Locks the behavior into the existing flutter build web option visibility
tests, including the verbose-help variant, so the flag stays hidden rather
than becoming verbose-only by accident.

Un-hide once #191915 and #191916 have landed.

`--web-content-hash` currently hashes only the compiled entrypoints
(flutter#191914). Static assets (flutter#191915), the service worker precache manifest
(flutter#191916), and deferred loading parts (flutter#191917) are all still unhashed, so
a build with the flag enabled can continue to serve stale cached content.
Advertising the flag now sets an expectation the implementation does not
yet meet.

The flag has not shipped in any release. It landed on master in flutter#190153 on
2026-09-10, after the flutter-3.48-candidate.0 fork, so hiding it costs
nothing today. It also avoids committing to the flag's boolean shape before
the remaining phases show whether granularity is needed.

Locks the behavior into the existing `flutter build web option visibility`
tests, including the verbose-help variant, so the flag stays hidden rather
than becoming verbose-only by accident.

Un-hide once flutter#191915 and flutter#191916 have landed.
@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label Sep 12, 2026
@github-actions github-actions Bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Sep 12, 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 hides the incomplete web-content-hash flag option in web_options.dart and updates the corresponding tests in build_web_test.dart to verify it is hidden. Feedback was provided to use triple-slash (///) comments for the documentation of the webContentHash member to align with the Flutter style guide.

Comment thread packages/flutter_tools/lib/src/web/web_options.dart
@kevmoo
kevmoo requested a review from mdebbar September 12, 2026 00:15
mdebbar
mdebbar previously approved these changes Sep 12, 2026
@kevmoo kevmoo added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 12, 2026
@auto-submit auto-submit Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Sep 12, 2026
@auto-submit

auto-submit Bot commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

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

@kevmoo

kevmoo commented Sep 13, 2026

Copy link
Copy Markdown
Contributor Author

I've pushed a fix to address the failing args_test.dart which checks for strictly hidden options. --web-content-hash is now properly whitelisted as a hidden option while content hashing remains incomplete. The Dashboard CI checks should turn green.

@kevmoo

kevmoo commented Sep 13, 2026

Copy link
Copy Markdown
Contributor Author

@mdebbar need another approval, please!

@kevmoo kevmoo added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 14, 2026
@auto-submit
auto-submit Bot added this pull request to the merge queue Sep 14, 2026
Merged via the queue into flutter:master with commit bdb24b7 Sep 14, 2026
23 checks passed
@flutter-dashboard flutter-dashboard Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Sep 14, 2026
@kevmoo
kevmoo deleted the hide-web-content-hash branch September 15, 2026 02:34
auto-submit Bot pushed a commit to flutter/packages that referenced this pull request Sep 16, 2026
flutter/flutter@8b3e8f5...27fec0e

2026-09-14 ttankkeo112@gmail.com Add dedicated rubber band spring for overscroll recovery in BouncingScrollPhysics (flutter/flutter#187568)
2026-09-14 engine-flutter-autoroll@skia.org Roll Skia from 83c984a6daf5 to 59904977fcbb (8 revisions) (flutter/flutter#192767)
2026-09-14 34871572+gmackall@users.noreply.github.com Request unbuffered dispatch for platform view motion events after `_PlatformViewGestureRecognizer` rejects gesture (flutter/flutter#192259)
2026-09-14 engine-flutter-autoroll@skia.org Roll Fuchsia GN SDK from ZsxUUK2SfA-TrNvb8... to PDJz3b3CL31uoLOkD... (flutter/flutter#192440)
2026-09-14 codefu@google.com ci(bringup): cleanup some bringup (flutter/flutter#192752)
2026-09-14 kevmoo@users.noreply.github.com Warn users on potential removal of dart:html in dry run (flutter/flutter#192710)
2026-09-14 codefu@google.com docs: migrate design document guidance to flutter/rfc (flutter/flutter#192648)
2026-09-14 154381524+flutteractionsbot@users.noreply.github.com Sync CHANGELOG.md from stable (flutter/flutter#192499)
2026-09-14 engine-flutter-autoroll@skia.org Roll Skia from 7a6fd7ff72d5 to 83c984a6daf5 (1 revision) (flutter/flutter#192745)
2026-09-14 1961493+harryterkelsen@users.noreply.github.com RELAND: [devicelab] Clean up Chrome profile directories and trap abort signals in web benchmarks (flutter/flutter#192655)
2026-09-14 kevmoo@users.noreply.github.com fix(web): hide --web-content-hash until content hashing is complete (flutter/flutter#192663)
2026-09-14 engine-flutter-autoroll@skia.org Roll Skia from 527751088719 to 7a6fd7ff72d5 (2 revisions) (flutter/flutter#192725)
2026-09-14 engine-flutter-autoroll@skia.org Roll Skia from eaf9f82813eb to 527751088719 (1 revision) (flutter/flutter#192722)
2026-09-14 engine-flutter-autoroll@skia.org Roll Fuchsia Linux SDK from AQu85JoTHCMET3Q8G... to 7R1l5MhSZZUr1Q6D1... (flutter/flutter#192719)
2026-09-14 robert.ancell@canonical.com [Linux] Clear the frame when there is nothing to render (flutter/flutter#192461)

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 stuartmorgan@google.com,tarrinneal@google.com 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 tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants