Skip to content

daemon_test.dart failing in Mac_arm64 tool_tests_commands #189876

Closed

Description

@vashworth

This test started failing aligned with when you removed Rosetta from the bots:

https://b.corp.google.com/issues/537049948, https://b.corp.google.com/issues/537616168

https://ci.chromium.org/ui/p/flutter/builders/try/Mac_arm64%20tool_tests_commands?limit=200

https://ci.chromium.org/ui/p/flutter/builders/prod/Mac_arm64%20tool_tests_commands?limit=200

08:23 +718 ~4: /Volumes/Work/s/w/ir/x/w/flutter/packages/flutter_tools/test/commands.shard/hermetic/daemon_test.dart: daemon emulator.getEmulators should respond with list
Expected: <Instance of 'List'>
  Actual: <null>
   Which: is not an instance of 'List'

#0      fail (package:matcher/src/expect/expect.dart:187:31)
#1      _expect (package:matcher/src/expect/expect.dart:182:3)
#2      expect (package:matcher/src/expect/expect.dart:65:3)
#3      main.<anonymous closure>.<anonymous closure> (file:///Volumes/Work/s/w/ir/x/w/flutter/packages/flutter_tools/test/commands.shard/hermetic/daemon_test.dart:741:7)
<asynchronous suspension>
#4      testUsingContext.<anonymous closure>.<anonymous closure>.<anonymous closure>.<anonymous closure>.<anonymous closure> (file:///Volumes/Work/s/w/ir/x/w/flutter/packages/flutter_tools/test/src/context.dart:149:32)
<asynchronous suspension>
#5      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:154:19)
<asynchronous suspension>
#6      testUsingContext.<anonymous closure>.<anonymous closure>.<anonymous closure>.<anonymous closure> (file:///Volumes/Work/s/w/ir/x/w/flutter/packages/flutter_tools/test/src/context.dart:138:28)
<asynchronous suspension>

08:23 +718 ~4 -1: /Volumes/Work/s/w/ir/x/w/flutter/packages/flutter_tools/test/commands.shard/hermetic/daemon_test.dart: daemon emulator.getEmulators should respond with list [E]
  Expected: <Instance of 'List'>
    Actual: <null>
     Which: is not an instance of 'List'

Activity

  1. added
    a: tests"flutter test", flutter_test, or one of our tests
    team-iosOwned by iOS platform team
    platform-iosiOS applications specifically
    on Jul 22, 2026
  2. jmagman commented on Jul 22, 2026

    @jmagman
    Member

    Guess about what's going on:
    Mac_arm64 tool_tests_commands uses the android_sdk version:36v9unmodified, download here

    flutter/.ci.yaml

    Line 5087 in ef87dc1

    {"dependency": "android_sdk", "version": "version:36v9unmodified"},

    The daemon test is checking for all emulators. Android emulator discovery uses emulator

    final binaryName = globals.platform.isWindows ? 'emulator.exe' : 'emulator';
    // Emulator now lives inside "emulator" but used to live inside "tools" so
    // try both.
    final searchFolders = <String>['emulator', 'tools'];

    And emulator in that cipd package is not built for ARM. Instructions for updating that cipd packages are here.

    sdk/tools/emulator: x86_64
    sdk/tools/emulator-check: x86_64
    

    I bet it's throwing a ProcessException.

  3. added
    P1High-priority issues at the top of the work list
    triaged-iosTriaged by iOS platform team
    on Jul 23, 2026
  4. gmackall commented on Jul 24, 2026

    @gmackall
    Member

    I figure this can probably be closed now that
    #189962
    merged, which updated the android_sdk dep and also re-enabled the test.

    looks like it's passing on post submits post merge https://ci.chromium.org/ui/p/flutter/builders/prod/Mac_arm64%20tool_tests_commands/13544/overview
    but will not close myself in case there's more here I don't understand due to limited ios/mac knowledge

  5. cbracken commented on Jul 28, 2026

    @cbracken
    Member

    Thanks for sorting this out @gmackall! To be safe, let's wait to close until we re-roll the Rosetta removal on the bots and verify. This is happening as we speak.

  6. cbracken commented on Aug 10, 2026

    @cbracken
    Member

    This is fixed now.

  7. github-actions commented on Aug 24, 2026

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  8. locked as resolved and limited conversation to collaborators on Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work lista: tests"flutter test", flutter_test, or one of our testsfyi-androidFor the attention of Android platform teamplatform-iosiOS applications specificallyteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions