Skip to content

Linux_pixel_7pro tests increasingly flakey #174948

@vashworth

Description

@vashworth

A bunch of Linux_pixel_7pro are failing in post-submit with this error:

[2025-09-04 00:35:05.893558] [STDERR] Task failed: Bad state: Too many elements
 [2025-09-04 00:35:05.893772] [STDERR] 
 [2025-09-04 00:35:05.893802] [STDERR] Stack trace:
 [2025-09-04 00:35:05.911669] [STDERR] dart:core                                                  Iterable.single
 [2025-09-04 00:35:05.911731] [STDERR] package:flutter_devicelab/framework/devices.dart 689:73    AndroidDevice._getWakefulness
 [2025-09-04 00:35:05.911739] [STDERR] ===== asynchronous gap ===========================
 [2025-09-04 00:35:05.911748] [STDERR] dart:async                                                 _CustomZone.registerBinaryCallback
 [2025-09-04 00:35:05.911758] [STDERR] package:flutter_devicelab/framework/framework.dart 309:28  _TaskRunner._performTask.<fn>
 [2025-09-04 00:35:05.911769] [STDERR] package:stack_trace                                        Chain.capture
 [2025-09-04 00:35:05.911778] [STDERR] package:flutter_devicelab/framework/framework.dart 307:11  _TaskRunner._performTask
 [2025-09-04 00:35:05.911796] [STDERR] package:flutter_devicelab/framework/framework.dart 200:43  _TaskRunner.run
 [2025-09-04 00:35:05.911806] [STDERR] 
 [2025-09-04 00:35:05.914682] [STDOUT] Checking for reboot
 [platform_interaction_test] Process terminated with exit code 0.

https://ci.chromium.org/ui/p/flutter/builders/prod/Linux_pixel_7pro%20platform_interaction_test/9260/overview

It's crashing on usage of single:

final String wakefulness = grep(wakefulnessRegexp, from: powerInfo).single.split('=')[1].trim();

Looks like it's now returning two values for mWakefulness:

mWakefulness=Awake
...
 mWakefulness=1

Metadata

Metadata

Assignees

No one assigned

    Labels

    team-androidOwned by Android platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions