Skip to content

LUCI Bots are unable to run Flutter desktop apps on Linux #90676

@gspencergoog

Description

@gspencergoog

When I was trying to get #89021 to work, I ran into the problem that even though the appropriate prerequisites appear to exist on LUCI bots, when I try and run desktop Flutter apps there, they either hang (when I use xvfb-run), or fail to start (when I don't use xvfb-run)

The failure with xvfb-run looks like this:

Building Linux application...                                   
00:00 +0 -1: loading /b/s/w/ir/x/w/flutter/examples/api/integration_test/smoke_integration_test.dart [E]
  TimeoutException after 0:12:00.000000: Test timed out after 12 minutes.
  package:test_api/src/backend/invoker.dart 333:28  Invoker._handleError.<fn>
  dart:async/zone.dart 1420:47                      _rootRun
  dart:async/zone.dart 1328:19                      _CustomZone.run
  package:test_api/src/backend/invoker.dart 331:10  Invoker._handleError
  package:test_api/src/backend/invoker.dart 287:9   Invoker.heartbeat.<fn>.<fn>
  dart:async/zone.dart 1428:13                      _rootRun
  dart:async/zone.dart 1328:19                      _CustomZone.run
  package:test_api/src/backend/invoker.dart 286:38  Invoker.heartbeat.<fn>
  dart:async-patch/timer_patch.dart 18:15           Timer._createTimer.<fn>
  dart:isolate-patch/timer_impl.dart 395:19         _Timer._runTimers
  dart:isolate-patch/timer_impl.dart 426:5          _Timer._handleMessage
  dart:isolate-patch/isolate_patch.dart 192:12      _RawReceivePortImpl._handleMessage

And the failure without looks like this:

Building Linux application...                                   
Error waiting for a debug connection to observatory on Uri "null": The log reader stopped unexpectedly, or never started.
00:00 +0 -1: loading /b/s/w/ir/x/w/flutter/examples/api/integration_test/smoke_integration_test.dart [E]
  TestDeviceException(Unable to start the app on the device.)
  package:flutter_tools/src/test/integration_test_device.dart 61:7  IntegrationTestTestDevice.start

This test is able to run on Cirrus and on the devicelab bots, as well as run locally on a workstation.

I have limited the test to running on Windows and macOS, but it would be nice to be able to run Fluttter desktop apps on LUCI bots as well.

cc @godofredoc

Metadata

Metadata

Assignees

Labels

team-infraOwned by Infrastructure team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions