Repository navigation
[flutter_tools] Pass featureFlags in localizations_test.dart - #197269
Merged
bkonyi merged 1 commit intoNov 24, 2026
Merged
Conversation
Adds the missing required `featureFlags` argument (`TestFeatureFlags()`) to the `Environment.test` call in `packages/flutter_tools/test/general.shard/build_system/targets/localizations_test.dart`. This fixes an analysis failure introduced when flutter#194500 landed after flutter#196572 made `featureFlags` required on `Environment.test`. Previous output: ``` Analyzing flutter_tools... error - test/general.shard/build_system/targets/localizations_test.dart:208:27 - The named parameter 'featureFlags' is required, but there's no corresponding argument. Try adding the required argument. - missing_required_argument 1 issue found. ``` Current output: ``` Analyzing flutter_tools... No issues found! ```
bkonyi
marked this pull request as ready for review
November 23, 2026 23:28
|
Detected the If you add the The "Merge" button is also unlocked. To bypass presubmits as well as the tree status, press the GitHub "Add to Merge Queue". |
jmagman
approved these changes
Nov 23, 2026
bkonyi
enabled auto-merge
November 23, 2026 23:28
bkonyi
disabled auto-merge
November 23, 2026 23:34
bkonyi
enabled auto-merge
November 23, 2026 23:34
1 of 11 tasks
auto-submit Bot
pushed a commit
to flutter/packages
that referenced
this pull request
Nov 24, 2026
flutter/flutter@98744d3...b75c5b3 2026-11-24 [email protected] Roll Skia from 89e364b13f05 to 2140958ee284 (3 revisions) (flutter/flutter#197287) 2026-11-24 [email protected] Roll Skia from f82f3efc0461 to 89e364b13f05 (6 revisions) (flutter/flutter#197284) 2026-11-24 [email protected] Roll Dart SDK from 10aef26c73f5 to 87f515c52de9 (1 revision) (flutter/flutter#197279) 2026-11-24 [email protected] iOS: Drive platform view tests through IOSExternalViewEmbedder (flutter/flutter#197263) 2026-11-24 [email protected] Fix null check crash in flushSemantics from a stale ancestor geometry cache (flutter/flutter#192724) 2026-11-24 [email protected] [Impeller] Fix Windows build with MSVC 14.52: std::modf is [[nodiscard]] (flutter/flutter#193413) 2026-11-24 [email protected] [web] Preserve fill rules from path operations (flutter/flutter#195971) 2026-11-24 [email protected] Regenerate tool_test_durations.json (flutter/flutter#197261) 2026-11-24 [email protected] Roll Skia from 694af434cadd to f82f3efc0461 (4 revisions) (flutter/flutter#197258) 2026-11-24 [email protected] Increase number of 'Linux tool_integration_tests' subshards (flutter/flutter#197262) 2026-11-24 [email protected] Run tool_integration_tests app tests in one subshard instead of all of them (flutter/flutter#197264) 2026-11-24 [email protected] [flutter_tools] Pass featureFlags in localizations_test.dart (flutter/flutter#197269) 2026-11-23 [email protected] Fix Orca flat review in Linux accessibility (flutter/flutter#196338) 2026-11-23 [email protected] [flutter tools] Pass --client-id=flutter-analyze to the analysis server (flutter/flutter#197227) 2026-11-23 [email protected] [Flutter GPU] Expose the maximum render target size (flutter/flutter#196640) 2026-11-23 [email protected] iOS: Don't clear raster thread state in platform views reset (flutter/flutter#197025) 2026-11-23 [email protected] iOS: Composite platform views from layers in tests (flutter/flutter#197021) 2026-11-23 [email protected] [flutter_tools] Harden extension diagnostics models and RPC failure handling (flutter/flutter#196233) 2026-11-23 [email protected] [flutter_tools] Support standalone UI packages in gen-l10n (flutter/flutter#194500) 2026-11-23 [email protected] [flutter_tools] Consolidate ToolDependencies.bootstrap builders and require extension managers (flutter/flutter#196388) 2026-11-23 [email protected] Roll Skia from 31b19bdc8195 to 694af434cadd (2 revisions) (flutter/flutter#197239) 2026-11-23 [email protected] Roll Dart SDK from df632229552e to 10aef26c73f5 (1 revision) (flutter/flutter#197234) 2026-11-23 [email protected] [macOS] Fix back buffer cache returning a wrong-size surface (Impeller null deref in Canvas::SetupRenderPass) (flutter/flutter#192522) 2026-11-23 [email protected] Add Settings::frame_built_callback for UI frame build timings (flutter/flutter#197213) 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
chingjun
added a commit
to chingjun/flutter
that referenced
this pull request
Nov 27, 2026
The branch was rebased onto master (ba17b71, 90 commits after the last base, ac8f87e), with which the pull request no longer merged: nine files conflicted, the first of them since 689d7b9 ("Upgrade CI to Xcode 27.2", flutter#196807). The replay gave each conflict to the replayed commit, so in those files the commits below this one hold the branch's old text, and they keep the lock file and the generated files of the old base. Of the 656 commits replayed (the 634 of the last push and 22 new ones) 646 keep their patch ids, nine changed (they touch files master changed too), and one is gone: "[flutter_tools] A test added upstream passes featureFlags", whose one line is upstream's own since flutter#197269. This commit's tree is the tree of a merge of the same master into the branch (those 656 commits), with the nine conflicts resolved by hand and six files more that master's 90 commits need: fifteen files differ from the merge as git writes it, and no other. The nine conflicts: - ci/builders/mac_clang_tidy.json: the branch's three builds, with upstream's Xcode (sdk_version 27b52, flutter#196807). - lib/web_ui/dev/chrome.dart: the branch's --remote-debugging-port=0 and upstream's --js-flags=--expose-gc (flutter#197245). - Seven test files of flutter_tools. Upstream removed testWithoutContext in favour of test (flutter#197259) and moved tests off testUsingContext (flutter#197246, flutter#197254, flutter#197257). build_system/targets/android_test.dart and ios_test.dart are master's with the branch's one line (the include is HostArtifact.shaderLib). localizations_test.dart is master's: the branch's one-line fix of it is upstream's flutter#197269 now. runner/local_engine_test.dart, android/ android_gradle_builder_test.dart, ios/xcodeproj_test.dart and tester/flutter_tester_test.dart are master's with the branch's tests as plain test() calls. Not conflicts in the text, and needed all the same (the six files): - artifacts_test.dart merged cleanly and called the removed testWithoutContext seven times: test() now. - The Scenario app's simulator runtime is iOS 27.2, as upstream's run_ios_tests.dart and goldens have it since flutter#196807: the converter's manifest.dart and the generated testing/ios_scenario_app/BUILD.bazel. - deps.lock.bzl for master's DEPS: the rolls of Skia, Dart and Dart's BoringSSL, the Fuchsia SDK and Fuchsia's test scripts. pub.lock.bzl does not change (upstream changed no pubspec). - The converter's output for two BUILD.gn files upstream changed: shell/platform/darwin/ios/BUILD.bazel (the new test source FlutterPlatformViewsControllerObjCTest.m, flutter#197429) and shell/platform/embedder/BUILD.bazel (the dependency on //flutter/impeller/renderer/backend/vulkan and two fixtures, flutter#193004). - dart format on two of the merged tests (artifacts_test.dart, xcodeproj_test.dart): test( is shorter than the name it replaces. Checked on this tree, all of it on Linux, with the Dart SDK DEPS pins (3.15.0-185.0.dev, the engine's prebuilt one): - gen_deps.dart and gen_pub_lock.dart, and both with --check; the converter regenerated and with --check (112 generated files current): the three files named above changed and no other. - dart format over the 98 Dart files that differ from master. - The analyzer over flutter_tools, dev/bots, flutter_goldens, the converter, bazel_tools and lib/web_ui/dev: no issues. - Tests: the ten tool test files the branch touches, localizations_test.dart and the test command's (399 tests); the converter's suite (319); dev/bots' bazel_test.dart, run_command_test.dart and test_test.dart (59). One of the 59 fails where no SHARD is set: upstream's "--dry-run prints every test that would run" inherits the environment, and without a shard a dry run on Linux ends at the first one, which throws off a Mac (master's code reads the same; not run there). With SHARD=framework_tests and SUBSHARD=misc, as its bot has them, it passes. - check_build_configs.sh, check_generated_bazel_files.sh, bazel_ci_test.py (36), engine_build_configs (84), bazel_tools (62), GN's own check (tools/gn) for a host debug build, tools/gn_test.py (7), ci/pylint.sh, ci/format.sh (its Python step through yapf directly, 14 files). - buildifier over the 364 Starlark files that differ from master. One warning, and an old one: build/bazel/toolchains/emscripten/spike/ BUILD.bazel calls sh_test without loading it from rules_shell. The file is the last push's; earlier runs gave buildifier only the files a change touched. Left as it is here. - Bazel analysis: ci_host_debug, host_release_test, //:tool_tests //:dart_tests, and every Linux build of builds.json with its install and its suite under its own configuration (47 of 47, 4 of them without RBE). The first analysis with the rolled Skia and Dart, whose BUILD files are generated when their repositories are set up. Not run: nothing was built, linked or run under Bazel on this tree, on Linux or on a Mac, and no Dart tool ran on a Mac. The merge's Mac and iOS side (the clang-tidy builds' Xcode, the Scenario app's runtime, the new iOS test source) and the new embedder dependency have their first build on the bots.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Passes the missing required
featureFlags: TestFeatureFlags()argument toEnvironment.testinpackages/flutter_tools/test/general.shard/build_system/targets/localizations_test.dart. This fixes an analysis failure caused when #194500 landed after #196572 madefeatureFlagsrequired onEnvironment.test.Previous output:
Current output: