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

未關閉
#9,642 1 則留言 0 個 reaction 已指派 1 人 在 GitHub 檢視

維護者通常 1 天內回覆

@elliette 已經在處理了。

開始於 2026年2月10日。

評估

這個 Issue 還沒有評估資料。

描述

integration tests P1

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                              <fn>\\ndart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 623:19               <fn>\\ndart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 648:23               <fn>\\ndart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 594:19               <fn>\\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                                         <fn>\\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                                               <fn>\\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               <fn>\\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                              <fn>
FlutterDriveProcess - dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 623:19               <fn>
FlutterDriveProcess - dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 648:23               <fn>
FlutterDriveProcess - dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 594:19               <fn>
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                                         <fn>
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                                               <fn>
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               <fn>
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                              <fn>
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 623:19               <fn>
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 648:23               <fn>
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 594:19               <fn>
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                                         <fn>
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                                               <fn>
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               <fn>

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                              <fn>\\ndart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 623:19               <fn>\\ndart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 648:23               <fn>\\ndart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 594:19               <fn>\\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                                         <fn>\\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                                               <fn>\\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               <fn>\\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                              <fn>
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 623:19               <fn>
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 648:23               <fn>
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 594:19               <fn>
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                                         <fn>
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                                               <fn>
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               <fn>

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)
<asynchronous suspension>
#1      IntegrationTestRunner.run (package:devtools_shared/src/test/integration_test_runner.dart:160:5)
<asynchronous suspension>
#2      runFlutterIntegrationTest (file:///Users/runner/work/devtools/devtools/packages/devtools_app/integration_test/test_infra/run/run_test.dart:81:5)
<asynchronous suspension>
#3      _runTest (file:///Users/runner/work/devtools/devtools/packages/devtools_app/integration_test/run_tests.dart:84:3)
<asynchronous suspension>
#4      runOneOrManyTests (package:devtools_shared/src/test/integration_test_runner.dart:354:9)
<asynchronous suspension>
#5      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.
主要語言
Dart
星號
1.7k
分支
420
平均合併
3 天 11 小時
30 天內合併 PR
29

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

flutter/devtools 的其他 Issue

查看 flutter/devtools 的全部 Issue

相似的 Issue

更多 Dart Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。