Skip to content

Fix web tests on Linux #2147

@DanTup

Description

@DanTup

Web tests always fail on Linux on GH Actions with the error below.

Wondering if this is similar to an issue seen in DevTools where running non-headless Chrome would fail on Linux Travis:

flutter/devtools@2567fd6

However, I can't figure out why the web tests for Flutter would work fine (or if there's a way to force headless mode for the webdev daemon to test if that helps). Disabling these tests on Linux for now and need to restore when I can find a fix.

[11:22:34 AM] [WebDaemon] [Info] [Dart & Flutter] <== [{"event":"daemon.log","params":{"log":"[INFO] ------------------------------------------------------------------------\n"}}]
[11:22:34 AM] [General] [Info] [stdout] [INFO] ------------------------------------------------------------------------
[11:22:40 AM] [WebDaemon] [Error] [Dart & Flutter] Unhandled exception:
Instance of 'AppConnectionException'
#0      DevHandler.startDebugService (package:dwds/src/handlers/dev_handler.dart:147:7)
<asynchronous suspension>
#1      DevHandler.loadAppServices.<anonymous closure> (package:dwds/src/handlers/dev_handler.dart:177:19)
<asynchronous suspension>
#2      _LinkedHashMapMixin.putIfAbsent (dart:collection-patch/compact_hash.dart:291:23)
#3      DevHandler.loadAppServices (package:dwds/src/handlers/dev_handler.dart:175:24)
#4      Dwds.debugConnection (package:dwds/dwds.dart:54:46)
<asynchronous suspension>
#5      AppDomain._handleAppConnections (package:webdev/src/daemon/app_domain.dart:63:40)
<asynchronous suspension>
#6      SetMixin.forEach (dart:collection/set.dart:146:30)
#7      AppDomain._initialize (package:webdev/src/daemon/app_domain.dart:56:27)
#8      new AppDomain (package:webdev/src/daemon/app_domain.dart:128:5)
#9      DaemonCommand.run (package:webdev/src/command/daemon_command.dart:107:29)
<asynchronous suspension>
#10     CommandRunner.runCommand (package:args/command_runner.dart:197:27)
<asynchronous suspension>
#11     _CommandRunner.runCommand (package:webdev/src/webdev_command_runner.dart:38:24)
<asynchronous suspension>
#12     CommandRunner.run.<anonymous closure> (package:args/command_runner.dart:112:25)
#13     new Future.sync (dart:async/future.dart:224:31)
#14     CommandRunner.run (package:args/command_runner.dart:112:14)
#15     run (package:webdev/src/webdev_command_runner.dart:19:56)
#16     main (file:///home/runner/.pub-cache/hosted/pub.dartlang.org/webdev-2.5.4/bin/webdev.dart:17:22)
<asynchronous suspension>
#17     _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:303:32)
#18     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:12)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions