Skip to content

Skip Vulkan impeller_unittests on macOS - #196282

Merged
auto-submit[bot] merged 2 commits into
flutter:masterfrom
jmagman:skip-vulkan-impeller-mac
Nov 16, 2026
Merged

auto-submit[bot] merged 2 commits into
flutter:masterfrom
jmagman:skip-vulkan-impeller-mac

Conversation

@jmagman

@jmagman jmagman commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Skip the Vulkan impeller_unittests on macOS. Vulkan there is SwiftShader with validation, the same configuration Linux linux_unopt has run for every Vulkan test since flutter-team-archive/engine#50558. Metal is the macOS-only coverage and still runs.
Example Linux run: https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8665483521497042033/+/u/test:_Host_Tests_for_host_debug_unopt_impeller_tests__2_/stdout

Linux only ran impeller_unittests in the debug unopt build, so to keep optimized Vulkan coverage, ci/host_profile_test and ci/host_release_test now run them too.

Vulkan is ~76 of the ~108 CPU-min in this step, so impeller_unittests drops from ~13.6 min to ~4 min on each Mac host builder:

Builder Before After
Mac mac_host_debug_unopt_arm64 37 min ~28 min
Mac mac_host_debug_tests / release_tests 19 min ~15.5 min
Mac mac_host_profile_tests 17 min ~15 min

With #196278 as well, impeller_unittests on mac_host_debug_unopt_arm64 goes from 13.6 to about 2 minutes.

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.

@jmagman jmagman added the CICD Run CI/CD label Nov 10, 2026
@github-actions github-actions Bot added the engine flutter/engine related. See also e: labels. label Nov 10, 2026
# and already runs on Linux.
'--gtest_filter=-*OpenGLES:*OpenGLESSDF:*Vulkan*',
]
# Impeller tests are only supported on macOS for now.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment is stale flutter-team-archive/engine#50558

@jmagman
jmagman marked this pull request as ready for review November 10, 2026 17:53

@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 updates run_tests.py to skip Vulkan tests in mac_impeller_unittests_flags since Vulkan runs on Linux using SwiftShader. It also removes the --enable_vulkan_validation flag. A review comment suggests further cleaning up the environment setup by removing the unused Vulkan validation environment update.

Comment thread engine/src/flutter/testing/run_tests.py Resolved
@jmagman
jmagman requested a review from gaaclarke November 10, 2026 21:16

@gaaclarke gaaclarke left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, can you link to the linux runs in the description?

If I'm not mistaken we might also be removing release build tests with this PR too since they were macos only. Can we add those to linux? It's probably worth keeping those.

@jmagman

jmagman commented Nov 10, 2026

Copy link
Copy Markdown
Member Author

This looks good, can you link to the linux runs in the description?

Done.

If I'm not mistaken we might also be removing release build tests with this PR too since they were macos only. Can we add those to linux? It's probably worth keeping those.

Good call, I'll add them.

@flutter-dashboard

Copy link
Copy Markdown

CI had a failure that stopped further tests from running. We need to investigate to determine the root cause.

SHA at time of execution: 8d8ece3.

Possible causes:

  • Configuration Changes: The .ci.yaml file might have been modified between the creation of this pull request and the start of this test run. This can lead to ci yaml validation errors.
  • Infrastructure Issues: Problems with the CI environment itself (e.g., quota) could have caused the failure.

A blank commit, or merging to head, will be required to resume running CI for this PR.

Error Details:

FormatException: ERROR: Windows tool_integration_tests_1_10 is a new builder added. it needs to be marked bringup: true
If ci.yaml wasn't changed, try `git fetch upstream && git merge upstream/master`









Stack trace:

#0      CiYaml._validate (package:cocoon_service/src/model/ci_yaml/ci_yaml.dart:395:7)
#1      new CiYaml (package:cocoon_service/src/model/ci_yaml/ci_yaml.dart:128:7)
#2      new CiYamlSet (package:cocoon_service/src/model/ci_yaml/ci_yaml.dart:48:23)
#3      CiYamlFetcher._getCiYaml (package:cocoon_service/src/service/scheduler/ci_yaml_fetcher.dart:124:12)
<asynchronous suspension>
#4      Scheduler.getPresubmitTargets (package:cocoon_service/src/service/scheduler.dart:1154:20)
<asynchronous suspension>
#5      Scheduler._getTestsForStage (package:cocoon_service/src/service/scheduler.dart:1486:14)
<asynchronous suspension>
#6      Scheduler._runCiTestingStage (package:cocoon_service/src/service/scheduler.dart:1527:30)
<asynchronous suspension>
#7      Scheduler.proceedToCiTestingStage (package:cocoon_service/src/service/scheduler.dart:1636:7)
<asynchronous suspension>
#8      Scheduler._closeSuccessfulEngineBuildStage (package:cocoon_service/src/service/scheduler.dart:1421:5)
<asynchronous suspension>
#9      Scheduler.processBuildCompleted (package:cocoon_service/src/service/scheduler.dart:1362:11)
<asynchronous suspension>
#10     PresubmitSubscription._processBuild (package:cocoon_service/src/request_handlers/presubmit_subscription.dart:228:7)
<asynchronous suspension>
#11     PresubmitSubscription.post (package:cocoon_service/src/request_handlers/presubmit_subscription.dart:119:5)
<asynchronous suspension>
#12     RequestHandler.service (package:cocoon_service/src/request_handling/request_handler.dart:42:20)
<asynchronous suspension>
#13     SubscriptionHandler.service (package:cocoon_service/src/request_handling/subscription_handler.dart:134:5)
<asynchronous suspension>
#14     createServer.<anonymous closure> (package:cocoon_service/server.dart:462:7)
<asynchronous suspension>
#15     main.<anonymous closure>.<anonymous closure> (file:///app/app_dart/bin/gae_server.dart:192:9)
<asynchronous suspension>

@jmagman
jmagman force-pushed the skip-vulkan-impeller-mac branch from 8d8ece3 to 5e763d9 Compare November 10, 2026 22:31
@gaaclarke

Copy link
Copy Markdown
Member

friendly reminder: It looks like you may have addressed my feedback but didn't hit the "Rerequest review" button. When you want me to take another look please hit that button =) Maybe I'm imagining it but I think some teams don't do that?

@jmagman

jmagman commented Nov 10, 2026

Copy link
Copy Markdown
Member Author

friendly reminder: It looks like you may have addressed my feedback but didn't hit the "Rerequest review" button. When you want me to take another look please hit that button =) Maybe I'm imagining it but I think some teams don't do that?

I would have, just needed to get out of a wall of meetings and back to Real Work. 😛

@jmagman
jmagman requested a review from gaaclarke November 10, 2026 23:34
gaaclarke
gaaclarke previously approved these changes Nov 11, 2026

@gaaclarke gaaclarke left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! thanks, good find

@jmagman jmagman added the autosubmit Merge PR when tree becomes green via auto submit App label Nov 11, 2026
@auto-submit

auto-submit Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

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

@auto-submit auto-submit Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Nov 11, 2026
Vulkan on the Mac bots is SwiftShader with the validation layer, the
same configuration the Linux impeller tests already run for every
Vulkan test. It is 76 of the 108 CPU-minutes of impeller_unittests on
mac_host_debug_unopt_arm64. Keep Metal, the macOS-only coverage.

impeller_unittests on mac_host_debug_unopt_arm64 goes from 13.6 to
about 4 minutes, and proportionally on the debug, profile, and release
host test builders.
@jmagman

jmagman commented Nov 11, 2026

Copy link
Copy Markdown
Member Author

Rebased onto #196314

@jmagman jmagman added the autosubmit Merge PR when tree becomes green via auto submit App label Nov 16, 2026
@auto-submit
auto-submit Bot added this pull request to the merge queue Nov 16, 2026
Merged via the queue into flutter:master with commit b83fc55 Nov 16, 2026
11 checks passed
@flutter-dashboard flutter-dashboard Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Nov 16, 2026
auto-submit Bot pushed a commit to flutter/packages that referenced this pull request Nov 17, 2026
flutter/flutter@d8bd864...2f09f96

2026-11-17 [email protected] Analyze every flutter create template, and fix the package_ffi lint (flutter/flutter#196165)
2026-11-17 [email protected] Roll Dart SDK from 50debf3c9757 to 26e38955d9d4 (3 revisions) (flutter/flutter#196772)
2026-11-17 [email protected] Manual roll ICU from b09986242cfb to d3c612f44146 (1 revision) (flutter/flutter#196713)
2026-11-17 [email protected] Roll Skia from 4f6b3a8d8565 to 503a380ebecc (19 revisions) (flutter/flutter#196768)
2026-11-17 [email protected] iOS: Don't mock UIView animations in keyboard spring animation test (flutter/flutter#196755)
2026-11-17 [email protected] [flutter_tools] Preserve index.html across --web-content-hash transitions (flutter/flutter#196491)
2026-11-17 [email protected] Fix TextStyle background color fade-out when lerping to null (flutter/flutter#196153)
2026-11-17 [email protected] Update desktop engine TESTOWNERS (flutter/flutter#196732)
2026-11-17 [email protected] [flutter_tools] Do not copy app-only build type properties onto library plugins (flutter/flutter#196692)
2026-11-17 [email protected] [flutter_tools] Remove service and runner ambient context getters (flutter/flutter#196571)
2026-11-17 [email protected] Bump customer tests (flutter/flutter#196740)
2026-11-17 [email protected] Take customer_testing_flame out of bringup (flutter/flutter#196570)
2026-11-17 [email protected] [devicelab] Read AssetManifest.bin from the APK in flavors_test (flutter/flutter#196736)
2026-11-17 [email protected] [flutter_tools] Fix flaky tool_tests_general by moving spawnUri tests to integration shard (flutter/flutter#195999)
2026-11-17 [email protected] Roll Dart SDK from 3e069c6fdbde to 50debf3c9757 (2 revisions) (flutter/flutter#196706)
2026-11-16 [email protected] [web] Record build finish synchronously in renderScene and fix dropped frame timings (flutter/flutter#195947)
2026-11-16 [email protected] Do not reveal obscured character when input is rejected by inputFormatters (flutter/flutter#195022)
2026-11-16 [email protected] Cla draft follow up: add waiting for response (flutter/flutter#196686)
2026-11-16 [email protected] Roll pub packages (flutter/flutter#196684)
2026-11-16 [email protected] Roll Packages from 015df97 to 4c6a7d3 (8 revisions) (flutter/flutter#196681)
2026-11-16 [email protected] Skip Vulkan impeller_unittests on macOS (flutter/flutter#196282)
2026-11-16 [email protected] Move the task runners out of Flutter Engine (flutter/flutter#196267)
2026-11-16 [email protected] [FGP] Add Flutter assets after AGP's asset merge so dotfiles are pack… (flutter/flutter#196465)
2026-11-16 [email protected] iOS: Add Obj-C model for platform view composition params (flutter/flutter#196498)
2026-11-16 [email protected] [Windows] Normalize Shift key messages with a non-standard scan code (flutter/flutter#193675)
2026-11-16 [email protected] Roll Skia from 118eaff3deb4 to 4f6b3a8d8565 (3 revisions) (flutter/flutter#196672)
2026-11-16 [email protected] Roll Dart SDK from c91e8b6674e2 to 3e069c6fdbde (4 revisions) (flutter/flutter#196669)

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
@jmagman
jmagman deleted the skip-vulkan-impeller-mac branch November 19, 2026 18:56
chingjun added a commit to chingjun/flutter that referenced this pull request Nov 20, 2026
The branch was rebased onto master (752015c), which dropped its
three merges of master. Those merges held the conflict resolutions and
the regenerated lock files and converter output, and the conflicts of
the replayed commits were resolved in favour of the replayed commit. So
the commits below this one are not expected to build on this base.

This commit restores what the merges held and adds what master's 94
commits since need. Its tree is the tree of a merge of the same master
into the branch as it was before the rebase, and that tree was checked:
gn_to_bazel's tests (301) and --check, check_build_configs.sh,
check_generated_bazel_files.sh, bazel_ci_test.py (23),
engine_build_configs (84), bazel_tools (46), buildifier,
tools/gn_test.py (7), ci/pylint.sh, ci/format.sh (its Python step
through yapf directly), the analyzer over dev/bots and flutter_tools,
dev/bots' tests (51) and the tool test files the branch touches (391
tests); Bazel analysis of ci_host_debug, of host_release_test, of
//:tool_tests //:dart_tests, and of every Linux build under its own
configuration (47). Nothing was compiled or run under Bazel on it.

In it:
- deps.lock.bzl for master's DEPS (the Skia, Dart and ICU rolls) and
  pub.lock.bzl for its pubspec.lock; the converter's output:
  builds.json, configs.bazelrc, ci/builders/BUILD.bazel and six
  generated BUILD.bazel files, lib/gpu's and shell/platform/darwin/ios's
  among them for the sources master added.
- What the merges had ported: flutter#196282 (a Mac's
  impeller_unittests without the Vulkan variants, and
  --use-glfw-swiftshader in linux_host_engine_test.json) in
  bazel_mapping.dart, its test and wrapped_gn_builds.md.
- New with this base: two calls in the tool tests the branch added get
  the arguments flutter#196572 made required
  (isLocalEngineBuilder for Cache, featureFlags for
  FlutterTesterDevice). The merge was clean as text; the analyzer found
  them.
- Upstream's side of hunks both sides had changed: dev/bots
  (run_command.dart, utils.dart and run_command_test.dart, after
  flutter#196479), and the tool's test/runner.dart without the
  559 lines flutter#196123 removed, which the replay of the
  branch's own change to that file had put back.
chingjun added a commit to chingjun/flutter that referenced this pull request Nov 24, 2026
The branch was rebased onto master (752015c), which dropped its
three merges of master. Those merges held the conflict resolutions and
the regenerated lock files and converter output, and the conflicts of
the replayed commits were resolved in favour of the replayed commit. So
the commits below this one are not expected to build on this base.

This commit restores what the merges held and adds what master's 94
commits since need. Its tree is the tree of a merge of the same master
into the branch as it was before the rebase, and that tree was checked:
gn_to_bazel's tests (301) and --check, check_build_configs.sh,
check_generated_bazel_files.sh, bazel_ci_test.py (23),
engine_build_configs (84), bazel_tools (46), buildifier,
tools/gn_test.py (7), ci/pylint.sh, ci/format.sh (its Python step
through yapf directly), the analyzer over dev/bots and flutter_tools,
dev/bots' tests (51) and the tool test files the branch touches (391
tests); Bazel analysis of ci_host_debug, of host_release_test, of
//:tool_tests //:dart_tests, and of every Linux build under its own
configuration (47). Nothing was compiled or run under Bazel on it.

In it:
- deps.lock.bzl for master's DEPS (the Skia, Dart and ICU rolls) and
  pub.lock.bzl for its pubspec.lock; the converter's output:
  builds.json, configs.bazelrc, ci/builders/BUILD.bazel and six
  generated BUILD.bazel files, lib/gpu's and shell/platform/darwin/ios's
  among them for the sources master added.
- What the merges had ported: flutter#196282 (a Mac's
  impeller_unittests without the Vulkan variants, and
  --use-glfw-swiftshader in linux_host_engine_test.json) in
  bazel_mapping.dart, its test and wrapped_gn_builds.md.
- New with this base: two calls in the tool tests the branch added get
  the arguments flutter#196572 made required
  (isLocalEngineBuilder for Cache, featureFlags for
  FlutterTesterDevice). The merge was clean as text; the analyzer found
  them.
- Upstream's side of hunks both sides had changed: dev/bots
  (run_command.dart, utils.dart and run_command_test.dart, after
  flutter#196479), and the tool's test/runner.dart without the
  559 lines flutter#196123 removed, which the replay of the
  branch's own change to that file had put back.
chingjun added a commit to chingjun/flutter that referenced this pull request Nov 27, 2026
The branch was rebased onto master (752015c), which dropped its
three merges of master. Those merges held the conflict resolutions and
the regenerated lock files and converter output, and the conflicts of
the replayed commits were resolved in favour of the replayed commit. So
the commits below this one are not expected to build on this base.

This commit restores what the merges held and adds what master's 94
commits since need. Its tree is the tree of a merge of the same master
into the branch as it was before the rebase, and that tree was checked:
gn_to_bazel's tests (301) and --check, check_build_configs.sh,
check_generated_bazel_files.sh, bazel_ci_test.py (23),
engine_build_configs (84), bazel_tools (46), buildifier,
tools/gn_test.py (7), ci/pylint.sh, ci/format.sh (its Python step
through yapf directly), the analyzer over dev/bots and flutter_tools,
dev/bots' tests (51) and the tool test files the branch touches (391
tests); Bazel analysis of ci_host_debug, of host_release_test, of
//:tool_tests //:dart_tests, and of every Linux build under its own
configuration (47). Nothing was compiled or run under Bazel on it.

In it:
- deps.lock.bzl for master's DEPS (the Skia, Dart and ICU rolls) and
  pub.lock.bzl for its pubspec.lock; the converter's output:
  builds.json, configs.bazelrc, ci/builders/BUILD.bazel and six
  generated BUILD.bazel files, lib/gpu's and shell/platform/darwin/ios's
  among them for the sources master added.
- What the merges had ported: flutter#196282 (a Mac's
  impeller_unittests without the Vulkan variants, and
  --use-glfw-swiftshader in linux_host_engine_test.json) in
  bazel_mapping.dart, its test and wrapped_gn_builds.md.
- New with this base: two calls in the tool tests the branch added get
  the arguments flutter#196572 made required
  (isLocalEngineBuilder for Cache, featureFlags for
  FlutterTesterDevice). The merge was clean as text; the analyzer found
  them.
- Upstream's side of hunks both sides had changed: dev/bots
  (run_command.dart, utils.dart and run_command_test.dart, after
  flutter#196479), and the tool's test/runner.dart without the
  559 lines flutter#196123 removed, which the replay of the
  branch's own change to that file had put back.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD engine flutter/engine related. See also e: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants