flutter / flutter/devtools

[Integration test failures] `offline/perfetto_test.dart`

Open
#9,642 1 comment 0 reactions 1 assignee Claimed by @elliette View on GitHub
integration tests P1
Dominant language
Dart
Stars
1.7k
Forks
404
Avg merge
6d 17h
Merged PRs (30d)
18

Description

Failure:

```
FlutterDriveProcess - Launching integration_test/test/offline/perfetto_test.dart on Web Server in debug mode...
FlutterDriveProcess - Waiting for connection from debug service on Web Server... 34.2s
FlutterDriveProcess - integration_test/test/offline/perfetto_test.dart is being served at http://localhost:49686
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 - Debug service listening on ws://127.0.0.1:49722/U0DyR31ANvg=/ws
FlutterDriveProcess - A Dart VM Service on Web Server is available at: http://127.0.0.1:49722/U0DyR31ANvg=
FlutterDriveProcess - The Flutter DevTools debugger and profiler on Web Server is available at: http://127.0.0.1:49722/U0DyR31ANvg=/devtools/?uri=ws://127.0.0.1:49722/U0DyR31ANvg=/ws
FlutterDriveProcess - The golden images have a different height or width. Golden: Size(width: 1600.0, height: 1024.0)
FlutterDriveProcess - Screenshot: Size(width: 1600.0, height: 881.0)
FlutterDriveProcess -
FlutterDriveProcess - Golden image test failed: perfetto_initial_load.png. The test image differed from the golden image by 100.0000%.
FlutterDriveProcess - The golden images have a different height or width. Golden: Size(width: 1600.0, height: 1024.0)
FlutterDriveProcess - Screenshot: Size(width: 1600.0, height: 881.0)
FlutterDriveProcess -
FlutterDriveProcess - Golden image test failed: perfetto_frame_selection.png. The test image differed from the golden image by 100.0000%.
FlutterDriveProcess - The golden images have a different height or width. Golden: Size(width: 1600.0, height: 1024.0)
FlutterDriveProcess - Screenshot: Size(width: 1600.0, height: 881.0)
FlutterDriveProcess -
FlutterDriveProcess - Golden image test failed: perfetto_frame_selection_2.png. The test image differed from the golden image by 100.0000%.
FlutterDriveProcess - result {"result":"false","failureDetails":["{\"methodName\":\"Perfetto trace viewer loads data and scrolls for Flutter frames\",\"details\":\"══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞═════════════════\\nThe following _Exception was thrown running a test:\\nException: Web Driver Command failed:\\nWebDriverCommandType.screenshot with exception Exception: Web\\nDriver Command WebDriverCommandType.screenshot failed while\\nwaiting for driver side\\n\\nWhen the exception was thrown, this was the stack:\\ndart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 274:3 throw_\\npackage:integration_test/src/_callback_web.dart 73:7 \\ndart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 623:19 \\ndart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 648:23 \\ndart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 594:19 \\ndart-sdk/lib/async/zone_root.dart 48:47 _rootRunUnary\\ndart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 118:77 tear\\ndart-sdk/lib/async/zone.dart 733:19 runUnary\\ndart-sdk/lib/async/future_impl.dart 222:18 handleValue\\ndart-sdk/lib/async/future_impl.dart 948:44 handleValueCallback\\ndart-sdk/lib/async/future_impl.dart 977:13 _propagateToListeners\\ndart-sdk/lib/async/future_impl.dart 720:5 [_completeWithValue]\\ndart-sdk/lib/async/future_impl.dart 804:7 \\ndart-sdk/lib/async/zone_root.dart 35:13 _rootRun\\ndart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 118:77 tear\\ndart-sdk/lib/async/zone.dart 726:19 run\\ndart-sdk/lib/async/zone.dart 625:7 runGuarded\\ndart-sdk/lib/async/zone.dart 666:23 \\ndart-sdk/lib/async/schedule_microtask.dart 40:34 _microtaskLoop\\ndart-sdk/lib/async/schedule_microtask.dart 49:5 _startMicrotaskLoop\\ndart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 118:77 tear\\ndart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 188:69 \\n\\nThe test description was:\\n Perfetto trace viewer loads data and scrolls for Flutter frames\\n═════════════════════════════════════════════════════════════════\\n\"}"],"data":{"screenshots":[{"screenshotName":"perfetto_initial_load","bytes":[]},{"screenshotName":"perfetto_frame_selection","bytes":[]}]}}
FlutterDriveProcess - Failure Details:
FlutterDriveProcess - Failure in method: Perfetto trace viewer loads data and scrolls for Flutter frames
FlutterDriveProcess - ══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞═════════════════
FlutterDriveProcess - The following _Exception was thrown running a test:
FlutterDriveProcess - Exception: Web Driver Command failed:
FlutterDriveProcess - WebDriverCommandType.screenshot with exception Exception: Web
FlutterDriveProcess - Driver Command WebDriverCommandType.screenshot failed while
FlutterDriveProcess - waiting for driver side
FlutterDriveProcess -
FlutterDriveProcess - When the exception was thrown, this was the stack:
FlutterDriveProcess - dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 274:3 throw_
FlutterDriveProcess - package:integration_test/src/_callback_web.dart 73:7
FlutterDriveProcess - dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 623:19
FlutterDriveProcess - dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 648:23
FlutterDriveProcess - dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 594:19
FlutterDriveProcess - dart-sdk/lib/async/zone_root.dart 48:47 _rootRunUnary
FlutterDriveProcess - dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 118:77 tear
FlutterDriveProcess - dart-sdk/lib/async/zone.dart 733:19 runUnary
FlutterDriveProcess - dart-sdk/lib/async/future_impl.dart 222:18 handleValue
FlutterDriveProcess - dart-sdk/lib/async/future_impl.dart 948:44 handleValueCallback
FlutterDriveProcess - dart-sdk/lib/async/future_impl.dart 977:13 _propagateToListeners
FlutterDriveProcess - dart-sdk/lib/async/future_impl.dart 720:5 [_completeWithValue]
FlutterDriveProcess - dart-sdk/lib/async/future_impl.dart 804:7
FlutterDriveProcess - dart-sdk/lib/async/zone_root.dart 35:13 _rootRun
FlutterDriveProcess - dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 118:77 tear
FlutterDriveProcess - dart-sdk/lib/async/zone.dart 726:19 run
FlutterDriveProcess - dart-sdk/lib/async/zone.dart 625:7 runGuarded
FlutterDriveProcess - dart-sdk/lib/async/zone.dart 666:23
FlutterDriveProcess - dart-sdk/lib/async/schedule_microtask.dart 40:34 _microtaskLoop
FlutterDriveProcess - dart-sdk/lib/async/schedule_microtask.dart 49:5 _startMicrotaskLoop
FlutterDriveProcess - dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 118:77 tear
FlutterDriveProcess - dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 188:69
FlutterDriveProcess -
FlutterDriveProcess - The test description was:
FlutterDriveProcess - Perfetto trace viewer loads data and scrolls for Flutter frames
FlutterDriveProcess - ═════════════════════════════════════════════════════════════════
FlutterDriveProcess -
FlutterDriveProcess - end of failure 1
FlutterDriveProcess -
FlutterDriveProcess -
FlutterDriveProcess -
FlutterDriveProcess - Application finished.
Unhandled exception:
Exception: Test 'Perfetto trace viewer loads data and scrolls for Flutter frames' failed: ══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞═════════════════
The following _Exception was thrown running a test:
Exception: Web Driver Command failed:
WebDriverCommandType.screenshot with exception Exception: Web
Driver Command WebDriverCommandType.screenshot failed while
waiting for driver side

When the exception was thrown, this was the stack:
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 274:3 throw_
package:integration_test/src/_callback_web.dart 73:7
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 623:19
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 648:23
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 594:19
dart-sdk/lib/async/zone_root.dart 48:47 _rootRunUnary
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 118:77 tear
dart-sdk/lib/async/zone.dart 733:19 runUnary
dart-sdk/lib/async/future_impl.dart 222:18 handleValue
dart-sdk/lib/async/future_impl.dart 948:44 handleValueCallback
dart-sdk/lib/async/future_impl.dart 977:13 _propagateToListeners
dart-sdk/lib/async/future_impl.dart 720:5 [_completeWithValue]
dart-sdk/lib/async/future_impl.dart 804:7
dart-sdk/lib/async/zone_root.dart 35:13 _rootRun
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 118:77 tear
dart-sdk/lib/async/zone.dart 726:19 run
dart-sdk/lib/async/zone.dart 625:7 runGuarded
dart-sdk/lib/async/zone.dart 666:23
dart-sdk/lib/async/schedule_microtask.dart 40:34 _microtaskLoop
dart-sdk/lib/async/schedule_microtask.dart 49:5 _startMicrotaskLoop
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 118:77 tear
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 188:69

The test description was:
Perfetto trace viewer loads data and scrolls for Flutter frames
═════════════════════════════════════════════════════════════════
.

result {"result":"false","failureDetails":["{\"methodName\":\"Perfetto trace viewer loads data and scrolls for Flutter frames\",\"details\":\"══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞═════════════════\\nThe following _Exception was thrown running a test:\\nException: Web Driver Command failed:\\nWebDriverCommandType.screenshot with exception Exception: Web\\nDriver Command WebDriverCommandType.screenshot failed while\\nwaiting for driver side\\n\\nWhen the exception was thrown, this was the stack:\\ndart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 274:3 throw_\\npackage:integration_test/src/_callback_web.dart 73:7 \\ndart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 623:19 \\ndart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 648:23 \\ndart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 594:19 \\ndart-sdk/lib/async/zone_root.dart 48:47 _rootRunUnary\\ndart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 118:77 tear\\ndart-sdk/lib/async/zone.dart 733:19 runUnary\\ndart-sdk/lib/async/future_impl.dart 222:18 handleValue\\ndart-sdk/lib/async/future_impl.dart 948:44 handleValueCallback\\ndart-sdk/lib/async/future_impl.dart 977:13 _propagateToListeners\\ndart-sdk/lib/async/future_impl.dart 720:5 [_completeWithValue]\\ndart-sdk/lib/async/future_impl.dart 804:7 \\ndart-sdk/lib/async/zone_root.dart 35:13 _rootRun\\ndart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 118:77 tear\\ndart-sdk/lib/async/zone.dart 726:19 run\\ndart-sdk/lib/async/zone.dart 625:7 runGuarded\\ndart-sdk/lib/async/zone.dart 666:23 \\ndart-sdk/lib/async/schedule_microtask.dart 40:34 _microtaskLoop\\ndart-sdk/lib/async/schedule_microtask.dart 49:5 _startMicrotaskLoop\\ndart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 118:77 tear\\ndart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 188:69 \\n\\nThe test description was:\\n Perfetto trace viewer loads data and scrolls for Flutter frames\\n═════════════════════════════════════════════════════════════════\\n\"}"],"data":{"screenshots":[{"screenshotName":"perfetto_initial_load","bytes":[]},{"screenshotName":"perfetto_frame_selection","bytes":[]}]}}
Failure Details:
Failure in method: Perfetto trace viewer loads data and scrolls for Flutter frames
══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞═════════════════
The following _Exception was thrown running a test:
Exception: Web Driver Command failed:
WebDriverCommandType.screenshot with exception Exception: Web
Driver Command WebDriverCommandType.screenshot failed while
waiting for driver side

When the exception was thrown, this was the stack:
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 274:3 throw_
package:integration_test/src/_callback_web.dart 73:7
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 623:19
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 648:23
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 594:19
dart-sdk/lib/async/zone_root.dart 48:47 _rootRunUnary
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 118:77 tear
dart-sdk/lib/async/zone.dart 733:19 runUnary
dart-sdk/lib/async/future_impl.dart 222:18 handleValue
dart-sdk/lib/async/future_impl.dart 948:44 handleValueCallback
dart-sdk/lib/async/future_impl.dart 977:13 _propagateToListeners
dart-sdk/lib/async/future_impl.dart 720:5 [_completeWithValue]
dart-sdk/lib/async/future_impl.dart 804:7
dart-sdk/lib/async/zone_root.dart 35:13 _rootRun
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 118:77 tear
dart-sdk/lib/async/zone.dart 726:19 run
dart-sdk/lib/async/zone.dart 625:7 runGuarded
dart-sdk/lib/async/zone.dart 666:23
dart-sdk/lib/async/schedule_microtask.dart 40:34 _microtaskLoop
dart-sdk/lib/async/schedule_microtask.dart 49:5 _startMicrotaskLoop
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 118:77 tear
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 188:69

The test description was:
Perfetto trace viewer loads data and scrolls for Flutter frames
═════════════════════════════════════════════════════════════════

#0 IntegrationTestRunner.run.runTest (package:devtools_shared/src/test/integration_test_runner.dart:154:11)

#1 IntegrationTestRunner.run (package:devtools_shared/src/test/integration_test_runner.dart:160:5)

#2 runFlutterIntegrationTest (file:///Users/runner/work/devtools/devtools/packages/devtools_app/integration_test/test_infra/run/run_test.dart:81:5)

#3 _runTest (file:///Users/runner/work/devtools/devtools/packages/devtools_app/integration_test/run_tests.dart:84:3)

#4 runOneOrManyTests (package:devtools_shared/src/test/integration_test_runner.dart:354:9)

#5 main (file:///Users/runner/work/devtools/devtools/packages/devtools_app/integration_test/run_tests.dart:53:3)

Error: Process completed with exit code 255.
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.