Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Tests are failing with latest version of Flutter #9357

@elliette

Description

@elliette

After updating our Flutter candidate version to 15f39d189edb3ccb01d829ec7d1d882764f1b979, our integration tests have begun failing.

Example run: https://github.com/flutter/devtools/actions/runs/16680517620/job/47217979780

The key error is:

SessionNotCreatedException (500): session not created: probably user data directory is already in use, please specify a unique value for --user-data-dir argument, or don't use --user-data-dir

stack trace
FlutterDriveProcess - Launching integration_test/test/live_connection/network_screen_test.dart on Web Server in debug mode...
FlutterDriveProcess - Waiting for connection from debug service on Web Server...         38.4s
FlutterDriveProcess - integration_test/test/live_connection/network_screen_test.dart is being served at http://localhost:49494
FlutterDriveProcess - The web-server device requires the Dart Debug Chrome extension for debugging. Consider using the Chrome or Edge devices for an improved development workflow.
FlutterDriveProcess - 
FlutterDriveProcess - SessionNotCreatedException (500): session not created: probably user data directory is already in use, please specify a unique value for --user-data-dir argument, or don't use --user-data-dir
FlutterDriveProcess - #0      parseW3cResponse (package:webdriver/src/handler/w3c/utils.dart:81:9)
FlutterDriveProcess - #1      W3cSessionHandler.parseCreateResponse (package:webdriver/src/handler/w3c/session.dart:19:21)
FlutterDriveProcess - #2      InferSessionHandler.parseCreateResponse (package:webdriver/src/handler/infer_handler.dart:106:34)
FlutterDriveProcess - #3      AsyncRequestClient.send (package:webdriver/src/common/request_client.dart:96:32)
FlutterDriveProcess - <asynchronous suspension>
FlutterDriveProcess - #4      createDriver (package:webdriver/async_core.dart:62:19)
FlutterDriveProcess - <asynchronous suspension>
FlutterDriveProcess - #5      WebDriverService.startTest (package:flutter_tools/src/drive/web_driver_service.dart:203:19)
FlutterDriveProcess - <asynchronous suspension>
FlutterDriveProcess - #6      DriveCommand.runCommand (package:flutter_tools/src/commands/drive.dart:377:30)
FlutterDriveProcess - <asynchronous suspension>
FlutterDriveProcess - #7      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1560:27)
FlutterDriveProcess - <asynchronous suspension>
FlutterDriveProcess - #8      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:154:19)
FlutterDriveProcess - <asynchronous suspension>
FlutterDriveProcess - #9      CommandRunner.runCommand (package:args/command_runner.dart:212:13)
FlutterDriveProcess - <asynchronous suspension>
FlutterDriveProcess - #10     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:494:9)
FlutterDriveProcess - <asynchronous suspension>
FlutterDriveProcess - #11     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:154:19)
FlutterDriveProcess - <asynchronous suspension>
FlutterDriveProcess - #12     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:429:5)
FlutterDriveProcess - <asynchronous suspension>
FlutterDriveProcess - #13     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:101:11)
FlutterDriveProcess - <asynchronous suspension>
FlutterDriveProcess - #14     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:154:19)
FlutterDriveProcess - <asynchronous suspension>
FlutterDriveProcess - #15     main (package:flutter_tools/executable.dart:105:3)
FlutterDriveProcess - <asynchronous suspension>
FlutterDriveProcess - 
FlutterDriveProcess - Feature flags enabled: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-native-assets
Unhandled exception:
Exception: Error starting test app: Did not receive expected message: The Dart VM service is listening on .
Received:
[+    51] Could not find package `app_that_uses_foo` or file `app_that_uses_foo`
[+    52] Process exited (255)
[+ 240010] <timed out>

#0      runFlutterIntegrationTest (file:///Users/runner/work/devtools/devtools/packages/devtools_app/integration_test/test_infra/run/run_test.dart:107:9)
<asynchronous suspension>
#1      _runTest (file:///Users/runner/work/devtools/devtools/packages/devtools_app/integration_test/run_tests.dart:84:3)
<asynchronous suspension>
#2      runOneOrManyTests (package:devtools_shared/src/test/integration_test_runner.dart:354:9)
<asynchronous suspension>
#3      main (file:///Users/runner/work/devtools/devtools/packages/devtools_app/integration_test/run_tests.dart:53:3)
<asynchronous suspension>
Error: Process completed with exit code 255.

Note: Integration test needs to be resolved before we can re-enable our tests in the Flutter customer tests repo, see flutter/flutter#172037

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1high priority issues at the top of the work list, actively being worked on.testing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions