Skip to content

Flutter web tests are crashing Chrome, then timing out on CI builder #61462

@whesse

Description

@whesse

The Dart team's integration test builder for flutter/engine/dart tip-of-tree has started throwing an exception from Chrome, then timing out on all tests after that, taking 12 minutes to time out, which makes the builder take an extra half hour.

I'm not sure whether a change in our Chrome version is doing that, or some change in Flutter.
We need to get the web tests passing, to turn the builder green, and also to fix this time regression.

The builder is at https://ci.chromium.org/p/dart/builders/ci.sandbox/flutter-engine-linux
and a failing build is at: https://ci.chromium.org/p/dart/builders/ci.sandbox/flutter-engine-linux/11234

The step is "flutter test web_tests", and it takes 90 minutes when it fails due to this Chrome crash and timeouts, 60 minutes when passing.

I am just about to update the checked-in version of Chrome the Dart builders use to run tests. I don't know if this will change
the version used by this builder, I can look into it.

However, a new, passing build has finished since I started writing this issue. Is there a fix that has landed for this problem in that blamelist, or could this still be a flaky problem we need to fix?


02:34 +354 ~3: loading /b/s/w/ir/cache/builder/flutter/packages/flutter/test/cupertino/app_test.dart                                                                                                   [+16799 ms] Serving tests at http://localhost:36567/static/index.html?managerUrl=ws%3A%2F%2Flocalhost%3A36567%2F36&debug=false
[  +99 ms] [CHROME]:Inconsistency detected by ld.so: dl-tls.c: 493: _dl_allocate_tls_init: Assertion `listp->slotinfo[cnt].gen <= GL(dl_tls_generation)' failed!

02:34 +354 ~3 -1: loading /b/s/w/ir/cache/builder/flutter/packages/flutter/test/cupertino/app_test.dart [E]                                                                                            
  Failed to load "/b/s/w/ir/cache/builder/flutter/packages/flutter/test/cupertino/app_test.dart":
  Unable to connect to Chrome debug port: 34483
   SocketException: OS Error: Connection refused, errno = 111, address = localhost, port = 34856
  package:flutter_tools/src/base/common.dart 14:3                throwToolExit
  package:flutter_tools/src/web/chrome.dart 302:9                ChromiumLauncher._connect
  ===== asynchronous gap ===========================
  dart:async/future.dart 279:46                                  new Future.error
  package:test_core/src/runner/loader.dart 246:26                Loader.loadFile.<fn>

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: tests"flutter test", flutter_test, or one of our testsc: crashStack traces logged to the consoleengineflutter/engine related. See also e: labels.platform-webWeb applications specifically

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions